efaaf640b135bf06bc13d9402f893fdeaafe2064
[gnulib.git] / ChangeLog
1 2012-04-03  Bruno Haible  <bruno@clisp.org>
2
3         New module 'ilogbf'.
4         * lib/math.in.h (ilogbf): New declaration.
5         * lib/ilogbf.c: New file.
6         * m4/ilogbf.m4: New file.
7         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
8         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
9         REPLACE_ILOGBF.
10         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
11         REPLACE_ILOGBF.
12         * modules/ilogbf: New file.
13         * tests/test-math-c++.cc: Check the declaration of ilogbf.
14         * doc/posix-functions/ilogbf.texi: Mention the new module.
15
16 2012-04-03  Bruno Haible  <bruno@clisp.org>
17
18         Tests for module 'ilogb'.
19         * modules/ilogb-tests: New file.
20         * tests/test-ilogb.c: New file.
21         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
22         tests/test-logb-ieee.h.
23
24         New module 'ilogb'.
25         * lib/math.in.h (ilogb): New declaration.
26         * lib/ilogb.c: New file.
27         * m4/ilogb.m4: New file.
28         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
29         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
30         REPLACE_ILOGB.
31         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
32         REPLACE_ILOGB.
33         * modules/ilogb: New file.
34         * tests/test-math-c++.cc: Check the declaration of ilogb.
35         * doc/posix-functions/ilogb.texi: Mention the new module.
36
37 2012-04-03  Bruno Haible  <bruno@clisp.org>
38
39         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
40         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
41         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
42         (main): Check their values.
43         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
44         problem.
45
46 2012-04-03  Bruno Haible  <bruno@clisp.org>
47
48         Tests for module 'logbl-ieee'.
49         * modules/logbl-ieee-tests: New file.
50         * tests/test-logbl-ieee.c: New file.
51
52         New module 'logbl-ieee'.
53         * modules/logbl-ieee: New file.
54
55         Tests for module 'logb-ieee'.
56         * modules/logb-ieee-tests: New file.
57         * tests/test-logb-ieee.c: New file.
58
59         New module 'logb-ieee'.
60         * modules/logb-ieee: New file.
61
62         Tests for module 'logbf-ieee'.
63         * modules/logbf-ieee-tests: New file.
64         * tests/test-logbf-ieee.c: New file.
65         * tests/test-logb-ieee.h: New file.
66
67         New module 'logbf-ieee'.
68         * modules/logbf-ieee: New file.
69
70 2012-04-03  Bruno Haible  <bruno@clisp.org>
71
72         Tests for module 'logbl'.
73         * modules/logbl-tests: New file.
74         * tests/test-logbl.c: New file.
75
76         New module 'logbl'.
77         * lib/math.in.h (logbl): New declaration.
78         * lib/logbl.c: New file.
79         * m4/logbl.m4: New file.
80         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
81         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
82         REPLACE_LOGBL.
83         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
84         REPLACE_LOGBL.
85         * modules/logbl: New file.
86         * tests/test-math-c++.cc: Check the declaration of logbl.
87         * doc/posix-functions/logbl.texi: Mention the new module.
88
89 2012-04-02  Bruno Haible  <bruno@clisp.org>
90
91         Tests for module 'logbf'.
92         * modules/logbf-tests: New file.
93         * tests/test-logbf.c: New file.
94
95         New module 'logbf'.
96         * lib/math.in.h (logbf): New declaration.
97         * lib/logbf.c: New file.
98         * m4/logbf.m4: New file.
99         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
100         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
101         REPLACE_LOGBF.
102         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
103         REPLACE_LOGBF.
104         * modules/logbf: New file.
105         * tests/test-math-c++.cc: Check the declaration of logbf.
106         * doc/posix-functions/logbf.texi: Mention the new module.
107
108 2012-04-02  Bruno Haible  <bruno@clisp.org>
109
110         logb tests: More tests.
111         * tests/test-logb.h: New file, based on tests/test-logb.c and
112         tests/test-frexp.h.
113         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
114         (main): Just invoke test_function.
115         * modules/logb-tests (Files): Add tests/test-logb.h,
116         tests/minus-zero.h, tests/randomd.c.
117         (Makefile.am): Add randomd.c to test_logb_SOURCES.
118
119         logb: Provide replacement and workarounds.
120         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
121         is 1.
122         * lib/logb.c: New file.
123         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
124         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
125         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
126         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
127         * modules/logb (Files): Add lib/logb.c.
128         (Depends-on): Add isfinite, frexp, isnand.
129         (configure.ac): Compile the replacement code logb.c if needed.
130         * tests/test-math-c++.cc: Check the declaration of logb.
131         * doc/posix-functions/logb.texi: Mention the replacement and the bug
132         with subnormal numbers.
133
134 2012-04-02  Bruno Haible  <bruno@clisp.org>
135
136         log10* tests: Speed up.
137         * tests/test-log10.h (test_function): Reduce amount of random numbers
138         to test.
139
140 2012-04-01  Bruno Haible  <bruno@clisp.org>
141
142         logf-ieee: Fix test whether logf works.
143         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
144
145 2012-04-01  Bruno Haible  <bruno@clisp.org>
146
147         log10l: Work around log10l-ieee test failure on IRIX 6.5.
148         * lib/log10l.c: Include <float.h>
149         (log10l): On IRIX, normalize the +Infinity value.
150         * modules/log10l (Depends-on): Add 'float'.
151         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
152         +Infinity.
153
154         log10f-ieee: Work around test failure on NetBSD 5.1.
155         * m4/log10f-ieee.m4: New file.
156         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
157         test whether log10f works with a negative argument. Replace it if not.
158         * lib/log10f.c (log10f): For negative arguments, return NaN.
159         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
160         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
161         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
162
163         log10f-ieee: Work around test failure on Solaris 9.
164         * modules/log10f-ieee (Depends-on): Add log10-ieee.
165         (configure.ac): Require gl_FUNC_LOG10F.
166
167         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
168         * m4/log10-ieee.m4: New file.
169         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
170         whether log10 works with a negative argument. Replace it if not.
171         * lib/log10.c (log10): For negative arguments, return NaN.
172         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
173         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
174         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
175
176         Tests for module 'log10l-ieee'.
177         * modules/log10l-ieee-tests: New file.
178         * tests/test-log10l-ieee.c: New file.
179
180         New module 'log10l-ieee'.
181         * modules/log10l-ieee: New file.
182
183         Tests for module 'log10-ieee'.
184         * modules/log10-ieee-tests: New file.
185         * tests/test-log10-ieee.c: New file.
186
187         New module 'log10-ieee'.
188         * modules/log10-ieee: New file.
189
190         Tests for module 'log10f-ieee'.
191         * modules/log10f-ieee-tests: New file.
192         * tests/test-log10f-ieee.c: New file.
193         * tests/test-log10-ieee.h: New file.
194
195         New module 'log10f-ieee'.
196         * modules/log10f-ieee: New file.
197
198 2012-04-01  Bruno Haible  <bruno@clisp.org>
199
200         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
201         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
202         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
203         workaround.
204         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
205         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
206         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
207         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
208         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
209         (Depends-on): Update conditions.
210         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
211         IRIX 6.5, OSF/1 5.1 problems.
212
213 2012-04-01  Bruno Haible  <bruno@clisp.org>
214
215         log10f: Work around OSF/1 5.1 bug.
216         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
217         * lib/log10f.c (log10f): If logf exists, use it and provide just the
218         workaround.
219         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
220         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
221         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
222         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
223         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
224         (Depends-on): Update conditions.
225         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
226
227 2012-04-01  Bruno Haible  <bruno@clisp.org>
228
229         log10: Work around OSF/1 5.1 bug.
230         * lib/math.in.h (log10): New declaration.
231         * lib/log10.c: New file.
232         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
233         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
234         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
235         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
236         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
237         * modules/log10 (Files): Add lib/log10.c.
238         (Depends-on): Add math.
239         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
240         * tests/test-math-c++.cc: Check the declaration of log10.
241         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
242
243 2012-03-31  Bruno Haible  <bruno@clisp.org>
244
245         log10l tests: More tests.
246         * modules/log10l-tests (Files): Add tests/test-log10l.h,
247         tests/minus-zero.h, tests/randoml.c.
248         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
249         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
250         (main): Invoke test_function.
251
252         log10f tests: More tests.
253         * modules/log10f-tests (Files): Add tests/test-log10.h,
254         tests/minus-zero.h, tests/randomf.c.
255         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
256         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
257         (main): Invoke test_function.
258
259         log10 tests: More tests.
260         * tests/test-log10.h: New file.
261         * modules/log10-tests (Files): Add tests/test-log10.h,
262         tests/minus-zero.h, tests/randomd.c.
263         (Makefile.am): Add randomd.c to test_log10_SOURCES.
264         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
265         (main): Invoke test_function.
266
267 2012-03-31  Simon Josefsson  <simon@josefsson.org>
268
269         fflush: Fix syntax error.
270         * lib/fflush.c: Include unused-parameter.h, needed for
271         _GL_UNUSED_PARAMETER.
272         * modules/fflush (Depends-on): Add snippet/unused-parameter.
273
274 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
275
276         regex: pacify GCC when compiling GRUB
277         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
278         a diagnostic.  Reported by Vladimir Serbinenko in
279         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
280
281 2012-03-29  Eric Blake  <eblake@redhat.com>
282
283         stdio: don't assume gets any more
284         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
285         support.
286         * modules/stdio (Makefile.am): Likewise.
287         * lib/stdio-read.c (gets): Likewise.
288         * tests/test-stdio-c++.cc: Likewise.
289         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
290         * lib/stdio.in.h (gets): Make warning occur in more places.
291         * doc/posix-functions/gets.texi (gets): Update documentation.
292         Reported by Christer Solskogen.
293
294         maint.mk: fix syntax checks without exclusions
295         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
296         Reported by Daniel P. Berrange.
297
298         strerror_r: avoid compiler warning
299         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
300         level.
301
302         fflush: avoid compiler warning
303         * lib/fflush.c (update_fpos_cache): Mark variables that are
304         potentially unused.
305
306 2012-03-25  Bruno Haible  <bruno@clisp.org>
307
308         Tests for module 'localeconv'.
309         * modules/localeconv-tests: New file.
310         * tests/test-localeconv.c: New file.
311
312         New module 'localeconv'.
313         * lib/locale.in.h (localeconv): New declaration.
314         * lib/localeconv.c: New file.
315         * m4/localeconv.m4: New file.
316         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
317         REPLACE_LOCALECONV.
318         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
319         REPLACE_LOCALECONV.
320         * modules/localeconv: New file.
321         * modules/nl_langinfo (Depends-on): Add localeconv.
322         * modules/human (Depends-on): Likewise.
323         * doc/posix-functions/localeconv.texi: Mention the new module.
324
325 2012-03-25  Bruno Haible  <bruno@clisp.org>
326
327         locale: Provide a complete 'struct lconv'.
328         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
329         'struct lconv' does not contain int_p_cs_precedes.
330         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
331         * doc/posix-headers/locale.texi: Update.
332
333         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
334         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
335         * doc/posix-headers/locale.texi: Update.
336
337         locale: Provide a working 'struct lconv'.
338         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
339         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
340         'struct lconv' does not even contain decimal_point.
341         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
342         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
343         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
344         * doc/posix-headers/locale.texi: Mention the problems with
345         'struct lconv'.
346         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
347
348 2012-03-24  Bruno Haible  <bruno@clisp.org>
349
350         Enable common subexpression optimization in GCC.
351         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
352         macros.
353         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
354         GCC attribute 'const'.
355         (uc_locale_language): Declare with GCC attribute 'pure'.
356         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
357         with GCC attribute 'const'.
358         * lib/unictype.in.h (uc_is_general_category_withtable,
359         uc_combining_class, uc_combining_class_name,
360         uc_combining_class_long_name, uc_bidi_class_name,
361         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
362         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
363         uc_decimal_value, uc_digit_value, uc_numeric_value,
364         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
365         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
366         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
367         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
368         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
369         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
370         Declare with GCC attribute 'const'.
371         (uc_general_category_name, uc_general_category_long_name,
372         uc_general_category_byname, uc_general_category,
373         uc_is_general_category, uc_combining_class_byname,
374         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
375         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
376         Declare with GCC attribute 'pure'.
377         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
378         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
379         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
380         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
381         with GCC attribute 'pure'.
382         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
383         'const'.
384         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
385         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
386         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
387         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
388         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
389         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
390         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
391         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
392         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
393         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
394         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
395         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
396         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
397         GCC attribute 'pure'.
398         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
399         'const'.
400         * lib/uniwidth.in.h (uc_width): Simplify declaration.
401         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
402         u32_strwidth): Declare with GCC attribute 'pure'.
403
404         Enable common subexpression optimization in GCC.
405         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
406         (alphasort): Declare with GCC attribute 'pure'.
407         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
408         (atoll): Declare with GCC attribute 'pure'.
409         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
410         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
411         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
412         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
413         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
414         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
415         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
416
417 2012-03-24  Bruno Haible  <bruno@clisp.org>
418
419         gnulib-tool: Avoid unintended error output from 'cmp'.
420         * gnulib-tool (func_add_file, func_update_file, func_import): Use
421         "cmp -s", not "cmp > /dev/null".
422
423 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
424
425         gnulib-tool: fix imprecise comments w.r.t. an automake bug
426
427         It's not just Automake versions < 1.9b that creates an empty
428         pkgdatadir at installation time if pkgdata_DATA is specified
429         to empty; modern automake versions do this as well, at least
430         until automake 1.11.4 (not yet released at the moment of writing,
431         but soon to appear).  That behaviour was generally considered a
432         feature rather than a bug, at least until this discussion:
433         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
434
435         See also automake bugs #10997 and #11030.
436
437         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
438         reference to relevant automake bug numbers.
439         (func_emit_tests_Makefile_am): Likewise.
440
441 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
442
443         announce-gen: use Digest::SHA when possible
444         * build-aux/announce-gen: Use Digest::SHA when possible, falling
445         back to Digest::SHA1 if necessary.
446
447 2012-03-20  Jim Meyering  <meyering@redhat.com>
448
449         tests: avoid gcc warnings about argv vs. const initializers
450         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
451         warnings about discarding 'const' qualifier from pointer target type.
452         * tests/test-posix_spawn2.c (main): Likewise.
453
454 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
455
456         README-release: simplify slightly
457         * top/README-release: Run "git checkout master" only once.
458
459 2012-03-15  Mark Wielaard  <mark@klomp.org>
460
461         git-merge-changelog: add specific example on how to use with hg.
462         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
463
464 2012-03-18  Mark Wielaard  <mark@klomp.org>
465
466         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
467
468 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
469
470         git-version-gen: don't let "prefix" envvar cause trouble
471         * build-aux/git-version-gen (prefix): Initialize properly,
472         so as not to use a value specified via the environment.
473         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
474
475 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
476
477         regex: diagnose too-large repeat counts in EREs
478         Previously, the code did not diagnose the too-large repeat count
479         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
480         as if it were 'b\{1000000000}', which is unexpected.
481         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
482         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
483         is a reasonable one for this problem.  Another option would be to
484         create a new REG_OVERFLOW error for repeat counts that are too large.
485         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
486         count is too large, so that the caller can distinguish the two cases.
487         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
488         "Too large" return code, and that repeat counts are one example of this.
489
490 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
491
492         doc: some glibc x32 integer width issues
493         * doc/posix-headers/sys_types.texi (sys/types.h):
494         * doc/posix-headers/time.texi (time.h):
495         Mention that glibc x32 does not conform to POSIX in a couple of
496         areas related to integer widths.
497
498 2012-03-15  Bruno Haible  <bruno@clisp.org>
499
500         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
501         * lib/fma.c (VOLATILE): New macro.
502         (FUNC): Use it to work around a GCC compiler bug.
503
504 2012-03-13  Bruno Haible  <bruno@clisp.org>
505
506         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
507         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
508         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
509         REPLACE_HYPOTL to 1.
510         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
511
512 2012-03-13  Bruno Haible  <bruno@clisp.org>
513
514         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
515         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
516         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
517         REPLACE_REMAINDERL to 1.
518         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
519         bug.
520
521 2012-03-13  Bruno Haible  <bruno@clisp.org>
522
523         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
524         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
525         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
526         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
527         too big rounding errors.
528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
529         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
530         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
531         (Depends-on): Update conditions.
532         * tests/test-sqrtl.c (my_ldexpl): New function.
533         (main): Add test of a particular value.
534         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
535
536 2012-03-13  Pádraig Brady  <P@draigBrady.com>
537
538         doc: Update timer_* platform portability notes.
539         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
540         that always return ENOSYS.
541         * doc/posix-functions/timer_delete.texi: Likewise.
542         * doc/posix-functions/timer_gettime.texi: Likewise.
543         * doc/posix-functions/timer_settime.texi: Likewise.
544
545 2012-03-13  Bruno Haible  <bruno@clisp.org>
546
547         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
548         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
549         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
550         REPLACE_CBRTL to 1.
551         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
552
553 2012-03-13  Bruno Haible  <bruno@clisp.org>
554
555         remainderl: Avoid compilation error on AIX >= 5.2.
556         * lib/math.in.h (remainderl): Undefine macro from the system header.
557
558 2012-03-13  Bruno Haible  <bruno@clisp.org>
559
560         Avoid compilation errors with MSVC option -fp:strict.
561         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
562         * lib/cbrtf.c: Likewise.
563         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
564
565 2012-03-12  Bruno Haible  <bruno@clisp.org>
566
567         uninorm: Don't crash in out-of-memory conditions.
568         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
569         gracefully.
570         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
571         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
572
573 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
574
575         quote: fix syntax-check
576         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
577         also exports quote_quoting_options.
578
579 2012-03-12  Simon Josefsson  <simon@josefsson.org>
580
581         Collapse list of copyright years to ranges.  See
582         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
583         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
584         build-aux/csharpexec.sh.in, build-aux/gnupload,
585         build-aux/install-reloc, build-aux/javacomp.sh.in,
586         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
587         build-aux/move-if-change, build-aux/reloc-ldflags,
588         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
589
590 2012-03-11  Bruno Haible  <bruno@clisp.org>
591
592         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
593         * m4/log2f-ieee.m4: New file.
594         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
595         whether log2f works with a minus zero argument. Replace it if not.
596         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
597         (Depends-on): Add log2-ieee.
598         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
599         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
600
601         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
602         * m4/log2-ieee.m4: New file.
603         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
604         whether log2 works with a minus zero argument. Replace it if not.
605         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
606         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
607         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
608
609         Tests for module 'log2l-ieee'.
610         * modules/log2l-ieee-tests: New file.
611         * tests/test-log2l-ieee.c: New file.
612
613         New module 'log2l-ieee'.
614         * modules/log2l-ieee: New file.
615
616         Tests for module 'log2-ieee'.
617         * modules/log2-ieee-tests: New file.
618         * tests/test-log2-ieee.c: New file.
619
620         New module 'log2-ieee'.
621         * modules/log2-ieee: New file.
622
623         Tests for module 'log2f-ieee'.
624         * modules/log2f-ieee-tests: New file.
625         * tests/test-log2f-ieee.c: New file.
626         * tests/test-log2-ieee.h: New file.
627
628         New module 'log2f-ieee'.
629         * modules/log2f-ieee: New file.
630
631 2012-03-11  Bruno Haible  <bruno@clisp.org>
632
633         Tests for module 'log2l'.
634         * modules/log2l-tests: New file.
635         * tests/test-log2l.c: New file.
636
637         New module 'log2l'.
638         * lib/math.in.h (log2l): New declaration.
639         * lib/log2l.c: New file.
640         * m4/log2l.m4: New file.
641         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
642         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
643         REPLACE_LOG2L.
644         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
645         REPLACE_LOG2L.
646         * modules/log2l: New file.
647         * tests/test-math-c++.cc: Check the declaration of log2l.
648         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
649         and OSF/1 problems.
650
651 2012-03-11  Bruno Haible  <bruno@clisp.org>
652
653         Tests for module 'log2f'.
654         * modules/log2f-tests: New file.
655         * tests/test-log2f.c: New file.
656
657         New module 'log2f'.
658         * lib/math.in.h (log2f): New declaration.
659         * lib/log2f.c: New file.
660         * m4/log2f.m4: New file.
661         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
662         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
663         REPLACE_LOG2F.
664         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
665         REPLACE_LOG2F.
666         * modules/log2f: New file.
667         * tests/test-math-c++.cc: Check the declaration of log2f.
668         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
669         and OSF/1 and Cygwin problems.
670
671 2012-03-11  Bruno Haible  <bruno@clisp.org>
672
673         Tests for module 'log2'.
674         * modules/log2-tests: New file.
675         * tests/test-log2.c: New file.
676         * tests/test-log2.h: New file.
677
678         New module 'log2'.
679         * lib/math.in.h (log2): New declaration.
680         * lib/log2.c: New file.
681         * m4/log2.m4: New file.
682         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
683         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
684         REPLACE_LOG2.
685         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
686         REPLACE_LOG2.
687         * modules/log2: New file.
688         * tests/test-math-c++.cc: Check the declaration of log2.
689         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
690         and OSF/1 and Cygwin problems.
691
692 2012-03-11  Bruno Haible  <bruno@clisp.org>
693
694         exp2* tests: More tests.
695         * tests/test-exp2.h (test_function): Test all integral arguments that
696         don't need to overflow or denormalized numbers.
697         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
698         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
699         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
700
701 2012-03-10  Bruno Haible  <bruno@clisp.org>
702
703         log1pl-ieee: Work around test failure on AIX 7.1.
704         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
705
706         log1pl-ieee: Work around test failure on IRIX 6.5.
707         * m4/log1pl-ieee.m4: New file.
708         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
709         test whether log1pl works with a minus zero argument. Replace it if
710         not.
711         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
712         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
713         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
714         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
715         (Depends-on): Update conditions.
716         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
717         m4/signbit.m4.
718         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
719         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
720
721         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
722         * m4/log1pf-ieee.m4: New file.
723         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
724         test whether log1pf works with a minus zero argument. Replace it if
725         not.
726         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
727         m4/signbit.m4.
728         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
729         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
730
731         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
732         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
733         (configure.ac): Require gl_FUNC_LOG1PF.
734
735         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
736         * m4/log1p-ieee.m4: New file.
737         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
738         whether log1p works with a minus zero argument. Replace it if not.
739         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
740         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
741         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
742         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
743         (Depends-on): Update conditions.
744         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
745         m4/signbit.m4.
746         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
747         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
748
749         Tests for module 'log1pl-ieee'.
750         * modules/log1pl-ieee-tests: New file.
751         * tests/test-log1pl-ieee.c: New file.
752
753         New module 'log1pl-ieee'.
754         * modules/log1pl-ieee: New file.
755
756         Tests for module 'log1p-ieee'.
757         * modules/log1p-ieee-tests: New file.
758         * tests/test-log1p-ieee.c: New file.
759
760         New module 'log1p-ieee'.
761         * modules/log1p-ieee: New file.
762
763         Tests for module 'log1pf-ieee'.
764         * modules/log1pf-ieee-tests: New file.
765         * tests/test-log1pf-ieee.c: New file.
766         * tests/test-log1p-ieee.h: New file.
767
768         New module 'log1pf-ieee'.
769         * modules/log1pf-ieee: New file.
770
771 2012-03-10  Bruno Haible  <bruno@clisp.org>
772
773         Tests for module 'log1pl'.
774         * modules/log1pl-tests: New file.
775         * tests/test-log1pl.c: New file.
776
777         New module 'log1pl'.
778         * lib/math.in.h (log1pl): New declaration.
779         * lib/log1pl.c: New file.
780         * m4/log1pl.m4: New file.
781         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
782         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
783         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
784         * modules/log1pl: New file.
785         * tests/test-math-c++.cc: Check the declaration of log1pl.
786         * doc/posix-functions/log1pl.texi: Mention the new module.
787
788 2012-03-10  Bruno Haible  <bruno@clisp.org>
789
790         Tests for module 'log1pf'.
791         * modules/log1pf-tests: New file.
792         * tests/test-log1pf.c: New file.
793
794         New module 'log1pf'.
795         * lib/math.in.h (log1pf): New declaration.
796         * lib/log1pf.c: New file.
797         * m4/log1pf.m4: New file.
798         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
799         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
800         REPLACE_LOG1PF.
801         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
802         REPLACE_LOG1PF.
803         * modules/log1pf: New file.
804         * tests/test-math-c++.cc: Check the declaration of log1pf.
805         * doc/posix-functions/log1pf.texi: Mention the new module.
806
807 2012-03-10  Bruno Haible  <bruno@clisp.org>
808
809         log1p tests: More tests.
810         * tests/test-log1p.h: New file.
811         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
812         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
813         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
814         (main): Invoke test_function.
815
816         log1p: Provide replacement for Minix and MSVC.
817         * lib/math.in.h (log1p): New declaration.
818         * lib/log1p.c: New file.
819         * m4/log1p.m4: New file.
820         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
821         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
822         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
823         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
824         (Depends-on): Add math, isnand, log, round.
825         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
826         HAVE_LOG1P is 0.
827         * tests/test-math-c++.cc: Check the declaration of log1p.
828         * doc/posix-functions/log1p.texi: Mention the replacement.
829
830 2012-03-10  Bruno Haible  <bruno@clisp.org>
831
832         math tests: Small simplification.
833         * tests/test-exp.h (test_function): Use the same err_bound for
834         'double' on platforms with sizeof (long double) == sizeof (double)
835         than on platforms with sizeof (long double) > sizeof (double).
836         * tests/test-exp2.h (test_function): Likewise.
837         * tests/test-expm1.h (test_function): Likewise.
838         * tests/test-log.h (test_function): Likewise.
839
840 2012-03-10  Bruno Haible  <bruno@clisp.org>
841
842         Fix some comments.
843         * lib/expl.c: Fix an ambiguous comment.
844         * lib/expm1.c: Likewise.
845         * lib/expm1l.c: Likewise.
846         * lib/exp2.c: Likewise.
847         * lib/exp2l.c: Likewise.
848
849 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
850
851         regex: allow inclusion of <regex.h> before <limits.h>
852         Without this patch, portable programs had to include <limits.h> before
853         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
854         I ran into this problem with a test version of GNU grep on Solaris 8.
855         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
856         This is done conditionally so that this change can be merged
857         back to glibc.
858         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
859         using the included regex.
860
861         fts: depend on fdopendir
862         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
863         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
864         problem was introduced when fdopendir was split out.
865
866 2012-03-10  Bruno Haible  <bruno@clisp.org>
867
868         Remove unused variables.
869         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
870         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
871
872 2012-03-10  Bruno Haible  <bruno@clisp.org>
873
874         isnanf-nolibm: Fix last commit.
875         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
876
877         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
878         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
879
880 2012-03-10  Bruno Haible  <bruno@clisp.org>
881
882         logf-ieee: Work around test failure on NetBSD 5.1.
883         * m4/logf-ieee.m4: New file.
884         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
885         whether logf works with a negative argument. Replace it if not.
886         * lib/logf.c (logf): For negative arguments, return NaN.
887         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
888         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
889         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
890
891         logf-ieee: Work around test failure on Solaris 9.
892         * modules/logf-ieee (Depends-on): Add log-ieee.
893         (configure.ac): Require gl_FUNC_LOGF.
894
895         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
896         * m4/log-ieee.m4: New file.
897         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
898         log works with a negative argument. Replace it if not.
899         * lib/log.c (log): For negative arguments, return NaN.
900         * modules/log-ieee (Files): Add m4/log-ieee.m4.
901         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
902         * doc/posix-functions/log.texi: Mention the log-ieee module.
903
904         Tests for module 'logl-ieee'.
905         * modules/logl-ieee-tests: New file.
906         * tests/test-logl-ieee.c: New file.
907
908         New module 'logl-ieee'.
909         * modules/logl-ieee: New file.
910
911         Tests for module 'log-ieee'.
912         * modules/log-ieee-tests: New file.
913         * tests/test-log-ieee.c: New file.
914
915         New module 'log-ieee'.
916         * modules/log-ieee: New file.
917
918         Tests for module 'logf-ieee'.
919         * modules/logf-ieee-tests: New file.
920         * tests/test-logf-ieee.c: New file.
921         * tests/test-log-ieee.h: New file.
922
923         New module 'logf-ieee'.
924         * modules/logf-ieee: New file.
925
926 2012-03-10  Bruno Haible  <bruno@clisp.org>
927
928         log: Fix bug introduced on 2012-03-09.
929         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
930
931 2012-03-10  Pádraig Brady  <P@draigBrady.com>
932
933         timer-time: link explicitly with pthreads on glibc
934         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
935         to support static linking, when newer glibc is
936         detected, as that contains pthread emulation of
937         POSIX timer functions where required.
938         * modules/timer-time: Depend on threadlib to
939         pull in the appropriate library to link.
940
941 2012-03-10  Bruno Haible  <bruno@clisp.org>
942
943         log* tests: More tests.
944         * tests/test-log.h: New file.
945         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
946         (main): Invoke test_function.
947         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
948         (main): Invoke test_function.
949         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
950         (main): Invoke test_function.
951         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
952         tests/randomd.c.
953         (Makefile.am): Add randomd.c to test_log_SOURCES.
954         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
955         tests/randomf.c.
956         (Makefile.am): Add randomf.c to test_logf_SOURCES.
957         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
958         tests/randoml.c.
959         (Depends-on): Add 'float'.
960         (Makefile.am): Add randoml.c to test_logl_SOURCES.
961
962 2012-03-09  Bruno Haible  <bruno@clisp.org>
963
964         logl: Work around OSF/1 5.1 bug.
965         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
966         * lib/logl.c (logl): If logl exists, use it and provide just the
967         workaround.
968         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
969         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
970         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
971         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
972         * modules/logl (configure.ac): Consider REPLACE_LOGL.
973         (Depends-on): Update conditions.
974         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
975
976 2012-03-09  Bruno Haible  <bruno@clisp.org>
977
978         logf: Work around OSF/1 5.1 bug.
979         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
980         * lib/logf.c (logf): If logf exists, use it and provide just the
981         workaround.
982         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
983         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
985         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
986         * modules/logf (configure.ac): Consider REPLACE_LOGF.
987         (Depends-on): Update conditions.
988         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
989
990 2012-03-09  Bruno Haible  <bruno@clisp.org>
991
992         log: Work around OSF/1 5.1 bug.
993         * lib/math.in.h (log): New declaration.
994         * lib/log.c: New file.
995         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
996         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
997         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
998         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
999         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
1000         * modules/log (Files): Add lib/log.c.
1001         (Depends-on): Add math.
1002         (configure.ac): If REPLACE_LOG is 1, compile an override.
1003         * tests/test-math-c++.cc: Check the declaration of log.
1004         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
1005
1006 2012-03-09  Jim Meyering  <meyering@redhat.com>
1007
1008         readtokens.c: adjust wording in a comment
1009         * lib/readtokens.c: Insert omitted "that" in a comment.
1010
1011 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1012
1013         modechange: add notations +40, 00440, etc.
1014         * lib/modechange.c (mode_compile): Support new notations
1015         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
1016
1017 2012-03-08  Bruno Haible  <bruno@clisp.org>
1018
1019         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
1020         * m4/exp2l-ieee.m4: New file.
1021         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
1022         test whether exp2l works with a NaN argument and with a negative
1023         infinity argument. Replace it if not.
1024         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
1025         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
1026         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
1027         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
1028         (Depends-on): Update conditions.
1029         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
1030         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
1031         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
1032
1033         Tests for module 'exp2l-ieee'.
1034         * modules/exp2l-ieee-tests: New file.
1035         * tests/test-exp2l-ieee.c: New file.
1036
1037         New module 'exp2l-ieee'.
1038         * modules/exp2l-ieee: New file.
1039
1040         Tests for module 'exp2-ieee'.
1041         * modules/exp2-ieee-tests: New file.
1042         * tests/test-exp2-ieee.c: New file.
1043
1044         New module 'exp2-ieee'.
1045         * modules/exp2-ieee: New file.
1046
1047         Tests for module 'exp2f-ieee'.
1048         * modules/exp2f-ieee-tests: New file.
1049         * tests/test-exp2f-ieee.c: New file.
1050         * tests/test-exp2-ieee.h: New file.
1051
1052         New module 'exp2f-ieee'.
1053         * modules/exp2f-ieee: New file.
1054
1055 2012-03-08  Bruno Haible  <bruno@clisp.org>
1056
1057         Tests for module 'exp2l'.
1058         * modules/exp2l-tests: New file.
1059         * tests/test-exp2l.c: New file.
1060
1061         New module 'exp2l'.
1062         * lib/math.in.h (exp2l): New declaration.
1063         * lib/exp2l.c: New file.
1064         * lib/expl-table.c: New file, extracted from lib/expl.c.
1065         * lib/expl.c (gl_expl_table): New declaration.
1066         (expl): Remove expl_table. Update reference.
1067         * m4/exp2l.m4: New file.
1068         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
1069         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
1070         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
1071         * modules/exp2l: New file.
1072         * modules/expl (Files): Add lib/expl-table.c.
1073         (configure.ac): Compile also expl-table.c.
1074         * tests/test-math-c++.cc: Check the declaration of exp2l.
1075         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
1076         problem.
1077
1078 2012-03-08  Bruno Haible  <bruno@clisp.org>
1079
1080         Tests for module 'exp2f'.
1081         * modules/exp2f-tests: New file.
1082         * tests/test-exp2f.c: New file.
1083
1084         New module 'exp2f'.
1085         * lib/math.in.h (exp2f): New declaration.
1086         * lib/exp2f.c: New file.
1087         * m4/exp2f.m4: New file.
1088         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
1089         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
1090         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
1091         * modules/exp2f: New file.
1092         * tests/test-math-c++.cc: Check the declaration of exp2f.
1093         * doc/posix-functions/exp2f.texi: Mention the new module and the
1094         IRIX problem.
1095
1096 2012-03-08  Bruno Haible  <bruno@clisp.org>
1097
1098         Tests for module 'exp2'.
1099         * modules/exp2-tests: New file.
1100         * tests/test-exp2.c: New file.
1101         * tests/test-exp2.h: New file.
1102
1103         New module 'exp2'.
1104         * lib/math.in.h (exp2): New declaration.
1105         * lib/exp2.c: New file.
1106         * m4/exp2.m4: New file.
1107         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
1108         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
1109         REPLACE_EXP2.
1110         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
1111         REPLACE_EXP2.
1112         * modules/exp2: New file.
1113         * tests/test-math-c++.cc: Check the declaration of exp2.
1114         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
1115         and OpenBSD problems.
1116
1117 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
1118
1119         savedir: fix comment typo
1120         * lib/savedir.c (savedirstream): Fix typo in comment.
1121
1122 2012-03-08  Bruno Haible  <bruno@clisp.org>
1123
1124         test-readtokens.c: use const; remove unwarranted cast
1125         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
1126
1127 2012-03-08  Bruno Haible  <bruno@clisp.org>
1128
1129         fmal: Avoid compilation error on AIX.
1130         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
1131         AIX 5.2..7.1.
1132
1133 2012-03-08  Bruno Haible  <bruno@clisp.org>
1134
1135         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
1136         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
1137         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
1138         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
1139         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
1140         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
1141         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
1142
1143 2012-03-08  Bruno Haible  <bruno@clisp.org>
1144
1145         remainderf: Override buggy system function on IRIX 6.5.
1146         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
1147         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
1148         when it exists.
1149         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
1150
1151 2012-03-08  Jim Meyering  <meyering@redhat.com>
1152
1153         test-readtokens.c: avoid const-related compilation warnings
1154         * tests/test-readtokens.c: Avoid const-related compilation warnings.
1155
1156 2012-03-07  Jim Meyering  <meyering@redhat.com>
1157             Bruno Haible  <bruno@clisp.org>
1158
1159         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
1160         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
1161         tests/randomd.c.
1162         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
1163         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
1164         tests/randoml.c.
1165         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
1166
1167 2012-03-07  Bruno Haible  <bruno@clisp.org>
1168
1169         expm1l: Avoid compilation error on AIX.
1170         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
1171         AIX 5.2..7.1.
1172
1173 2012-03-07  Bruno Haible  <bruno@clisp.org>
1174
1175         expm1l: Don't override undeclared system function on IRIX 6.5.
1176         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
1177         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
1178         it exists. Set HAVE_DECL_EXPM1L.
1179         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
1180         HAVE_EXPM1L.
1181         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
1182         HAVE_EXPM1L.
1183         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
1184
1185 2012-03-07  Bruno Haible  <bruno@clisp.org>
1186
1187         remainderl: Don't override undeclared system function on IRIX 6.5.
1188         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
1189         HAVE_REMAINDERL.
1190         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
1191         declared when it exists. Set HAVE_DECL_REMAINDERL.
1192         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
1193         not HAVE_REMAINDERL.
1194         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
1195         HAVE_REMAINDERL.
1196         * doc/posix-functions/remainderl.texi: Mention missing declaration
1197         problem.
1198
1199 2012-03-07  Bruno Haible  <bruno@clisp.org>
1200
1201         rintf: Don't override undeclared system function on IRIX 6.5.
1202         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
1203         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
1204         exists. Set HAVE_DECL_RINTF.
1205         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
1206         HAVE_RINTF.
1207         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
1208         HAVE_RINTF.
1209         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
1210
1211 2012-03-07  Bruno Haible  <bruno@clisp.org>
1212
1213         roundl: Avoid compilation error on AIX.
1214         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
1215         AIX 5.2..7.1.
1216
1217 2012-03-07  Bruno Haible  <bruno@clisp.org>
1218
1219         roundl: Don't override undeclared system function on IRIX 6.5.
1220         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
1221         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
1222         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1223         * modules/roundl (configure.ac): For replacement code, test
1224         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
1225         (Depends-on): Update conditions.
1226         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
1227
1228 2012-03-07  Bruno Haible  <bruno@clisp.org>
1229
1230         roundf: Don't override undeclared system function on IRIX 6.5.
1231         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
1232         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
1233         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1234         * modules/roundf (configure.ac): For replacement code, test
1235         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
1236         (Depends-on): Update conditions.
1237         * modules/roundf-ieee (Depends-on): Update conditions.
1238         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
1239
1240 2012-03-07  Bruno Haible  <bruno@clisp.org>
1241
1242         round: Don't override undeclared system function on IRIX 6.5.
1243         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
1244         argument.
1245         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
1246         also when it is not declared. Set HAVE_ROUND. For replacement code,
1247         test HAVE_ROUND, not HAVE_DECL_ROUND.
1248         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
1249         not HAVE_DECL_ROUND.
1250         (Depends-on): Update conditions.
1251         * modules/round-ieee (Depends-on): Update conditions.
1252         * doc/posix-functions/round.texi: Mention the IRIX problem.
1253
1254 2012-03-07  Bruno Haible  <bruno@clisp.org>
1255
1256         copysignf: Don't override undeclared system function on IRIX 6.5.
1257         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
1258         HAVE_COPYSIGNF.
1259         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
1260         declared when it exists. Set HAVE_DECL_COPYSIGNF.
1261         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
1262         not HAVE_COPYSIGNF.
1263         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
1264         HAVE_COPYSIGNF.
1265         * doc/posix-functions/copysignf.texi: Mention missing declaration
1266         problem.
1267
1268 2012-03-07  Jim Meyering  <meyering@redhat.com>
1269
1270         readtokens: add tests
1271         * modules/readtokens-tests: New file.
1272         * tests/test-readtokens.c: New file.
1273
1274 2012-03-07  Jim Meyering  <meyering@redhat.com>
1275
1276         quotearg: the module must now include quote.h
1277         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1278         So must the module.
1279         * modules/quotearg (Files): Add quote.h.
1280
1281 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1282
1283         readtokens: avoid core dumps with unusual calling patterns
1284         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
1285         * lib/readtokens.c: Include limits.h.
1286         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
1287         (readtoken): Don't cache the delimiters; the cache code was buggy
1288         if !delim && saved_delim, or if the new n_delim differs from the old.
1289         Also, it wasn't thread-safe.
1290
1291 2012-03-07  Bruno Haible  <bruno@clisp.org>
1292
1293         quote: Adhere to common module description layout.
1294         * modules/quote (Makefile.am): Add back empty section.
1295
1296 2012-03-06  Akim Demaille  <demaille@gostai.com>
1297
1298         quote: fuse into quotearg
1299         This patch is made for the benefit of Bison.
1300         quote does not leave the choice of the quoting style to the user.
1301         quoting_style provides poor customizability, yet quoting_options,
1302         which is very rich, is hidden inside quotearg.c.  So in order to
1303         allow quote customization, move its implementation to quotearg.c.
1304         * lib/quote.c: Remove.
1305         * modules/quote: Adjust.
1306         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
1307         warning: provide all the members of literal structs.
1308         (quote_quoting_options): New.
1309         (quote, quote_n): Import implementation from quote.c.
1310         * lib/quote.h: Import the comments from quote.c.
1311         (quote_quoting_options): New.
1312
1313 2012-03-06  Bruno Haible  <bruno@clisp.org>
1314
1315         Tests for module 'expm1l-ieee'.
1316         * modules/expm1l-ieee-tests: New file.
1317         * tests/test-expm1l-ieee.c: New file.
1318
1319         New module 'expm1l-ieee'.
1320         * modules/expm1l-ieee: New file.
1321
1322         Tests for module 'expm1f-ieee'.
1323         * modules/expm1f-ieee-tests: New file.
1324         * tests/test-expm1f-ieee.c: New file.
1325
1326         New module 'expm1f-ieee'.
1327         * modules/expm1f-ieee: New file.
1328
1329         Tests for module 'expm1-ieee'.
1330         * modules/expm1-ieee-tests: New file.
1331         * tests/test-expm1-ieee.c: New file.
1332         * tests/test-expm1-ieee.h: New file.
1333
1334         New module 'expm1-ieee'.
1335         * modules/expm1-ieee: New file.
1336         * m4/expm1-ieee.m4: New file.
1337         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
1338         whether expm1 works with a minus zero argument. Replace it if not.
1339         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
1340         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
1341         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
1342         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
1343         (Depends-on): Update conditions.
1344         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
1345         AIX problem.
1346
1347 2012-03-06  Bruno Haible  <bruno@clisp.org>
1348
1349         Work around expm1f bug on IRIX 6.5.
1350         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
1351         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
1352         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
1353         not work.
1354         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
1355         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
1356         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
1357         (Depends-on): Update conditions.
1358         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
1359
1360 2012-03-06  Bruno Haible  <bruno@clisp.org>
1361
1362         Tests for module 'expm1l'.
1363         * modules/expm1l-tests: New file.
1364         * tests/test-expm1l.c: New file.
1365
1366         New module 'expm1l'.
1367         * lib/math.in.h (expm1l): New declaration.
1368         * lib/expm1l.c: New file.
1369         * m4/expm1l.m4: New file.
1370         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
1371         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
1372         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
1373         * modules/expm1l: New file.
1374         * tests/test-math-c++.cc: Check the declaration of expm1l.
1375         * doc/posix-functions/expm1l.texi: Mention the new module.
1376
1377 2012-03-06  Bruno Haible  <bruno@clisp.org>
1378
1379         Tests for module 'expm1f'.
1380         * modules/expm1f-tests: New file.
1381         * tests/test-expm1f.c: New file.
1382
1383         New module 'expm1f'.
1384         * lib/math.in.h (expm1f): New declaration.
1385         * lib/expm1f.c: New file.
1386         * m4/expm1f.m4: New file.
1387         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
1388         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
1389         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
1390         * modules/expm1f: New file.
1391         * tests/test-math-c++.cc: Check the declaration of expm1f.
1392         * doc/posix-functions/expm1f.texi: Mention the new module.
1393
1394 2012-03-06  Bruno Haible  <bruno@clisp.org>
1395
1396         Tests for module 'expm1'.
1397         * modules/expm1-tests: New file.
1398         * tests/test-expm1.c: New file.
1399         * tests/test-expm1.h: New file.
1400
1401         New module 'expm1'.
1402         * lib/math.in.h (expm1): New declaration.
1403         * lib/expm1.c: New file.
1404         * m4/expm1.m4: New file.
1405         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
1406         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
1407         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
1408         * modules/expm1: New file.
1409         * tests/test-math-c++.cc: Check the declaration of expm1.
1410         * doc/posix-functions/expm1.texi: Mention the new module.
1411
1412 2012-03-06  Bruno Haible  <bruno@clisp.org>
1413
1414         math: Ensure declarations of math functions.
1415         * modules/acosf (Depends-on): Add 'extensions'.
1416         * modules/asinf (Depends-on): Likewise.
1417         * modules/atan2f (Depends-on): Likewise.
1418         * modules/atanf (Depends-on): Likewise.
1419         * modules/cbrt (Depends-on): Likewise.
1420         * modules/cbrtf (Depends-on): Likewise.
1421         * modules/cbrtl (Depends-on): Likewise.
1422         * modules/copysignf (Depends-on): Likewise.
1423         * modules/copysignl (Depends-on): Likewise.
1424         * modules/cosf (Depends-on): Likewise.
1425         * modules/coshf (Depends-on): Likewise.
1426         * modules/expf (Depends-on): Likewise.
1427         * modules/fabsf (Depends-on): Likewise.
1428         * modules/fabsl (Depends-on): Likewise.
1429         * modules/fmaf (Depends-on): Likewise.
1430         * modules/fmal (Depends-on): Likewise.
1431         * modules/fmodf (Depends-on): Likewise.
1432         * modules/fmodl (Depends-on): Likewise.
1433         * modules/frexpf (Depends-on): Likewise.
1434         * modules/frexpl (Depends-on): Likewise.
1435         * modules/hypot (Depends-on): Likewise.
1436         * modules/hypotf (Depends-on): Likewise.
1437         * modules/hypotl (Depends-on): Likewise.
1438         * modules/ldexpf (Depends-on): Likewise.
1439         * modules/ldexpl (Depends-on): Likewise.
1440         * modules/log10f (Depends-on): Likewise.
1441         * modules/log10l (Depends-on): Likewise.
1442         * modules/log1p (Depends-on): Likewise.
1443         * modules/logb (Depends-on): Likewise.
1444         * modules/logf (Depends-on): Likewise.
1445         * modules/modff (Depends-on): Likewise.
1446         * modules/modfl (Depends-on): Likewise.
1447         * modules/powf (Depends-on): Likewise.
1448         * modules/remainderf (Depends-on): Likewise.
1449         * modules/remainderl (Depends-on): Likewise.
1450         * modules/rintf (Depends-on): Likewise.
1451         * modules/rintl (Depends-on): Likewise.
1452         * modules/sinf (Depends-on): Likewise.
1453         * modules/sinhf (Depends-on): Likewise.
1454         * modules/sqrtf (Depends-on): Likewise.
1455         * modules/tanf (Depends-on): Likewise.
1456         * modules/tanhf (Depends-on): Likewise.
1457         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
1458         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
1459         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
1460         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
1461         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
1462         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
1463         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
1464         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
1465         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
1466         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
1467         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
1468         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
1469         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
1470         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
1471         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
1472         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
1473         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
1474         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1475         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
1476         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
1477         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
1478         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
1479         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
1480         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
1481         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1482         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
1483         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
1484         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1485         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
1486         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
1487         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1488         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
1489         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1490         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1491         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1492         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1493         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
1494         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
1495         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
1496         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
1497         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
1498
1499 2012-03-06  Bruno Haible  <bruno@clisp.org>
1500
1501         math: Update module names in warnings.
1502         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1503         tanl): Use specific module name in warn-on-use warning.
1504
1505 2012-03-06  Bruno Haible  <bruno@clisp.org>
1506
1507         expl: Simplify computation.
1508         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
1509
1510 2012-03-05  Bruno Haible  <bruno@clisp.org>
1511
1512         exp* tests: More tests.
1513         * tests/test-exp.h: New file.
1514         * tests/test-exp.c: Include <float.h> and test-exp.h.
1515         (main): Invoke test_function.
1516         * tests/test-expf.c: Include <float.h> and test-exp.h.
1517         (main): Invoke test_function.
1518         * tests/test-expl.c: Include <float.h> and test-exp.h.
1519         (main): Invoke test_function.
1520         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
1521         (Makefile.am): Add randomd.c to test_exp_SOURCES.
1522         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
1523         (Makefile.am): Add randomf.c to test_expf_SOURCES.
1524         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
1525         (Depends-on): Add 'float'.
1526         (Makefile.am): Add randoml.c to test_expl_SOURCES.
1527
1528         expl: Fix precision of computed result.
1529         * lib/expl.c: Completely rewritten.
1530         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
1531         (Maintainer): Add me.
1532         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
1533
1534 2012-03-05  Bruno Haible  <bruno@clisp.org>
1535
1536         cbrt* tests: More tests.
1537         * tests/test-cbrt.h: New file.
1538         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
1539         (main): Invoke test_function.
1540         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
1541         (main): Invoke test_function.
1542         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
1543         (main): Invoke test_function.
1544         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
1545         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
1546         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
1547         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
1548         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
1549         (Depends-on): Add 'float'.
1550         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
1551
1552 2012-03-05  Bruno Haible  <bruno@clisp.org>
1553
1554         hypot* tests: More tests.
1555         * tests/test-hypot.h: New file, partially extracted from
1556         tests/test-hypotl.c.
1557         * tests/test-hypot.c: Include test-hypot.h.
1558         (main): Invoke test_function.
1559         * tests/test-hypotf.c: Include test-hypot.h.
1560         (main): Invoke test_function.
1561         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
1562         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
1563         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
1564         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
1565         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
1566         tests/randomf.c.
1567         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
1568         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
1569         tests/randoml.c.
1570         (Depends-on): Add 'fpucw', 'float'.
1571         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
1572
1573 2012-03-05  Bruno Haible  <bruno@clisp.org>
1574
1575         fpucw: Doc about FreeBSD.
1576         * lib/fpucw.h: Mention FreeBSD in comments.
1577
1578 2012-03-04  Bruno Haible  <bruno@clisp.org>
1579
1580         sqrt* tests: More tests.
1581         * tests/test-sqrt.h: New file.
1582         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
1583         (main): Invoke test_function.
1584         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
1585         (main): Invoke test_function.
1586         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
1587         (main): Invoke test_function.
1588         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
1589         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
1590         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
1591         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
1592         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
1593         (Depends-on): Add 'float'.
1594         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
1595
1596 2012-03-04  Bruno Haible  <bruno@clisp.org>
1597
1598         remainder* tests: More tests.
1599         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
1600         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
1601         (main): Invoke test_function.
1602         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
1603         (main): Invoke test_function.
1604         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
1605         (main): Invoke test_function.
1606         * modules/remainder-tests (Files): Add tests/test-remainder.h,
1607         tests/randomd.c.
1608         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
1609         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
1610         tests/randomf.c.
1611         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
1612         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
1613         tests/randoml.c.
1614         (Depends-on): Add 'float'.
1615         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
1616
1617 2012-03-04  Bruno Haible  <bruno@clisp.org>
1618
1619         remainder, remainderf, remainderl: Fix computation for large quotients.
1620         * lib/remainder.c: Completely rewritten.
1621         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
1622         USE_FLOAT.
1623         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
1624         USE_LONG_DOUBLE.
1625         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
1626         isnand, isinf. Remove round, fma.
1627         * modules/remainderf (Files): Add lib/remainder.c.
1628         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
1629         Remove roundf, fmaf.
1630         * modules/remainderl (Files): Add lib/remainder.c.
1631         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
1632         isinf. Remove roundl, fmal.
1633         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
1634         REMAINDER_LIBM.
1635         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
1636         REMAINDERF_LIBM.
1637         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
1638         REMAINDERL_LIBM.
1639
1640 2012-03-04  Bruno Haible  <bruno@clisp.org>
1641
1642         fmod* tests: More tests.
1643         * tests/test-fmod.h (my_ldexp): New function.
1644         (test_function): Reduce amount of random numbers to test. Add tests
1645         of very large quotients x / y.
1646         * tests/test-fmod.c (MAX_EXP): New macro.
1647         * tests/test-fmodf.c (MAX_EXP): Likewise.
1648         * tests/test-fmodl.c (MAX_EXP): Likewise.
1649
1650 2012-03-04  Bruno Haible  <bruno@clisp.org>
1651
1652         fmod, fmodl: Fix computation for large quotients x / y.
1653         * lib/fmod.c: Completely rewritten.
1654         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
1655         USE_LONG_DOUBLE.
1656         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
1657         isnand. Remove fma.
1658         * modules/fmodl (Files): Add lib/fmod.c.
1659         (Depends-on): Add float, isfinite, signbit, fabsl,
1660         frexpl, ldexpl, isnanl. Remove fma.
1661         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
1662         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
1663
1664 2012-03-03  Bruno Haible  <bruno@clisp.org>
1665
1666         fmod* tests: More tests.
1667         * tests/test-fmod.h: New file.
1668         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
1669         (main): Invoke test_function.
1670         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
1671         (main): Invoke test_function.
1672         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
1673         (main): Invoke test_function.
1674         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
1675         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
1676         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
1677         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
1678         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
1679         (Depends-on): Add 'float'.
1680         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
1681
1682 2012-03-03  Bruno Haible  <bruno@clisp.org>
1683
1684         rint* tests: More tests.
1685         * tests/test-rint.h: New file, partially extracted from
1686         tests/test-rintl.c.
1687         * tests/test-rint.c: Include test-rint.h.
1688         (main): Invoke test_function.
1689         * tests/test-rintf.c: Include test-rint.h.
1690         (main): Invoke test_function.
1691         * tests/test-rintl.c: Include test-rint.h.
1692         (main): Invoke test_function.
1693         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
1694         (Makefile.am): Add randomd.c to test_rint_SOURCES.
1695         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
1696         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
1697         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
1698         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
1699
1700 2012-03-03  Bruno Haible  <bruno@clisp.org>
1701
1702         modf* tests: More tests.
1703         * tests/test-modf.h: New file.
1704         * tests/test-modf.c: Include <float.h> and test-modf.h.
1705         (main): Invoke test_function.
1706         * tests/test-modff.c: Include <float.h> and test-modf.h.
1707         (main): Invoke test_function.
1708         * tests/test-modfl.c: Include <float.h> and test-modf.h.
1709         (main): Invoke test_function.
1710         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
1711         (Makefile.am): Add randomd.c to test_modf_SOURCES.
1712         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
1713         (Makefile.am): Add randomf.c to test_modff_SOURCES.
1714         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
1715         (Depends-on): Add 'float'.
1716         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
1717
1718 2012-03-03  Bruno Haible  <bruno@clisp.org>
1719
1720         fabs* tests: More tests.
1721         * tests/test-fabs.h: New file, partially extracted from
1722         tests/test-fabsl.c.
1723         * tests/test-fabs.c (RANDOM): New macro.
1724         * tests/test-fabsf.c (RANDOM): New macro.
1725         * tests/test-fabsl.c (RANDOM): New macro.
1726         * modules/fabs-tests (Files): Add tests/randomd.c.
1727         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
1728         * modules/fabsf-tests (Files): Add tests/randomf.c.
1729         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
1730         * modules/fabsl-tests (Files): Add tests/randoml.c.
1731         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
1732
1733 2012-03-03  Bruno Haible  <bruno@clisp.org>
1734
1735         ldexp* tests: More tests.
1736         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
1737         * tests/test-ldexp.c (RANDOM): New macro.
1738         * tests/test-ldexpf.c (RANDOM): New macro.
1739         * tests/test-ldexpl.c (RANDOM): New macro.
1740         * modules/ldexp-tests (Files): Add tests/randomd.c.
1741         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
1742         * modules/ldexpf-tests (Files): Add tests/randomf.c.
1743         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
1744         * modules/ldexpl-tests (Files): Add tests/randoml.c.
1745         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
1746
1747 2012-03-03  Bruno Haible  <bruno@clisp.org>
1748
1749         frexp* tests: More tests.
1750         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
1751         * tests/test-frexp.c (RANDOM): New macro.
1752         * tests/test-frexpf.c (RANDOM): New macro.
1753         * tests/test-frexpl.c (RANDOM): New macro.
1754         * modules/frexp-tests (Files): Add tests/randomd.c.
1755         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
1756         * modules/frexpf-tests (Files): Add tests/randomf.c.
1757         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
1758         * modules/frexpl-tests (Files): Add tests/randoml.c.
1759         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
1760
1761 2012-03-03  Bruno Haible  <bruno@clisp.org>
1762
1763         Support for pseudo-random numbers in tests.
1764         * tests/randomf.c: New file.
1765         * tests/randomd.c: New file.
1766         * tests/randoml.c: New file.
1767         * tests/macros.h (randomf, randomd, randoml): New declarations.
1768
1769 2012-03-03  Bruno Haible  <bruno@clisp.org>
1770
1771         frexp* tests: Refactor.
1772         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
1773         * tests/test-frexp.c: Include and use it.
1774         * tests/test-frexpf.c: Likewise.
1775         * tests/test-frexpl.c: Likewise.
1776         * modules/frexp-tests (Files): Add tests/test-frexp.h.
1777         * modules/frexpf-tests (Files): Likewise.
1778         * modules/frexpl-tests (Files): Likewise.
1779
1780 2012-03-02  Jim Meyering  <meyering@redhat.com>
1781
1782         maint: don't specify XZ_OPT=-9ev in dist-related rule
1783         Using xz's -9 option is warranted only if you have a very large
1784         tarball (see xz's documentation for the sizes vs. presets), and
1785         requires 64MiB of memory at decompression time.
1786         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
1787         Automake's default of just "-e" is fine.  Override on a
1788         per-package basis by setting XZ_OPT e.g., in cfg.mk.
1789
1790 2012-03-01  Eric Blake  <eblake@redhat.com>
1791
1792         maint.mk: allow announcement for non-gnulib project
1793         * maint.mk (announcement): Skip gnulib version if not used.
1794
1795 2012-03-01  Jim Meyering  <meyering@redhat.com>
1796
1797         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
1798         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
1799         envvar settings cannot interfere.  Otherwise, setting envvars like
1800         prohibit=foo require=bar, etc. would cause spurious test failures.
1801
1802 2012-03-01  Eric Blake  <eblake@redhat.com>
1803
1804         maint.mk: add per-line exclusions to prohibitions
1805         * maint.mk (_sc_search_regexp): Add $exclude parameter.
1806         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1807         (sc_const_long_option): Use it.
1808
1809 2012-03-01  Bruno Haible  <bruno@clisp.org>
1810
1811         Tests for module 'expl-ieee'.
1812         * modules/expl-ieee-tests: New file.
1813         * tests/test-expl-ieee.c: New file.
1814
1815         New module 'expl-ieee'.
1816         * modules/expl-ieee: New file.
1817
1818         Tests for module 'exp-ieee'.
1819         * modules/exp-ieee-tests: New file.
1820         * tests/test-exp-ieee.c: New file.
1821
1822         New module 'exp-ieee'.
1823         * modules/exp-ieee: New file.
1824
1825         Tests for module 'expf-ieee'.
1826         * modules/expf-ieee-tests: New file.
1827         * tests/test-expf-ieee.c: New file.
1828         * tests/test-exp-ieee.h: New file.
1829
1830         New module 'expf-ieee'.
1831         * modules/expf-ieee: New file.
1832
1833 2012-02-29  Bruno Haible  <bruno@clisp.org>
1834
1835         cbrtl-ieee: Work around test failure on IRIX 6.5.
1836         * m4/cbrtl-ieee.m4: New file.
1837         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
1838         test whether cbrtl works with a minus zero argument. Replace it if not.
1839         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
1840         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
1841         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
1842         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
1843         (Depends-on): Update conditions.
1844         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
1845         m4/signbit.m4.
1846         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
1847         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
1848         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
1849
1850         Tests for module 'cbrtl-ieee'.
1851         * modules/cbrtl-ieee-tests: New file.
1852         * tests/test-cbrtl-ieee.c: New file.
1853
1854         New module 'cbrtl-ieee'.
1855         * modules/cbrtl-ieee: New file.
1856
1857         Tests for module 'cbrt-ieee'.
1858         * modules/cbrt-ieee-tests: New file.
1859         * tests/test-cbrt-ieee.c: New file.
1860
1861         New module 'cbrt-ieee'.
1862         * modules/cbrt-ieee: New file.
1863
1864         Tests for module 'cbrtf-ieee'.
1865         * modules/cbrtf-ieee-tests: New file.
1866         * tests/test-cbrtf-ieee.c: New file.
1867         * tests/test-cbrt-ieee.h: New file.
1868
1869         New module 'cbrtf-ieee'.
1870         * modules/cbrtf-ieee: New file.
1871
1872 2012-02-29  Bruno Haible  <bruno@clisp.org>
1873
1874         cbrtf: Work around bug in IRIX 6.5 system function.
1875         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
1876         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
1877         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
1878         work.
1879         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
1880         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
1881         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
1882         (Depends-on): Update conditions.
1883         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
1884
1885 2012-02-29  Bruno Haible  <bruno@clisp.org>
1886
1887         Tests for module 'cbrtl'.
1888         * modules/cbrtl-tests: New file.
1889         * tests/test-cbrtl.c: New file.
1890
1891         New module 'cbrtl'.
1892         * lib/math.in.h (cbrtl): New declaration.
1893         * lib/cbrtl.c: New file.
1894         * m4/cbrtl.m4: New file.
1895         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
1896         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
1897         HAVE_DECL_CBRTL.
1898         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
1899         HAVE_DECL_CBRTL.
1900         * modules/cbrtl: New file.
1901         * tests/test-math-c++.cc: Check the declaration of cbrtl.
1902         * doc/posix-functions/cbrtl.texi: Mention the new module.
1903
1904 2012-02-29  Bruno Haible  <bruno@clisp.org>
1905
1906         Tests for module 'cbrtf'.
1907         * modules/cbrtf-tests: New file.
1908         * tests/test-cbrtf.c: New file.
1909
1910         New module 'cbrtf'.
1911         * lib/math.in.h (cbrtf): New declaration.
1912         * lib/cbrtf.c: New file.
1913         * m4/cbrtf.m4: New file.
1914         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
1915         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
1916         HAVE_DECL_CBRTF.
1917         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
1918         HAVE_DECL_CBRTF.
1919         * modules/cbrtf: New file.
1920         * tests/test-math-c++.cc: Check the declaration of cbrtf.
1921         * doc/posix-functions/cbrtf.texi: Mention the new module.
1922
1923 2012-02-29  Bruno Haible  <bruno@clisp.org>
1924
1925         cbrt: Provide replacement on MSVC and Minix.
1926         * lib/math.in.h (cbrt): New declaration.
1927         * lib/cbrt.c: New file.
1928         * m4/cbrt.m4: New file.
1929         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
1930         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
1931         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
1932         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
1933         (Depends-on): Add dependencies.
1934         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
1935         * tests/test-math-c++.cc: Check the declaration of cbrt.
1936         * doc/posix-functions/cbrt.texi: Mention that the module provides a
1937         replacement.
1938
1939 2012-02-29  Bruno Haible  <bruno@clisp.org>
1940
1941         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
1942         * m4/hypotl-ieee.m4: New file.
1943         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
1944         test whether hypotl works with mixed NaN and Infinity arguments.
1945         Replace it if not.
1946         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
1947         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
1948         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
1949         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
1950         (Depends-on): Update conditions.
1951         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
1952         (Depends-on): Add hypot-ieee.
1953         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
1954         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
1955
1956         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
1957         * m4/hypotf-ieee.m4: New file.
1958         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
1959         test whether hypotf works with mixed NaN and Infinity arguments.
1960         Replace it if not.
1961         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
1962         (Depends-on): Add hypot-ieee.
1963         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
1964         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
1965
1966         hypot-ieee: Work around test failure on OSF/1 and native Windows.
1967         * lib/math.in.h (hypot): New declaration.
1968         * lib/hypot.c: New file.
1969         * m4/hypot-ieee.m4: New file.
1970         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
1971         whether hypot works with mixed NaN and Infinity arguments. Replace it
1972         if not.
1973         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
1974         REPLACE_HYPOT.
1975         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
1976         * modules/hypot (Files): Add lib/hypot.c.
1977         (Depends-on): Add dependencies.
1978         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
1979         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
1980         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
1981         * tests/test-math-c++.cc: Check the declaration of hypot.
1982         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
1983
1984         Tests for module 'hypotl-ieee'.
1985         * modules/hypotl-ieee-tests: New file.
1986         * tests/test-hypotl-ieee.c: New file.
1987
1988         New module 'hypotl-ieee'.
1989         * modules/hypotl-ieee: New file.
1990
1991         Tests for module 'hypot-ieee'.
1992         * modules/hypot-ieee-tests: New file.
1993         * tests/test-hypot-ieee.c: New file.
1994
1995         New module 'hypot-ieee'.
1996         * modules/hypot-ieee: New file.
1997
1998         Tests for module 'hypotf-ieee'.
1999         * modules/hypotf-ieee-tests: New file.
2000         * tests/test-hypotf-ieee.c: New file.
2001         * tests/test-hypot-ieee.h: New file.
2002
2003         New module 'hypotf-ieee'.
2004         * modules/hypotf-ieee: New file.
2005
2006 2012-02-29  Bruno Haible  <bruno@clisp.org>
2007
2008         Remove unused variables.
2009         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
2010         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
2011         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
2012         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
2013
2014 2012-02-29  Eric Blake  <eblake@redhat.com>
2015
2016         termios: fix pid_t always, not just for tcgetsid
2017         * doc/posix-headers/termios.texi (termios.h): Mention problem.
2018         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
2019         just when building tcgetsid.
2020
2021 2012-02-29  Bruno Haible  <bruno@clisp.org>
2022
2023         Tests for module 'hypotl'.
2024         * modules/hypotl-tests: New file.
2025         * tests/test-hypotl.c: New file.
2026
2027         New module 'hypotl'.
2028         * lib/math.in.h (hypotl): New declaration.
2029         * lib/hypotl.c: New file.
2030         * m4/hypotl.m4: New file.
2031         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2032         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
2033         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
2034         * modules/hypotl: New file.
2035         * tests/test-math-c++.cc: Check the hypotl declaration.
2036         * doc/posix-functions/hypotl.texi: Mention the new module.
2037
2038 2012-02-29  Eric Blake  <eblake@redhat.com>
2039
2040         tcgetsid: fix cygwin header bug
2041         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
2042
2043         docs: update cygwin progress
2044         * doc/posix-functions/llround.texi (llround): Added in cygwin
2045         1.7.8.
2046         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
2047         * doc/glibc-functions/program_invocation_name.texi
2048         (program_invocation_name): Likewise.
2049         * doc/glibc-functions/program_invocation_short_name.texi
2050         (program_invocation_short_name): Likewise.
2051         * doc/glibc-functions/madvise.texi (madvise): Likewise.
2052         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
2053         Likewise.
2054         * doc/posix-functions/pthread_spin_destroy.texi
2055         (pthread_spin_destroy): Added in cygwin 1.7.10.
2056         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
2057         Likewise.
2058         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
2059         Likewise.
2060         * doc/posix-functions/pthread_spin_trylock.texi
2061         (pthread_spin_trylock): Likewise.
2062         * doc/posix-functions/pthread_spin_unlock.texi
2063         (pthread_spin_unlock): Likewise.
2064         * doc/posix-functions/pthread_setschedprio.texi
2065         (pthread_setschedprio): Likewise.
2066         * doc/posix-functions/pthread_attr_getstack.texi
2067         (pthread_attr_getstack): Likewise.
2068         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
2069         (pthread_attr_getstackaddr): Likewise.
2070         * doc/glibc-functions/pthread_getattr_np.texi
2071         (pthread_getattr_np): Likewise.
2072         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
2073         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
2074         * doc/posix-functions/clock_settime.texi (clock_settime):
2075         Likewise.
2076         * doc/posix-functions/pthread_attr_getguardsize.texi
2077         (pthread_attr_getguardsize): Likewise.
2078         * doc/posix-functions/pthread_attr_setguardsize.texi
2079         (pthread_attr_setguardsize): Likewise.
2080         * doc/posix-functions/pthread_attr_setstack.texi
2081         (pthread_attr_setstack): Likewise.
2082         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
2083         (pthread_attr_setstackaddr): Likewise.
2084         * doc/posix-functions/clock_getcpuclockid.texi
2085         (clock_getcpuclockid): Likewise.
2086         * doc/posix-functions/pthread_getcpuclockid.texi
2087         (pthread_getcpuclockid): Likewise.
2088         * doc/glibc-functions/error.texi (error): Likewise.
2089         * doc/glibc-functions/error_at_line.texi (error_at_line):
2090         Likewise.
2091         * doc/glibc-functions/error_message_count.texi
2092         (error_message_count): Likewise.
2093         * doc/glibc-functions/error_one_per_line.texi
2094         (error_one_per_line): Likewise.
2095         * doc/glibc-functions/error_print_progname.texi
2096         (error_print_progname): Likewise.
2097         * doc/posix-functions/pthread_condattr_getclock.texi
2098         (pthread_condattr_getclock): Likewise.
2099         * doc/posix-functions/pthread_condattr_setclock.texi
2100         (pthread_condattr_setclock): Likewise.
2101         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
2102         Likewise.
2103         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
2104         * doc/glibc-functions/getpt.texi (getpt): Likewise.
2105         * doc/glibc-functions/get_current_dir_name.texi
2106         (get_current_dir_name): Likewise.
2107         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
2108         Likewise.
2109         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
2110         wrong return type.
2111         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
2112         1.7.11.
2113
2114 2012-02-29  Bruno Haible  <bruno@clisp.org>
2115
2116         Tests for module 'hypotf'.
2117         * modules/hypotf-tests: New file.
2118         * tests/test-hypotf.c: New file.
2119
2120         New module 'hypotf'.
2121         * lib/math.in.h (hypotf): New declaration.
2122         * lib/hypotf.c: New file.
2123         * m4/hypotf.m4: New file.
2124         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
2125         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
2126         REPLACE_HYPOTF.
2127         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
2128         REPLACE_HYPOTF.
2129         * modules/hypotf: New file.
2130         * tests/test-math-c++.cc: Check the hypotf declaration.
2131         * doc/posix-functions/hypotf.texi: Mention the new module.
2132
2133         hypot: Prepare for hypotf module.
2134         * m4/hypot.m4: New file.
2135         * modules/hypot (Files): Add m4/hypot.m4.
2136         (configure.ac): Invoke gl_FUNC_HYPOT.
2137
2138 2012-02-29  Bruno Haible  <bruno@clisp.org>
2139
2140         hypot tests: More tests.
2141         * tests/test-hypot.c: Include <float.h>.
2142         (main): Add tests about overflow and underflow.
2143
2144 2012-02-29  Bruno Haible  <bruno@clisp.org>
2145
2146         math code: Add comments.
2147         * lib/acosl.c: Add comment about related glibc source files.
2148         * lib/asinl.c: Likewise.
2149         * lib/atanl.c: Likewise.
2150         * lib/expl.c: Likewise.
2151         * lib/logl.c: Likewise.
2152         * lib/sincosl.c: Likewise.
2153         * lib/sinl.c: Likewise.
2154         * lib/tanl.c: Likewise.
2155         * lib/trigl.c: Likewise.
2156         * lib/cosl.c: Likewise. Fix comments.
2157
2158 2012-02-28  Bruno Haible  <bruno@clisp.org>
2159
2160         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
2161         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
2162         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
2163         HUGE_VALL are defined.
2164         (numeric_equald): Renamed from numeric_equal.
2165         (numeric_equalf, numeric_equall): New functions.
2166         (main): Check also HUGE_VALF, HUGE_VALL.
2167         * modules/math-tests (Files): Add tests/macros.h.
2168         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
2169         HUGE_VALL.
2170
2171 2012-02-28  Bruno Haible  <bruno@clisp.org>
2172
2173         doc: Move ISO C11 feature notes into POSIX chapters.
2174         * doc/posix-functions/aligned_alloc.texi: Renamed from
2175         doc/glibc-functions/aligned_alloc.texi.
2176         * doc/posix-functions/quick_exit.texi: Renamed from
2177         doc/glibc-functions/quick_exit.texi.
2178         * doc/posix-headers/uchar.texi: Renamed from
2179         doc/glibc-headers/uchar.texi.
2180         * doc/posix-functions/c16rtomb.texi: Renamed from
2181         doc/glibc-functions/c16rtomb.texi.
2182         * doc/posix-functions/c32rtomb.texi: Renamed from
2183         doc/glibc-functions/c32rtomb.texi.
2184         * doc/posix-functions/mbrtoc16.texi: Renamed from
2185         doc/glibc-functions/mbrtoc16.texi.
2186         * doc/posix-functions/mbrtoc32.texi: Renamed from
2187         doc/glibc-functions/mbrtoc32.texi.
2188         * doc/gnulib.texi: Update.
2189         (Glibc uchar.h): Remove section.
2190         Suggested by Eric Blake.
2191
2192 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
2193
2194         stdnoreturn: port to MSVC better
2195         MSVC standard headers use __declspec(noreturn), so #define noreturn
2196         to empty on that platform.  Reported by Bruno Haible in
2197         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
2198         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
2199         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
2200
2201 2012-02-28  Bruno Haible  <bruno@clisp.org>
2202
2203         doc: Mention new glibc headers and functions.
2204         * doc/glibc-headers/uchar.texi: New file.
2205         * doc/glibc-functions/aligned_alloc.texi: New file.
2206         * doc/glibc-functions/c16rtomb.texi: New file.
2207         * doc/glibc-functions/c32rtomb.texi: New file.
2208         * doc/glibc-functions/clock_adjtime.texi: New file.
2209         * doc/glibc-functions/fanotify_init.texi: New file.
2210         * doc/glibc-functions/fanotify_mark.texi: New file.
2211         * doc/glibc-functions/inet6_opt_append.texi: New file.
2212         * doc/glibc-functions/inet6_opt_find.texi: New file.
2213         * doc/glibc-functions/inet6_opt_finish.texi: New file.
2214         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
2215         * doc/glibc-functions/inet6_opt_init.texi: New file.
2216         * doc/glibc-functions/inet6_opt_next.texi: New file.
2217         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
2218         * doc/glibc-functions/inet6_rth_add.texi: New file.
2219         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
2220         * doc/glibc-functions/inet6_rth_init.texi: New file.
2221         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
2222         * doc/glibc-functions/inet6_rth_segments.texi: New file.
2223         * doc/glibc-functions/inet6_rth_space.texi: New file.
2224         * doc/glibc-functions/login.texi: New file.
2225         * doc/glibc-functions/mbrtoc16.texi: New file.
2226         * doc/glibc-functions/mbrtoc32.texi: New file.
2227         * doc/glibc-functions/name_to_handle_at.texi: New file.
2228         * doc/glibc-functions/ntp_gettimex.texi: New file.
2229         * doc/glibc-functions/open_by_handle_at.texi: New file.
2230         * doc/glibc-functions/prlimit.texi: New file.
2231         * doc/glibc-functions/process_vm_readv.texi: New file.
2232         * doc/glibc-functions/process_vm_writev.texi: New file.
2233         * doc/glibc-functions/recvmmsg.texi: New file.
2234         * doc/glibc-functions/scandirat.texi: New file.
2235         * doc/glibc-functions/sendmmsg.texi: New file.
2236         * doc/glibc-functions/setns.texi: New file.
2237         * doc/glibc-functions/timespec_get.texi: New file.
2238         * doc/gnulib.texi: Include them.
2239         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
2240         sections.
2241         Reported by Eric Blake.
2242
2243 2012-02-28  Bruno Haible  <bruno@clisp.org>
2244
2245         Avoid compilation errors with MSVC option -fp:strict.
2246         * lib/floor.c: Use MSVC specific pragma fenv_access.
2247         * lib/ceil.c: Likewise.
2248         * lib/trunc.c: Likewise.
2249         * lib/round.c: Likewise.
2250         * lib/rint.c: Likewise.
2251         * lib/fma.c: Likewise.
2252         * lib/integer_length.c: Likewise.
2253         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2254         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2255         * tests/test-floor2.c: Likewise.
2256         * tests/test-floorf2.c: Likewise.
2257         * tests/test-ceil2.c: Likewise.
2258         * tests/test-ceilf2.c: Likewise.
2259         * tests/test-trunc2.c: Likewise.
2260         * tests/test-truncf2.c: Likewise.
2261         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2262
2263 2012-02-27  Bruno Haible  <bruno@clisp.org>
2264
2265         Tests for module 'sqrtl-ieee'.
2266         * modules/sqrtl-ieee-tests: New file.
2267         * tests/test-sqrtl-ieee.c: New file.
2268
2269         New module 'sqrtl-ieee'.
2270         * modules/sqrtl-ieee: New file.
2271
2272         Tests for module 'sqrt-ieee'.
2273         * modules/sqrt-ieee-tests: New file.
2274         * tests/test-sqrt-ieee.c: New file.
2275
2276         New module 'sqrt-ieee'.
2277         * modules/sqrt-ieee: New file.
2278
2279         Tests for module 'sqrtf-ieee'.
2280         * modules/sqrtf-ieee-tests: New file.
2281         * tests/test-sqrtf-ieee.c: New file.
2282         * tests/test-sqrt-ieee.h: New file.
2283
2284         New module 'sqrtf-ieee'.
2285         * modules/sqrtf-ieee: New file.
2286
2287 2012-02-27  Bruno Haible  <bruno@clisp.org>
2288
2289         remainderl-ieee: Work around test failure on OSF/1.
2290         * m4/remainderl-ieee.m4: New file.
2291         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
2292         present, test whether remainderl works with a zero second argument.
2293         Replace it if not.
2294         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
2295         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
2296         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
2297         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
2298         (Depends-on): Update conditions.
2299         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
2300         (Depends-on): Add remainder-ieee.
2301         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
2302         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
2303         module.
2304
2305         remainderf-ieee: Work around test failure on OSF/1.
2306         * m4/remainderf-ieee.m4: New file.
2307         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
2308         present, test whether remainderf works with a zero second argument.
2309         Replace it if not.
2310         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
2311         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
2312         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
2313         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
2314         (Depends-on): Update conditions.
2315         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
2316         (Depends-on): Add remainder-ieee.
2317         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
2318         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
2319         module.
2320
2321         remainder-ieee: Work around test failure on OSF/1.
2322         * m4/remainder-ieee.m4: New file.
2323         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
2324         present, test whether remainder works with a zero second argument.
2325         Replace it if not.
2326         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
2327         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
2328         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
2329         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
2330         (Depends-on): Update dependencies.
2331         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
2332         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
2333         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
2334
2335         Tests for module 'remainderl-ieee'.
2336         * modules/remainderl-ieee-tests: New file.
2337         * tests/test-remainderl-ieee.c: New file.
2338
2339         New module 'remainderl-ieee'.
2340         * modules/remainderl-ieee: New file.
2341
2342         Tests for module 'remainder-ieee'.
2343         * modules/remainder-ieee-tests: New file.
2344         * tests/test-remainder-ieee.c: New file.
2345
2346         New module 'remainder-ieee'.
2347         * modules/remainder-ieee: New file.
2348
2349         Tests for module 'remainderf-ieee'.
2350         * modules/remainderf-ieee-tests: New file.
2351         * tests/test-remainderf-ieee.c: New file.
2352         * tests/test-remainder-ieee.h: New file.
2353
2354         New module 'remainderf-ieee'.
2355         * modules/remainderf-ieee: New file.
2356
2357 2012-02-27  Bruno Haible  <bruno@clisp.org>
2358
2359         modff, modfl: Fix configure syntax error.
2360         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
2361         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2362
2363 2012-02-27  Bruno Haible  <bruno@clisp.org>
2364
2365         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
2366         * m4/fmodl-ieee.m4: New file.
2367         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
2368         whether fmodl works with zero arguments. Replace it if not.
2369         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
2370         (Depends-on): Add fmod-ieee.
2371         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
2372         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
2373
2374         fmodf-ieee: Work around test failure on OSF/1.
2375         * m4/fmodf-ieee.m4: New file.
2376         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
2377         whether fmodf works with zero arguments. Replace it if not.
2378         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
2379         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
2380         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
2381         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
2382         (Depends-on): Update dependencies.
2383         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
2384         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
2385         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
2386
2387         fmodf-ieee: Work around test failure on MSVC 9.
2388         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
2389         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
2390
2391         fmod-ieee: Work around test failures on OSF/1, mingw.
2392         * m4/fmod-ieee.m4: New file.
2393         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
2394         whether fmod works with zero arguments. Replace it if not.
2395         * lib/math.in.h (fmod): New declaration.
2396         * lib/fmod.c: New file.
2397         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
2398         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
2399         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
2400         * modules/fmod (Files): Add lib/fmod.c.
2401         (Depends-on): Add math, isinf, trunc, fma.
2402         (configure.ac): Arrange to compile lib/fmod.c if needed.
2403         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
2404         m4/signbit.m4.
2405         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
2406         * tests/test-math-c++.cc: Check the declaration of fmod.
2407         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
2408
2409         fmodl-ieee: Fix test failures.
2410         * lib/fmodl.c (fmodl): Treat Inf specially.
2411         * modules/fmodl (Depends-on): Add isinf.
2412
2413         Tests for module 'fmodl-ieee'.
2414         * modules/fmodl-ieee-tests: New file.
2415         * tests/test-fmodl-ieee.c: New file.
2416
2417         New module 'fmodl-ieee'.
2418         * modules/fmodl-ieee: New file.
2419
2420         Tests for module 'fmod-ieee'.
2421         * modules/fmod-ieee-tests: New file.
2422         * tests/test-fmod-ieee.c: New file.
2423
2424         New module 'fmod-ieee'.
2425         * modules/fmod-ieee: New file.
2426
2427         Tests for module 'fmodf-ieee'.
2428         * modules/fmodf-ieee-tests: New file.
2429         * tests/test-fmodf-ieee.c: New file.
2430         * tests/test-fmod-ieee.h: New file.
2431
2432         New module 'fmodf-ieee'.
2433         * modules/fmodf-ieee: New file.
2434
2435 2012-02-27  Bruno Haible  <bruno@clisp.org>
2436
2437         Tests for module 'rintl-ieee'.
2438         * modules/rintl-ieee-tests: New file.
2439         * tests/test-rintl-ieee.c: New file.
2440
2441         New module 'rintl-ieee'.
2442         * modules/rintl-ieee: New file.
2443
2444         Tests for module 'rint-ieee'.
2445         * modules/rint-ieee-tests: New file.
2446         * tests/test-rint-ieee.c: New file.
2447
2448         New module 'rint-ieee'.
2449         * modules/rint-ieee: New file.
2450
2451         Tests for module 'rintf-ieee'.
2452         * modules/rintf-ieee-tests: New file.
2453         * tests/test-rintf-ieee.c: New file.
2454         * tests/test-rint-ieee.h: New file.
2455
2456         New module 'rintf-ieee'.
2457         * modules/rintf-ieee: New file.
2458
2459 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2460
2461         regex: re_search etc. should return -2 when memory exhausted
2462         This bug was uncovered when testing 'grep'.  Without the fix,
2463         re_search and friends return -1 when memory is exhausted, but -1
2464         means no match, and this causes grep to falsely report no-match
2465         instead of memory-exhaustion.  See
2466         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
2467         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
2468         trouble; this can occur if re_search_internal ran out of memory.
2469
2470 2012-02-26  Bruno Haible  <bruno@clisp.org>
2471
2472         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
2473         * m4/modfl-ieee.m4: New file.
2474         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
2475         whether modfl works with Inf. Replace it if not.
2476         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
2477         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
2478         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
2479         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
2480         (Depends-on): Update dependencies.
2481         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
2482         m4/signbit.m4.
2483         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
2484         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
2485
2486         modfl-ieee: Fix dependencies.
2487         * modules/modfl-ieee (Depends-on): Add modf-ieee.
2488
2489         modfl-ieee: Fix test failures.
2490         * lib/modfl.c (modfl): Treat NaN and Inf specially.
2491         * modules/modfl (Depends-on): Add isfinite, isinf.
2492
2493         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
2494         * m4/modff-ieee.m4: New file.
2495         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
2496         whether modff works with NaN and Inf. Replace it if not.
2497         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
2498         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
2499         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
2500         * modules/modff (configure.ac): Consider REPLACE_MODFF.
2501         (Depends-on): Update dependencies.
2502         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
2503         m4/signbit.m4.
2504         (Depends-on): Add modf-ieee.
2505         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
2506         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
2507
2508         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
2509         * m4/modf-ieee.m4: New file.
2510         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
2511         whether modf works with NaN and Inf. Replace it if not.
2512         * lib/math.in.h (modf): New declaration.
2513         * lib/modf.c: New file.
2514         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
2515         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
2516         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
2517         * modules/modf (Files): Add lib/modf.c.
2518         (Depends-on): Add math, isfinite, trunc, isinf.
2519         (configure.ac): Addrange to compile lib/modf.c if needed.
2520         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
2521         m4/signbit.m4.
2522         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
2523         * tests/test-math-c++.cc: Check the declaration of modf.
2524         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
2525
2526         Tests for module 'modfl-ieee'.
2527         * modules/modfl-ieee-tests: New file.
2528         * tests/test-modfl-ieee.c: New file.
2529
2530         New module 'modfl-ieee'.
2531         * modules/modfl-ieee: New file.
2532
2533         Tests for module 'modf-ieee'.
2534         * modules/modf-ieee-tests: New file.
2535         * tests/test-modf-ieee.c: New file.
2536
2537         New module 'modf-ieee'.
2538         * modules/modf-ieee: New file.
2539
2540         Tests for module 'modff-ieee'.
2541         * modules/modff-ieee-tests: New file.
2542         * tests/test-modff-ieee.c: New file.
2543         * tests/test-modf-ieee.h: New file.
2544
2545         New module 'modff-ieee'.
2546         * modules/modff-ieee: New file.
2547
2548 2012-02-26  Bruno Haible  <bruno@clisp.org>
2549
2550         Tests for module 'fabsl-ieee'.
2551         * modules/fabsl-ieee-tests: New file.
2552         * tests/test-fabsl-ieee.c: New file.
2553
2554         New module 'fabsl-ieee'.
2555         * modules/fabsl-ieee: New file.
2556
2557         Tests for module 'fabs-ieee'.
2558         * modules/fabs-ieee-tests: New file.
2559         * tests/test-fabs-ieee.c: New file.
2560
2561         New module 'fabs-ieee'.
2562         * modules/fabs-ieee: New file.
2563
2564         Tests for module 'fabsf-ieee'.
2565         * modules/fabsf-ieee-tests: New file.
2566         * tests/test-fabsf-ieee.c: New file.
2567         * tests/test-fabs-ieee.h: New file.
2568
2569         New module 'fabsf-ieee'.
2570         * modules/fabsf-ieee: New file.
2571
2572 2012-02-26  Bruno Haible  <bruno@clisp.org>
2573
2574         Tests for module 'fmal-ieee'.
2575         * modules/fmal-ieee-tests: New file.
2576         * tests/test-fmal-ieee.c: New file.
2577
2578         New module 'fmal-ieee'.
2579         * modules/fmal-ieee: New file.
2580
2581         Tests for module 'fma-ieee'.
2582         * modules/fma-ieee-tests: New file.
2583         * tests/test-fma-ieee.c: New file.
2584
2585         New module 'fma-ieee'.
2586         * modules/fma-ieee: New file.
2587
2588         Tests for module 'fmaf-ieee'.
2589         * modules/fmaf-ieee-tests: New file.
2590         * tests/test-fmaf-ieee.c: New file.
2591         * tests/test-fma-ieee.h: New file.
2592
2593         New module 'fmaf-ieee'.
2594         * modules/fmaf-ieee: New file.
2595
2596 2012-02-26  Bruno Haible  <bruno@clisp.org>
2597
2598         Tests for module 'ldexpl-ieee'.
2599         * modules/ldexpl-ieee-tests: New file.
2600         * tests/test-ldexpl-ieee.c: New file.
2601
2602         New module 'ldexpl-ieee'.
2603         * modules/ldexpl-ieee: New file.
2604
2605         Tests for module 'ldexp-ieee'.
2606         * modules/ldexp-ieee-tests: New file.
2607         * tests/test-ldexp-ieee.c: New file.
2608
2609         New module 'ldexp-ieee'.
2610         * modules/ldexp-ieee: New file.
2611
2612         Tests for module 'ldexpf-ieee'.
2613         * modules/ldexpf-ieee-tests: New file.
2614         * tests/test-ldexpf-ieee.c: New file.
2615         * tests/test-ldexp-ieee.h: New file.
2616
2617         New module 'ldexpf-ieee'.
2618         * modules/ldexpf-ieee: New file.
2619
2620 2012-02-26  Bruno Haible  <bruno@clisp.org>
2621
2622         Refactor frexp*-ieee tests.
2623         * tests/test-frexp-ieee.h: New file.
2624         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
2625         (main): Just call test_function.
2626         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
2627         (main): Just call test_function.
2628         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
2629         (main): Just call test_function.
2630         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
2631         * modules/frexp-ieee-tests (Files): Likewise.
2632         * modules/frexpl-ieee-tests (Files): Likewise.
2633
2634         Tests for module 'frexpl-ieee'.
2635         * modules/frexpl-ieee-tests: New file.
2636         * tests/test-frexpl-ieee.c: New file.
2637
2638         New module 'frexpl-ieee'.
2639         * modules/frexpl-ieee: New file.
2640
2641         Tests for module 'frexp-ieee'.
2642         * modules/frexp-ieee-tests: New file.
2643         * tests/test-frexp-ieee.c: New file.
2644
2645         New module 'frexp-ieee'.
2646         * modules/frexp-ieee: New file.
2647
2648         Tests for module 'frexpf-ieee'.
2649         * modules/frexpf-ieee-tests: New file.
2650         * tests/test-frexpf-ieee.c: New file.
2651
2652         New module 'frexpf-ieee'.
2653         * modules/frexpf-ieee: New file.
2654
2655 2012-02-26  Bruno Haible  <bruno@clisp.org>
2656
2657         roundl-ieee tests: More tests.
2658         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2659         (main): Add tests for [MX] shaded specification in POSIX.
2660         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2661         (Depends-on): Add isnanl-nolibm.
2662
2663         round-ieee tests: More tests.
2664         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2665         (main): Add tests for [MX] shaded specification in POSIX.
2666         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2667         (Depends-on): Add isnand-nolibm.
2668
2669         roundf-ieee tests: More tests.
2670         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2671         (main): Add tests for [MX] shaded specification in POSIX.
2672         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2673         (Depends-on): Add isnanf-nolibm.
2674
2675         truncl-ieee tests: More tests.
2676         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2677         (main): Add tests for [MX] shaded specification in POSIX.
2678         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2679         (Depends-on): Add isnanl-nolibm.
2680
2681         trunc-ieee tests: More tests.
2682         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2683         (main): Add tests for [MX] shaded specification in POSIX.
2684         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2685         (Depends-on): Add isnand-nolibm.
2686
2687         truncf-ieee tests: More tests.
2688         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2689         (main): Add tests for [MX] shaded specification in POSIX.
2690         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2691         (Depends-on): Add isnanf-nolibm.
2692
2693         ceill-ieee tests: More tests.
2694         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2695         (main): Add tests for [MX] shaded specification in POSIX.
2696         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2697         (Depends-on): Add isnanl-nolibm.
2698
2699         ceil-ieee tests: More tests.
2700         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2701         (main): Add tests for [MX] shaded specification in POSIX.
2702         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2703         (Depends-on): Add isnand-nolibm.
2704
2705         ceilf-ieee tests: More tests.
2706         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2707         (main): Add tests for [MX] shaded specification in POSIX.
2708         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2709         (Depends-on): Add isnanf-nolibm.
2710
2711         floorl-ieee tests: More tests.
2712         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2713         (main): Add tests for [MX] shaded specification in POSIX.
2714         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2715         (Depends-on): Add isnanl-nolibm.
2716
2717         floor-ieee tests: More tests.
2718         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2719         (main): Add tests for [MX] shaded specification in POSIX.
2720         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2721         (Depends-on): Add isnand-nolibm.
2722
2723         floorf-ieee tests: More tests.
2724         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2725         (main): Add tests for [MX] shaded specification in POSIX.
2726         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2727         (Depends-on): Add isnanf-nolibm.
2728
2729 2012-02-26  Bruno Haible  <bruno@clisp.org>
2730
2731         fpieee: More comments.
2732         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
2733
2734 2012-02-25  Bruno Haible  <bruno@clisp.org>
2735
2736         Tests for module 'log10l'.
2737         * modules/log10l-tests: New file.
2738         * tests/test-log10l.c: New file.
2739         * tests/test-math-c++.cc: Check the declaration of log10l.
2740
2741         New module 'log10l'.
2742         * lib/math.in.h (log10l): New declaration.
2743         * lib/log10l.c: New file.
2744         * m4/log10l.m4: New file.
2745         * modules/log10l: New file.
2746         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
2747         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
2748         HAVE_DECL_LOG10L.
2749         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
2750         HAVE_DECL_LOG10L.
2751         * doc/posix-functions/log10l.texi: Mention the new module.
2752
2753 2012-02-25  Bruno Haible  <bruno@clisp.org>
2754
2755         fmodl, remainder*: Avoid wrong results due to rounding errors.
2756         * lib/fmodl.c (fmodl): Correct the result if it is not within the
2757         expected bounds.
2758         * lib/remainderf.c (remainderf): Likewise.
2759         * lib/remainder.c (remainder): Likewise.
2760         * lib/remainderl.c (remainderl): Likewise.
2761
2762 2012-02-25  Bruno Haible  <bruno@clisp.org>
2763
2764         Tests for module 'remainderl'.
2765         * modules/remainderl-tests: New file.
2766         * tests/test-remainderl.c: New file.
2767         * tests/test-math-c++.cc: Check the declaration of remainderl.
2768
2769         New module 'remainderl'.
2770         * lib/math.in.h (remainderl): New declaration.
2771         * lib/remainderl.c: New file.
2772         * m4/remainderl.m4: New file.
2773         * modules/remainderl: New file.
2774         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
2775         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
2776         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
2777         HAVE_REMAINDERL.
2778         * doc/posix-functions/remainderl.texi: Mention the new module.
2779
2780 2012-02-25  Bruno Haible  <bruno@clisp.org>
2781
2782         Tests for module 'remainderf'.
2783         * modules/remainderf-tests: New file.
2784         * tests/test-remainderf.c: New file.
2785         * tests/test-math-c++.cc: Check the declaration of remainderf.
2786
2787         New module 'remainderf'.
2788         * lib/math.in.h (remainderf): New declaration.
2789         * lib/remainderf.c: New file.
2790         * m4/remainderf.m4: New file.
2791         * modules/remainderf: New file.
2792         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
2793         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
2794         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
2795         HAVE_REMAINDERF.
2796         * doc/posix-functions/remainderf.texi: Mention the new module.
2797
2798 2012-02-25  Bruno Haible  <bruno@clisp.org>
2799
2800         remainder: Support for MSVC.
2801         * lib/math.in.h (remainder): New declaration.
2802         * lib/remainder.c: New file.
2803         * m4/remainder.m4: New file.
2804         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
2805         (Depends-on): Add math, round, fma.
2806         (configure.ac): Use results of gl_FUNC_REMAINDER.
2807         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
2808         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
2809         HAVE_DECL_REMAINDER.
2810         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
2811         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
2812         * tests/test-math-c++.cc: Check the declaration of remainder.
2813         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
2814         problems are fixed.
2815
2816 2012-02-25  Bruno Haible  <bruno@clisp.org>
2817
2818         Tests for module 'fmodl'.
2819         * modules/fmodl-tests: New file.
2820         * tests/test-fmodl.c: New file.
2821         * tests/test-math-c++.cc: Check the declaration of fmodl.
2822
2823         New module 'fmodl'.
2824         * lib/math.in.h (fmodl): New declaration.
2825         * lib/fmodl.c: New file.
2826         * m4/fmodl.m4: New file.
2827         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
2828         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
2829         REPLACE_FMODL.
2830         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
2831         REPLACE_FMODL.
2832         * modules/fmodl: New file.
2833         * doc/posix-functions/fmodl.texi: Mention the new module.
2834
2835 2012-02-25  Bruno Haible  <bruno@clisp.org>
2836
2837         Tests for module 'modfl'.
2838         * modules/modfl-tests: New file.
2839         * tests/test-modfl.c: New file.
2840         * tests/test-math-c++.cc: Check the declaration of modfl.
2841
2842         New module 'modfl'.
2843         * lib/math.in.h (modfl): New declaration.
2844         * lib/modfl.c: New file.
2845         * m4/modfl.m4: New file.
2846         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
2847         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
2848         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
2849         * modules/modfl: New file.
2850         * doc/posix-functions/modfl.texi: Mention the new module.
2851
2852 2012-02-25  Bruno Haible  <bruno@clisp.org>
2853
2854         Tests for module 'fabsl'.
2855         * modules/fabsl-tests: New file.
2856         * tests/test-fabsl.c: New file.
2857         * tests/test-math-c++.cc: Check the declaration of fabsl.
2858
2859         New module 'fabsl'.
2860         * lib/math.in.h (fabsl): New declaration.
2861         * lib/fabsl.c: New file.
2862         * m4/fabsl.m4: New file.
2863         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
2864         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
2865         REPLACE_FABSL.
2866         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
2867         REPLACE_FABSL.
2868         * modules/fabsl: New file.
2869         * doc/posix-functions/fabsl.texi: Mention the new module.
2870
2871 2012-02-25  Bruno Haible  <bruno@clisp.org>
2872
2873         fabs tests: More tests.
2874         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
2875         (zero): New variable.
2876         (main): Add tests for signed zero.
2877         * modules/fabs-tests (Files): Add tests/minus-zero.h.
2878
2879         fabsf tests: More tests.
2880         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
2881         (zero): New variable.
2882         (main): Add tests for signed zero.
2883         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
2884
2885 2012-02-24  Bruno Haible  <bruno@clisp.org>
2886
2887         atanl: Provide function definition on MSVC.
2888         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
2889         function pointer.
2890         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
2891
2892 2012-02-24  Bruno Haible  <bruno@clisp.org>
2893
2894         acosl: Provide function definition on MSVC.
2895         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
2896         function pointer.
2897         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
2898
2899 2012-02-24  Bruno Haible  <bruno@clisp.org>
2900
2901         asinl: Provide function definition on MSVC.
2902         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
2903         function pointer.
2904         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
2905
2906 2012-02-24  Bruno Haible  <bruno@clisp.org>
2907
2908         tanl: Provide function definition on MSVC.
2909         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
2910         function pointer.
2911         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
2912
2913 2012-02-24  Bruno Haible  <bruno@clisp.org>
2914
2915         cosl: Provide function definition on MSVC.
2916         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
2917         function pointer.
2918         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
2919
2920 2012-02-24  Bruno Haible  <bruno@clisp.org>
2921
2922         sinl: Provide function definition on MSVC.
2923         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
2924         function pointer.
2925         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
2926
2927 2012-02-24  Bruno Haible  <bruno@clisp.org>
2928
2929         logl: Provide function definition on MSVC.
2930         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
2931         function pointer.
2932         * lib/math.in.h (logl): Undefine if it does not exist as a function.
2933
2934 2012-02-24  Bruno Haible  <bruno@clisp.org>
2935
2936         expl: Provide function definition on MSVC.
2937         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
2938         function pointer.
2939         * lib/math.in.h (expl): Undefine if it does not exist as a function.
2940
2941 2012-02-24  Bruno Haible  <bruno@clisp.org>
2942
2943         sqrtl: Provide function definition on MSVC.
2944         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
2945         a function pointer.
2946         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
2947
2948 2012-02-24  Bruno Haible  <bruno@clisp.org>
2949
2950         ceill: Provide function definition on MSVC.
2951         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
2952         used as a function pointer.
2953         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
2954
2955 2012-02-24  Bruno Haible  <bruno@clisp.org>
2956
2957         floorl: Provide function definition on MSVC.
2958         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
2959         used as a function pointer.
2960         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
2961
2962 2012-02-24  Bruno Haible  <bruno@clisp.org>
2963
2964         ceilf: Provide function definition on MSVC.
2965         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
2966         used as a function pointer.
2967         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
2968
2969 2012-02-24  Bruno Haible  <bruno@clisp.org>
2970
2971         floorf: Provide function definition on MSVC.
2972         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
2973         used as a function pointer.
2974         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
2975
2976 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
2977
2978         stdnoreturn: new module
2979         This implements a replacement for C11's <stdnoreturn.h>.
2980         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
2981         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
2982         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2983         * tests/test-stdnoreturn.c: New files.
2984
2985 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
2986
2987         regex: fix false multibyte matches in some regular expressions
2988         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
2989         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
2990         * lib/regex_internal.c (re_string_skip_chars):
2991         Fix miscomputation of remain_len that may cause incomplete
2992         multi-byte character and false match.
2993
2994 2012-02-24  Jim Meyering  <meyering@redhat.com>
2995
2996         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
2997         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
2998         uses with "==" *before* the call, e.g., 0 == strcmp (...)
2999         Remove now-unnecessary str''cmp obfuscation.
3000         Suggested by Akim Demaille.
3001
3002 2012-02-24  Bruno Haible  <bruno@clisp.org>
3003
3004         streq: Rename macro.
3005         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
3006         * NEWS: Mention the change.
3007         * lib/mbrtowc.c (mbrtowc): Update.
3008         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
3009         * lib/wcwidth.c (wcwidth): Update.
3010         Suggested by Akim Demaille and Jim Meyering.
3011
3012 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3013
3014         regex: fix typo in definition of MIN
3015         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
3016         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
3017
3018 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3019             Bruno Haible  <bruno@clisp.org>
3020
3021         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
3022         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
3023         entries into a stack-allocated buffer directly.
3024         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
3025
3026 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
3027             Bruno Haible  <bruno@clisp.org>
3028
3029         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
3030
3031          - There were several instances of this pattern:
3032
3033              for (;;) {
3034                n = acl (f, GETACLCNT, 0, NULL);
3035                [ allocate an array A of size N ]
3036                if (acl (f, GETACL, n, a) == n)
3037                  break;
3038              }
3039
3040            This loop might never terminate if some other process is constantly
3041            manipulating the file's ACL.  The loop should be rewritten to
3042            terminate.
3043
3044          - The acl (... GETACLNT ...) call is merely an optimization; its value
3045            is merely a hint as to how big to make the array.  A better
3046            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
3047            and just guess a reasonably-big size, growing the size and trying
3048            again if it's not large enough.  This guarantees termination, and
3049            saves a system call.
3050
3051         * lib/acl-internal.h: Include <limits.h>.
3052         (MIN, SIZE_MAX): New macros.
3053         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
3054         a stack-allocated buffer, and use malloc if it does not fit. Don't
3055         use GETACLCNT.
3056         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3057
3058 2012-02-19  Bruno Haible  <bruno@clisp.org>
3059
3060         acl: Fix endless loop on Solaris with vxfs.
3061         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
3062         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
3063         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
3064         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
3065         * tests/test-sameacls.c (main)[Solaris]: Likewise.
3066         Reported by Bill Jones in
3067         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
3068
3069 2012-02-19  Bruno Haible  <bruno@clisp.org>
3070
3071         acl: Fix copy-acl test failure on Solaris 11 2011-11.
3072         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
3073         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
3074         that this function returns 0 in some more cases.
3075
3076 2012-02-19  Bruno Haible  <bruno@clisp.org>
3077
3078         acl: Update doc references.
3079         * doc/acl-resources.txt: Update links to Solaris documentation.
3080
3081 2012-02-19  Bruno Haible  <bruno@clisp.org>
3082
3083         Fix test failure in many locales on Solaris 11.
3084         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
3085         'tr' arguments.
3086         * tests/test-pipe-filter-ii1.c (main): Likewise.
3087         * build-aux/bootstrap (check_versions): Run 'tr' command with range
3088         expressions in the C locale.
3089         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
3090         * m4/host-os.m4 (gl_HOST_OS): Likewise.
3091
3092 2012-02-19  Bruno Haible  <bruno@clisp.org>
3093
3094         gnulib-tool: Improve usage message.
3095         * gnulib-tool (func_usage): Move doc of --help and --version to the
3096         section "Operation modes".
3097
3098 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
3099
3100         README-release: make it easier to execute commands
3101         * top/README-release: break commands out on to separate lines.
3102
3103 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
3104
3105         GNUmakefile: simplify detection of unconfigured trees
3106         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
3107         whether the tree make is being run from is already configured or
3108         not.  Related simplifications.
3109
3110 2012-02-13  Simon Josefsson  <simon@josefsson.org>
3111
3112         * gnulib-tool (func_usage): Document --help and --version.
3113
3114 2012-02-11  Jim Meyering  <meyering@redhat.com>
3115
3116         bootstrap: don't exit 0 upon gnulib-tool failure
3117         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
3118         its exit status, not 0.
3119
3120 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
3121
3122         README-release: various improvements
3123         * top/README-release: Give a command to push changes for the
3124         release.  Add "distcheck" to list of other pre-release checks.
3125         Fix instance of "make stable" which should be "make TYPE".
3126
3127 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
3128
3129         maint: replace FSF snail-mail addresses with URLs
3130         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
3131         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
3132         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
3133         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
3134         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
3135         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
3136         * lib/check-version.c, lib/check-version.h, lib/config.charset:
3137         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
3138         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
3139         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
3140         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
3141         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
3142         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
3143         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
3144         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
3145         * lib/glthread/thread.c, lib/glthread/thread.h:
3146         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
3147         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
3148         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
3149         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
3150         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
3151         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
3152         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
3153         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
3154         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
3155         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
3156         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
3157         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
3158         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
3159         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
3160         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
3161         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
3162         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
3163         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
3164         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
3165         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
3166         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
3167         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
3168         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
3169         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
3170         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
3171         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
3172         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
3173         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
3174         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
3175         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
3176         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
3177         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
3178         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
3179         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
3180         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
3181         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
3182         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
3183         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
3184         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
3185         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
3186         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
3187         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
3188         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
3189         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
3190         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
3191         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
3192         * tests/test-poll.c, tests/test-quotearg-simple.c:
3193         * tests/test-quotearg.c, tests/test-quotearg.h:
3194         * tests/test-round-ieee.c, tests/test-round1.c:
3195         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
3196         * tests/test-roundl-ieee.c, tests/test-roundl.c:
3197         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
3198         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
3199         * tests/test-strerror.c, tests/test-strerror_r.c:
3200         * tests/test-strsignal.c, tests/test-strverscmp.c:
3201         * tests/test-xmemdup0.c:
3202         Replace FSF snail mail addresses with URLs, as per GNU coding
3203         standards.  See glibc bug
3204         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
3205
3206 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
3207
3208         README-release: capitalize a word and split a line
3209         * top/README-release: Fix punctuation and spacing.
3210
3211 2012-02-08  Akim Demaille  <demaille@gostai.com>
3212
3213         fatal-signal: use C prototypes (with explicit void).
3214         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
3215         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
3216
3217 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3218
3219         regex: spelling fix
3220         * lib/regexec.c: spelling fix
3221
3222         regex: rely on stdint.h for SIZE_MAX
3223         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
3224
3225 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
3226
3227         regex: merge glibc changes
3228
3229         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
3230         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
3231         (init_word_char): Work even if bitset words are not exactly 32 or
3232         64 bits wide.  Don't assume there are no padding bits.
3233         * lib/regex.c [_LIBC]: Do not include <config.h>.
3234         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
3235         and -Wtype-limits.
3236         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
3237         needless disagreement with glibc.  All uses changed.  Define it to
3238         1 only if _GNU_SOURCE, to match glibc.
3239         (_REG_RM_NAME): Remove; no longer needed, since the names in
3240         question are now all protected by __USE_GNU.
3241         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
3242         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
3243         * lib/regex_internal.h (MIN): New macro.
3244
3245         2012-01-03 Ulrich Drepper <drepper@gmail.com>
3246         * lib/regcomp.c (init_word_char): Optimize regex a bit.
3247
3248         2011-12-30 Jakub Jelinek <jakub@redhat.com>
3249         * lib/regex_internal.c (re_string_fetch_byte_case):
3250         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
3251         is miscompiled, and it turns out it is because of an incorrect
3252         attribute on re_string_fetch_byte_case.  Unlike
3253         re_string_peek_byte_case, this one is really not pure, it modifies
3254         memory (increments pstr->cur_idx), and with the pure attribute GCC
3255         assumed it doesn't and it cached the presumed value of
3256         regexp->cur_idx in a variable across the
3257          for (;; ++i)
3258            {
3259              if (i >= BRACKET_NAME_BUF_SIZE)
3260                return REG_EBRACK;
3261              if (token->type == OP_OPEN_CHAR_CLASS)
3262                ch = re_string_fetch_byte_case (regexp);
3263              else
3264                ch = re_string_fetch_byte (regexp);
3265              if (re_string_eoi(regexp))
3266                return REG_EBRACK;
3267              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3268                break;
3269              elem->opr.name[i] = ch;
3270            }
3271
3272         2011-11-29 Andreas Schwab <schwab@redhat.com>
3273         * lib/regcomp.c (build_equiv_class):
3274         Fix access after end of search string in regex matcher.
3275
3276         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3277         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3278
3279         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3280         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3281
3282         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3283         * lib/regcomp.c (parse_branch, parse_sub_exp):
3284         More regex memory leak fixes and tests.
3285         (parse_sub_exp, parse_bracket_exp):
3286         Fix memory leak for some invalid regular expressions.
3287
3288         2011-05-28 Ulrich Drepper <drepper@gmail.com>
3289         * lib/regex_internal.c, lib/regexec.c:
3290         Fix unnecessary overallocation due to incomplete character.  When
3291         incomplete characters are found at the end of a string the code
3292         ran amok and allocated lots of memory.  Stricter limits are now in
3293         place.
3294
3295         2011-05-20 Reuben Thomas <rrt@sc3d.org>
3296         * lib/regex.h: Update documentation.
3297
3298         2011-05-16 Aharon Robbins <arnold@skeeve.com>
3299         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
3300
3301         2010-05-05 Andreas Schwab <schwab@redhat.com>
3302         * lib/regexec.c (find_collation_sequence_value):
3303         Fix lookup of collation sequence value during regexp matching.
3304
3305         2010-01-22 Ulrich Drepper <drepper@redhat.com>
3306         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
3307
3308         2008-01-16 Ulrich Drepper <drepper@redhat.com>
3309         * lib/regex.h: Cleanup namespace.
3310
3311         2007-11-26 Ulrich Drepper <drepper@redhat.com>
3312         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
3313
3314         2007-08-26 Ulrich Drepper <drepper@redhat.com>
3315         * lib/regex_internal.h: Prevent some declarations and definitions
3316         to be seen when used in tests.
3317
3318         2005-05-06 Ulrich Drepper <drepper@redhat.com>
3319         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
3320         __libc_lock_* macros if not _LIBC.
3321         (struct re_dfa_t): Add lock.
3322
3323 2012-02-07  Eric Blake  <eblake@redhat.com>
3324
3325         maint.mk: also prohibit lower-case @var@
3326         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
3327         lower case, like @top_srcdir@.
3328
3329 2012-02-04  Eric Blake  <eblake@redhat.com>
3330
3331         canonicalize: avoid uninitialized memory use
3332         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
3333         random '/' left in dest.
3334         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
3335
3336 2012-02-04  Bruno Haible  <bruno@clisp.org>
3337
3338         isatty: Fix test failure of ptsname_r on native Windows.
3339         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
3340         and don't set errno.
3341         (isatty): Test first whether fd is valid. Set errno when returning 0.
3342
3343 2012-02-04  Bruno Haible  <bruno@clisp.org>
3344
3345         spawn-pipe tests: Fix a NULL program name in a diagnostic.
3346         * tests/test-spawn-pipe-main.c: Include progname.h.
3347         (main): Invoke set_program_name.
3348         * modules/spawn-pipe-tests (Depends-on): Add progname.
3349
3350         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
3351         * tests/test-nonblocking-socket-main.c: Include progname.h.
3352         (main): Invoke set_program_name.
3353         * modules/nonblocking-socket-tests (Depends-on): Add progname.
3354
3355         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
3356         * tests/test-nonblocking-pipe-main.c: Include progname.h.
3357         (main): Invoke set_program_name.
3358         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
3359
3360 2012-02-04  Eric Blake  <eblake@redhat.com>
3361
3362         canonicalize-lgpl: fix // handling
3363         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
3364
3365         canonicalize: fix // handling
3366         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
3367         /// to //, since only // is special.
3368
3369 2012-02-04  Bruno Haible  <bruno@clisp.org>
3370
3371         ioctl: Fix test failure on native Windows.
3372         * lib/ioctl.c: Include msvc-nothrow.h.
3373         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
3374
3375 2012-02-04  Bruno Haible  <bruno@clisp.org>
3376
3377         fsync: Avoid test failure on native Windows.
3378         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
3379         read-only.
3380
3381 2012-02-04  Bruno Haible  <bruno@clisp.org>
3382
3383         sys_select: Avoid syntax error on OpenBSD 5.0.
3384         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
3385         currently being included, just include the system's <sys/select.h>.
3386
3387 2012-02-04  Bruno Haible  <bruno@clisp.org>
3388
3389         sys_select: Avoid syntax error on OpenBSD 5.0.
3390         * lib/sys_select.in.h: Include <signal.h> only after the include_next
3391         <sys/select.h>, not before.
3392         Reported by Jiri B <jirib@devio.us>.
3393
3394 2012-02-04  Bruno Haible  <bruno@clisp.org>
3395
3396         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
3397         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
3398         global variables.
3399         * tests/test-get-rusage-data.c (main): Likewise.
3400         Reported by Jim Meyering.
3401
3402 2012-02-04  Bruno Haible  <bruno@clisp.org>
3403
3404         stdioext: Fix last commit.
3405         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
3406
3407 2012-02-03  Bruno Haible  <bruno@clisp.org>
3408
3409         stdioext: Add tentative support for Plan9.
3410         * lib/stdio-impl.h: Include <errno.h>.
3411         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
3412         * lib/freadable.c (freadable): Likewise.
3413         * lib/fwritable.c (fwritable): Likewise.
3414         * lib/fbufmode.c (fbufmode): Likewise.
3415         * lib/freading.c (freading): Likewise.
3416         * lib/fwriting.c (fwriting): Likewise.
3417         * lib/freadptr.c (freadptr): Likewise.
3418         * lib/freadseek.c (freadptrinc): Likewise.
3419         * lib/freadahead.c (freadahead): Likewise.
3420         * lib/fpurge.c (fpurge): Likewise.
3421         * lib/fseeko.c (rpl_fseeko): Likewise.
3422         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
3423         Reported by Jens Staal <staal1978@gmail.com>.
3424
3425 2012-02-02  Jim Meyering  <meyering@redhat.com>
3426
3427         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
3428         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
3429         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
3430         not even to try to add the attribute.  Instead, add a pragma to suppress
3431         the suggestion/warning.
3432
3433 2012-01-31  Karl Berry  <karl@gnu.org>
3434
3435         setstate doc: typo.
3436         * doc/posix-functions/setstate.texi (setstate): { not (.
3437
3438 2012-01-31  Bruno Haible  <bruno@clisp.org>
3439
3440         popen: Make more robust on Windows.
3441         * lib/popen.c: On native Windows, use the _popen based code even if
3442         HAVE_POPEN is set.
3443         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
3444         environment variable on native Windows.
3445
3446 2012-01-30  Bruno Haible  <bruno@clisp.org>
3447
3448         pclose: Fix typo.
3449         * lib/stdio.in.h (pclose): Fix typo in warning message.
3450
3451 2012-01-30  Bruno Haible  <bruno@clisp.org>
3452
3453         doc about getlogin_r, setstate.
3454         * doc/posix-functions/getlogin_r.texi: List the incompatible
3455         declaration problem under "not fixed by gnulib".
3456         * doc/posix-functions/setstate.texi: Mention incompatible declaration
3457         problem on Solaris 11 and other platforms.
3458
3459 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
3460             Bruno Haible  <bruno@clisp.org>
3461
3462         poll tests: Make test more robust.
3463         * tests/test-poll.c: Include macros.h.
3464         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
3465         return value of various I/O operations.
3466         * modules/poll-tests (Files): Add tests/macros.h.
3467
3468 2012-01-30  Bruno Haible  <bruno@clisp.org>
3469
3470         sys_stat: Fix support for mingw64 and MSVC.
3471         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
3472         header files already do it.
3473         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
3474         stat itself.
3475         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3476
3477 2012-01-30  Bruno Haible  <bruno@clisp.org>
3478
3479         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
3480         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
3481         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
3482
3483 2012-01-29  Bruno Haible  <bruno@clisp.org>
3484
3485         quotearg: Fix test failure on MacOS X 10.5.
3486         * tests/test-quotearg-simple.c: Include localcharset.h.
3487         (main): If the locale encoding is not ASCII, bypass the tests of
3488         locale_quoting_style and clocale_quoting_style.
3489         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
3490
3491 2012-01-29  Jim Meyering  <meyering@redhat.com>
3492
3493         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
3494         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
3495         detect uses of canonicalize_file_name.
3496
3497 2012-01-28  Bruno Haible  <bruno@clisp.org>
3498
3499         test-framework-sh: Fix test failure with AIX 7.1 diff.
3500         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
3501         in column 1, like 'diff -c' does.
3502         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
3503         whether 'diff -u' is used. Instead, test whether the output contains
3504         some '@' character.
3505
3506 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3507
3508         strtoimax: eliminate need for stdint.h, inttypes.h checks
3509         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
3510         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
3511         the prerequisites for a recently-introduced strtoimax test.
3512         I guess this might cause strtoimax to be replaced when not
3513         strictly necessary on older hosts, but this shouldn't introduce
3514         any bugs and it should make Emacs 'configure' faster on typical
3515         modern hosts.  Problem discovered when importing the latest gnulib
3516         to an Emacs test version.
3517         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
3518
3519 2012-01-28  Bruno Haible  <bruno@clisp.org>
3520
3521         sys_time: Override 'struct timeval' on some native Windows platforms.
3522         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
3523         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
3524         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
3525         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
3526         needs to be overridden.
3527         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
3528         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
3529         * tests/test-sys_select.c: Check that the tv_sec member has the same
3530         size as a 'time_t'.
3531         * tests/test-sys_time.c: Likewise.
3532         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
3533         is set, set also REPLACE_GETTIMEOFDAY.
3534         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
3535         convert the resulting 'struct timeval' before returning.
3536         * lib/select.c: Include <sys/time.h>.
3537         (select, timeval): Undefine at the right place.
3538         * modules/select (Depends-on): Add sys_time.
3539         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
3540         some Windows platforms.
3541         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3542
3543 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3544
3545         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
3546         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
3547         an integer.
3548         * lib/fcntl.c (dupfd): Likewise.
3549         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
3550
3551 2012-01-28  Bruno Haible  <bruno@clisp.org>
3552
3553         fcntl: Avoid compilation error on native Windows.
3554         * modules/fcntl (Depends-on): Add 'close'.
3555
3556 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3557
3558         select, poll, isatty: Avoid warnings on x86_64 mingw64.
3559         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
3560         pointer to an integer.
3561         * lib/poll.c (IsConsoleHandle): Likewise.
3562         * lib/isatty.c (IsConsoleHandle): Likewise.
3563
3564 2012-01-28  Jim Meyering  <meyering@redhat.com>
3565
3566         doc: clarify README-release
3567         * top/README-release: Clarify: you should make a point to have
3568         the latest stable versions of build tools in your PATH, and the
3569         reference to buildreq is solely for its list of tool names, not
3570         for its minimal-functional version numbers.
3571         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
3572
3573         maint.mk: use more readable (yet functionally equivalent) quoting
3574         It is common to quote a single quote in a single quoted string like
3575         this:  '...'\''...'.  Unless you know the idiom, that looks like
3576         gibberish, so prefer to double-quote the string when possible.
3577         Then you can use a more readable, lone single quote: "...'..."
3578         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
3579         "don't" is more readable than the equivalent 'don'\''t'.
3580         (sc_cast_of_x_alloc_return_value): Likewise.
3581         (sc_cast_of_alloca_return_value): Likewise.
3582         (sc_makefile_path_separator_check): Similar: use ":" in '...',
3583         rather than '\'':'\''.
3584
3585 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3586
3587         stdalign: relax _Alignof and tighten _Alignas test
3588         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
3589         as it was too strict: alignof must divide offsetof, but it need
3590         not equal offsetof.  Inspired by Joseph S. Myers's comment
3591         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
3592         Conversely, tighten the _Alignas test a bit, as the resulting
3593         alignment must be exactly 8.
3594
3595 2012-01-27  Bruno Haible  <bruno@clisp.org>
3596
3597         stdalign: Document the last change.
3598         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
3599
3600 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3601
3602         stdalign: check that alignof and offsetof are consistent
3603         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
3604         Problem reported for gnulib by Richard W.M. Jones in
3605         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
3606
3607 2012-01-27  Jim Meyering  <meyering@redhat.com>
3608
3609         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
3610         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
3611         convert a sequence with gaps to the minimal containing range.
3612         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
3613         * tests/test-update-copyright.sh: Test for this.
3614         The FSF confirmed it is ok to do this, assuming there is at
3615         least one significant change per year in the affected range:
3616         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
3617
3618 2012-01-26  Bruno Haible  <bruno@clisp.org>
3619
3620         pipe2: refine doc about thread-safety
3621         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
3622         multithread-safety problem.
3623         * doc/glibc-functions/accept4.texi: Likewise.
3624
3625 2012-01-26  Bruno Haible  <bruno@clisp.org>
3626
3627         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
3628         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
3629         In the test program, include <fcntl.h>, for O_RDONLY.
3630
3631 2012-01-26  Eric Blake  <eblake@redhat.com>
3632
3633         pipe2: document lack of thread-safety in replacement
3634         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
3635         issue in replacement.
3636         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3637         Based on a report by Eric Wong.
3638
3639 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3640             Bruno Haible  <bruno@clisp.org>
3641
3642         malloca: Avoid warnings on x86_64 mingw64.
3643         * lib/malloca.c: Include <stdint.h>.
3644         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
3645         * modules/malloca (Depends-on): Add stdint.
3646         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
3647
3648 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3649
3650         obstack: remove __STDC__ conditionals
3651         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
3652         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
3653         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
3654         m4/include_next.m4 as the only gnulib-maintained places that still
3655         refer to __STDC__.
3656
3657 2012-01-24  Bruno Haible  <bruno@clisp.org>
3658
3659         havelib: Modern quoting.
3660         * build-aux/config.rpath: Quote 'like this', not `like this', as per
3661         the recent change to the GNU coding standards.
3662
3663 2012-01-24  Bruno Haible  <bruno@clisp.org>
3664
3665         stdint: Improve support for Android.
3666         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
3667         Reported by Simon Josefsson <simon@josefsson.org>.
3668
3669 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3670
3671         doc: omit trailing empty lines from INSTALL etc.
3672         * doc/Makefile (INSTALL): Omit trailing empty lines.
3673         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
3674         omit trailing empty lines.  This simplifies the build procedure.
3675
3676 2012-01-23  Jim Meyering  <meyering@redhat.com>
3677
3678         tests: avoid spurious warnings about gl_sockets_startup
3679         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
3680         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
3681         reporting a "statement with no effect".
3682         * tests/test-accept.c (main): Mark as "(void)".
3683         * tests/test-accept4.c (main): Likewise.
3684         * tests/test-bind.c (main): Likewise.
3685         * tests/test-connect.c (main): Likewise.
3686         * tests/test-getpeername.c (main): Likewise.
3687         * tests/test-getsockname.c (main): Likewise.
3688         * tests/test-getsockopt.c (main): Likewise.
3689         * tests/test-listen.c (main): Likewise.
3690         * tests/test-recv.c (main): Likewise.
3691         * tests/test-recvfrom.c (main): Likewise.
3692         * tests/test-send.c (main): Likewise.
3693         * tests/test-sendto.c (main): Likewise.
3694         * tests/test-setsockopt.c (main): Likewise.
3695         * tests/test-shutdown.c (main): Likewise.
3696
3697 2012-01-21  Bruno Haible  <bruno@clisp.org>
3698
3699         locale-fr.m4: Fix for Android.
3700         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
3701         failure of the test program on Bionic libc.
3702
3703 2012-01-21  Jim Meyering  <meyering@redhat.com>
3704
3705         bootstrap: fail when bootstrap_post_import_hook fails
3706         Otherwise, it's far too easy to miss diagnostics emitted
3707         between gnulib-tool's output and that of running configure.
3708         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
3709
3710 2012-01-17  Jim Meyering  <meyering@redhat.com>
3711
3712         maint: enable sc_trailing_blank
3713         * build-aux/pmccabe.css: Remove trailing blanks.
3714         * doc/acl-cygwin.txt: Likewise.
3715         * doc/gnu-oids.texi: Likewise
3716         * cfg.mk: Enable sc_trailing_blank.
3717         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
3718
3719 2012-01-17  Jim Meyering  <meyering@redhat.com>
3720
3721         maint: enable sc_prohibit_openat_without_use
3722         * cfg.mk: Enable sc_prohibit_openat_without_use.
3723         Exempt lib/selinux-at.c.
3724
3725 2012-01-17  Jim Meyering  <meyering@redhat.com>
3726
3727         maint: enable sc_prohibit_cloexec_without_use
3728         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
3729         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
3730
3731 2012-01-17  Jim Meyering  <meyering@redhat.com>
3732
3733         maint: enable sc_prohibit_intprops_without_use
3734         * cfg.mk: Enable sc_prohibit_intprops_without_use
3735         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
3736
3737 2012-01-17  Jim Meyering  <meyering@redhat.com>
3738
3739         maint: enable sc_prohibit_hash_pjw_without_use
3740         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
3741         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
3742         to match any use of \<hash_pjw\>, i.e., not necessarily with a
3743         following " (".
3744
3745 2012-01-17  Jim Meyering  <meyering@redhat.com>
3746
3747         maint: enable double-word-prohibiting rule
3748         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
3749         Exempt three files.
3750
3751 2012-01-17  Jim Meyering  <meyering@redhat.com>
3752
3753         maint: remove empty lines at EOF, but excluding modules/*
3754         Apply syntax rules at home as well as abroad.  Most changes
3755         were induced by running this:
3756           make srcdir=. _build-aux=build-aux -f top/maint.mk \
3757             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
3758             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
3759         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
3760         Exempt modules/* and two binary files.
3761         Also exempt doc/INSTALL*, per request from Bruno Haible.
3762         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
3763         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
3764         * doc/Copyright/request-assign.future: Likewise.
3765         * doc/Copyright/request-disclaim.changes: Likewise.
3766         * doc/INSTALL: Likewise.
3767         * doc/INSTALL.ISO: Likewise.
3768         * doc/INSTALL.UTF-8: Likewise.
3769         * doc/acl-cygwin.txt: Likewise.
3770         * doc/acl-resources.txt: Likewise.
3771         * doc/fdl-1.2.texi: Likewise.
3772         * doc/fdl-1.3.texi: Likewise.
3773         * doc/fdl.texi: Likewise.
3774         * lib/argp-pin.c: Likewise.
3775         * lib/round.c: Likewise.
3776         * lib/unicase/u16-totitle.c: Likewise.
3777         * lib/unictype/block_test.c: Likewise.
3778         * lib/uninorm/canonical-decomposition.c: Likewise.
3779         * m4/README: Likewise.
3780         * m4/relocatable-lib.m4: Likewise.
3781         * tests/test-isnand-nolibm.c: Likewise.
3782         * tests/test-isnand.c: Likewise.
3783         * tests/uninorm/NormalizationTest.txt: Likewise.
3784
3785 2012-01-17  Jim Meyering  <meyering@redhat.com>
3786
3787         maint: add framework to run syntax-check rules against gnulib sources
3788         * cfg.mk: New file, to disable all currently-failing tests.
3789         We'll enable them one by one, as they are made to pass.
3790         * Makefile (sc_maint): New rule.
3791
3792 2012-01-21  Bruno Haible  <bruno@clisp.org>
3793
3794         stdint: Add support for Android.
3795         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
3796         include the system's <stdint.h>.
3797         Reported by Simon Josefsson <simon@josefsson.org>.
3798
3799 2012-01-19  Jim Meyering  <meyering@redhat.com>
3800
3801         bootstrap: add bootstrap_post_import_hook
3802         Bison does still need something like the gnulib_mk_hook whose
3803         invocation I had to remove along with slurp in commit 767ccd40.
3804         Technically, we could get along without it, but doing so would
3805         have required living with a warning and a mandatory post-bootstrap
3806         automake rerun.
3807         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
3808         (bootstrap_post_import_hook): New function.
3809         Invoke it after gnulib-tool --import and before autoreconf.
3810
3811 2012-01-18  Jim Meyering  <meyering@redhat.com>
3812
3813         gitlog-to-changelog: don't use "no_"-prefixed variable name
3814         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
3815         to enable both --cluster and --no-cluster.  Change variable name,
3816         s/\$no_cluster/$cluster/, and reverse usage to match.
3817
3818         gitlog-to-changelog: use "||", not "or" in expressions
3819         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
3820         expressions.
3821
3822 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
3823
3824         gitlog-to-changelog: new option --no-cluster
3825         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
3826         clustering of adjacent commit messages.
3827
3828 2012-01-17  Jim Meyering  <meyering@redhat.com>
3829
3830         maint: spell file systems with two words, not one
3831         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
3832         two words, not one.
3833
3834 2012-01-16  Jim Meyering  <meyering@redhat.com>
3835
3836         bootstrap: add a FIXME comment to ensure we eventually remove the hack
3837         * build-aux/bootstrap (gnulib_tool_options): Add comment.
3838
3839 2012-01-16  Eric Blake  <eblake@redhat.com>
3840
3841         bootstrap: cater to autoconf 2.59
3842         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
3843         is not available.
3844
3845         bootstrap: properly check for libtool
3846         * build-aux/bootstrap (libtoolize): Also run libtool when older
3847         usage is detected.
3848
3849 2012-01-15  Bruno Haible  <bruno@clisp.org>
3850
3851         Improve support for MSVC 9.
3852         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
3853         clashes on MSVC.
3854         * lib/fcntl.in.h: Likewise.
3855         * lib/stdlib.in.h: Likewise.
3856         * lib/sys_stat.in.h: Likewise.
3857
3858 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
3859
3860         gnupload: we hold the master copy of this script now
3861         For motivation and more information, see:
3862         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
3863         * build-aux/gnupload: Make it clear in the heading comments that the
3864         master copy of this file is maintained by gnulib.  Since we are at
3865         it, bump its copyright year and ...
3866         ($scriptversion): ... the date in its version.
3867         ($usage): Patches and bug reports should be sent to the gnulib list,
3868         not the automake one.
3869         * config/srclist.txt: Don't try to sync 'gnupload' from automake
3870         anymore.
3871
3872 2012-01-15  Bruno Haible  <bruno@clisp.org>
3873
3874         Fix module 'random'.
3875         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
3876         initstate, setstate are declared.
3877
3878 2012-01-14  Bruno Haible  <bruno@clisp.org>
3879
3880         Tests for module 'random'.
3881         * modules/random-tests: New file.
3882         * tests/test-random.c: New file, based on tests/test-random_r.c.
3883
3884         New module 'random'.
3885         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
3886         declarations.
3887         * lib/random.c: New file, based on glibc/stdlib/random.c.
3888         * m4/random.m4: New file.
3889         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
3890         HAVE_RANDOM.
3891         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
3892         * modules/random: New file.
3893         * config/srclist.txt: Add an entry for random.c.
3894         * doc/posix-functions/random.texi: Mention the 'random' module.
3895         * doc/posix-functions/initstate.texi: Likewise.
3896         * doc/posix-functions/setstate.texi: Likewise.
3897         * doc/posix-functions/srandom.texi: Likewise.
3898
3899 2012-01-12  Bruno Haible  <bruno@clisp.org>
3900
3901         random_r: Use common idioms.
3902         * lib/random_r.c: Include <stdlib.h> first.
3903
3904         random_r: Override incompatible API on AIX, OSF/1.
3905         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
3906         Override the system function if REPLACE_RANDOM_R is 1.
3907         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
3908         and OSF/1, set REPLACE_RANDOM_R.
3909         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
3910         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
3911         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
3912         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
3913         * doc/glibc-functions/random_r.texi: Likewise.
3914         * doc/glibc-functions/setstate_r.texi: Likewise.
3915
3916         random_r: Support for MSVC 9.
3917         * lib/random_r.c: Include stdint.h, not inttypes.h.
3918
3919 2012-01-12  Eric Blake  <eblake@redhat.com>
3920
3921         inet_ntop: guard extra work by IF_LINT
3922         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
3923         better code generation when not checking for warnings.
3924         Suggested by Paul Eggert and Jim Meyering.
3925
3926         strptime: fix regression on mingw
3927         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
3928         Fix regression.  Reported by Bruno Haible.
3929
3930 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
3931             Bruno Haible  <bruno@clisp.org>
3932
3933         copy-file: add error-code-returning variant.
3934         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
3935         (qcopy_file_preserving): New declaration.
3936         * lib/copy-file.c (qcopy_file_preserving): Renamed from
3937         copy_file_preserving. Change return type to 'int'. Don't emit an error
3938         message here.
3939         (copy_file_preserving): New function.
3940         * tests/test-copy-file.c: Include <stdlib.h>.
3941         (main): Test qcopy_file_preserving if the environment variable
3942         NO_STDERR_OUTPUT is set.
3943         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
3944         with NO_STDERR_OUTPUT
3945         * tests/test-copy-file-2.sh: Likewise.
3946
3947 2012-01-10  Bruno Haible  <bruno@clisp.org>
3948
3949         copy-file: Use 'quote' module consistently.
3950         * lib/copy-file.c (copy_file_preserving): Use quote().
3951
3952         copy-file: Refactor.
3953         * lib/copy-file.c: Include quote.h.
3954         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
3955         message here.
3956         * modules/copy-file (Depends-on): Add quote.
3957
3958         acl: Export qcopy_acl.
3959         * lib/acl.h (qcopy_acl): New declaration.
3960         * lib/copy-acl.c (qcopy_acl): Make non-static.
3961
3962         acl: Rename a local variable.
3963         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
3964
3965         acl: Align return values of copy_acl and qcopy_acl.
3966         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
3967         maybe < -1.
3968
3969 2012-01-11  Eric Blake  <eblake@redhat.com>
3970
3971         strptime: silence gcc warnings
3972         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
3973         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
3974         Reported by Daniel P. Berrange.
3975
3976         inet_ntop: silence gcc warning
3977         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
3978         Reported by Daniel P. Berrange.
3979
3980 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
3981
3982         getloadavg test: skip the test on GNU/Linux without /proc mounted
3983         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
3984         file.  When /proc is not mounted, it always fails with ENOENT.
3985         * tests/test-getloadavg.c (main): Treat ENOENT return code from
3986         getloadavg(3) the same way as ENOSYS and ENOTSUP.
3987
3988 2012-01-10  Bruno Haible  <bruno@clisp.org>
3989
3990         regex: Avoid link error on MSVC 9.
3991         * modules/regex (Depends-on): Add wctype.
3992
3993 2012-01-10  Bruno Haible  <bruno@clisp.org>
3994
3995         doc: Mention --with-tests option.
3996         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
3997         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
3998         --with-tests.
3999         Reported by Reuben Thomas.
4000
4001 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
4002
4003         users.txt: order package names lexicographically.
4004         * users.txt: Order package names lexicographically.
4005
4006 2012-01-10  Jim Meyering  <meyering@redhat.com>
4007
4008         maint.mk: fix description in comment
4009         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
4010
4011         ignore-value: remove deprecated ignore_ptr function
4012         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
4013         * NEWS: Note this.
4014
4015 2012-01-09  Jim Meyering  <meyering@redhat.com>
4016
4017         test-init.sh: avoid a subshell
4018         * tests/test-init.sh: Remove protective subshell.
4019         Suggested by Bernhard Voelker.  While a subshell is normally
4020         required to protect against older shells (Solaris, FreeBSD) that
4021         warn about a missing program before performing redirection, the
4022         shell-selection tests performed by init.sh probably exclude any
4023         offending shell.
4024
4025 2012-01-08  Bruno Haible  <bruno@clisp.org>
4026
4027         setlocale tests: Avoid test failure on Solaris 11 2011-11.
4028         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
4029         variable.
4030
4031 2012-01-08  Bruno Haible  <bruno@clisp.org>
4032
4033         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
4034         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4035         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4036         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
4037         macro.
4038         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
4039         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4040         * lib/spawn_faction_addopen.c: Add workaround implementation if
4041         HAVE_WORKING_POSIX_SPAWN.
4042         * modules/spawn (Makefile): Substitute
4043         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
4044         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
4045         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
4046         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
4047         (Depends-on): Update conditions.
4048         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
4049         the Solaris 11 bug.
4050
4051 2012-01-08  Bruno Haible  <bruno@clisp.org>
4052
4053         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
4054         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4055         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4056         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
4057         macro.
4058         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
4059         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4060         * lib/spawn_faction_adddup2.c: Add workaround implementation if
4061         HAVE_WORKING_POSIX_SPAWN.
4062         * modules/spawn (Makefile): Substitute
4063         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
4064         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
4065         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
4066         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
4067         (Depends-on): Update conditions.
4068         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
4069         the Solaris 11 bug.
4070
4071 2012-01-08  Bruno Haible  <bruno@clisp.org>
4072
4073         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
4074         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
4075         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4076         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
4077         HAVE_WORKING_POSIX_SPAWN.
4078         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
4079         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
4080         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4081         * lib/spawn_faction_addclose.c: Add workaround implementation if
4082         HAVE_WORKING_POSIX_SPAWN.
4083         * modules/spawn (Makefile): Substitute
4084         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
4085         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
4086         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
4087         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
4088         (Depends-on): Update conditions.
4089         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
4090         the Solaris 11 bug.
4091
4092 2012-01-08  Bruno Haible  <bruno@clisp.org>
4093
4094         doc: Update for Solaris 11 2011-11.
4095         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
4096         * m4/printf.m4: Update comments.
4097
4098 2012-01-08  Bruno Haible  <bruno@clisp.org>
4099
4100         mktime: Avoid compilation error on Solaris 11.
4101         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
4102
4103 2012-01-08  Bruno Haible  <bruno@clisp.org>
4104
4105         doc: Small fix.
4106         * doc/posix-headers/nl_types.texi: Correct platforms list.
4107
4108 2012-01-08  Simon Josefsson  <simon@josefsson.org>
4109
4110         Add lgpl-3.0 module.
4111         * MODULES.html.sh (Support for building documentation): Add
4112         lgpl-3.0.
4113         * modules/lgpl-3.0: New file.
4114
4115 2012-01-08  Jim Meyering  <meyering@redhat.com>
4116
4117         select.c: indent with spaces, not TABs
4118         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
4119
4120 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4121
4122         quotearg: do not use grave accent for left quote
4123         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
4124         locale_quoting_style.
4125         (quotearg_buffer_restyled): Fix example.
4126         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
4127
4128 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4129
4130         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
4131         Most programs do not have translation catalogs for English and much
4132         less separate catalogs for British and American English.  Drop the
4133         suggestion to translators about these two, and provide it
4134         automatically for Unicode locales.  Like most programs, even those
4135         using American English, we use single quotation marks.  This conflicts
4136         with the American typographic convention, but works better when you
4137         cite the entire error message within double quotes.  It also tries not
4138         to clash with established practice and with what non-gnulib programs
4139         will usually do.
4140         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
4141         using an UTF-8 or GB-18030 locale.  The list of other locales with
4142         quotes was provided by Bruno Haible.
4143         (quotearg_buffer_restyled): Adjust instructions to translators.
4144         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
4145         text, since this would be wrong when using Unicode.
4146         * modules/quotearg: Depend on c-strcaseeq.
4147
4148 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
4149
4150         quotearg: fix Wikipedia link
4151         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
4152
4153 2012-01-07  Simon Josefsson  <simon@josefsson.org>
4154
4155         Fix for mingw with MSVC9.
4156         * m4/ld-version-script.m4: Check that compiler rejects version
4157         scripts with syntax errors.  Reported by Bruno Haible
4158         <bruno@clisp.org>.
4159
4160 2012-01-06  Bruno Haible  <bruno@clisp.org>
4161
4162         Talk about "native Windows API", not "Woe32".
4163         * lib/accept4.c: Update comments to mention native Windows.
4164         * lib/execute.c: Likewise.
4165         * lib/fatal-signal.c: Likewise.
4166         * lib/localcharset.c: Likewise.
4167         * lib/nanosleep.c: Likewise.
4168         * lib/nl_langinfo.c: Likewise.
4169         * lib/pclose.c: Likewise.
4170         * lib/pipe-filter-gi.c: Likewise.
4171         * lib/pipe-filter-ii.c: Likewise.
4172         * lib/pipe.c: Likewise.
4173         * lib/pipe2.c: Likewise.
4174         * lib/popen.c: Likewise.
4175         * lib/progreloc.c: Likewise.
4176         * lib/relocatable.c: Likewise.
4177         * lib/sigaction.c: Likewise.
4178         * lib/sigprocmask.c: Likewise.
4179         * lib/spawn-pipe.h: Likewise.
4180         * lib/spawn-pipe.c: Likewise.
4181         * lib/spawni.c: Likewise.
4182         * lib/stat-time.h: Likewise.
4183         * lib/w32spawn.h: Likewise.
4184         * tests/test-isatty.c: Likewise.
4185         * lib/config.charset: More comments.
4186         * doc/gnulib-intro.texi: Mention native Windows.
4187         * doc/posix-functions/_Exit_C99.texi: Likewise.
4188         * doc/posix-headers/fcntl.texi: Likewise.
4189
4190 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
4191
4192         argp: Avoid crash if translator uses % characters in a translation.
4193         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
4194         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4195
4196 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
4197
4198         doc: C11 and C++11 are now official
4199         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
4200         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
4201         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
4202         * modules/stdalign:
4203         Replace references to draft C1X to C11, and to draft C++0X to C++11.
4204
4205 2012-01-06  Bruno Haible  <bruno@clisp.org>
4206
4207         uc-is-grapheme-break tests: Tweak.
4208         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
4209         message.
4210
4211 2012-01-06  Bruno Haible  <bruno@clisp.org>
4212
4213         test-init.sh: correct the test for diff -u
4214         * tests/test-init.sh: Also redirect stdout to /dev/null.
4215
4216 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
4217
4218         Use ', not `, for quoting output.
4219         * build-aux/announce-gen (usage, sizes, print_news_deltas)
4220         (print_changelog_deltas, get_tool_versions, main program):
4221         * build-aux/git-version-gen:
4222         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
4223         * build-aux/move-if-change (help):
4224         * build-aux/useless-if-before-free (usage, main program):
4225         * check-module (parse_module_file, usage)
4226         (find_included_lib_files, check_module):
4227         * lib/argmatch.c (main) [TEST]:
4228         * lib/argp-help.c (_help):
4229         * lib/getopt1.c (main) [TEST]:
4230         * lib/git-merge-changelog.c (usage):
4231         * lib/xstrtol-error.c (xstrtol_error):
4232         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
4233         * m4/argz.m4 (gl_FUNC_ARGZ):
4234         * m4/bison.m4 (gl_BISON):
4235         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
4236         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
4237         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
4238         * m4/fpending.m4 (gl_PREREQ_FPENDING):
4239         * m4/gc-random.m4 (gl_GC_RANDOM):
4240         * m4/intl.m4 (gt_CHECK_DECL):
4241         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
4242         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
4243         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
4244         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
4245         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
4246         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
4247         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
4248         * tests/test-dirname.c (main):
4249         * tests/test-getpass.c (main):
4250         * tests/test-iconvme.c (main):
4251         * tests/test-parse-datetime.c (LOG):
4252         * tests/test-xstrtoimax.sh:
4253         * tests/test-xstrtol.sh:
4254         * tests/test-xstrtoll.sh:
4255         * tests/test-xstrtoumax.sh:
4256         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
4257         * top/GNUmakefile (abort-due-to-no-makefile):
4258         Quote 'like this', not `like this', as per the recent change to
4259         the GNU coding standards.
4260
4261 2012-01-05  Bruno Haible  <bruno@clisp.org>
4262
4263         strtoimax: Don't force a replacement on systems where intmax_t is int.
4264         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
4265         'intmax_t' is not larger than 'int'.
4266         Reported by Pádraig Brady <P@draigBrady.com>.
4267
4268 2012-01-05  Bruno Haible  <bruno@clisp.org>
4269
4270         doc: Mention NetBSD bugs.
4271         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4272         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4273
4274 2012-01-05  Bruno Haible  <bruno@clisp.org>
4275
4276         strtoumax tests: Enhance tests.
4277         * tests/test-strtoumax.c (main): Add tests for large values.
4278
4279 2012-01-05  Bruno Haible  <bruno@clisp.org>
4280
4281         strtoimax: Work around AIX 5.1 bug.
4282         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4283         definition.
4284         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
4285         Set HAVE_STRTOIMAX.
4286         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
4287         REPLACE_STRTOIMAX.
4288         * modules/inttypes-incomplete (Makefile.am): Substitute
4289         REPLACE_STRTOIMAX.
4290         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
4291         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
4292         (Depends-on): Update conditions.
4293         * tests/test-strtoimax.c (main): Add tests for large values.
4294         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
4295
4296 2012-01-05  Bruno Haible  <bruno@clisp.org>
4297
4298         inttypes: Modernize.
4299         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
4300         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
4301         (Makefile.am): Update inttypes.h rule.
4302
4303 2012-01-05  Jim Meyering  <meyering@redhat.com>
4304
4305         init.sh: don't waste a subshell just to redirect stderr
4306         * tests/init.sh: In testing for diff -u and diff -c, use a
4307         stderr-redirecting exec inside `...` rather than a subshell.
4308
4309         test-init.sh: avoid failure on HP-UX 11.00
4310         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
4311         resolves to diff -c or cmp.  Reported by Bruno Haible.
4312
4313 2012-01-05  Bruno Haible  <bruno@clisp.org>
4314
4315         Tests for module 'strtoull'.
4316         * modules/strtoull-tests: New file.
4317         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
4318
4319 2012-01-05  Bruno Haible  <bruno@clisp.org>
4320
4321         Tests for module 'strtoll'.
4322         * modules/strtoll-tests: New file.
4323         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
4324
4325 2012-01-05  Bruno Haible  <bruno@clisp.org>
4326
4327         Tests for module 'strtoul'.
4328         * modules/strtoul-tests: New file.
4329         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
4330
4331 2012-01-05  Bruno Haible  <bruno@clisp.org>
4332
4333         Tests for module 'strtol'.
4334         * modules/strtol-tests: New file.
4335         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
4336
4337 2012-01-04  Jim Meyering  <meyering@redhat.com>
4338
4339         test-init.sh: accommodate Solaris 5.10's different diff -u output
4340         * tests/test-init.sh: Also exempt @@ lines from the comparison
4341         of diff output, since Solaris 5.10 and GNU diff formats differ.
4342         Reported by Stefano Lattarini.
4343
4344 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
4345
4346         test-posixtm: don't assume signed integer wraparound
4347         * tests/test-posixtm.c (main): Don't assume wraparound semantics
4348         after signed integer overflow.  Inspired by (though it may not
4349         fix) Bruno Haible's bug report in
4350         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
4351
4352         Spell out "Windows 9x" and "Windows XP".
4353         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
4354         "Windows 9x" and "WinXP" with "Windows XP".
4355
4356 2012-01-04  Jim Meyering  <meyering@redhat.com>
4357
4358         test-vc-list-files-cvs.sh: remove obsolete comment
4359         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
4360         double exit.  Now that's all encapsulated via skip_ and Exit.
4361
4362 2012-01-04  Bruno Haible  <bruno@clisp.org>
4363
4364         Talk about "native Windows API", not "Win32".
4365         * lib/classpath.c: Update comments to mention native Windows.
4366         * lib/csharpexec.c: Likewise.
4367         * lib/dup2.c: Likewise.
4368         * lib/error.c: Likewise.
4369         * lib/fcntl.c: Likewise.
4370         * lib/filename.h: Likewise.
4371         * lib/findprog.c: Likewise.
4372         * lib/get-rusage-as.c: Likewise.
4373         * lib/get-rusage-data.c: Likewise.
4374         * lib/getpagesize.c: Likewise.
4375         * lib/javaexec.c: Likewise.
4376         * lib/msvc-inval.c: Likewise.
4377         * lib/msvc-nothrow.c: Likewise.
4378         * lib/nanosleep.c: Likewise.
4379         * lib/nonblocking.c: Likewise.
4380         * lib/printf-parse.c: Likewise.
4381         * lib/setlocale.c: Likewise.
4382         * lib/sigaction.c: Likewise.
4383         * lib/strerror_r.c: Likewise.
4384         * lib/tmpdir.c: Likewise.
4385         * lib/vasnprintf.c: Likewise.
4386         * lib/w32spawn.h: Likewise.
4387         * lib/waitpid.c: Likewise.
4388         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
4389         * m4/locale-ar.m4: Likewise.
4390         * m4/locale-fr.m4: Likewise.
4391         * m4/locale-ja.m4: Likewise.
4392         * m4/locale-tr.m4: Likewise.
4393         * m4/locale-zh.m4: Likewise.
4394         * m4/printf.m4: Likewise.
4395         * tests/test-cloexec.c: Likewise.
4396         * tests/test-copy-acl.sh: Likewise.
4397         * tests/test-copy-file.sh: Likewise.
4398         * tests/test-file-has-acl.sh: Likewise.
4399         * tests/test-set-mode-acl.sh: Likewise.
4400         * tests/test-dup-safer.c: Likewise.
4401         * tests/test-dup2.c: Likewise.
4402         * tests/test-dup3.c: Likewise.
4403         * tests/test-fcntl.c: Likewise.
4404         * tests/test-nonblocking-pipe.h: Likewise.
4405         * tests/test-nonblocking-socket.h: Likewise.
4406         * tests/test-pipe.c: Likewise.
4407         * tests/test-pipe2.c: Likewise.
4408         * tests/test-spawn-pipe-child.c: Likewise.
4409         * doc/acl-resources.txt: Likewise.
4410         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4411         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
4412         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
4413         * lib/localcharset.c: Update comments to mention native Windows.
4414         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4415         * lib/localename.c: Likewise.
4416         * lib/progreloc.c: Likewise.
4417         * lib/relocatable.c: Likewise.
4418         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4419         (windows_compute_revents): Renamed from win32_compute_revents.
4420         (windows_compute_revents_socket): Renamed from
4421         win32_compute_revents_socket.
4422         * lib/select.c: Update comments to mention native Windows.
4423         (windows_poll_handle): Renamed from win32_poll_handle.
4424         * m4/threadlib.m4: Update comments to mention native Windows.
4425         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
4426         --enable-threads=windows instead of --enable-threads=win32. Set
4427         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
4428         * lib/glthread/lock.h: Update comments to mention native Windows.
4429         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
4430         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
4431         USE_WIN32_THREADS.
4432         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
4433         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
4434         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
4435         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
4436         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
4437         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
4438         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
4439         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
4440         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
4441         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
4442         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
4443         * tests/test-tls.c: Likewise.
4444         Rationale:
4445         Microsoft renamed the "Win32 API" to "Windows API", as it is available
4446         on both 32-bit and 64-bit Windows systems.
4447         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
4448         line of distinction is between "native Windows" on one side and Unix/
4449         POSIX systems on the other side. More details in
4450         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
4451         Suggested by Paul Eggert.
4452
4453 2012-01-03  Bruno Haible  <bruno@clisp.org>
4454
4455         isatty: Support for MSVC 9.
4456         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
4457         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
4458         (_isatty_nothrow): New function.
4459         (isatty): Use it instead of _isatty.
4460         (IsConsoleHandle): Add comment, from Paolo Bonzini.
4461         * lib/poll.c (IsConsoleHandle): Likewise.
4462         * lib/select.c (IsConsoleHandle): Likewise.
4463         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
4464         (gl_PREREQ_ISATTY): New macro.
4465         * modules/isatty (Depends-on): Add msvc-inval.
4466         (configure.ac): Invoke gl_PREREQ_ISATTY.
4467
4468 2012-01-03  Jim Meyering  <meyering@redhat.com>
4469
4470         maint.mk: remove temporary transition aid from over 1.5 years ago
4471         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
4472         purpose was to aid in the transition (avoiding silent malfunction)
4473         from that old name to the new _sc_search_regexp.  This shim was
4474         added by commit 219c504b.
4475
4476         init.sh: do not try to accommodate compare arguments starting with "-"
4477         * tests/init.sh (compare_dev_null_): Do not try to accommodate
4478         compare arguments that start with "-".  Besides, we do not worry
4479         about this when invoking diff or cmp; why start now with sed?
4480         Using "--" to separate options from argument would trigger sed
4481         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
4482         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
4483
4484 2012-01-02  Bruno Haible  <bruno@clisp.org>
4485
4486         Enhance tests for module 'isatty'.
4487         * modules/isatty-tests (Depends-on): Add pipe-posix.
4488         * tests/test-isatty.c: Include <fcntl.h>.
4489         (DEV_NULL): New macro.
4490         (main): Test the resut of isatty() also on regular files, pipes, and
4491         /dev/null.
4492
4493         New module 'isatty'.
4494         * lib/unistd.in.h (isatty): New declaration.
4495         * lib/isatty.c: New file, based on an idea of
4496         Bastien Roucariès <roucaries.bastien@gmail.com>.
4497         * m4/isatty.m4: New file.
4498         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
4499         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
4500         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
4501         REPLACE_ISATTY.
4502         * modules/isatty: New file.
4503         * doc/posix-functions/isatty.texi: Mention the new module.
4504         Suggested by Paolo Bonzini.
4505
4506 2012-01-02  Bruno Haible  <bruno@clisp.org>
4507
4508         canonicalize: Tweak 2011-12-29 commit.
4509         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
4510         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
4511
4512 2012-01-02  Jim Meyering  <meyering@redhat.com>
4513
4514         gitlog-to-changelog: describe input syntax in --help output
4515         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
4516
4517         gitlog-to-changelog: fix typo in --help: show backslash before email @
4518         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
4519         in sources, but not in actual output.
4520
4521 2011-12-30  Jim Meyering  <meyering@redhat.com>
4522
4523         gitlog-to-changelog: don't malfunction when name contains %-directive
4524         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
4525         in a name string cause trouble.  E.g., with a user name of "%s",
4526         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
4527
4528 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
4529
4530         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
4531         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
4532         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
4533         the "  (tiny change)" notation that is appended to the standard
4534         ChangeLog "date  name  email" header line.
4535
4536 2012-01-01  Jim Meyering  <meyering@redhat.com>
4537
4538         test-framework-sh: init.sh: fix "make dist" failure
4539         When using gnulib-tool's --with-tests option and any module that
4540         depends on test-framework-sh, "make dist" would fail due to the
4541         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
4542         in the gltests directory, and not in the gllib/ directory.
4543         One way to work around that is to move the EXTRA_DIST += init.sh
4544         from the primary module to the -tests one:
4545         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
4546         * modules/test-framework-sh (Makefile.am): ...not here.
4547         Reported by Tom G. Christensen in
4548         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
4549
4550         version-etc: update copyright year reported by --version
4551         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
4552
4553 2011-12-31  Pádraig Brady  <P@draigBrady.com>
4554
4555         canonicalize: only stat() if required
4556         * lib/canonicalize.c (canonicalize_filename_mode):
4557         Avoid calling l?stat() when both CAN_MISSING,
4558         and CAN_NOLINKS are set, as we neither need
4559         to resolve symlinks or test component existence.
4560
4561 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4562
4563         doc: cover st_ino issues once; add OpenVMS etc.
4564         * doc/posix-functions/stat.texi (stat):
4565         * doc/posix-functions/lstat.texi (lstat):
4566         * doc/posix-functions/fstatat.texi (fstatat):
4567         * doc/posix-functions/fstat.texi (fstat):
4568         Move general 'struct stat' stuff to sys_stat.texi,
4569         leaving behind a pointer.
4570         * doc/posix-headers/sys_stat.texi (sys/stat.h):
4571         Merge duplicate info about 'struct stat' problems into here.
4572         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
4573         and suggest partial workarounds.
4574
4575         same-inode: port to OpenVMS
4576         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
4577         three st_ino values.
4578
4579 2011-12-30  Pádraig Brady  <P@draigBrady.com>
4580
4581         canonicalize: fix references to stat() and lstat()
4582         * lib/canonicalize.c (canonicalize_filename_mode):
4583         Ensure references always resolve to a replacement
4584         function if required (even via a macro).
4585
4586 2011-12-30  Jim Meyering  <meyering@redhat.com>
4587
4588         gitlog-to-changelog: remove a little duplication
4589         * build-aux/gitlog-to-changelog (main): Grep @lines once,
4590         rather than twice.
4591
4592 2011-12-29  Pádraig Brady  <P@draigBrady.com>
4593
4594         canonicalize: add support for not resolving symlinks
4595         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
4596         indicate we don't want to follow symlinks.  Also
4597         provide CAN_MODE_MASK to aid setting these existing
4598         mutually exclusive values.
4599         * lib/canonicalize.c (canonicalize_filename_mode):
4600         Extract the flags from can_mode parameter, which
4601         are currently just used to select between stat()
4602         and lstat().  Also ensure that mutually exclusive
4603         values are flagged immediately as invalid.
4604         * tests/test-canonicalize.c: Verify symlinks are
4605         not followed, and that invalid flag combinations
4606         are diagnosed.
4607
4608 2011-12-25  Jim Meyering  <meyering@redhat.com>
4609
4610         gitlog-to-changelog: do not clump multi-paragraph entries
4611         Identical header lines (date,name,email+coauthors) are suppressed,
4612         thus putting all entries with those same characteristics under
4613         a single header.  However, when a log entry consists of two or
4614         more paragraphs, it may not be clear where it starts and ends.
4615         This change makes it so that such an entry is always separated
4616         from others by a header line, even when that header would
4617         otherwise be suppressed.
4618         * build-aux/gitlog-to-changelog: Implement the above.
4619         Inspired by a related request from Stefano Lattarini in
4620         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
4621
4622 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4623
4624         announce-gen: fix `cmd' typo in diagnostic
4625         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
4626         diagnostic: a missing '$' meant that the command was not output.
4627
4628 2011-12-23  Jim Meyering  <meyering@redhat.com>
4629
4630         test-framework-sh: distribute init.sh
4631         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
4632         Otherwise, "make -C gnulib-tests check" (at least in grep) would
4633         fail due to the lack of init.sh.
4634
4635         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
4636         * modules/atexit-tests: Rather than listing tests/init.sh,
4637         now that there's a module for it, simply depend on that new module.
4638         * modules/closein-tests: Likewise.
4639         * modules/exclude-tests: Likewise.
4640         * modules/getcwd-tests: Likewise.
4641         * modules/perror-tests: Likewise.
4642         * modules/pread-tests: Likewise.
4643         * modules/pwrite-tests: Likewise.
4644         * modules/vc-list-files-tests: Likewise.
4645         * modules/verify-tests: Likewise.
4646         * modules/xalloc-die-tests: Likewise.
4647         * modules/xstrtoimax-tests: Likewise.
4648         * modules/xstrtol-tests: Likewise.
4649         * modules/xstrtoll-tests: Likewise.
4650         * modules/xstrtoumax-tests: Likewise.
4651         * modules/yesno-tests: Likewise.
4652
4653 2011-12-22  Jim Meyering  <meyering@redhat.com>
4654
4655         test-framework-sh: add minimal tests of init.sh's compare function
4656         * modules/test-framework-sh-tests: New file.
4657         * tests/test-init.sh: New file.
4658
4659         test-framework-sh: new module
4660         * modules/test-framework-sh: New file.
4661         * MODULES.html.sh (Support for maintaining and releasing projects):
4662         List it.
4663
4664         init.sh: do not emit simulated diff output to stderr
4665         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
4666
4667 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4668
4669         .gitignore: ignore gnulib.dvi and regex.info
4670         * doc/.gitignore:add gnulib.dvi and regex.info
4671
4672 2011-12-22  Jim Meyering  <meyering@redhat.com>
4673
4674         init.sh: correct previous change
4675         * tests/init.sh (compare): My previous change was wrong.
4676         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
4677
4678         init.sh: avoid unwarranted test failure when using "set -e"
4679         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
4680         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
4681         a use like "compare exp out" would get evoke an unconditional failure.
4682
4683 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
4684
4685         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
4686         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
4687         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
4688         autoreconf that did not.
4689         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
4690         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4691
4692 2011-12-17  Jim Meyering  <meyering@redhat.com>
4693
4694         bootstrap: remove some now-unneeded code
4695         This script arose back when gnulib-tool was young.
4696         Since then, it has seen improvements that render much of this
4697         script unnecessary.  In particular, it can now make symlinks
4698         to the files it uses.  Also, I no longer see as much value in
4699         marking files as read-only via comments.
4700         If you relied on the symlink-creation feature of the preceding
4701         version of this script, you can get most of that functionality
4702         by adding the --symlink option to the definition of
4703         gnulib_tool_option_extras in your bootstrap.conf file.
4704         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
4705         Run autopoint and libtoolize *before* gnulib-tool.
4706         After it, run an abbreviated autoreconf, rather than a loop around
4707         all tools.
4708         (slirp, bt_mark_as_generated): Remove functions.
4709
4710 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4711
4712         ftoastr: fix typo
4713         * lib/ftoastr.h: Fix misspelling in comment.
4714
4715 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
4716
4717         * top/README-release: fix punctuation.
4718
4719 2011-12-17  Jim Meyering  <meyering@redhat.com>
4720
4721         bootstrap: correct the recent buildreq change
4722         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
4723         had no effect.
4724         * build-aux/bootstrap (buildreq): Bracket each search term with
4725         "*...*", so that the shell "case" statement works as intended.
4726         Add comments.
4727
4728 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
4729
4730         build: let bootstrap resort to wget when downloading .po files
4731         * build-aux/bootstrap (download_po_files): Fallback to wget when
4732         downloading the .po files via rsync fails.  This is necessary to
4733         bootstrap from behind a strict firewall.
4734
4735 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4736
4737         stdint: don't assume C++11 when compiling with g++
4738         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
4739         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
4740         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
4741         work also in C++ before C++11, as that improperly inhibits
4742         generating a substitute stdint.h for that case.
4743
4744 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4745
4746         alloca: protect comment from gnulib-tool
4747         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
4748         that gnulib-tool doesn't think it's a license, and munge it to
4749         say "GCC version 3".
4750
4751 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
4752
4753         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
4754         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
4755         $(abs_top_builddir) instead of $(top_builddir).
4756
4757 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
4758
4759         strftime-tests: also test nanoseconds
4760         * tests/test-strftime.c (T): Add a test of %N.
4761
4762 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
4763
4764         inttypes, stdint: add C++11 support
4765         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
4766         when including inttypes.h and stdint.h.  Support this change to
4767         the standard.
4768         * doc/posix-headers/inttypes.texi (inttypes.h):
4769         * doc/posix-headers/stdint.texi (stdint.h): Document this.
4770         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
4771         Define if not defined already, for the benefit of pre-C++11 hosts.
4772         Define the standard format macros (e.g., PRId8) always.
4773         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
4774         Likewise, if __cpluspus.  Define the standard constant and limit
4775         macros (e.g., INT8_C, INT8_MAX) always.
4776         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
4777         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
4778         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
4779         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
4780         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
4781         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
4782         Likewise.
4783
4784 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4785
4786         nonblocking tests: Fix test failure on Linux/PPC.
4787         Suggested by Prerna Saxena in
4788         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
4789         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
4790         Set to 1100000.
4791
4792 2011-12-12  Jim Meyering  <meyering@redhat.com>
4793
4794         argmatch: don't hard-code `' when listing valid option arguments
4795         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
4796         use the quote function to add quotes.  Use fputs rather than
4797         fprintf for the format string with no format directive.
4798
4799 2011-12-07  Eric Blake  <eblake@redhat.com>
4800
4801         bootstrap: detect tools required by gnulib-tool
4802         * build-aux/bootstrap (buildreq): Provide minimum implicit
4803         dependencies.
4804         * DEPENDENCIES: Mention patch as a prereq.
4805
4806 2011-12-04  Bruno Haible  <bruno@clisp.org>
4807
4808         sethostname: Port to Windows platforms.
4809         * lib/sethostname.c: Provide an alternate implementation for Windows
4810         platforms.
4811         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
4812         (main): Skip the test if sethostname() fails with EPERM. On Windows
4813         platforms, don't check the result of gethostname().
4814
4815 2011-12-04  Bruno Haible  <bruno@clisp.org>
4816             Jim Meyering  <meyering@redhat.com>
4817
4818         tests: Avoid spurious error message on platforms without mktemp program.
4819         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
4820
4821 2011-12-04  Bruno Haible  <bruno@clisp.org>
4822
4823         sethostname: Fix documentation.
4824         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
4825         "not fixed" section.
4826
4827 2011-12-03  Bruno Haible  <bruno@clisp.org>
4828
4829         gnulib-tool: Verify that the License field is present and non-empty.
4830         * gnulib-tool (func_get_license_raw): New function, extracted from
4831         func_get_license.
4832         (func_get_license): Use it. Warn if the module is not a test module and
4833         has no license.
4834         Suggested by Jim Meyering.
4835
4836 2011-12-03  Bruno Haible  <bruno@clisp.org>
4837
4838         sethostname tests: Fix link error on mingw.
4839         * tests/test-sethostname1.c: New file, extracted from
4840         tests/test-sethostname.c.
4841         * tests/test-sethostname2.c: New file, extracted from
4842         tests/test-sethostname.c.
4843         * tests/test-sethostname.c: Remove file.
4844         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
4845         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
4846         (Depends-on): Add gethostname.
4847         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
4848         Link the latter with $(GETHOSTNAME_LIB).
4849
4850         sethostname tests: Fix compilation error on mingw.
4851         * tests/test-sethostname.c: Don't include <sys/types.h>.
4852         (geteuid): Use a dummy value without uid_t.
4853         * modules/sethostname-tests (Depends-on): Remove sys_types.
4854
4855         sethostname tests: Avoid a gcc warning.
4856         * tests/test-sethostname.c (main): Remove an unused variable.
4857
4858         Tweak last commit.
4859         * modules/sethostname-tests (Files): Sort by decreasing importance.
4860         (configure.ac): Check for geteuid.
4861         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
4862         the test when there's nothing to test. Drop an unnecessary cast.
4863         Improve an error message. Verify that the final sethostname() call
4864         succeeds.
4865
4866 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4867
4868         Add a test suite for the sethostname module.
4869         * modules/sethostname-tests: New file.  A test program
4870         for the sethostname module.
4871         * tests/test-sethostname.c: Likewise.
4872
4873 2011-12-03  Bruno Haible  <bruno@clisp.org>
4874
4875         Tweak last commit.
4876         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
4877         Fix preprocessor directives indentation. Fix typos.
4878         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
4879         * modules/unistd (Makefile): Likewise.
4880
4881 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4882
4883         Integrate the sethostname module into unistd.
4884         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
4885         into the unistd.h header.
4886         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
4887         preprocessor directives.
4888         * modules/unistd: Setup the Makefile substitutions of the
4889         SETHOSTNAME preprocessor directives.
4890
4891 2011-12-03  Bruno Haible  <bruno@clisp.org>
4892
4893         Tweak last commit.
4894         * lib/sethostname.c: Don't include <string.h>.
4895         (sethostname): No need to copy the argument string to the stack. Don't
4896         call clearerr. Preserve errno when fprintf failed.
4897         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
4898         Don't invoke AC_REPLACE_FUNCS.
4899         * modules/sethostname (Link): Remove empty section.
4900         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
4901         failure problem.
4902
4903 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4904
4905         New module 'sethostname'.
4906         * lib/sethostname.c (sethostname): New file.  Provide sethostname
4907         for systems that lack it.
4908         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
4909         sethostname declaration and function.
4910         * modules/sethostname: New file.  Define the sethostname module.
4911
4912 2011-12-03  Bruno Haible  <bruno@clisp.org>
4913
4914         Tweak last commit.
4915         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
4916
4917 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4918
4919         Split the HOST_NAME_MAX detection into a separate m4 macro.
4920         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
4921         macro so it can be used by the pending sethostname module.
4922
4923 2011-12-03  Bruno Haible  <bruno@clisp.org>
4924
4925         Fix module descriptions syntax.
4926         * modules/argv-iter (License): Fix syntax.
4927         * modules/di-set (License): Likewise.
4928         * modules/ino-map (License): Likewise.
4929         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
4930
4931 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
4932
4933         stdalign: port to Clang 3.0
4934         Problem reported by Simon Josefsson in
4935         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
4936         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
4937         which has <stdalign.h> but which does not define alignof.
4938         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
4939
4940 2011-12-01  Eric Blake  <eblake@redhat.com>
4941
4942         mktempd: silence dd usage
4943         * build-aux/mktempd (rand_bytes): Silence dd.
4944
4945 2011-11-30  Simon Josefsson  <simon@josefsson.org>
4946
4947         manywarnings: Don't mention gcc version in docstring.
4948         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
4949         Jim Meyering <meyering@redhat.com>.
4950
4951 2011-11-30  Jim Meyering  <meyering@redhat.com>
4952
4953         hash: mark a few floating point constants with "f" suffix
4954         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
4955         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
4956         floating point constants with "f", since they're destined to be
4957         saved/used as "float"s.
4958
4959 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
4960
4961         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
4962         * tests/test-float.c (test_long_double): Correct and re-enable the
4963         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
4964
4965 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
4966
4967         Avoid subtracting two pointers that don't point into the same block.
4968         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
4969         only pointers into the same memory block are subtracted. We cannot
4970         assume that sizeof (ptrdiff_t) == sizeof (void *).
4971
4972 2011-11-29  Eric Blake  <eblake@redhat.com>
4973
4974         maint.mk: add syntax check for use of compare from init.sh
4975         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
4976         moved here from coreutils.
4977
4978         manywarnings: drop -Wunsuffixed-float-constants
4979         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
4980         '1.0D', which is the only way to silence this warning for 'double'.
4981
4982 2011-11-29  Jim Meyering  <meyering@redhat.com>
4983
4984         hash: mark compute_bucket_size with the pure attribute
4985         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
4986
4987         quotearg, propername: correct pragma guard expression
4988         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
4989         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
4990
4991 2011-11-28  Jim Meyering  <meyering@redhat.com>
4992
4993         propername: do not mark proper_name with the const attribute
4994         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
4995         since it examines data pointed to by its parameter.
4996         * lib/propername.c (proper_name): Instead, add a pragma to suppress
4997         the suggestion from -Wsuggest-attribute=const.
4998
4999         propername: mark one more function as const
5000         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
5001
5002 2011-11-27  Jim Meyering  <meyering@redhat.com>
5003
5004         mark functions with const and pure attributes
5005
5006         Mark functions per suggestions from gcc-4.6 when using these options:
5007         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
5008         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
5009         Follow these guidelines: when possible, apply the attribute to
5010         an extern declaration, not to its definition.  Apply it to the
5011         definition only when the definition is static.
5012         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
5013         * lib/argv-iter.h (argv_iter_n_args): Likewise.
5014         * lib/base64.h (isbase64): Likewise.
5015         * lib/basename-lgpl.c (last_component, base_len): Likewise.
5016         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
5017         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
5018         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
5019         (c_tolower, c_toupper): Likewise.
5020         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
5021         * lib/chdir-long.c (find_non_slash): Likewise.
5022         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
5023         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
5024         * lib/file-type.h (file_type): Likewise.
5025         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
5026         * lib/filevercmp.c (verrevcmp): Likewise.
5027         * lib/freadahead.h (freadahead): Likewise.
5028         * lib/fts.c (fts_maxarglen): Likewise.
5029         * lib/hash-pjw.h (hash_pjw): Likewise.
5030         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
5031         * lib/hash.c (is_prime, next_prime): Likewise.
5032         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
5033         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
5034         (hash_table_ok, hash_get_first, hash_string): Likewise.
5035         (compute_bucket_size): Likewise.
5036         * lib/i-ring.h (i_ring_empty): Likewise.
5037         * lib/isnan.c (isnanl): Likewise.
5038         * lib/math.h (isnanl, rpl_isnanl): Likewise.
5039         * lib/memcasecmp.h (memcasecmp): Likewise.
5040         * lib/memchr2.h (memchr2): Likewise.
5041         * lib/memcmp2.h (memcmp2): Likewise.
5042         * lib/parse-datetime.y (lookup_zone): Likewise.
5043         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
5044         [!WINDOWS_SOCKETS]: Likewise.
5045         * lib/strnlen1.h (strnlen1): Likewise.
5046         * lib/uniwidth.in.h (uc_width): Likewise.
5047         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
5048         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
5049         (quoting_options_from_style): Add a comment.
5050         * lib/propername.h (proper_name): Add a comment.
5051
5052 2011-11-27  Bruno Haible  <bruno@clisp.org>
5053
5054         Remove unused macros from !_LIBC code in glibc-borrowed files.
5055         * lib/fnmatch.c (STRCOLL): Remove macro.
5056         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
5057         * lib/glob.c (__stat, __readdir64): Remove macros.
5058         * lib/tempname.c (__open64, __xstat64): Remove macros.
5059         Suggested by Paul Eggert.
5060
5061 2011-11-27  Bruno Haible  <bruno@clisp.org>
5062
5063         getcwd: Fix link error on MSVC 9.
5064         * modules/getcwd (Depends-on): Add readdir, rewinddir.
5065
5066 2011-11-27  Bruno Haible  <bruno@clisp.org>
5067
5068         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
5069         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
5070         HAVE_OPENDIR is 0.
5071         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
5072         HAVE_CLOSEDIR is 0.
5073         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
5074         is 0.
5075         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
5076
5077 2011-11-27  Bruno Haible  <bruno@clisp.org>
5078
5079         getcwd: Fix bug from 2011-08-17.
5080         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
5081         platforms that need it.
5082         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
5083         code of 4 to be a failure, not a success. This ensures that
5084         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
5085
5086 2011-11-27  Bruno Haible  <bruno@clisp.org>
5087
5088         binary-io tests: Avoid test failure on mingw when libtool is used.
5089         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
5090         Don't verify the size of t-bin-out1.tmp here.
5091         * tests/test-binary-io.sh: Verify it here.
5092         Reported by Simon Josefsson.
5093
5094 2011-11-26  Bruno Haible  <bruno@clisp.org>
5095
5096         Fix conflict between two instantiations of module 'unistd'.
5097         * gnulib-tool (func_emit_autoconf_snippet): Substitute
5098         ${include_guard_prefix} also in the autoconf snippet.
5099         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
5100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
5101         GNULIB_UNISTD_H_GETOPT.
5102         * modules/getopt-posix (configure.ac): Set the
5103         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
5104         * modules/getopt-gnu (configure.ac): Likewise.
5105         * modules/unistd (Makefile.am): Change the substitution value of
5106         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
5107         Reported by Simon Josefsson.
5108
5109 2011-11-25  Bruno Haible  <bruno@clisp.org>
5110
5111         pagealign_alloc: Doc and comments.
5112         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
5113         module.
5114         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
5115
5116 2011-11-25  Jim Meyering  <meyering@redhat.com>
5117
5118         test-update-copyright.sh: avoid false-positive failure
5119         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
5120         around false positive failure on Cygwin/Windows.  The latter was
5121         matching erroneously-created files with names like
5122         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
5123
5124 2011-11-25  Simon Josefsson  <simon@josefsson.org>
5125
5126         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
5127         * m4/valgrind-tests.m4: Check that the parameters that will be
5128         used works, not just a subset of them.  Reported by Bruno Haible
5129         <bruno@clisp.org>.
5130
5131 2011-11-24  Jim Meyering  <meyering@redhat.com>
5132
5133         test-stdalign.c: comment out long double tests
5134         * tests/test-stdalign.c: Don't try to reduce alignment of long double
5135         variables.  That provokes errors like this from gcc-4.7.0 20111124:
5136         error: '_Alignas' specifiers cannot reduce alignment of \
5137         'static_longdouble_alignas'.
5138
5139 2011-11-22  Jim Meyering  <meyering@redhat.com>
5140
5141         init.sh: make "compare /dev/null FILE" output more readable
5142         * tests/init.sh (compare_): Document the preferred order of arguments.
5143         (emit_diff_u_header_): New function.
5144         (compare_dev_null_): Emit a simulated diff, rather than just the
5145         contents of the unexpected file.  Suggestion from Bruno Haible.
5146
5147 2011-11-21  Jim Meyering  <meyering@redhat.com>
5148             Eric Blake  <eblake@redhat.com>
5149
5150         init.sh: work around OSF/1 5.1's mishandling of /dev/null
5151         * tests/init.sh: Make our compare function slightly more portable.
5152         Reported by Bruno Haible in
5153         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
5154
5155 2011-11-21  Simon Josefsson  <simon@josefsson.org>
5156
5157         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
5158         before using it, in code that ends up in config.h.
5159
5160 2011-11-20  Bruno Haible  <bruno@clisp.org>
5161
5162         getcwd: Work around getcwd bug on AIX 5..7.
5163         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
5164         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
5165         Use a different value for gl_cv_func_getcwd_path_max. Move the
5166         definition of HAVE_PARTLY_WORKING_GETCWD from here...
5167         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
5168         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
5169         Define HAVE_MINIMALLY_WORKING_GETCWD.
5170         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
5171         where it is not even minimally working, that is, on AIX.
5172         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
5173         m4/getcwd-path-max.m4.
5174         (main): Update exit code computation.
5175         * doc/posix-functions/getcwd.texi: Mention list of platforms where
5176         getcwd does not handle long file names.
5177
5178 2011-11-20  Bruno Haible  <bruno@clisp.org>
5179
5180         getcwd: Fix bug from 2009-09-10.
5181         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
5182         like "no".
5183
5184 2011-11-20  Simon Josefsson  <simon@josefsson.org>
5185
5186         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
5187
5188 2011-11-20  Bruno Haible  <bruno@clisp.org>
5189
5190         fma tests: Avoid shadowing local variables.
5191         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
5192         expected.
5193
5194 2011-11-20  Bruno Haible  <bruno@clisp.org>
5195
5196         copysignf tests: Fix.
5197         * tests/test-copysignf.c: Fix signature check.
5198
5199 2011-11-20  Bruno Haible  <bruno@clisp.org>
5200
5201         fma: Remove unused code.
5202         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
5203         unused macros.
5204
5205 2011-11-20  Bruno Haible  <bruno@clisp.org>
5206
5207         sethostname: Fix doc about AIX.
5208         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
5209         sethostname; it has it.
5210
5211         sethostname: Mention more portability problems.
5212         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
5213         problem.
5214         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
5215
5216 2011-11-19  Bruno Haible  <bruno@clisp.org>
5217
5218         Depend on module fcntl-h when AT_FDCWD is used.
5219         * modules/utimens (Depends-on): Add fcntl-h.
5220         * modules/areadlinkat (Depends-on): Likewise.
5221         * modules/areadlinkat-with-size (Depends-on): Likewise.
5222         * modules/faccessat (Depends-on): Likewise.
5223         * modules/fchmodat (Depends-on): Likewise.
5224         * modules/fchownat (Depends-on): Likewise.
5225         * modules/getcwd (Depends-on): Likewise.
5226         * modules/mkdirat (Depends-on): Likewise.
5227         * modules/mkfifoat (Depends-on): Likewise.
5228         * modules/readlinkat (Depends-on): Likewise.
5229         * modules/symlinkat (Depends-on): Likewise.
5230         * modules/dup2-tests (Depends-on): Likewise.
5231         * modules/fdutimensat-tests (Depends-on): Likewise.
5232         * modules/futimens-tests (Depends-on): Likewise.
5233
5234 2011-11-19  Bruno Haible  <bruno@clisp.org>
5235
5236         euidaccess: Update a comment.
5237         * lib/euidaccess.c: Update comment about platforms with faccessat.
5238
5239 2011-11-19  Bruno Haible  <bruno@clisp.org>
5240
5241         openat: Fix file list.
5242         * modules/openat (Files): Remove lib/at-func.c.
5243
5244 2011-11-19  Bruno Haible  <bruno@clisp.org>
5245
5246         fstatat: Simplify.
5247         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
5248         gnulib should define rpl_fstatat, there is a
5249         "#define fstatat rpl_fstatat" in <sys/stat.h>.
5250
5251 2011-11-19  Bruno Haible  <bruno@clisp.org>
5252
5253         Ensure 'inline' can be used in tests/test-utimens-common.h.
5254         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
5255         * modules/futimens-tests (configure.ac): Likewise.
5256         * modules/utimens-tests (configure.ac): Likewise.
5257         * modules/utimensat-tests (configure.ac): Likewise.
5258
5259 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5260
5261         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
5262         not hash_insert0.
5263         (hash_insert_if_absent): Doc fix.
5264
5265 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5266
5267         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5268
5269 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5270
5271         test-getcwd: disambiguate exit status
5272         * tests/test-getcwd.c (test_long_name): Return 0..7.
5273         (main): Exit with an unambiguous exit status.  The old
5274         code yielded a mysterious mixture of two failure codes.
5275
5276         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5277         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5278         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5279         rpl_fstatat or fstatat.  This should fix the other problem
5280         reported by Kai Habel in
5281         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5282         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5283         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
5284         and I reproduced it on a Solaris 8 host we still have in production.
5285
5286 2011-11-18  Jim Meyering  <meyering@redhat.com>
5287
5288         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
5289         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
5290         Add a sentence to the comment.
5291         (hash_insert0): New function that simply calls hash_insert_if_absent.
5292         * lib/hash.h (hash_insert_if_absent): Declare it.
5293         (hash_insert0): Add deprecation attribute.
5294         (_GL_ATTRIBUTE_DEPRECATED): Define.
5295         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
5296         not hash_insert0.
5297         * NEWS: Mention it, even though it's not really an incompatible change.
5298
5299 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
5300
5301         openat: avoid compilation failure due to lack of <errno.h> inclusion
5302         * lib/openat.c: Include <errno.h>.
5303
5304 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5305
5306         * modules/getcwd (Depends-on): Add fdopendir.
5307         This fixes one of the two problems reported by Kai Habel in
5308         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5309
5310         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
5311         stdalign problem reported by Ian Beckwith in
5312         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
5313         * modules/crypto/gc-arcfour (Depends-on):
5314         Depend conditionally on crypto/arcfour.
5315         * modules/crypto/gc-arctwo (Depends-on):
5316         Depend conditionally on crypto/arctwo.
5317         * modules/crypto/gc-des (Depends-on):
5318         Depend conditionally on crypto/des.
5319         * modules/crypto/gc-hmac-md5 (Depends-on):
5320         Depend conditionally on crypto/hmac-md5.
5321         * modules/crypto/gc-hmac-sha1 (Depends-on):
5322         Depend conditionally on crypto/hmac-sha1.
5323         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
5324         * modules/crypto/gc-md4 (Depends-on):
5325         Depend conditionally on crypto/md4.
5326         * modules/crypto/gc-md5 (Depends-on):
5327         Depend conditionally on crypto/md5.
5328         * modules/crypto/gc-rijndael (Depends-on):
5329         Depend conditionally on crypto/rijndael.
5330         * modules/crypto/gc-sha1 (Depends-on):
5331         Depend conditionally on crypto/sha1.
5332         * modules/crypto/gc-arcfour:
5333         * modules/crypto/gc-arctwo:
5334         * modules/crypto/gc-des:
5335         * modules/crypto/gc-hmac-md5:
5336         * modules/crypto/gc-hmac-sha1:
5337         * modules/crypto/gc-md2:
5338         * modules/crypto/gc-md4:
5339         * modules/crypto/gc-md5:
5340         * modules/crypto/gc-rijndael:
5341         * modules/crypto/gc-sha1:
5342         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
5343         now that the conditional dependencies do the work for us.
5344
5345 2011-11-17  Jim Meyering  <meyering@redhat.com>
5346
5347         tests: factor st_ctime-comparison out of two headers
5348         * tests/test-utimens-common.h (ctime_compare): Define.
5349         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
5350         * tests/test-lutimens.h (test_lutimens): Likewise.
5351         * tests/test-utimens.h (test_utimens): Likewise.
5352
5353         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
5354         Invoke the test program via an init.sh-using wrapper.
5355         * tests/test-getcwd.sh: New file.
5356         * modules/getcwd-tests (Files): Add it.
5357         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
5358
5359 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
5360
5361         gitlog-to-changelog: support multi-author commits.
5362         The FSF cares about keeping track of all authors of patches to its
5363         projects, but Git doesn't provide obvious support for multi-author
5364         changesets. Consensus seems to be forming around the use of extra
5365         Signed-off-by inspired lines in the log message formatted as
5366         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
5367         multi-author commits between version control systems.
5368         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
5369         log message and output in standard ChangeLog multi-author format.
5370         Reported by Peter Rosin <peda@lysator.liu.se>
5371
5372 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
5373             Bruno Haible  <bruno@clisp.org>
5374
5375         Fix some modules' file list.
5376         * modules/fstatat (Files): Add m4/lstat.m4.
5377         * modules/openat (Files): Likewise.
5378         * modules/unlinkat (Files): Likewise.
5379
5380 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
5381
5382         maint.mk: fix tight-scope.mk generation in VPATH builds.
5383         * top/maint.mk (tight-scope.mk): Make sure to prefix file
5384         reference with $(srcdir) so that the file is found correctly even
5385         when running `make syntax-check' in a VPATH build.
5386
5387 2011-11-13  Bruno Haible  <bruno@clisp.org>
5388             Jim Meyering  <meyering@redhat.com>
5389
5390         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
5391         * tests/init.sh (compare): Remove "No differences encountered" or
5392         synonymous output from the 'diff' program.
5393
5394 2011-11-13  Bruno Haible  <bruno@clisp.org>
5395
5396         Makefile: Tweak indentation.
5397         * Makefile: Use tab as first character in every line that contains rule
5398         commands.
5399
5400 2011-11-13  Bruno Haible  <bruno@clisp.org>
5401
5402         Syntax check for copyright statements.
5403         * check-copyright: New file.
5404         * Makefile (sc_check_copyright): New rule.
5405
5406 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5407
5408         * build-aux/git-version-gen: Add --prefix to configure the tag
5409         match string.
5410
5411 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5412
5413         * build-aux/git-version-gen: Add --help and --version.
5414
5415 2011-11-12  Jim Meyering  <meyering@redhat.com>
5416
5417         revamp the other test-exclude?.sh scripts to use init.sh, too
5418         * tests/test-exclude1.sh: Use init.sh.
5419         * tests/test-exclude2.sh: Likewise.
5420         * tests/test-exclude3.sh: Likewise.
5421         * tests/test-exclude4.sh: Likewise.
5422         * tests/test-exclude5.sh: Likewise.
5423         * tests/test-exclude6.sh: Likewise.
5424         * tests/test-exclude7.sh: Likewise.
5425         * tests/test-exclude8.sh: Likewise.
5426         * modules/exclude-tests (Files): List init.sh.
5427
5428         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
5429         These shell scripts ignored failure of the binary test-exclude,
5430         so making the latter return 77 didn't cause them to be skipped.
5431         * tests/test-exclude5.sh: Exit with test-exclude's error status
5432         when that program fails.  Revamp to use init.sh.
5433         * tests/test-exclude2.sh: Likewise.
5434
5435         test-exclude: fix a typo
5436         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
5437
5438 2011-11-11  Bruno Haible  <bruno@clisp.org>
5439
5440         obstack: Fix compilation error on MSVC 9.
5441         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
5442
5443 2011-11-11  Jim Meyering  <meyering@redhat.com>
5444
5445         test-exclude: skip tests rather than failing on deficient systems
5446         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
5447         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
5448         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
5449         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
5450
5451 2011-11-10  Bruno Haible  <bruno@clisp.org>
5452
5453         ptsname_r test: Avoid gcc warning on glibc systems.
5454         * tests/test-ptsname_r.c (null_ptr): New function.
5455         (test_errors): Use it.
5456
5457 2011-11-10  Bruno Haible  <bruno@clisp.org>
5458
5459         ptsname_r: Avoid compilation error on OSF/1 5.1.
5460         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
5461         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
5462         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
5463         function is not declared or incompatibly declared.
5464         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
5465         * modules/ptsname_r (Depends-on, configure.ac): Update.
5466         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
5467
5468 2011-11-10  Bruno Haible  <bruno@clisp.org>
5469
5470         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
5471         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
5472         When cross-compiling, guess yes on all platforms except AIX.
5473         Reported by Ludovic Courtès <ludo@gnu.org>.
5474
5475 2011-11-09  Bruno Haible  <bruno@clisp.org>
5476
5477         ptsname_r tests: Fix bugs.
5478         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
5479         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
5480
5481 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
5482
5483         fstatat: work with cross-compilation
5484         Problem reported by Ludovic Courtès in
5485         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
5486         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
5487         "cross-compiling" and assume the bug is present.  Replace
5488         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
5489         an inverted sense, to be more conservative about our assumptions.
5490         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
5491
5492 2011-11-09  Bruno Haible  <bruno@clisp.org>
5493
5494         Improve MODULES.html output.
5495         * modules/mkfifoat (Description): Use the word "function".
5496         * modules/readlinkat (Description): Likewise.
5497         * modules/symlinkat (Description): Likewise.
5498
5499 2011-11-09  Eric Blake  <eblake@redhat.com>
5500
5501         ptsname_r-tests: new test module
5502         * modules/ptsname_r-tests: New module.
5503         * tests/test-ptsname_r.c: New file.
5504
5505         ptsname_r: new module
5506         * modules/ptsname_r: New module.
5507         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
5508         * lib/ptsname.c (__ptsname_r): Split...
5509         * lib/ptsname_r.c: ...into new file.
5510         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
5511         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
5512         * modules/stdlib (Makefile.am): Substitute witnesses.
5513         * lib/stdlib.in.h (ptsname_r): Declare it.
5514         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
5515         * MODULES.html.sh (Misc): Likewise.
5516         * modules/ptsname (Depends-on): Alter dependency.
5517         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
5518
5519 2011-11-09  Jim Meyering  <meyering@redhat.com>
5520
5521         announce-gen: be more concise when there's only one URL+tarball
5522         * build-aux/announce-gen (get_tool_versions): When you distribute
5523         only one type of tarball, combine the first two "Here are..."
5524         sections and make the key-checking grammar independent of
5525         how many tarballs there are.
5526
5527 2011-11-09  Eric Blake  <eblake@redhat.com>
5528
5529         openpty: provide a stub on mingw
5530         * lib/pty.in.h (includes): Provide forward declarations.
5531         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
5532
5533         raise: fix mingw handling of SIGPIPE
5534         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
5535
5536 2011-11-08  Bruno Haible  <bruno@clisp.org>
5537
5538         More conditional dependencies.
5539         * modules/faccessat (Depends-on): Add conditions.
5540         * modules/fchmodat (Depends-on): Likewise.
5541         * modules/fchownat (Depends-on): Likewise.
5542         * modules/fstatat (Depends-on): Likewise.
5543         * modules/mkfifoat (Depends-on): Likewise.
5544         * modules/readlinkat (Depends-on): Likewise.
5545         * modules/symlinkat (Depends-on): Likewise.
5546         * modules/unlinkat (Depends-on): Likewise.
5547         * modules/utimensat (Depends-on): Likewise.
5548         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
5549         * modules/linkat (Depends-on): Refine the conditions.
5550         * modules/renameat (Depends-on): Likewise.
5551
5552 2011-11-08  Bruno Haible  <bruno@clisp.org>
5553
5554         faccessat: Move AC_LIBOBJ invocation to module description.
5555         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
5556         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
5557         invocation from here...
5558         * modules/faccessat (configure.ac): ... to here. Invoke
5559         gl_PREREQ_FACCESSAT.
5560
5561 2011-11-08  Bruno Haible  <bruno@clisp.org>
5562
5563         faccessat: Simplify autoconf macro.
5564         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
5565         gl_FUNC_EUIDACCESS.
5566
5567 2011-11-08  Bruno Haible  <bruno@clisp.org>
5568
5569         renameat: Fix dependencies.
5570         * modules/renameat (Depends-on): Add stdbool.
5571
5572 2011-11-08  Bruno Haible  <bruno@clisp.org>
5573
5574         mkfifoat: Fix module description.
5575         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
5576         not gl_UNISTD_MODULE_INDICATOR.
5577
5578 2011-11-08  Bruno Haible  <bruno@clisp.org>
5579
5580         fstatat: Remove unused dependency.
5581         * modules/fstatat (Depends-on): Remove fstat.
5582
5583 2011-11-08  Simon Josefsson  <simon@josefsson.org>
5584
5585         GNUmakefile: behave when Makefile is missing.
5586         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
5587
5588 2011-11-08  Bruno Haible  <bruno@clisp.org>
5589
5590         openat: Conditionalize dependencies.
5591         * lib/openat.c: Reduce the scope of some #includes.
5592         * modules/openat (Depends-on): Add conditions.
5593
5594 2011-11-07  Jim Meyering  <meyering@redhat.com>
5595
5596         maint.mk: extract GPG key ID without using a temporary file
5597         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
5598         without using a temporary file.  Based on a suggestion from Werner Koch
5599         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
5600
5601 2011-11-07  Eric Blake  <eblake@redhat.com>
5602
5603         grantpt: fix typo
5604         * lib/stdlib.in.h (grantpt): Check correct function.
5605
5606         maint.mk: silence new syntax check
5607         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
5608
5609 2011-11-06  Bruno Haible  <bruno@clisp.org>
5610
5611         Doc about floating-point and math API.
5612         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
5613         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
5614
5615 2011-11-06  Bruno Haible  <bruno@clisp.org>
5616
5617         stdalign tests: Skip the test when compiled by Sun C.
5618         * tests/test-stdalign.c (main): Skip the test on Sun C.
5619
5620 2011-11-06  Bruno Haible  <bruno@clisp.org>
5621
5622         ansi-c++-opt: Complete the 2011-06-05 change.
5623         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
5624         does not support namespaces, set the variable to "no", not to ":".
5625
5626 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5627
5628         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
5629
5630 2011-11-06  Bruno Haible  <bruno@clisp.org>
5631
5632         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
5633         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
5634         (minus_zerol) [HP-UX]: New macro.
5635         (unary_minus) [HP-UX]: New function.
5636         (copysignl) [HP-UX]: Use unary_minus function.
5637
5638 2011-11-06  Bruno Haible  <bruno@clisp.org>
5639
5640         ldexp, ldexpf, ldexpl: Enhance tests.
5641         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
5642         and tests/test-ldexpl.c.
5643         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
5644         LDEXP, MIN_EXP, MAX_EXP): New macros.
5645         Include test-ldexp.h.
5646         (main): Just call test_function.
5647         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
5648         infinity.h, nan.h.
5649         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5650         MAX_EXP): New macros.
5651         Include test-ldexp.h.
5652         (x, y): Remove variables.
5653         (main): Just call test_function.
5654         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
5655         infinity.h, nan.h.
5656         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5657         MAX_EXP): New macros.
5658         Include test-ldexp.h.
5659         (x, y): Remove variables.
5660         (main): Just call test_function.
5661         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
5662         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
5663         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5664         (Depends-on): Add isnand-nolibm, signbit, float.
5665         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
5666         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5667         (Depends-on): Add isnanf-nolibm, signbit, float.
5668
5669 2011-11-06  Bruno Haible  <bruno@clisp.org>
5670
5671         math tests: Cosmetics.
5672         * tests/test-math-c++.cc: Reorder declarations.
5673
5674 2011-11-05  Bruno Haible  <bruno@clisp.org>
5675
5676         fma*: Simplify test.
5677         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
5678         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
5679
5680         Tests for module 'fmal'.
5681         * modules/fmal-tests: New file.
5682         * tests/test-fmal1.c: New file.
5683         * tests/test-fmal2.c: New file.
5684
5685         New module 'fmal'.
5686         * lib/math.in.h (fmal): New declaration.
5687         * lib/fmal.c: New file.
5688         * m4/fmal.m4: New file.
5689         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
5690         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
5691         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
5692         REPLACE_FMAL.
5693         * modules/fmal: New file.
5694         * doc/posix-functions/fmal.texi: Mention the new module and the various
5695         bugs.
5696
5697         Tests for module 'fmaf'.
5698         * modules/fmaf-tests: New file.
5699         * tests/test-fmaf1.c: New file.
5700         * tests/test-fmaf2.c: New file.
5701
5702         New module 'fmaf'.
5703         * lib/math.in.h (fmaf): New declaration.
5704         * lib/fmaf.c: New file.
5705         * m4/fmaf.m4: New file.
5706         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
5707         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
5708         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
5709         REPLACE_FMAF.
5710         * modules/fmaf: New file.
5711         * doc/posix-functions/fmaf.texi: Mention the new module and the various
5712         bugs.
5713
5714         Tests for module 'fma'.
5715         * modules/fma-tests: New file.
5716         * tests/test-fma1.c: New file.
5717         * tests/test-fma1.h: New file.
5718         * tests/test-fma2.c: New file.
5719         * tests/test-fma2.h: New file.
5720
5721         New module 'fma'.
5722         * lib/math.in.h (fma): New declaration.
5723         * lib/fma.c: New file.
5724         * m4/fma.m4: New file.
5725         * m4/fegetround.m4: New file.
5726         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
5727         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
5728         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
5729         REPLACE_FMA.
5730         * modules/fma: New file.
5731         * doc/posix-functions/fma.texi: Mention the new module and the various
5732         bugs.
5733
5734         Extend gl_MATHFUNC.
5735         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
5736         Support 'void' as argument type.
5737         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
5738
5739 2011-11-05  Jim Meyering  <meyering@redhat.com>
5740
5741         maint.mk: also prohibit inclusion of dirent.h without use
5742         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
5743
5744 2011-11-05  Bruno Haible  <bruno@clisp.org>
5745
5746         ldexpl tests: Avoid test failure on MSVC 9.
5747         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
5748         value. Needed in order to enforce the conversion from a value greater
5749         than LDBL_MAX to Infinity.
5750
5751 2011-11-05  Bruno Haible  <bruno@clisp.org>
5752
5753         New modules 'at-internal', 'openat-h', split off from module 'openat'.
5754         * modules/at-internal: New file, extracted from modules/openat.
5755         * modules/openat-h: New file.
5756         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
5757         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
5758         * modules/openat (Description): Add reference to POSIX function.
5759         (Files): Remove lib/openat.h, lib/openat-proc.c.
5760         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
5761         intprops, unistd.
5762         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
5763         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
5764         gl_FCNTL_MODULE_INDICATOR.
5765         (Include): Remove unistd.h, openat.h.
5766         * modules/areadlinkat (Files): Add lib/at-func.c.
5767         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5768         openat-die, openat-h, save-cwd.
5769         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
5770         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5771         openat-die, openat-h, save-cwd, unistd.
5772         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
5773         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5774         openat-h, save-cwd. Remove fcntl-h, openat.
5775         * modules/fchmodat (Files): Remove lib/openat.h.
5776         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5777         openat, stdbool, unistd.
5778         * modules/fchownat (Files): Remove lib/openat.h.
5779         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5780         openat, stdbool, sys_stat.
5781         * modules/fdopendir (Files): Remove lib/openat-priv.h,
5782         lib/openat-proc.c.
5783         (Depends-on): Add at-internal.
5784         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
5785         * modules/fstatat (Files): Remove lib/openat.h.
5786         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5787         stdbool, unistd.
5788         * modules/fts (Depends-on): Add openat-h.
5789         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
5790         openat.
5791         * modules/mkdirat (Files): Remove lib/openat.h.
5792         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5793         openat, stdbool, sys_stat.
5794         * modules/mkfifoat (Files): Add lib/at-func.c.
5795         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5796         openat-h, save-cwd. Remove fcntl-h, openat.
5797         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
5798         * modules/readlinkat (Files): Add lib/at-func.c.
5799         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5800         openat-h, save-cwd. Remove fcntl-h, openat.
5801         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
5802         openat.
5803         * modules/selinux-at (Files): Add lib/at-func.c.
5804         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5805         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
5806         * modules/symlinkat (Files): Add lib/at-func.c.
5807         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5808         openat-h, save-cwd. Remove fcntl-h, openat.
5809         * modules/unlinkat (Files): Remove lib/openat.h.
5810         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5811         stdbool.
5812         * modules/utimensat (Files): Add lib/at-func.c.
5813         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
5814         openat-die, openat-h, save-cwd.
5815         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
5816         * modules/fdutimensat-tests (Depends-on): Add openat.
5817         * modules/fstatat-tests (Depends-on): Add openat-h.
5818         * modules/readlinkat-tests (Depends-on): Add openat.
5819         * modules/symlinkat-tests (Depends-on): Add openat.
5820
5821 2011-11-05  Bruno Haible  <bruno@clisp.org>
5822
5823         openat: Include <stdbool.h>.
5824         * lib/openat.c: Include <stdbool.h>.
5825
5826 2011-11-04  Bruno Haible  <bruno@clisp.org>
5827
5828         fchownat, renameat, unlinkat: Fix dependencies.
5829         * modules/fchownat (Depends-on): Add fstatat.
5830         * modules/renameat (Depends-on): Likewise.
5831         * modules/unlinkat (Depends-on): Likewise.
5832
5833 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
5834
5835         openat: remove direct dependency on dirent
5836         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
5837         and hasn't been needed ever since fdopendir was split into its own
5838         module on 2009-08-31.
5839         * modules/openat (Depends-on): Remove dirent.
5840
5841 2011-11-04  Bruno Haible  <bruno@clisp.org>
5842
5843         renameat: Optimize code size.
5844         * modules/renameat (configure.ac): Don't compile at-func2.c if
5845         REPLACE_RENAMEAT is 1.
5846
5847 2011-11-04  Bruno Haible  <bruno@clisp.org>
5848
5849         openat tests: Fix file list.
5850         * modules/openat-tests (Files): Add tests/test-open.h.
5851
5852 2011-11-04  Bruno Haible  <bruno@clisp.org>
5853
5854         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
5855         * modules/fchmodat (Depends-on): Add openat-die.
5856         * modules/fchownat (Depends-on): Likewise.
5857         * modules/linkat (Depends-on): Likewise.
5858         * modules/renameat (Depends-on): Likewise.
5859         * modules/openat (Depends-on): Add dirent.
5860
5861 2011-11-04  Jim Meyering  <meyering@redhat.com>
5862
5863         at-func*.c: fix comments
5864         * lib/at-func2.c: Correct/improve first-line comment.
5865         * lib/at-func.c: Correct grammar in first-line comment.
5866
5867 2011-11-04  Bruno Haible  <bruno@clisp.org>
5868
5869         New module 'mkdirat', split off from module 'openat'.
5870         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
5871         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
5872         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
5873         * modules/mkdirat: New file, extracted from modules/openat.
5874         * modules/openat (Files): Remove lib/mkdirat.c.
5875         (Depends-on): Remove mkdir.
5876         (configure.ac): Remove AC_LIBOBJ of mkdirat.
5877         (Include): Remove <sys/stat.h>.
5878         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
5879         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
5880         tests/test-mkdir.h.
5881         (Depends-on): Remove ignore-value.
5882         (Makefile.am): Remove rules for test-mkdirat.
5883         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
5884         of module 'openat'.
5885         * NEWS: Mention the change.
5886
5887 2011-11-04  Bruno Haible  <bruno@clisp.org>
5888
5889         closedir: Avoid warning on mingw.
5890         * lib/closedir.c: Include <unistd.h>.
5891
5892 2011-11-04  Bruno Haible  <bruno@clisp.org>
5893
5894         New module 'fstatat', split off from module 'openat'.
5895         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
5896         defined.
5897         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
5898         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
5899         gl_FUNC_FSTATAT.
5900         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
5901         * modules/fstatat: New file, extracted from modules/openat.
5902         * modules/openat (Files): Remove lib/fstatat.c.
5903         (Depends-on): Remove lstat.
5904         (configure.ac): Remove AC_LIBOBJ of fstatat.
5905         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
5906         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
5907         tests/test-lstat.h, tests/test-stat.h.
5908         (Depends-on): Remove getcwd-lgpl.
5909         (Makefile.am): Remove rules for test-fstatat.
5910         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
5911         of module 'openat'.
5912         * NEWS: Mention the change.
5913         * modules/getcwd (Depends-on): Add fstatat.
5914         * modules/linkat (Depends-on): Likewise.
5915         * modules/mkfifoat-tests (Depends-on): Likewise.
5916         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
5917
5918 2011-11-03  Bruno Haible  <bruno@clisp.org>
5919
5920         New module 'unlinkat', split off from module 'openat'.
5921         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
5922         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
5923         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
5924         * modules/unlinkat: New file, extracted from modules/openat. Correct
5925         the dependency conditions.
5926         * modules/openat (Files): Remove lib/unlinkat.c.
5927         (Depends-on): Remove rmdir, unlink.
5928         (configure.ac): Remove AC_LIBOBJ of unlinkat.
5929         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
5930         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
5931         tests/test-rmdir.h, tests/test-unlink.h.
5932         (Depends-on): Remove unlinkdir.
5933         (Makefile.am): Remove rules for test-unlinkat.
5934         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
5935         of module 'openat'.
5936         * NEWS: Mention the change.
5937         * modules/linkat-tests (Depends-on): Add unlinkat.
5938         * modules/mkfifoat-tests (Depends-on): Likewise.
5939         * modules/readlinkat-tests (Depends-on): Likewise.
5940
5941 2011-11-02  Bruno Haible  <bruno@clisp.org>
5942
5943         New module 'fchmodat', split off from module 'openat'.
5944         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
5945         defined.
5946         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
5947         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
5948         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
5949         * modules/fchmodat: New file, extracted from modules/openat.
5950         * modules/openat (Files): Remove lib/fchmodat.c.
5951         (configure.ac): Remove AC_LIBOBJ of fchmodat.
5952         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
5953         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
5954         (Makefile.am): Remove rules for test-fchmodat.
5955         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
5956         of module 'openat'.
5957         * NEWS: Mention the change.
5958
5959 2011-11-02  Jim Meyering  <meyering@redhat.com>
5960
5961         putenv: indent #definition of "environ" to placate cppi
5962         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
5963
5964         gitlog-to-changelog: provide a ChangeLog-repair mechanism
5965         Git logs are often treated as immutable, because editing them
5966         changes the SHA1 checksums of all descendants.  Thus, errors in
5967         git logs tend to stay there forever.  However, when we generate
5968         a ChangeLog file -- typically for distribution -- from that git log,
5969         we can actually make corrections in the generated file.  The key
5970         lies in recording in machine-readable/applicable form the desired
5971         corrections.  See --help for description and an example.
5972         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
5973         (usage): Describe it; alphabetize option descriptions.
5974         (main): Honor the new option, carefully.
5975
5976 2011-11-01  Jim Meyering  <meyering@redhat.com>
5977
5978         gitlog-to-changelog: avoid an infloop
5979         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
5980         that ends up being empty.
5981
5982 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5983
5984         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
5985         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
5986         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
5987         contains (possibly-quoted) backslashes.  This should avoid
5988         all-too-common shell bugs if COMPLICATED contains backslashes in
5989         the "wrong" places.  Reported by David Evans in
5990         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
5991         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
5992         because we want ASCII ranges.  Is there some reason we don't use
5993         the C locale everywhere in this script?
5994         (func_module, top level): Avoid unwanted pathname expansion when
5995         $repo_url_prefix or $repo_url_suffix_repl contain shell
5996         metacharacters like '?' and '*'.
5997
5998 2011-11-01  Bruno Haible  <bruno@clisp.org>
5999
6000         fchownat: Improve description.
6001         * modules/fchownat (Description): Add link to function.
6002
6003 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
6004
6005         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
6006         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
6007         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
6008         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
6009
6010 2011-11-01  Bruno Haible  <bruno@clisp.org>
6011
6012         alignof: Avoid collision with stdalign module.
6013         * lib/alignof.h (alignof): Remove macro.
6014         * NEWS: Mention the change.
6015         Reported by Paul Eggert.
6016
6017 2011-11-01  Bruno Haible  <bruno@clisp.org>
6018
6019         New module 'fchownat', split off from module 'openat'.
6020         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
6021         defined.
6022         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
6023         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
6024         invoke gl_FUNC_FCHOWNAT.
6025         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
6026         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
6027         * modules/fchownat: New file, extracted from modules/openat.
6028         * modules/openat (Files): Remove lib/fchownat.c.
6029         (Depends-on): Remove lchown.
6030         (configure.ac): Remove AC_LIBOBJ of fchownat.
6031         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
6032         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
6033         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
6034         (Depends-on): Remove mgetgroups, usleep, stat-time.
6035         (configure.ac): Remove test for getegid.
6036         (Makefile.am): Remove rules for test-fchownat.
6037         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
6038         of module 'openat'.
6039         * NEWS: Mention the change.
6040
6041 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6042
6043         stdalign: port better to MSVC and to Sun C 5.11
6044         This fixes some of the problems reported by Bruno Haible in
6045         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
6046         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
6047         shortcomings of MSVC and of Sun C 5.11.
6048         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
6049         around __declspec arg.
6050         * modules/stdalign-tests (Files): Add tests/macros.h.
6051         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
6052         Include macros.h, for ASSERT.
6053         (DECLARE_ALIGNED): Remove.
6054         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
6055         to catch bug), and to 1 if not (simplifies the rest of the code).
6056         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
6057         (CHECK_AUTO): Remove.
6058         (CHECK_ALIGNED): Check only the alignment of the static vars,
6059         since auto var alignment isn't supported by Sun C 5.11.
6060         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
6061         ASSERT failures are easier to diagnose.
6062
6063 2011-10-31  Bruno Haible  <bruno@clisp.org>
6064
6065         doc about some IRIX 5.3 problems.
6066         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
6067         on IRIX 5.3.
6068         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
6069         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
6070         5.3.
6071         * doc/posix-functions/grantpt.texi: Likewise.
6072         * doc/posix-functions/unlockpt.texi: Likewise.
6073         * doc/posix-functions/lgamma.texi: Likewise.
6074         * doc/posix-functions/nextafter.texi: Likewise.
6075         * doc/posix-functions/remainder.texi: Likewise.
6076         * doc/posix-functions/select.texi: Mention misplaced declaration on
6077         IRIX 5.3.
6078         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6079
6080 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
6081
6082         gitlog-to-changelog: fix git-log invocation.
6083         git-log mishandles date strings before 1970-01-01 UTC, and there is
6084         no use to specify --since=1970-01-01 by default anyway.
6085         * build-aux/gitlog-to-changelog: By default, when no --since option
6086         was given, do not specify explicit --since option to git-log.
6087
6088 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
6089
6090         gitlog-to-changelog: new option --append-dot.
6091         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
6092         first non-blank line of each commit message terminated with a dot.
6093
6094 2011-10-30  Bruno Haible  <bruno@clisp.org>
6095
6096         ffsl, ffsll: Avoid compilation error due to 'restrict'.
6097         * lib/ffsl.h: Include <config.h>.
6098         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
6099
6100 2011-10-30  Jim Meyering  <meyering@redhat.com>
6101
6102         GNUmakefile: reenable "make syntax-check" for most projects
6103         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
6104         build-aux variable", "syntax-check" would do nothing but succeed with
6105         the "No version control files detected..." diagnostic (unless you
6106         happened to override _build-aux via cfg.mk).
6107         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
6108         to precede inclusion of maint.mk.  Otherwise, these variables would
6109         be used undefined in any project that does not override the default.
6110
6111 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
6112
6113         gitlog-to-changelog: treat a message with only blank lines as empty.
6114         * build-aux/gitlog-to-changelog: Move the code that removes leading and
6115         trailing blank lines before the code that issues a warning about an
6116         empty commit message.
6117
6118 2011-10-30  Jim Meyering  <meyering@redhat.com>
6119
6120         test-parse-datetime.c: avoid new DST-related false positive test failure
6121         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
6122         based on the time/date we'll convert, not the current time.
6123         Otherwise, the moment we cross a DST boundary like today's in
6124         Europe, (CEST to CET), that offset ends up being one hour off.
6125
6126 2011-10-27  Bruno Haible  <bruno@clisp.org>
6127
6128         fstat: Tweak documentation.
6129         * modules/fstat (Description): More precise description.
6130
6131 2011-10-27  Bruno Haible  <bruno@clisp.org>
6132
6133         Update documentation regarding 'largefile' module.
6134         * doc/posix-functions/fstat.texi: Tweak wording.
6135         * doc/posix-functions/opendir.texi: Mention that the module fixes the
6136         problems with huge directories and/or small ino_t types.
6137         * doc/posix-functions/readdir.texi: Likewise.
6138         * doc/posix-functions/rewinddir.texi: Likewise.
6139
6140 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
6141
6142         maint.mk: don't maintain a second build-aux variable.
6143         * maint.mk (build_aux): Removed.  The maintainer-makefile module
6144         depends on GNUmakefile, which already maintains a cfg.mk
6145         overridable $(_build-aux) for projects with a non-standard
6146         build-aux directory location, although without the $(srcdir)
6147         prefix.  Use that variable consistently instead of introducing a
6148         second one.  Adjust all call sites.
6149
6150 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6151
6152         Add stdalign module and use it in other modules.
6153         This is based on a previous proposal by Bruno Haible
6154         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
6155
6156         stdalign: new module
6157         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
6158         * modules/stdalign: New files.
6159         * MODULES.html.sh (c1x_core_properties): Add stdalign.
6160         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
6161
6162         stdalign-tests: new module
6163         * modules/stdalign-tests, tests/test-stdalign.c: New files.
6164
6165         argp: use stdalign
6166         * lib/argp-parse.c: Include <stdalign.h>.
6167         (alignof): Remove.
6168         * modules/argp (Depends-on): Add stdalign.
6169
6170         crypto libraries: use stdalign
6171         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
6172         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
6173         Do not include <stdlib.h> twice, in md4.c.
6174         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
6175         because we are accessing a pointer's bit-pattern, not a size.
6176         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
6177         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
6178         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
6179         * modules/crypto/sha512: Likewise.
6180
6181         sys_socket: use stdalign, not alignof
6182         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
6183         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
6184
6185 2011-10-27  Bruno Haible  <bruno@clisp.org>
6186
6187         raise test: Avoid a test failure on Linux/MIPS.
6188         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
6189         because 99 is a valid signal on Linux/MIPS.
6190
6191 2011-10-27  Bruno Haible  <bruno@clisp.org>
6192
6193         nonblocking tests: Fix test failure on Linux/MIPS.
6194         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
6195         Set to 270000.
6196
6197 2011-10-27  Bruno Haible  <bruno@clisp.org>
6198
6199         utimensat: Work around problem on Linux/hppa.
6200         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
6201         values.
6202         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
6203
6204 2011-10-25  Jim Meyering  <meyering@redhat.com>
6205
6206         maint.mk: fix a bug in sc_prohibit_stddef_without_use
6207         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
6208         after symbols like NULL, size_t, etc.
6209         Reported by Alfred M. Szmidt.
6210
6211         maint.mk: exempt ENODATA from a syntax-check rule
6212         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
6213         from the sc_prohibit_always-defined_macros syntax-check rule.
6214         Add a comment.  See this for more details:
6215         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
6216
6217 2011-10-23  Jim Meyering  <meyering@redhat.com>
6218
6219         fts: close parent dir FD before returning from post-traversal fts_read
6220         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
6221         unlink A, even though an FD open on A remained.  This is suboptimal
6222         (holding a file descriptor open longer than needed), but otherwise not
6223         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
6224         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
6225         that represents a real problem: it causes the removal of A to fail
6226         with e.g., "rm: cannot remove `A': Device or resource busy"
6227
6228         fts visits each directory twice and keeps a cache (fts_fd_ring) of
6229         directory file descriptors.  After completing the final, FTS_DP,
6230         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
6231         cache, but then proceeded to add a new FD to it via the subsequent
6232         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
6233         final file descriptor would be closed only via fts_close's call to
6234         fd_ring_clear.  Now, it is usually closed earlier, via the final
6235         FTS_DP-returning fts_read call.
6236         * lib/fts.c (restore_initial_cwd): New function, converted from
6237         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
6238         Update callers.
6239         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
6240         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
6241
6242 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
6243             Bruno Haible  <bruno@clisp.org>
6244             Jim Meyering  <jim@meyering.net>
6245
6246         readme-release: improve safety of release prep instructions.
6247         * README-release: Don't git pull all branches when only master
6248         is needed for the release process.
6249         Run make maintainer-clean before changing trees and merging.
6250         Don't try to run ./configure right after git pull in case files
6251         that influence the bootstrap process have changed, move the
6252         ./configure step to after running ./bootstrap.
6253         Don't bootstrap "one last time"... it's the first time!
6254
6255 2011-10-22  Bruno Haible  <bruno@clisp.org>
6256
6257         errno, strerror-override: Support for MSVC 10.
6258         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
6259         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
6260         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
6261         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
6262         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
6263         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
6264         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
6265         Assign values compatible with MSVC 10.
6266         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6267         New macros.
6268         (GNULIB_defined_EWINSOCK): New macro.
6269         * lib/strerror-override.c (strerror_override): Update accordingly.
6270         * lib/strerror-override.h: Likewise.
6271         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6272         longer equal to the corresponding errno value.
6273         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6274
6275 2011-10-22  Bruno Haible  <bruno@clisp.org>
6276
6277         perror: Recognize when test program crashes.
6278         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6279         strerror, set gl_cv_func_perror_works to no.
6280         Reported by Daniel Richard G. <skunk@iskunk.org>.
6281
6282         perror: Fix indentation.
6283         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
6284
6285 2011-10-22  Bruno Haible  <bruno@clisp.org>
6286
6287         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
6288         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
6289         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
6290         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
6291         functions, not as a macro.
6292         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
6293         macros.
6294         (isfinite, isinf, isnan, signbit): Check overloaded functions and
6295         absence of macro.
6296         Suggested by Eric Blake.
6297         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6298
6299 2011-10-21  Bruno Haible  <bruno@clisp.org>
6300
6301         relocatable-prog-wrapper: Don't leave object files behind.
6302         * build-aux/install-reloc: Re-synchronize list of .o files to be
6303         removed with list of compilation units.
6304
6305 2011-10-20  Bruno Haible  <bruno@clisp.org>
6306
6307         openpty, posix_openpt: Remove code duplication.
6308         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
6309         * lib/openpty.c: Include <stdlib.h>.
6310         (openpty): Use posix_openpt on all platforms except IRIX.
6311         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
6312
6313 2011-10-20  Bruno Haible  <bruno@clisp.org>
6314
6315         unlockpt: Detect invalid argument.
6316         * lib/unlockpt.c: Include <fcntl.h>.
6317         (unlockpt): Check whether fd is valid, using fcntl().
6318         * modules/unlockpt (Depends-on): Add fcntl-h.
6319
6320 2011-10-20  Bruno Haible  <bruno@clisp.org>
6321
6322         openpty: Avoid compilation error on AIX 6.1.
6323         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
6324
6325 2011-10-20  Bruno Haible  <bruno@clisp.org>
6326
6327         posix_openpt: Support for OpenBSD.
6328         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
6329         (posix_openpt) [OpenBSD]: New code.
6330         * lib/grantpt.c: Include <fcntl.h>.
6331         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
6332         * modules/grantpt (Depends-on): Add fcntl-h.
6333
6334 2011-10-20  Bruno Haible  <bruno@clisp.org>
6335
6336         posix_openpt test: Coding style.
6337         * tests/test-posix_openpt.c: Use GNU coding style.
6338
6339 2011-10-20  Bruno Haible  <bruno@clisp.org>
6340
6341         grantpt: Support --avoid=pt_chown.
6342         * modules/grantpt (Files): Add lib/pty-private.h.
6343
6344 2011-10-20  Bruno Haible  <bruno@clisp.org>
6345
6346         posix_openpt: Fix autoconf macro.
6347         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
6348         unneeded check for _getpty.
6349
6350 2011-10-20  Bruno Haible  <bruno@clisp.org>
6351
6352         openpty: Update comments.
6353         * lib/openpty.c: Add comments about Minix.
6354
6355 2011-10-19  Eric Blake  <eblake@redhat.com>
6356
6357         openpty: relax license
6358         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
6359
6360         pt_chown: use configmake to simplify build
6361         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
6362
6363         ptsname and others: relax license
6364         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
6365         * modules/unlockpt (License): Likewise.
6366         * modules/pt_chown (License): Likewise.
6367         * modules/ptsname (License): Likewise.
6368         * modules/ttyname_r (License): Likewise.
6369
6370 2011-10-19  Jim Meyering  <meyering@redhat.com>
6371
6372         posix_openpt: remove spurious #endif
6373         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
6374
6375 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
6376
6377         maint.mk: Respect $(build_aux) in web-manual rule.
6378         * top/maint.mk (web-manual): Find gen-announce script in user's
6379         $(build_aux) directory instead of hard-coding 'build-aux'.
6380
6381 2011-10-19  Bruno Haible  <bruno@clisp.org>
6382
6383         posix_openpt: Fix compilation error.
6384         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
6385         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
6386         Mention the openpty module as an alternative.
6387
6388 2011-10-19  Bruno Haible  <bruno@clisp.org>
6389
6390         Support for old NeXTstep 3.3 frexp().
6391         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
6392         execution time of the test to 5 seconds.
6393         Reported by Daniel Richard G. <skunk@iskunk.org>.
6394
6395 2011-10-19  Bruno Haible  <bruno@clisp.org>
6396
6397         Support for old NeXTstep 3.3 sed.
6398         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
6399         part, use /.../, not \|...|. Escape periods in the header file name.
6400         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6401         Reported by Daniel Richard G. <skunk@iskunk.org>.
6402
6403 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6404
6405         Support for old NeXTstep 3.3 gcc.
6406         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
6407         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
6408         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
6409         * lib/spawn.in.h (_Restrict_arr_): Likewise.
6410         * lib/regex.h (_Restrict_arr_): Likewise.
6411         * lib/regex_internal.h (re_token_t): Likewise.
6412         * lib/regexec.c (check_node_accept_bytes): Likewise.
6413         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
6414
6415 2011-10-18  Eric Blake  <eblake@redhat.com>
6416
6417         posix_openpt: new module
6418         * modules/posix_openpt: New module.
6419         * m4/posix_openpt.m4: New file.
6420         * lib/posix_openpt.c: Likewise.
6421         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6422         (gl_STDLIB_H_DEFAULTS): Set defaults.
6423         * modules/stdlib (Makefile.am): Substitute macros.
6424         * lib/stdlib.in.h (posix_openpt): Declare.
6425         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
6426         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
6427         * modules/posix_openpt-tests: New test module.
6428         * tests/test-posix_openpt.c: New test.
6429
6430 2011-10-15  Bruno Haible  <bruno@clisp.org>
6431
6432         xstrtoll: Fix compilation failure.
6433         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
6434         from lib/strtol.c.
6435         * doc/posix-headers/limits.texi: Mention missing numerical limits on
6436         some platforms.
6437         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6438
6439 2011-10-15  Bruno Haible  <bruno@clisp.org>
6440
6441         vasnprintf: Optimize bit search operation.
6442         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
6443         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
6444         gl_DOUBLE_EXPONENT_LOCATION.
6445         * modules/vasnprintf (Files): Add m4/exponentd.m4.
6446         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6447         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6448         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6449         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6450         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6451         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6452         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6453         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
6454
6455 2011-10-15  Bruno Haible  <bruno@clisp.org>
6456
6457         vasnprintf: Fix comments.
6458         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
6459
6460 2011-10-14  Bruno Haible  <bruno@clisp.org>
6461
6462         Tests for module 'integer_length_ll'.
6463         * modules/integer_length_ll-tests: New file.
6464         * tests/test-integer_length_ll.c: New file.
6465
6466         New module 'integer_length_ll'.
6467         * lib/integer_length_ll.c: New file.
6468         * modules/integer_length_ll: New file.
6469
6470 2011-10-14  Bruno Haible  <bruno@clisp.org>
6471
6472         Tests for module 'integer_length_l'.
6473         * modules/integer_length_l-tests: New file.
6474         * tests/test-integer_length_l.c: New file.
6475
6476         New module 'integer_length_l'.
6477         * lib/integer_length_l.c: New file.
6478         * modules/integer_length_l: New file.
6479
6480 2011-10-14  Bruno Haible  <bruno@clisp.org>
6481
6482         Tests for module 'integer_length'.
6483         * modules/integer_length-tests: New file.
6484         * tests/test-integer_length.c: New file.
6485
6486         New module 'integer_length'.
6487         * lib/integer_length.h: New file.
6488         * lib/integer_length.c: New file.
6489         * modules/integer_length: New file.
6490
6491 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6492
6493         popen: Fix dependency conditions.
6494         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
6495
6496 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6497
6498         perror: Fix autoconf test.
6499         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
6500         <stdlib.h> and <string.h>.
6501
6502 2011-10-14  Bruno Haible  <bruno@clisp.org>
6503
6504         ffsl: Optimize on 64-bit platforms.
6505         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
6506         unrolling.
6507
6508 2011-10-13  Bruno Haible  <bruno@clisp.org>
6509
6510         ffsl: Optimize on 32-bit platforms.
6511         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
6512         use ffs() without a loop.
6513
6514         ffsl, ffsll: Optimize for GCC.
6515         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
6516         * lib/ffsl.c (GCC_BUILTIN): New macro.
6517         * lib/ffsll.c (GCC_BUILTIN): Likewise.
6518
6519 2011-10-13  Bruno Haible  <bruno@clisp.org>
6520
6521         ffs, bcopy, memset: Support symbol renaming via config.h.
6522         * lib/ffs.c: Include <config.h>.
6523         * lib/bcopy.c: Likewise.
6524         * lib/memset.c: Likewise.
6525
6526 2011-10-10  Bruno Haible  <bruno@clisp.org>
6527
6528         atanl: Simplify for platforms where 'long double' == 'double'.
6529         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6530         alternative implementation.
6531         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6532         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6533         * modules/atanl (Depends-on): Add atan. Update conditions.
6534
6535 2011-10-10  Bruno Haible  <bruno@clisp.org>
6536
6537         acosl: Simplify for platforms where 'long double' == 'double'.
6538         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6539         alternative implementation.
6540         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6541         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6542         * modules/acosl (Depends-on): Add acos. Update conditions.
6543
6544 2011-10-10  Bruno Haible  <bruno@clisp.org>
6545
6546         asinl: Simplify for platforms where 'long double' == 'double'.
6547         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6548         alternative implementation.
6549         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6550         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6551         * modules/asinl (Depends-on): Add asin. Update conditions.
6552
6553 2011-10-10  Bruno Haible  <bruno@clisp.org>
6554
6555         tanl: Simplify for platforms where 'long double' == 'double'.
6556         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6557         implementation.
6558         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6559         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6560         * modules/tanl (Depends-on): Add tan. Update conditions.
6561         (configure.ac): Don't compile trigl.c if
6562         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6563
6564 2011-10-10  Bruno Haible  <bruno@clisp.org>
6565
6566         cosl: Simplify for platforms where 'long double' == 'double'.
6567         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6568         implementation.
6569         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6570         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6571         * modules/cosl (Depends-on): Add cos. Update conditions.
6572         (configure.ac): Don't compile sincosl.c and trigl.c if
6573         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6574
6575 2011-10-10  Bruno Haible  <bruno@clisp.org>
6576
6577         sinl: Simplify for platforms where 'long double' == 'double'.
6578         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6579         implementation.
6580         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6581         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6582         * modules/sinl (Depends-on): Add sin. Update conditions.
6583         (configure.ac): Don't compile sincosl.c and trigl.c if
6584         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6585
6586 2011-10-10  Bruno Haible  <bruno@clisp.org>
6587
6588         logl: Simplify for platforms where 'long double' == 'double'.
6589         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6590         implementation.
6591         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6592         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6593         * modules/logl (Depends-on): Add log. Update conditions.
6594
6595 2011-10-10  Bruno Haible  <bruno@clisp.org>
6596
6597         expl: Simplify for platforms where 'long double' == 'double'.
6598         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6599         implementation.
6600         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6601         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6602         * modules/expl (Depends-on): Add exp. Update conditions.
6603
6604 2011-10-10  Bruno Haible  <bruno@clisp.org>
6605
6606         sqrtl: Simplify for platforms where 'long double' == 'double'.
6607         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6608         alternative implementation.
6609         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6610         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6611         * modules/sqrtl (Depends-on): Update conditions.
6612
6613 2011-10-10  Bruno Haible  <bruno@clisp.org>
6614
6615         ldexpl: Simplify for platforms where 'long double' == 'double'.
6616         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6617         alternative implementation.
6618         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6619         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6620         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
6621
6622 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
6623
6624         ffsll: set correct witness
6625         * modules/ffsll (configure.ac): Fix typo.
6626
6627 2011-10-10  Bruno Haible  <bruno@clisp.org>
6628
6629         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
6630         * lib/printf-frexpl.c: Include <config.h>.
6631         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6632         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
6633         second time.
6634         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
6635         gl_LONG_DOUBLE_VS_DOUBLE.
6636         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
6637         conditions.
6638
6639 2011-10-10  Bruno Haible  <bruno@clisp.org>
6640
6641         frexpl: Simplify for platforms where 'long double' == 'double'.
6642         * lib/frexpl.c: Include <config.h>.
6643         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6644         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6645         time.
6646         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6647         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6648         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
6649         * modules/frexpl (Depends-on): Add frexp. Update conditions.
6650         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
6651         conditions.
6652
6653 2011-10-10  Jim Meyering  <meyering@redhat.com>
6654
6655         test-renameat: don't leave behind a temporary file
6656         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
6657           ERROR: files left in build directory after distclean:
6658           ./gltests/test-renameat.too
6659           make[1]: *** [distcleancheck] Error 1
6660         Reported by Tom G. Christensen.
6661
6662 2011-10-09  Bruno Haible  <bruno@clisp.org>
6663
6664         rint: Determine RINT_LIBM correctly on AIX 7.
6665         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
6666         directly, not only through a function pointer. Also accept an optional
6667         4th argument with extra code.
6668         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
6669         rintf() call by gcc when optimizing.
6670
6671         mathfunc.m4: Refactor.
6672         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
6673         m4 variable.
6674
6675 2011-10-09  Bruno Haible  <bruno@clisp.org>
6676
6677         rintl: Simplify for platforms where 'long double' == 'double'.
6678         * lib/rintl.c: Include <config.h>.
6679         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6680         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6681         time.
6682         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6683         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6684         * modules/rintl (Depends-on): Add rint. Update conditions.
6685
6686 2011-10-09  Bruno Haible  <bruno@clisp.org>
6687
6688         roundl: Simplify for platforms where 'long double' == 'double'.
6689         * lib/roundl.c: Include <config.h>.
6690         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6691         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6692         time.
6693         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6694         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6695         * modules/roundl (Depends-on): Add round. Update conditions.
6696
6697 2011-10-09  Bruno Haible  <bruno@clisp.org>
6698
6699         truncl: Simplify for platforms where 'long double' == 'double'.
6700         * lib/truncl.c: Include <config.h>.
6701         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6702         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6703         time.
6704         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6705         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6706         * modules/truncl (Depends-on): Add trunc. Update conditions.
6707
6708 2011-10-09  Bruno Haible  <bruno@clisp.org>
6709
6710         ceill: Simplify for platforms where 'long double' == 'double'.
6711         * lib/ceill.c: Include <config.h>.
6712         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6713         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6714         time.
6715         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6716         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6717         * modules/ceill (Depends-on): Add ceil. Update conditions.
6718
6719 2011-10-09  Bruno Haible  <bruno@clisp.org>
6720
6721         floorl: Simplify for platforms where 'long double' == 'double'.
6722         * lib/floorl.c: Include <config.h>.
6723         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6724         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6725         time.
6726         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6727         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6728         * modules/floorl (Depends-on): Add floor. Update conditions.
6729
6730 2011-10-09  Bruno Haible  <bruno@clisp.org>
6731
6732         rint: Fix ordering constraints.
6733         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
6734         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6735         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6736
6737 2011-10-09  Bruno Haible  <bruno@clisp.org>
6738
6739         copysignl: Simplify for platforms where 'long double' == 'double'.
6740         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6741         alternative.
6742         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6743         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6744         * modules/copysignl (Depends-on): Add copysign. Update conditions.
6745
6746 2011-10-09  Bruno Haible  <bruno@clisp.org>
6747
6748         Tests for module 'rintl'.
6749         * modules/rintl-tests: New file.
6750         * tests/test-rintl.c: New file.
6751
6752         New module 'rintl'.
6753         * lib/math.in.h (rintl): New declaration.
6754         * lib/rintl.c: New file.
6755         * m4/rintl.m4: New file.
6756         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
6757         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
6758         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
6759         * modules/rintl: New file.
6760         * tests/test-math-c++.cc: Check the declaration of rintl.
6761         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6762         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
6763         * doc/posix-functions/rintl.texi: Mention the new module.
6764
6765 2011-10-09  Bruno Haible  <bruno@clisp.org>
6766
6767         Tests for module 'rintf'.
6768         * modules/rintf-tests: New file.
6769         * tests/test-rintf.c: New file.
6770
6771         New module 'rintf'.
6772         * lib/math.in.h (rintf): New declaration.
6773         * lib/rintf.c: New file.
6774         * m4/rintf.m4: New file.
6775         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
6776         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
6777         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
6778         * modules/rintf: New file.
6779         * tests/test-math-c++.cc: Check the declaration of rintf.
6780         * doc/posix-functions/rintf.texi: Mention the new module.
6781
6782 2011-10-09  Bruno Haible  <bruno@clisp.org>
6783
6784         rint: Support for MSVC.
6785         * lib/math.in.h (rint): New declaration.
6786         * lib/rint.c: New file.
6787         * m4/rint.m4: New file.
6788         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
6789         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
6790         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
6791         * modules/rint (Description): Fix.
6792         (Files): Add lib/rint.c, m4/rint.m4.
6793         (Depends-on): Add math.
6794         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
6795         gl_MATH_MODULE_INDICATOR.
6796         * tests/test-math-c++.cc: Check the declaration of rint.
6797         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6798         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
6799         * doc/posix-functions/rint.texi: Mention the replacement provided by
6800         the module.
6801
6802         rint tests: More tests.
6803         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
6804         minus-zero.h, infinity.h, nan.h.
6805         (main): Skip the test if the current rounding mode is not standard. Add
6806         tests for negative numbers, minus zero, infinity, NaN.
6807         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
6808         tests/nan.h.
6809         (Depends-on): Add isnand-nolibm.
6810
6811 2011-10-09  Bruno Haible  <bruno@clisp.org>
6812
6813         Tests for module 'copysignl'.
6814         * modules/copysignl-tests: New file.
6815         * tests/test-copysignl.c: New file.
6816
6817         New module 'copysignl'.
6818         * lib/math.in.h (copysignl): New declaration.
6819         * lib/copysignl.c: New file.
6820         * m4/copysignl.m4: New file.
6821         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
6822         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
6823         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
6824         HAVE_COPYSIGNL.
6825         * modules/copysignl: New file.
6826         * tests/test-math-c++.cc: Check the declaration of copysignl.
6827         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6828         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
6829         * doc/posix-functions/copysignl.texi: Mention the new module.
6830
6831 2011-10-09  Bruno Haible  <bruno@clisp.org>
6832
6833         Tests for module 'copysignf'.
6834         * modules/copysignf-tests: New file.
6835         * tests/test-copysignf.c: New file.
6836
6837         New module 'copysignf'.
6838         * lib/math.in.h (copysignf): New declaration.
6839         * lib/copysignf.c: New file.
6840         * m4/copysignf.m4: New file.
6841         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
6842         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
6843         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
6844         HAVE_COPYSIGNF.
6845         * modules/copysignf: New file.
6846         * tests/test-math-c++.cc: Check the declaration of copysignf.
6847         * doc/posix-functions/copysignf.texi: Mention the new module.
6848
6849 2011-10-09  Bruno Haible  <bruno@clisp.org>
6850
6851         Ensure that HAVE_* variables are set to 1 before they are set to 0.
6852         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
6853         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
6854         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6855         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
6856         gl_SIGNAL_H_DEFAULTS.
6857
6858 2011-10-09  Bruno Haible  <bruno@clisp.org>
6859
6860         poll: Make macro safer.
6861         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
6862         ac_cv_header_poll_h is not set.
6863
6864 2011-10-09  Bruno Haible  <bruno@clisp.org>
6865
6866         copysign: Provide replacement.
6867         * lib/math.in.h (copysign): New declaration.
6868         * lib/copysign.c: New file.
6869         * m4/copysign.m4: New file.
6870         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
6871         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
6872         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
6873         HAVE_COPYSIGN.
6874         * modules/copysign (Description): Clarify.
6875         (Files): Add lib/copysign.c, m4/copysign.m4.
6876         (Depends-on): Add math, signbit.
6877         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
6878         gl_MATH_MODULE_INDICATOR.
6879         * tests/test-math-c++.cc: Check the declaration of copysign.
6880         * doc/posix-functions/copysign.texi: Mention the effects of the module
6881         on Minix and MSVC.
6882
6883 2011-10-09  Bruno Haible  <bruno@clisp.org>
6884
6885         isinf: Ensure macro on AIX 5.1.
6886         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
6887         macro.
6888         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
6889
6890 2011-10-09  Bruno Haible  <bruno@clisp.org>
6891
6892         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
6893         * modules/snprintf-posix-tests (configure.ac): Require
6894         gl_LONG_DOUBLE_VS_DOUBLE.
6895         * modules/sprintf-posix-tests (configure.ac): Likewise.
6896         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
6897         * modules/vasprintf-posix-tests (configure.ac): Likewise.
6898         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
6899         * modules/vsprintf-posix-tests (configure.ac): Likewise.
6900         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
6901         tests on platforms where 'long double' is the same as 'double'.
6902         * tests/test-sprintf-posix.h (test_function): Likewise.
6903         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6904         * tests/test-vasprintf-posix.c (test_function): Likewise.
6905
6906         *printf: Fix for platforms where 'long double' == 'double'.
6907         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
6908         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
6909         * modules/dprintf-posix (Files): Add m4/math_h.m4.
6910         * modules/fprintf-posix (Files): Likewise.
6911         * modules/obstack-printf-posix (Files): Likewise.
6912         * modules/snprintf-posix (Files): Likewise.
6913         * modules/sprintf-posix (Files): Likewise.
6914         * modules/vasnprintf (Files): Likewise.
6915         * modules/vasnprintf-posix (Files): Likewise.
6916         * modules/vasprintf-posix (Files): Likewise.
6917         * modules/vdprintf-posix (Files): Likewise.
6918         * modules/vfprintf-posix (Files): Likewise.
6919         * modules/vsnprintf-posix (Files): Likewise.
6920         * modules/vsprintf-posix (Files): Likewise.
6921         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6922         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6923         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6924         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6925         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6926         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6927         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6928
6929         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
6930         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
6931         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6932         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
6933         'long double'.
6934         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
6935
6936         isinf: Fix for platforms where 'long double' == 'double'.
6937         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6938         Don't blindly assume 80-bit 'long double'.
6939
6940         isfinite: Fix for platforms where 'long double' == 'double'.
6941         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6942         Don't blindly assume 80-bit 'long double'.
6943
6944         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
6945         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
6946         * modules/isfinite-tests (configure.ac): Require
6947         gl_LONG_DOUBLE_VS_DOUBLE.
6948         * modules/isinf-tests (configure.ac): Likewise.
6949         * modules/isnan-tests (configure.ac): Likewise.
6950         * modules/isnanl-tests (configure.ac): Likewise.
6951         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
6952         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
6953         tests on platforms where 'long double' is the same as 'double'.
6954         * tests/test-isinf.c (test_isinfl): Likewise.
6955         * tests/test-isnan.c (test_long_double): Likewise.
6956         * tests/test-isnanl.h (main): Likewise.
6957
6958 2011-10-08  Bruno Haible  <bruno@clisp.org>
6959
6960         Tests for module 'tanhf'.
6961         * modules/tanhf-tests: New file.
6962         * tests/test-tanhf.c: New file.
6963
6964         New module 'tanhf'.
6965         * lib/math.in.h (tanhf): New declaration.
6966         * lib/tanhf.c: New file.
6967         * m4/tanhf.m4: New file.
6968         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
6969         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
6970         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
6971         * modules/tanhf: New file.
6972         * tests/test-math-c++.cc: Check the declaration of tanhf.
6973         * doc/posix-functions/tanhf.texi: Mention the new module.
6974
6975         tanh: Use a .m4 file.
6976         * m4/tanh.m4: New file.
6977         * modules/tanh (Files): Add it.
6978         (configure.ac): Just invoke gl_FUNC_TANH.
6979
6980 2011-10-08  Bruno Haible  <bruno@clisp.org>
6981
6982         Tests for module 'coshf'.
6983         * modules/coshf-tests: New file.
6984         * tests/test-coshf.c: New file.
6985
6986         New module 'coshf'.
6987         * lib/math.in.h (coshf): New declaration.
6988         * lib/coshf.c: New file.
6989         * m4/coshf.m4: New file.
6990         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
6991         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
6992         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
6993         * modules/coshf: New file.
6994         * tests/test-math-c++.cc: Check the declaration of coshf.
6995         * doc/posix-functions/coshf.texi: Mention the new module.
6996
6997         cosh: Use a .m4 file.
6998         * m4/cosh.m4: New file.
6999         * modules/cosh (Files): Add it.
7000         (configure.ac): Just invoke gl_FUNC_COSH.
7001
7002 2011-10-08  Bruno Haible  <bruno@clisp.org>
7003
7004         Tests for module 'sinhf'.
7005         * modules/sinhf-tests: New file.
7006         * tests/test-sinhf.c: New file.
7007
7008         New module 'sinhf'.
7009         * lib/math.in.h (sinhf): New declaration.
7010         * lib/sinhf.c: New file.
7011         * m4/sinhf.m4: New file.
7012         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
7013         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
7014         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
7015         * modules/sinhf: New file.
7016         * tests/test-math-c++.cc: Check the declaration of sinhf.
7017         * doc/posix-functions/sinhf.texi: Mention the new module.
7018
7019         sinh: Use a .m4 file.
7020         * m4/sinh.m4: New file.
7021         * modules/sinh (Files): Add it.
7022         (configure.ac): Just invoke gl_FUNC_SINH.
7023
7024 2011-10-08  Bruno Haible  <bruno@clisp.org>
7025
7026         Tests for module 'atan2f'.
7027         * modules/atan2f-tests: New file.
7028         * tests/test-atan2f.c: New file.
7029
7030         New module 'atan2f'.
7031         * lib/math.in.h (atan2f): New declaration.
7032         * lib/atan2f.c: New file.
7033         * m4/atan2f.m4: New file.
7034         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
7035         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
7036         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
7037         * modules/atan2f: New file.
7038         * tests/test-math-c++.cc: Check the declaration of atan2f.
7039         * doc/posix-functions/atan2f.texi: Mention the new module.
7040
7041         atan2: Use a .m4 file.
7042         * m4/atan2.m4: New file.
7043         * modules/atan2 (Files): Add it.
7044         (configure.ac): Just invoke gl_FUNC_ATAN2.
7045
7046 2011-10-08  Bruno Haible  <bruno@clisp.org>
7047
7048         Tests for module 'atanf'.
7049         * modules/atanf-tests: New file.
7050         * tests/test-atanf.c: New file.
7051
7052         New module 'atanf'.
7053         * lib/math.in.h (atanf): New declaration.
7054         * lib/atanf.c: New file.
7055         * m4/atanf.m4: New file.
7056         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
7057         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
7058         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
7059         * modules/atanf: New file.
7060         * tests/test-math-c++.cc: Check the declaration of atanf.
7061         * doc/posix-functions/atanf.texi: Mention the new module.
7062
7063         atan: Use a .m4 file.
7064         * m4/atan.m4: New file.
7065         * modules/atan (Files): Add it.
7066         (configure.ac): Just invoke gl_FUNC_ATAN.
7067
7068 2011-10-08  Bruno Haible  <bruno@clisp.org>
7069
7070         Tests for module 'acosf'.
7071         * modules/acosf-tests: New file.
7072         * tests/test-acosf.c: New file.
7073
7074         New module 'acosf'.
7075         * lib/math.in.h (acosf): New declaration.
7076         * lib/acosf.c: New file.
7077         * m4/acosf.m4: New file.
7078         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
7079         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
7080         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
7081         * modules/acosf: New file.
7082         * tests/test-math-c++.cc: Check the declaration of acosf.
7083         * doc/posix-functions/acosf.texi: Mention the new module.
7084
7085         acos: Use a .m4 file.
7086         * m4/acos.m4: New file.
7087         * modules/acos (Files): Add it.
7088         (configure.ac): Just invoke gl_FUNC_ACOS.
7089
7090 2011-10-08  Bruno Haible  <bruno@clisp.org>
7091
7092         Tests for module 'asinf'.
7093         * modules/asinf-tests: New file.
7094         * tests/test-asinf.c: New file.
7095
7096         New module 'asinf'.
7097         * lib/math.in.h (asinf): New declaration.
7098         * lib/asinf.c: New file.
7099         * m4/asinf.m4: New file.
7100         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
7101         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
7102         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
7103         * modules/asinf: New file.
7104         * tests/test-math-c++.cc: Check the declaration of asinf.
7105         * doc/posix-functions/asinf.texi: Mention the new module.
7106
7107         asin: Use a .m4 file.
7108         * m4/asin.m4: New file.
7109         * modules/asin (Files): Add it.
7110         (configure.ac): Just invoke gl_FUNC_ASIN.
7111
7112 2011-10-08  Bruno Haible  <bruno@clisp.org>
7113
7114         Tests for module 'tanf'.
7115         * modules/tanf-tests: New file.
7116         * tests/test-tanf.c: New file.
7117
7118         New module 'tanf'.
7119         * lib/math.in.h (tanf): New declaration.
7120         * lib/tanf.c: New file.
7121         * m4/tanf.m4: New file.
7122         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
7123         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
7124         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
7125         * modules/tanf: New file.
7126         * tests/test-math-c++.cc: Check the declaration of tanf.
7127         * doc/posix-functions/tanf.texi: Mention the new module.
7128
7129         tan: Use a .m4 file.
7130         * m4/tan.m4: New file.
7131         * modules/tan (Files): Add it.
7132         (configure.ac): Just invoke gl_FUNC_TAN.
7133
7134 2011-10-08  Bruno Haible  <bruno@clisp.org>
7135
7136         Tests for module 'cosf'.
7137         * modules/cosf-tests: New file.
7138         * tests/test-cosf.c: New file.
7139
7140         New module 'cosf'.
7141         * lib/math.in.h (cosf): New declaration.
7142         * lib/cosf.c: New file.
7143         * m4/cosf.m4: New file.
7144         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
7145         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
7146         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
7147         * modules/cosf: New file.
7148         * tests/test-math-c++.cc: Check the declaration of cosf.
7149         * doc/posix-functions/cosf.texi: Mention the new module.
7150
7151         cos: Use a .m4 file.
7152         * m4/cos.m4: New file.
7153         * modules/cos (Files): Add it.
7154         (configure.ac): Just invoke gl_FUNC_COS.
7155
7156 2011-10-08  Bruno Haible  <bruno@clisp.org>
7157
7158         Tests for module 'sinf'.
7159         * modules/sinf-tests: New file.
7160         * tests/test-sinf.c: New file.
7161
7162         New module 'sinf'.
7163         * lib/math.in.h (sinf): New declaration.
7164         * lib/sinf.c: New file.
7165         * m4/sinf.m4: New file.
7166         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
7167         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
7168         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
7169         * modules/sinf: New file.
7170         * tests/test-math-c++.cc: Check the declaration of sinf.
7171         * doc/posix-functions/sinf.texi: Mention the new module.
7172
7173         sin: Use a .m4 file.
7174         * m4/sin.m4: New file.
7175         * modules/sin (Files): Add it.
7176         (configure.ac): Just invoke gl_FUNC_SIN.
7177
7178 2011-10-08  Bruno Haible  <bruno@clisp.org>
7179
7180         Tests for module 'powf'.
7181         * modules/powf-tests: New file.
7182         * tests/test-powf.c: New file.
7183
7184         New module 'powf'.
7185         * lib/math.in.h (powf): New declaration.
7186         * lib/powf.c: New file.
7187         * m4/powf.m4: New file.
7188         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
7189         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
7190         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
7191         * modules/powf: New file.
7192         * tests/test-math-c++.cc: Check the declaration of powf.
7193         * doc/posix-functions/powf.texi: Mention the new module.
7194
7195         pow: Use a .m4 file.
7196         * m4/pow.m4: New file.
7197         * modules/pow (Files): Add it.
7198         (configure.ac): Just invoke gl_FUNC_POW.
7199
7200 2011-10-08  Bruno Haible  <bruno@clisp.org>
7201
7202         Tests for module 'log10f'.
7203         * modules/log10f-tests: New file.
7204         * tests/test-log10f.c: New file.
7205
7206         New module 'log10f'.
7207         * lib/math.in.h (log10f): New declaration.
7208         * lib/log10f.c: New file.
7209         * m4/log10f.m4: New file.
7210         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
7211         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
7212         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
7213         * modules/log10f: New file.
7214         * tests/test-math-c++.cc: Check the declaration of log10f.
7215         * doc/posix-functions/log10f.texi: Mention the new module.
7216
7217         log10: Use a .m4 file.
7218         * m4/log10.m4: New file.
7219         * modules/log10 (Files): Add it.
7220         (configure.ac): Just invoke gl_FUNC_LOG10.
7221
7222 2011-10-08  Bruno Haible  <bruno@clisp.org>
7223
7224         Tests for module 'logf'.
7225         * modules/logf-tests: New file.
7226         * tests/test-logf.c: New file.
7227
7228         New module 'logf'.
7229         * lib/math.in.h (logf): New declaration.
7230         * lib/logf.c: New file.
7231         * m4/logf.m4: New file.
7232         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
7233         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
7234         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
7235         * modules/logf: New file.
7236         * tests/test-math-c++.cc: Check the declaration of logf.
7237         * doc/posix-functions/logf.texi: Mention the new module.
7238
7239         log: Use a .m4 file.
7240         * m4/log.m4: New file.
7241         * modules/log (Files): Add it.
7242         (configure.ac): Just invoke gl_FUNC_LOG.
7243
7244 2011-10-08  Bruno Haible  <bruno@clisp.org>
7245
7246         Tests for module 'expf'.
7247         * modules/expf-tests: New file.
7248         * tests/test-expf.c: New file.
7249
7250         New module 'expf'.
7251         * lib/math.in.h (expf): New declaration.
7252         * lib/expf.c: New file.
7253         * m4/expf.m4: New file.
7254         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
7255         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
7256         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
7257         * modules/expf: New file.
7258         * tests/test-math-c++.cc: Check the declaration of expf.
7259         * doc/posix-functions/expf.texi: Mention the new module.
7260
7261         exp: Use a .m4 file.
7262         * m4/exp.m4: New file.
7263         * modules/exp (Files): Add it.
7264         (configure.ac): Just invoke gl_FUNC_EXP.
7265
7266 2011-10-08  Bruno Haible  <bruno@clisp.org>
7267
7268         Tests for module 'sqrtf'.
7269         * modules/sqrtf-tests: New file.
7270         * tests/test-sqrtf.c: New file.
7271
7272         New module 'sqrtf'.
7273         * lib/math.in.h (sqrtf): New declaration.
7274         * lib/sqrtf.c: New file.
7275         * m4/sqrtf.m4: New file.
7276         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7277         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7278         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7279         * modules/sqrtf: New file.
7280         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7281         * doc/posix-functions/sqrtf.texi: Mention the new module.
7282
7283 2011-10-08  Bruno Haible  <bruno@clisp.org>
7284
7285         Tests: Avoid link failures w.r.t. libintl.
7286         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
7287         $(LIBINTL).
7288         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
7289         $(LIBINTL).
7290         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
7291         against $(LIBINTL).
7292         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
7293         $(LIBINTL).
7294         * modules/openat-tests (Makefile.am): Link test-fchmodat against
7295         $(LIBINTL).
7296         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
7297
7298 2011-10-08  Bruno Haible  <bruno@clisp.org>
7299
7300         pow tests: Defeat compiler optimizations.
7301         * tests/test-pow.c (main): Assign arguments to x and y before use.
7302
7303 2011-10-08  Bruno Haible  <bruno@clisp.org>
7304
7305         gnulib-tool: Improve last commit.
7306         * gnulib-tool (func_modules_transitive_closure): Simplify code.
7307         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
7308         ignore dependencies that are not among the modules list.
7309
7310 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
7311
7312         gnulib-tool: don't follow dependencies to avoided modules
7313         This fixes a bug that is related to the previous one.
7314         * gnulib-tool (func_modules_transitive_closure)
7315         (func_emit_autoconf_snippets):
7316         Check whether a dependency is acceptable before using it.
7317         (--extract-dependencies): Report an error if --avoid is also used,
7318         since this combination of options is not yet supported.
7319
7320         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
7321         Problem reported by Peter Dyballa in
7322         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
7323         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
7324         when echoing "$condition".
7325
7326 2011-10-07  Bruno Haible  <bruno@clisp.org>
7327
7328         Fix documentation about math functions on MacOS X.
7329         * doc/posix-functions/exp2.texi: Don't say the function is missing on
7330         MacOS X 10.5.
7331         * doc/posix-functions/fdim.texi: Likewise.
7332         * doc/posix-functions/feclearexcept.texi: Likewise.
7333         * doc/posix-functions/fegetenv.texi: Likewise.
7334         * doc/posix-functions/fegetround.texi: Likewise.
7335         * doc/posix-functions/feholdexcept.texi: Likewise.
7336         * doc/posix-functions/feraiseexcept.texi: Likewise.
7337         * doc/posix-functions/fesetenv.texi: Likewise.
7338         * doc/posix-functions/fesetround.texi: Likewise.
7339         * doc/posix-functions/fetestexcept.texi: Likewise.
7340         * doc/posix-functions/feupdateenv.texi: Likewise.
7341         * doc/posix-functions/fmax.texi: Likewise.
7342         * doc/posix-functions/fmin.texi: Likewise.
7343         * doc/posix-functions/log2.texi: Likewise.
7344         * doc/posix-functions/modff.texi: Likewise.
7345         * doc/posix-functions/nan.texi: Likewise.
7346         * doc/posix-functions/nanf.texi: Likewise.
7347         * doc/posix-functions/nextafterf.texi: Likewise.
7348         * doc/posix-functions/remquo.texi: Likewise.
7349
7350 2011-10-07  Bruno Haible  <bruno@clisp.org>
7351
7352         modff: Drop assumption about library that defines modff.
7353         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
7354         AC_CHECK_FUNCS.
7355         * modules/modff (Files): Add m4/mathfunc.m4.
7356
7357 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
7358
7359         raise tests: Avoid a GCC warning.
7360         * tests/test-raise.c (handler): Use _Noreturn.
7361
7362 2011-10-07  Bruno Haible  <bruno@clisp.org>
7363
7364         Tests for module 'ldexpf'.
7365         * modules/ldexpf-tests: New file.
7366         * tests/test-ldexpf.c: New file.
7367
7368         New module 'ldexpf'.
7369         * lib/math.in.h (ldexpf): New declaration.
7370         * lib/ldexpf.c: New file.
7371         * m4/ldexpf.m4: New file.
7372         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
7373         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
7374         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
7375         * modules/ldexpf: New file.
7376         * tests/test-math-c++.cc: Check the declaration of ldexpf.
7377         * doc/posix-functions/ldexpf.texi: Mention the new module.
7378
7379 2011-10-06  Bruno Haible  <bruno@clisp.org>
7380
7381         frexpf: Work around problems on IRIX and mingw.
7382         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
7383         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
7384         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
7385         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
7386         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
7387         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
7388         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
7389
7390 2011-10-06  Bruno Haible  <bruno@clisp.org>
7391
7392         fabsf: Drop assumption about library that defines fabsf.
7393         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
7394         AC_CHECK_FUNCS.
7395         * modules/fabsf (Files): Add m4/mathfunc.m4.
7396
7397 2011-10-06  Bruno Haible  <bruno@clisp.org>
7398
7399         frexpf: Drop assumption about library that defines frexpf.
7400         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
7401         'int *', 'float *', 'long double *', 'float', 'long double'.
7402         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
7403         AC_CHECK_FUNCS.
7404         * modules/frexpf (Files): Add m4/mathfunc.m4.
7405
7406         Tests for module 'frexpf'.
7407         * modules/frexpf-tests: New file.
7408         * tests/test-frexpf.c: New file.
7409
7410         New module 'frexpf'.
7411         * lib/math.in.h (frexpf): New declaration.
7412         * lib/frexpf.c: New file.
7413         * m4/frexpf.m4: New file.
7414         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
7415         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
7416         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
7417         * modules/frexpf: New file.
7418         * tests/test-math-c++.cc: Check the declaration of frexpf.
7419         * doc/posix-functions/frexpf.texi: Mention the new module.
7420
7421 2011-10-06  Bruno Haible  <bruno@clisp.org>
7422
7423         math: Sort function declarations of math.in.h.
7424         * lib/math.in.h (frexp, logb): Move declarations.
7425
7426 2011-10-05  Bruno Haible  <bruno@clisp.org>
7427
7428         Tests for module 'modff'.
7429         * modules/modff-tests: New file.
7430         * tests/test-modff.c: New file.
7431
7432         New module 'modff'.
7433         * lib/math.in.h (modff): New declaration.
7434         * lib/modff.c: New file.
7435         * m4/modff.m4: New file.
7436         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
7437         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
7438         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
7439         * modules/modff: New file.
7440         * tests/test-math-c++.cc: Check the declaration of modff.
7441         * doc/posix-functions/modff.texi: Mention the new module.
7442
7443         modf tests: Make test sharper.
7444         * tests/test-modf.c (main): Strengthen upper bound.
7445
7446         modf: Use a .m4 file.
7447         * m4/modf.m4: New file.
7448         * modules/modf (Files): Add it.
7449         (configure.ac): Just invoke gl_FUNC_MODF.
7450
7451 2011-10-05  Bruno Haible  <bruno@clisp.org>
7452
7453         Tests for module 'fmodf'.
7454         * modules/fmodf-tests: New file.
7455         * tests/test-fmodf.c: New file.
7456
7457         New module 'fmodf'.
7458         * lib/math.in.h (fmodf): New declaration.
7459         * lib/fmodf.c: New file.
7460         * m4/fmodf.m4: New file.
7461         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
7462         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
7463         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
7464         * modules/fmodf: New file.
7465         * tests/test-math-c++.cc: Check the declaration of fmodf.
7466         * doc/posix-functions/fmodf.texi: Mention the new module.
7467
7468         fmod: Use a .m4 file.
7469         * m4/fmod.m4: New file.
7470         * modules/fmod (Files): Add it.
7471         (configure.ac): Just invoke gl_FUNC_FMOD.
7472
7473 2011-10-05  Bruno Haible  <bruno@clisp.org>
7474
7475         Tests for module 'fabsf'.
7476         * modules/fabsf-tests: New file.
7477         * tests/test-fabsf.c: New file.
7478
7479         New module 'fabsf'.
7480         * lib/math.in.h (fabsf): New declaration.
7481         * lib/fabsf.c: New file.
7482         * m4/fabsf.m4: New file.
7483         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
7484         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
7485         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
7486         * modules/fabsf: New file.
7487         * tests/test-math-c++.cc: Check the declaration of fabsf.
7488         * doc/posix-functions/fabsf.texi: Mention the new module.
7489
7490         fabs: Use a .m4 file.
7491         * m4/fabs.m4: New file.
7492         * modules/fabs (Files): Add it.
7493         (configure.ac): Just invoke gl_FUNC_FABS.
7494
7495 2011-10-05  Jim Meyering  <meyering@redhat.com>
7496
7497         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
7498         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
7499         ls -lL regression introduced in coreutils-8.12, it does so at the
7500         cost of an additional stat call in the common case.  Besides, now
7501         that the kernel change that prompted commit 95f7c57f has been reverted
7502         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
7503         we have no use for commit 95f7c57f, "file-has-acl: use
7504         acl_extended_file_nofollow if available".
7505
7506 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
7507
7508         file-has-acl: revert unintended change in behavior of ls -L
7509         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
7510         derived from...
7511         (file_has_acl): ...code here.  Call it.
7512         This problem was introduced with 2011-07-22 commit 95f7c57f,
7513         "file-has-acl: use acl_extended_file_nofollow if available".
7514         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
7515
7516 2011-10-03  Bruno Haible  <bruno@clisp.org>
7517
7518         poll: Avoid link errors on MSVC.
7519         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
7520         * modules/poll (Depends-on): Add sockets.
7521         (Link): New section.
7522         * NEWS: Mention the change.
7523         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
7524         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
7525         $(LIB_POLL) instead of $(LIBSOCKET).
7526
7527 2011-10-03  Bruno Haible  <bruno@clisp.org>
7528
7529         sys_select tests: Fix link error on MSVC 9.
7530         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
7531         with $(LIB_SELECT) instead of $(LIBSOCKET).
7532
7533 2011-10-03  Bruno Haible  <bruno@clisp.org>
7534
7535         sys_select: Fix compilation error on mingw.
7536         * lib/sys_select.in.h: On native Windows, include <io.h>.
7537
7538 2011-10-03  Bruno Haible  <bruno@clisp.org>
7539
7540         wmemset: Support for MSVC.
7541         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
7542         whether wmemset() exists.
7543
7544 2011-10-03  Bruno Haible  <bruno@clisp.org>
7545
7546         wmemmove: Support for MSVC.
7547         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
7548         whether wmemmove() exists.
7549
7550 2011-10-03  Bruno Haible  <bruno@clisp.org>
7551
7552         wmemcpy: Support for MSVC.
7553         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
7554         whether wmemcpy() exists.
7555
7556 2011-10-03  Bruno Haible  <bruno@clisp.org>
7557
7558         wmemcmp: Support for MSVC.
7559         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
7560         whether wmemcmp() exists.
7561
7562 2011-10-03  Bruno Haible  <bruno@clisp.org>
7563
7564         wmemchr: Support for MSVC.
7565         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
7566         whether wmemchr() exists.
7567
7568 2011-10-03  Bruno Haible  <bruno@clisp.org>
7569
7570         glthread/*, strsignal: Support for MSVC.
7571         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
7572         including <winsock.h> on MSVC 9.
7573         * lib/glthread/lock.h: Likewise.
7574         * lib/glthread/thread.h: Likewise.
7575         * lib/glthread/tls.h: Likewise.
7576         * lib/glthread/yield.h: Likewise.
7577         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
7578         if HAVE_UNISTD_H is false.
7579         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
7580
7581 2011-10-03  Bruno Haible  <bruno@clisp.org>
7582
7583         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
7584         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
7585         Set to 100000.
7586
7587 2011-10-03  Bruno Haible  <bruno@clisp.org>
7588
7589         acl: Fix specification.
7590         * lib/file-has-acl.c (file_has_acl): Fix specification.
7591
7592 2011-10-03  Bruno Haible  <bruno@clisp.org>
7593
7594         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
7595         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
7596         (compute_curr_prefix, shared_library_fullname,
7597         find_shared_library_fullname, get_shared_library_fullname, relocate):
7598         Use it together with PIC && INSTALLDIR.
7599         Reported by <jojelino@gmail.com>
7600         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
7601
7602 2011-10-01  Jim Meyering  <meyering@redhat.com>
7603
7604         maint.mk: adjust a release-related rule not to require use of gzip
7605         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
7606         Instead, check each file in $(DIST_ARCHIVES).  This is better for
7607         projects that build only .tar.xz files.  Also fix an erroneous test.
7608
7609         test-linkat: don't leave behind a temporary file
7610         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
7611         Otherwise, coreutils' "make distcheck" would fail with this:
7612           Only in /c/cu/tests/torture/coreutils/test/\
7613             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
7614           make[2]: *** [my-distcheck] Error 1
7615
7616         float, math: add omitted file
7617         * lib/itold.c: Add file, required for yesterday's float change.
7618
7619 2011-10-01  Bruno Haible  <bruno@clisp.org>
7620
7621         isinf: Fix for OpenBSD/x86.
7622         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
7623         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
7624         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
7625
7626 2011-10-01  Bruno Haible  <bruno@clisp.org>
7627
7628         isfinite: Fix syntax error in configure test.
7629         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
7630
7631         isfinite: Fix typo.
7632         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
7633         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
7634
7635 2011-10-01  Bruno Haible  <bruno@clisp.org>
7636
7637         nonblocking tests: Fix test failure on Linux/IA-64.
7638         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
7639         Set to 270000.
7640
7641 2011-10-01  Bruno Haible  <bruno@clisp.org>
7642
7643         mkfifoat tests: Fix a test failure on mingw.
7644         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
7645         with error ENOSYS.
7646
7647 2011-09-30  Bruno Haible  <bruno@clisp.org>
7648
7649         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
7650         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
7651         'long double'. Set REPLACE_ITOLD.
7652         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
7653         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
7654         * lib/itold.c: New file.
7655         * modules/float (Files): Add lib/itold.c.
7656         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
7657         (Makefile.am): Substitute REPLACE_ITOLD.
7658         * modules/math (Depends-on): Add float.
7659         (Makefile.am): Substitute REPLACE_ITOLD.
7660         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
7661         * doc/posix-headers/math.texi: Likewise.
7662         * doc/posix-functions/logl.texi: Likewise.
7663
7664 2011-09-30  Bruno Haible  <bruno@clisp.org>
7665
7666         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
7667         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
7668         Set to 140000.
7669
7670 2011-09-30  Bruno Haible  <bruno@clisp.org>
7671
7672         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
7673         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
7674         invocation, say "right after AC_PROG_CC_STDC", not "right after
7675         AC_PROG_CC".
7676         Reported by Gary V. Vaughan <gary@gnu.org>.
7677
7678 2011-09-30  Bruno Haible  <bruno@clisp.org>
7679
7680         Centralize C99 requirement.
7681         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
7682         * modules/stdarg (configure.ac-early): Invoke it instead of
7683         AC_PROG_CC_STDC.
7684         Reported by Gary V. Vaughan and Paul Eggert.
7685
7686 2011-09-29  Bruno Haible  <bruno@clisp.org>
7687
7688         float: Fix LDBL_MAX value on Linux/PowerPC.
7689         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
7690         on Linux/PowerPC.
7691         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
7692         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
7693         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
7694         platform.
7695         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
7696
7697 2011-09-29  Bruno Haible  <bruno@clisp.org>
7698
7699         doc: Improve doc about gl_EARLY.
7700         * doc/gnulib-tool.texi (Initial import): Mention where to place an
7701         AC_PROG_CC_STDC invocation.
7702         Reported by Gary V. Vaughan <gary@gnu.org>.
7703
7704 2011-09-28  Bruno Haible  <bruno@clisp.org>
7705
7706         fgetc, fputc, fread, fwrite tests: Fix link error.
7707         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
7708         on non-MSVC platforms.
7709         * tests/test-fputc.c (main): Likewise.
7710         * tests/test-fread.c (main): Likewise.
7711         * tests/test-fwrite.c (main): Likewise.
7712         Reported by Jim Meyering.
7713
7714 2011-09-27  Bruno Haible  <bruno@clisp.org>
7715
7716         fputc, fwrite tests: Avoid test failure on MSVC.
7717         * tests/test-fgetc.c: Include msvc-inval.h.
7718         (main): Invoke gl_msvc_inval_ensure_handler.
7719         * tests/test-fputc.c: Include msvc-inval.h.
7720         (main): Invoke gl_msvc_inval_ensure_handler.
7721         * tests/test-fread.c: Include msvc-inval.h.
7722         (main): Invoke gl_msvc_inval_ensure_handler.
7723         * tests/test-fwrite.c: Include msvc-inval.h.
7724         (main): Invoke gl_msvc_inval_ensure_handler.
7725         * modules/fgetc-tests (Depends-on): Add msvc-inval.
7726         * modules/fputc-tests (Depends-on): Likewise.
7727         * modules/fread-tests (Depends-on): Likewise.
7728         * modules/fwrite-tests (Depends-on): Likewise.
7729
7730 2011-09-27  Bruno Haible  <bruno@clisp.org>
7731
7732         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
7733         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
7734         (raise): Remove older, duplicated declaration.
7735         (_gl_raise_SIGPIPE): New declaration.
7736         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
7737         (rpl_raise): Remove function.
7738         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
7739         a gnulib-defined SIGPIPE here.
7740         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
7741         'sigprocmask' has detected missing signal-blocking and the module
7742         'sigpipe' is enabled.
7743         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7744
7745 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
7746
7747         base64-tests: avoid memory leak
7748         * tests/test-base64.c (main): Plug memory leak.
7749
7750         base32: new module
7751         * modules/base32: New module.
7752         * lib/base32.c: New file.
7753         * lib/base32.h: Likewise.
7754         * m4/base32.m4: Likewise.
7755         * modules/base32-tests: New test.
7756         * tests/test-base32.c: Likewise.
7757         * MODULES.html.sh (Misc): Mention it.
7758
7759 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
7760
7761         gnulib: use more-standard license notice wording
7762         * gnulib-tool (func_emit_copyright_notice): When emitting a
7763         license notice into a file, use the standard wording as suggested
7764         by the current information for GNU maintainers, except say "file"
7765         rather than "program".  The new wording gives a license version
7766         number, which addresses an issue raised by Glenn Morris in
7767         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
7768         * m4/onceonly.m4: Use that same wording here, too.
7769
7770         dup2: minor simplification
7771         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
7772         as lib/dup2.c no longer uses 'inline'.
7773
7774 2011-09-25  Bruno Haible  <bruno@clisp.org>
7775
7776         strings: Fix compilation error on MSVC.
7777         * lib/strings.in.h: Include <stddef.h> for size_t.
7778
7779 2011-09-25  Bruno Haible  <bruno@clisp.org>
7780
7781         fflush et al.: Document limitation on MSVC.
7782         * doc/posix-functions/fflush.texi: Document possible crash in handling
7783         mode other than DEFAULT_HANDLING.
7784         * doc/posix-functions/fgetc.texi: Likewise.
7785         * doc/posix-functions/fputc.texi: Likewise.
7786         * doc/posix-functions/fread.texi: Likewise.
7787         * doc/posix-functions/fwrite.texi: Likewise.
7788
7789 2011-09-25  Bruno Haible  <bruno@clisp.org>
7790
7791         msvc-inval: Allow three invalid parameter handling modes.
7792         * lib/msvc-inval.h: Don't include <stdlib.h> here.
7793         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
7794         macros.
7795         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
7796         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
7797         SANE_LIBRARY_HANDLING as a no-op.
7798         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
7799         <stdlib.h>.
7800         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
7801
7802 2011-09-25  Bruno Haible  <bruno@clisp.org>
7803
7804         msvc-inval: Make handler multithread-safe.
7805         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
7806         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
7807         declarations.
7808         (gl_msvc_inval_current): New declaration.
7809         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7810         Operate on the structure returned by gl_msvc_inval_current().
7811         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
7812         Remove varaiables.
7813         (tls_index, tls_initialized): New variables.
7814         (not_per_thread): New variable.
7815         (gl_msvc_inval_current): New function.
7816         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
7817         returned by gl_msvc_inval_current().
7818
7819 2011-09-25  Bruno Haible  <bruno@clisp.org>
7820
7821         msvc-inval: Install handler globally.
7822         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
7823         !_MSC_VER.
7824         (gl_msvc_invalid_parameter_handler): Remove declaration.
7825         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
7826         declarations.
7827         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7828         Install the handler globally, don't uninstall it.
7829         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
7830         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
7831         currently valid, call RaiseException instead.
7832         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
7833         for !_MSC_VER.
7834
7835 2011-09-25  Bruno Haible  <bruno@clisp.org>
7836
7837         strerror_r-posix: Fix for MSVC 9.
7838         * lib/strerror_r.c (local_snprintf): New function.
7839         (snprintf): Define to local_snprintf, not to _snprintf.
7840
7841 2011-09-25  Bruno Haible  <bruno@clisp.org>
7842
7843         ftruncate: Support for MSVC 9.
7844         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
7845         (chsize_nothrow): New function.
7846         (chsize): Redefine as a macro.
7847         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
7848         * modules/ftruncate (Depends-on): Add msvc-inval.
7849
7850 2011-09-25  Bruno Haible  <bruno@clisp.org>
7851
7852         New module 'fstat'.
7853         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
7854         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
7855         * lib/fchdir.c (rpl_fstat): Remove function.
7856         * m4/fstat.m4: New file.
7857         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
7858         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
7859         declared.
7860         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
7861         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
7862         * modules/fstat: New file.
7863         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
7864         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
7865         is set.
7866         * doc/posix-functions/fstat.texi: Mention the new module and the
7867         problem on MSVC.
7868         * NEWS: Mention the change.
7869         * modules/acl (Depends-on): Add fstat.
7870         * modules/chdir-safer (Depends-on): Likewise.
7871         * modules/chown (Depends-on): Likewise.
7872         * modules/copy-file (Depends-on): Likewise.
7873         * modules/fchdir (Depends-on): Likewise.
7874         * modules/fdopendir (Depends-on): Likewise.
7875         * modules/fopen (Depends-on): Likewise.
7876         * modules/fts (Depends-on): Likewise.
7877         * modules/getcwd (Depends-on): Likewise.
7878         * modules/isapipe (Depends-on): Likewise.
7879         * modules/linkat (Depends-on): Likewise.
7880         * modules/lseek (Depends-on): Likewise.
7881         * modules/mkdir-p (Depends-on): Likewise.
7882         * modules/open (Depends-on): Likewise.
7883         * modules/openat (Depends-on): Likewise.
7884         * modules/read-file (Depends-on): Likewise.
7885         * modules/renameat (Depends-on): Likewise.
7886         * modules/utimens (Depends-on): Likewise.
7887
7888 2011-09-25  Bruno Haible  <bruno@clisp.org>
7889
7890         linkat: Fix compilation on MSVC 9.
7891         * lib/linkat.c: Don't include <stdint.h>.
7892
7893 2011-09-25  Bruno Haible  <bruno@clisp.org>
7894
7895         fclose: Support for MSVC 9.
7896         * lib/fclose.c: Include msvc-inval.h.
7897         (fclose_nothrow): New function.
7898         (rpl_fclose): Use it.
7899         * modules/fclose (Depends-on): Add msvc-inval.
7900         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
7901
7902 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
7903
7904         dup2: minor simplifications
7905         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
7906         that it's a performance win.
7907         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
7908         ! defined __CYGWIN__)" to "ifdef F_GETFL".
7909
7910 2011-09-24  Jim Meyering  <meyering@redhat.com>
7911
7912         test-futimens: avoid a warning from gcc -Wshadow
7913         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
7914         to avoid a shadowing warning.
7915
7916 2011-09-24  Bruno Haible  <bruno@clisp.org>
7917
7918         fdopen: Support for MSVC 9.
7919         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
7920         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
7921         * lib/fdopen.c: Include msvc-inval.h.
7922         (fdopen_nothrow): New function.
7923         (rpl_fdopen): Use it.
7924         * modules/fdopen (Depends-on): Add msvc-inval.
7925         * modules/fclose-tests (Depends-on): Add fdopen.
7926         * modules/fflush-tests (Depends-on): Likewise.
7927         * modules/fgetc-tests (Depends-on): Likewise.
7928         * modules/fputc-tests (Depends-on): Likewise.
7929         * modules/fread-tests (Depends-on): Likewise.
7930         * modules/freopen-tests (Depends-on): Likewise.
7931         * modules/fseeko-tests (Depends-on): Likewise.
7932         * modules/ftello-tests (Depends-on): Likewise.
7933         * modules/fwrite-tests  (Depends-on): Likewise.
7934         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
7935
7936 2011-09-24  Bruno Haible  <bruno@clisp.org>
7937
7938         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
7939         * modules/fgetc-tests (Depends-on): Add unistd.
7940         * modules/fputc-tests (Depends-on): Likewise.
7941         * modules/fread-tests (Depends-on): Likewise.
7942         * modules/fwrite-tests (Depends-on): Likewise.
7943
7944 2011-09-24  Bruno Haible  <bruno@clisp.org>
7945
7946         dup: Simplify autoconf test.
7947         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
7948         on gl_MSVC_INVAL's result.
7949
7950 2011-09-24  Bruno Haible  <bruno@clisp.org>
7951
7952         Tests for function fwrite().
7953         * modules/fwrite-tests: New file.
7954         * tests/test-fwrite.c: New file.
7955         * modules/stdio-tests (Depends-on): Add fwrite-tests.
7956
7957         Tests for function fread().
7958         * modules/fread-tests: New file.
7959         * tests/test-fread.c: New file.
7960         * modules/stdio-tests (Depends-on): Add fread-tests.
7961
7962         Activate fputc tests.
7963         * modules/stdio-tests (Depends-on): Add fputc-tests.
7964
7965         Enhance fgetc, fputc tests.
7966         * tests/test-fgetc.c (main): Also test the stream's error indicator.
7967         * tests/test-fputc.c (main): Likewise.
7968
7969 2011-09-24  Bruno Haible  <bruno@clisp.org>
7970
7971         write: Support for MSVC 9.
7972         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7973         is not 1.
7974         * lib/write.c (write_nothrow): New function.
7975         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
7976         not 1. Use write_nothrow.
7977         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
7978         invalid parameter handler.
7979         (gl_PREREQ_WRITE): New macro.
7980         * modules/write (Depends-on): Add msvc-inval.
7981         (configure.ac): Invoke gl_PREREQ_WRITE.
7982         * doc/posix-functions/write.texi: Mention the problem on MSVC.
7983
7984 2011-09-24  Bruno Haible  <bruno@clisp.org>
7985
7986         read: Fix last commit.
7987         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
7988
7989 2011-09-24  Bruno Haible  <bruno@clisp.org>
7990
7991         dup2: Fix last commit.
7992         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
7993         (rpl_dup2): Disable fcntl workaround on native Windows.
7994
7995         sigprocmask: Make code safer.
7996         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
7997         section that changes macro definitions for this compilation unit.
7998
7999 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
8000
8001         dup2: clarify by coalescing Windows-specific material
8002         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
8003         "msvc-nothrow.h"' to the Windows-specific section, so that the
8004         Emacs source need not contain these include files.
8005         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
8006         Windows-specific fixes into this function rather than just the
8007         nothrow fix, as this shortens and clarifies the code.  Always
8008         define as a function, as that's a bit cleaner than having it be
8009         sometimes a function and sometimes a macro.
8010         (rpl_dup2): Move the Windows-specific stuff out of here and into
8011         ms_windows_dup2.  Don't protect the Haiku-related fix with
8012         "#if !defined __linux__", as the same code also works around
8013         a Linux kernel bug, and it doesn't add any system calls on any
8014         platform.  Add comment about FreeBSD 6.1.
8015
8016         sigprocmask: move #include directive
8017         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
8018         Windows-specific section, so that the Emacs source need not
8019         contain msvc-inval.h.
8020
8021 2011-09-23  Bruno Haible  <bruno@clisp.org>
8022
8023         read: Support for MSVC 9.
8024         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
8025         is not 1.
8026         * lib/read.c (read_nothrow): New function.
8027         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
8028         read_nothrow.
8029         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
8030         invalid parameter handler.
8031         (gl_PREREQ_READ): New macro.
8032         * modules/read (Depends-on): Add msvc-inval.
8033         (configure.ac): Invoke gl_PREREQ_READ.
8034         * doc/posix-functions/read.texi: Mention the problem on MSVC.
8035
8036 2011-09-23  Bruno Haible  <bruno@clisp.org>
8037
8038         close: Support for MSVC 9.
8039         * lib/close.c: Include <errno.h>, msvc-inval.h.
8040         (close_nothrow): New function.
8041         (rpl_close): Use it.
8042         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
8043         invalid parameter handler.
8044         * modules/close (Depends-on): Add msvc-inval.
8045         * modules/dup2-tests (Depends-on): Add close.
8046         * modules/dup3-tests (Depends-on): Likewise.
8047         * modules/fcntl-tests (Depends-on): Likewise.
8048         * modules/spawn-pipe-tests (Depends-on): Likewise.
8049         * modules/unistd-safer-tests (Depends-on): Likewise.
8050         * doc/posix-functions/close.texi: Mention the problem on MSVC.
8051
8052 2011-09-23  Bruno Haible  <bruno@clisp.org>
8053
8054         New module 'dup'.
8055         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
8056         Allow replacement.
8057         * lib/dup.c: New file.
8058         * lib/fchdir.c (rpl_dup): Remove function.
8059         * m4/dup.m4: New file.
8060         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
8061         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
8062         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
8063         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
8064         * modules/dup: New file.
8065         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
8066         'dup' module is in use.
8067         * modules/fdopendir (Depends-on): Add dup.
8068         * modules/fdutimensat-tests (Depends-on): Likewise.
8069         * modules/fts (Depends-on): Likewise.
8070         * modules/futimens-tests (Depends-on): Likewise.
8071         * modules/posix_spawnp-tests (Depends-on): Likewise.
8072         * modules/unistd-safer-tests (Depends-on): Likewise.
8073         * modules/utimens-tests (Depends-on): Likewise.
8074         * doc/posix-functions/dup.texi: Mention the new module and the problem
8075         on MSVC.
8076
8077 2011-09-23  Bruno Haible  <bruno@clisp.org>
8078
8079         getdtablesize: Support for MSVC 9.
8080         * lib/getdtablesize.c: Include msvc-inval.h.
8081         (_setmaxstdio_nothrow): New function.
8082         (_setmaxstdio): Redefine it.
8083         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
8084         * modules/getdtablesize (Depends-on): Add msvc-inval.
8085         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
8086
8087 2011-09-23  Bruno Haible  <bruno@clisp.org>
8088
8089         signal-h: Rename from signal.
8090         * modules/signal-h: Renamed from modules/signal.
8091         * modules/pthread_sigmask (Depends-on): Update.
8092         * modules/raise (Depends-on): Likewise.
8093         * modules/sigaction (Depends-on): Likewise.
8094         * modules/sigpipe (Depends-on): Likewise.
8095         * modules/sigprocmask (Depends-on): Likewise.
8096         * modules/sys_select (Depends-on): Likewise.
8097         * modules/signal-h-tests: Renamed from modules/signal-tests.
8098         (Files, Depends-on, Makefile.am): Update.
8099         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
8100         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
8101         (Files, Makefile.am): Update.
8102         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
8103         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
8104         * modules/signal: New placeholder file.
8105         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
8106         * doc/posix-headers/signal.texi: Update.
8107         * NEWS: Mention the change.
8108
8109 2011-09-23  Bruno Haible  <bruno@clisp.org>
8110
8111         sigprocmask: Avoid crashes through signal() on MSVC 9.
8112         * lib/sigprocmask.c: Include msvc-inval.h.
8113         (signal_nothrow): New function.
8114         (signal): Redefine it.
8115         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
8116         * modules/sigprocmask (Depends-on): Add msvc-inval.
8117         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
8118
8119 2011-09-23  Bruno Haible  <bruno@clisp.org>
8120
8121         Tests for module 'raise'.
8122         * modules/raise-tests: New file.
8123         * tests/test-raise.c: New file.
8124
8125         raise: Support for MSVC.
8126         * lib/signal.in.h (raise): New declaration.
8127         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
8128         for native Windows platforms.
8129         * m4/raise.m4: New file.
8130         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
8131         HAVE_RAISE, REPLACE_RAISE.
8132         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
8133         REPLACE_RAISE.
8134         * modules/raise (Status, Notice): Remove fields.
8135         (Files): Add m4/raise.m4.
8136         (Depends-on): Add signal, msvc-inval.
8137         (configure.ac): Use the common idioms.
8138         (Maintainer): Add me.
8139         * tests/test-signal-c++.cc: Check the signature of raise.
8140         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
8141
8142 2011-09-23  Bruno Haible  <bruno@clisp.org>
8143
8144         pipe2: Fix compilation on pre-C99 compilers.
8145         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
8146
8147 2011-09-23  Bruno Haible  <bruno@clisp.org>
8148
8149         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
8150         * lib/msvc-nothrow.h: New file.
8151         * lib/msvc-nothrow.c: New file.
8152         * m4/msvc-nothrow.m4: New file.
8153         * modules/msvc-nothrow: New file.
8154         * lib/dup2.c: Include msvc-nothrow.h.
8155         (rpl_dup2): No need to protect _get_osfhandle call here.
8156         * lib/accept4.c: Include msvc-nothrow.h.
8157         * lib/error.c: Likewise.
8158         * lib/fcntl.c: Likewise.
8159         * lib/lseek.c: Likewise.
8160         * lib/nonblocking.c: Likewise.
8161         * lib/poll.c: Likewise.
8162         * lib/read.c: Likewise.
8163         * lib/select.c: Likewise.
8164         * lib/sockets.h: Likewise.
8165         * lib/sockets.c: Likewise.
8166         * lib/stdio-read.c: Likewise.
8167         * lib/stdio-write.c: Likewise.
8168         * lib/write.c: Likewise.
8169         * lib/w32sock.h: Likewise.
8170         * lib/w32spawn.h: Likewise.
8171         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
8172         * lib/fsync.c: Likewise.
8173         * lib/isapipe.c: Likewise.
8174         * modules/dup2 (Depends-on): Add msvc-nothrow.
8175         * modules/accept4 (Depends-on): Likewise.
8176         * modules/error (Depends-on): Likewise.
8177         * modules/fcntl (Depends-on): Likewise.
8178         * modules/lseek (Depends-on): Likewise.
8179         * modules/nonblocking (Depends-on): Likewise.
8180         * modules/poll (Depends-on): Likewise.
8181         * modules/read (Depends-on): Likewise.
8182         * modules/select (Depends-on): Likewise.
8183         * modules/sockets (Depends-on): Likewise.
8184         * modules/sigpipe (Depends-on): Likewise.
8185         * modules/write (Depends-on): Likewise.
8186         * modules/accept (Depends-on): Likewise.
8187         * modules/bind (Depends-on): Likewise.
8188         * modules/connect (Depends-on): Likewise.
8189         * modules/gethostname (Depends-on): Likewise.
8190         * modules/getpeername (Depends-on): Likewise.
8191         * modules/getsockname (Depends-on): Likewise.
8192         * modules/getsockopt (Depends-on): Likewise.
8193         * modules/ioctl (Depends-on): Likewise.
8194         * modules/listen (Depends-on): Likewise.
8195         * modules/recv (Depends-on): Likewise.
8196         * modules/recvfrom (Depends-on): Likewise.
8197         * modules/send (Depends-on): Likewise.
8198         * modules/sendto (Depends-on): Likewise.
8199         * modules/setsockopt (Depends-on): Likewise.
8200         * modules/shutdown (Depends-on): Likewise.
8201         * modules/socket (Depends-on): Likewise.
8202         * modules/execute (Depends-on): Likewise.
8203         * modules/spawn-pipe (Depends-on): Likewise.
8204         * modules/flock (Depends-on): Likewise.
8205         * modules/fsync (Depends-on): Likewise.
8206         * modules/isapipe (Depends-on): Likewise.
8207         * tests/test-cloexec.c: Include msvc-nothrow.h.
8208         * tests/test-dup-safer.c: Likewise.
8209         * tests/test-dup2.c: Likewise.
8210         * tests/test-dup3.c: Likewise.
8211         * tests/test-fcntl.c: Likewise.
8212         * tests/test-pipe.c: Likewise.
8213         * tests/test-pipe2.c: Likewise.
8214         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
8215         * modules/unistd-safer-tests (Depends-on): Likewise.
8216         * modules/dup2-tests (Depends-on): Likewise.
8217         * modules/dup3-tests (Depends-on): Likewise.
8218         * modules/fcntl-tests (Depends-on): Likewise.
8219         * modules/pipe-posix-tests (Depends-on): Likewise.
8220         * modules/pipe2-tests (Depends-on): Likewise.
8221
8222 2011-09-23  Bruno Haible  <bruno@clisp.org>
8223
8224         dup2: Make code more maintainable.
8225         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
8226         (rpl_dup2): Use it.
8227         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
8228         * modules/dup2 (configure.ac): Invoke it.
8229         Reported by Paul Eggert.
8230
8231 2011-09-23  Bruno Haible  <bruno@clisp.org>
8232
8233         msvc-inval: Fix compilation error.
8234         * lib/msvc-inval.h: Include <excpt.h>.
8235
8236 2011-09-23  Bruno Haible  <bruno@clisp.org>
8237
8238         mkdir: Tweak for MSVC 9.
8239         * lib/sys_stat.in.h: Update comments.
8240         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
8241
8242         Tests for module 'chdir'.
8243         * modules/chdir-tests: New file.
8244         * tests/test-chdir.c: New file.
8245
8246         New module 'chdir'.
8247         * modules/chdir: New file.
8248         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
8249         (chdir): New declaration.
8250         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
8251         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
8252         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
8253         * tests/test-unistd-c++.cc: Check signature of chdir.
8254         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
8255         * modules/chdir-long (Depends-on): Add chdir.
8256         * modules/fchdir (Depends-on): Likewise.
8257         * modules/rename (Depends-on): Likewise.
8258         * modules/savewd (Depends-on): Likewise.
8259
8260         rmdir: Support for mingw, MSVC 9.
8261         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
8262         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
8263
8264         getcwd: Tweak for MSVC 9.
8265         * lib/unistd.in.h: Update comments.
8266         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8267
8268 2011-09-22  Bruno Haible  <bruno@clisp.org>
8269
8270         strerror_r-posix: Avoid a link error on MSVC.
8271         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8272         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8273
8274 2011-09-22  Bruno Haible  <bruno@clisp.org>
8275
8276         select: Avoid link errors on MSVC.
8277         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8278         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8279         * modules/pselect (Link): Likewise.
8280         * NEWS: Mention the change.
8281         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8282         test-select-stdin against $(LIB_SELECT).
8283         * modules/pselect-tests (Makefile.am): Link test-pselect against
8284         $(LIB_SELECT).
8285
8286 2011-09-22  Bruno Haible  <bruno@clisp.org>
8287
8288         select: Avoid compilation error on MSVC.
8289         * lib/select.c: Don't include <stdbool.h>.
8290
8291 2011-09-21  Bruno Haible  <bruno@clisp.org>
8292
8293         Consolidate all uses of PATH_MAX in *.m4 files.
8294         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
8295         macros.
8296         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
8297         and gl_PATHMAX_SNIPPET.
8298         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8299         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8300         * modules/chdir-long (Files): Add m4/pathmax.m4.
8301         * modules/getcwd (Files): Likewise.
8302
8303 2011-09-21  Bruno Haible  <bruno@clisp.org>
8304
8305         ftruncate: Un-deprecate, concentrate on Win32 support.
8306         * modules/ftruncate (Status, Notice): Remove sections.
8307         (Depends-on): Add largefile.
8308         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
8309         non-mingw platforms.
8310         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
8311         include <io.h>.
8312         * modules/perror-tests (Depends-on): Add ftruncate.
8313         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
8314         'ftruncate' module.
8315
8316 2011-09-21  Bruno Haible  <bruno@clisp.org>
8317
8318         Add dependencies to new dirent related modules.
8319         * modules/opendir (Depends-on): Add closedir.
8320         * modules/getcwd (Depends-on): Add opendir, closedir.
8321         * modules/dirent-safer-tests (Depends-on): Likewise.
8322         * modules/fdopendir-tests (Depends-on): Likewise.
8323         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
8324         * modules/renameat-tests (Depends-on): Likewise.
8325
8326 2011-09-21  Bruno Haible  <bruno@clisp.org>
8327
8328         opendir: Avoid compilation error on mingw.
8329         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
8330         * modules/opendir (Depends-on): Add unistd.
8331
8332 2011-09-21  Bruno Haible  <bruno@clisp.org>
8333
8334         ftruncate tests: Avoid a test failure on mingw.
8335         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
8336
8337 2011-09-21  Bruno Haible  <bruno@clisp.org>
8338
8339         select tests: Avoid test failures on OSF/1 5.1 and mingw.
8340         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
8341         native Windows.
8342
8343 2011-09-21  Bruno Haible  <bruno@clisp.org>
8344
8345         New module 'fdopen'.
8346         * lib/stdio.in.h (fdopen): New declaration.
8347         * lib/fdopen.c: New file.
8348         * m4/fdopen.m4: New file.
8349         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
8350         REPLACE_FDOPEN.
8351         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
8352         REPLACE_FDOPEN.
8353         * modules/fdopen: New file.
8354         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
8355         * tests/test-stdio-c++.cc: Check signature of fdopen.
8356         * doc/posix-functions/fdopen.texi: Mention the new module.
8357
8358 2011-09-21  Bruno Haible  <bruno@clisp.org>
8359
8360         unlockpt tests: Avoid test failure on NetBSD 5.1.
8361         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
8362         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
8363
8364 2011-09-21  Bruno Haible  <bruno@clisp.org>
8365
8366         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
8367         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
8368         * tests/test-getlogin_r.c (main): Likewise.
8369
8370 2011-09-20  Bruno Haible  <bruno@clisp.org>
8371
8372         time tests: Don't require pid_t.
8373         * doc/posix-headers/time.texi: Revert last change.
8374         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
8375         * tests/test-time.c: Comment out the check for pid_t.
8376
8377 2011-09-20  Bruno Haible  <bruno@clisp.org>
8378
8379         fsync tests: Avoid a test failure on mingw.
8380         * tests/test-fsync.c (main): Allow a failure with EIO.
8381
8382 2011-09-20  Bruno Haible  <bruno@clisp.org>
8383
8384         euidaccess: Update comments.
8385         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
8386
8387 2011-09-20  Bruno Haible  <bruno@clisp.org>
8388
8389         Ensure EBADF returns for socket functions on mingw.
8390         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
8391         descriptor is invalid.
8392         * lib/bind.c (rpl_bind): Likewise.
8393         * lib/connect.c (rpl_connect): Likewise.
8394         * lib/getpeername.c (rpl_getpeername): Likewise.
8395         * lib/getsockname.c (rpl_getsockname): Likewise.
8396         * lib/getsockopt.c (rpl_getsockopt): Likewise.
8397         * lib/listen.c (rpl_listen): Likewise.
8398         * lib/recv.c (rpl_recv): Likewise.
8399         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8400         * lib/send.c (rpl_send): Likewise.
8401         * lib/sendto.c (rpl_sendto): Likewise.
8402         * lib/setsockopt.c (rpl_setsockopt): Likewise.
8403         * lib/shutdown.c (rpl_shutdown): Likewise.
8404
8405 2011-09-20  Bruno Haible  <bruno@clisp.org>
8406
8407         select tests: EBADF tests.
8408         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
8409         test_bad_fd): New functions.
8410         (test_function): Invoke also test_bad_fd.
8411
8412 2011-09-20  Bruno Haible  <bruno@clisp.org>
8413
8414         Tests for module 'posix_spawn_file_actions_addopen.
8415         * modules/posix_spawn_file_actions_addopen-tests: New file.
8416         * tests/test-posix_spawn_file_actions_addopen.c: New file.
8417
8418         Tests for module 'posix_spawn_file_actions_adddup2'.
8419         * modules/posix_spawn_file_actions_adddup2-tests: New file.
8420         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
8421
8422         Tests for module 'posix_spawn_file_actions_addclose'.
8423         * modules/posix_spawn_file_actions_addclose-tests: New file.
8424         * tests/test-posix_spawn_file_actions_addclose.c: New file.
8425
8426 2011-09-20  Bruno Haible  <bruno@clisp.org>
8427
8428         Tests for module 'unlockpt'.
8429         * modules/unlockpt-tests: New file.
8430         * tests/test-unlockpt.c: New file.
8431         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
8432
8433         Tests for module 'grantpt'.
8434         * modules/grantpt-tests: New file.
8435         * tests/test-grantpt.c: New file.
8436         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
8437
8438 2011-09-20  Bruno Haible  <bruno@clisp.org>
8439
8440         freopen tests: EBADF tests.
8441         * tests/test-freopen.c: Include errno.h, unistd.h.
8442         (main): Add tests for EBADF, commented out for the moment.
8443
8444         fclose tests: EBADF tests.
8445         * tests/test-fclose.c (main): Add tests for EBADF.
8446
8447         fflush tests: EBADF tests.
8448         * tests/test-fflush.c: Include errno.h, macros.h.
8449         (main): Add tests for EBADF.
8450
8451         ftello tests: EBADF tests.
8452         * tests/test-ftello4.sh: New file.
8453         * tests/test-ftello4.c: New file.
8454         * modules/ftello-tests (Files): Add them.
8455         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
8456
8457         fseeko tests: EBADF tests.
8458         * tests/test-fseeko4.sh: New file.
8459         * tests/test-fseeko4.c: New file.
8460         * modules/fseeko-tests (Files): Add them.
8461         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
8462
8463         Tests for function fputc().
8464         * modules/fputc-tests: New file.
8465         * tests/test-fputc.c: New file.
8466         * modules/stdio-tests (Depends-on): Add fputc-tests.
8467
8468         Tests for function fgetc().
8469         * modules/fgetc-tests: New file.
8470         * tests/test-fgetc.c: New file.
8471         * modules/stdio-tests (Depends-on): Add fgetc-tests.
8472
8473         Tests for function fdopen().
8474         * modules/fdopen-tests: New file.
8475         * tests/test-fdopen.c: New file.
8476         * modules/stdio-tests (Depends-on): Add fdopen-tests.
8477
8478         Tests for module 'vdprintf'.
8479         * modules/vdprintf-tests: New file.
8480         * tests/test-vdprintf.c: New file.
8481
8482         Tests for module 'dprintf'.
8483         * modules/dprintf-tests: New file.
8484         * tests/test-dprintf.c: New file.
8485
8486 2011-09-20  Bruno Haible  <bruno@clisp.org>
8487
8488         Tests for module 'ioctl'.
8489         * modules/ioctl-tests: New file.
8490         * tests/test-ioctl.c: New file.
8491
8492 2011-09-20  Bruno Haible  <bruno@clisp.org>
8493
8494         fcntl tests: EBADF tests.
8495         * tests/test-fcntl.c (main): Add more tests for EBADF.
8496
8497 2011-09-20  Bruno Haible  <bruno@clisp.org>
8498
8499         utimensat tests: EBADF tests.
8500         * tests/test-utimensat.c (main): Add tests for EBADF.
8501
8502         renameat tests: EBADF tests.
8503         * tests/test-renameat.c (main): Add tests for EBADF.
8504
8505         mkfifoat tests: EBADF tests.
8506         * tests/test-mkfifoat.c (main): Add tests for EBADF.
8507
8508         readlinkat tests: EBADF tests.
8509         * tests/test-readlinkat.c (main): Add tests for EBADF.
8510
8511         symlinkat tests: EBADF tests.
8512         * tests/test-symlinkat.c (main): Add tests for EBADF.
8513
8514         linkat tests: EBADF tests.
8515         * tests/test-linkat.c (main): Add tests for EBADF.
8516
8517         Tests for module 'faccessat'.
8518         * modules/faccessat-tests: New file.
8519         * tests/test-faccessat.c: New file.
8520
8521         fdopendir tests: EBADF tests.
8522         * tests/test-fdopendir.c (main): Add more tests for EBADF.
8523
8524         openat tests: EBADF tests.
8525         * tests/test-fchownat.c (main): Add tests for EBADF.
8526         * tests/test-fstatat.c (main): Likewise.
8527         * tests/test-mkdirat.c (main): Likewise.
8528         * tests/test-openat.c (main): Likewise.
8529         * tests/test-unlinkat.c (main): Likewise.
8530         * tests/test-fchmodat.c: New file.
8531         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
8532         (Makefile.am): Also run 'test-fchmodat'.
8533
8534 2011-09-20  Bruno Haible  <bruno@clisp.org>
8535
8536         utimens, futimens, fdutimensat tests: EBADF tests.
8537         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
8538
8539         Tests for function fstat().
8540         * modules/fstat-tests: New file.
8541         * tests/test-fstat.c: New file.
8542         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
8543
8544 2011-09-20  Bruno Haible  <bruno@clisp.org>
8545
8546         test-ttyname_r tests: EBADF tests.
8547         * tests/test-ttyname_r.c (main): Add tests for EBADF.
8548
8549         Tests for module 'isatty'.
8550         * modules/isatty-tests: New file.
8551         * tests/test-isatty.c: New file.
8552
8553         Tests for module 'write'.
8554         * modules/write-tests: New file.
8555         * tests/test-write.c: New file.
8556
8557         Tests for module 'read'.
8558         * modules/read-tests: New file.
8559         * tests/test-read.c: New file.
8560
8561         pwrite tests: EBADF tests.
8562         * tests/test-pwrite.c (main): Add tests for EBADF.
8563
8564         pread tests: EBADF tests.
8565         * tests/test-pread.c (main): Add tests for EBADF.
8566
8567         lseek tests: EBADF tests.
8568         * tests/test-lseek.c (main): Add more tests for EBADF.
8569
8570         Tests for module 'ftruncate'.
8571         * modules/ftruncate-tests: New file.
8572         * tests/test-ftruncate.sh: New file.
8573         * tests/test-ftruncate.c: New file.
8574
8575         fsync tests: EBADF tests.
8576         * tests/test-fsync.c (main): Add more tests for EBADF.
8577
8578         fdatasync tests: EBADF tests.
8579         * tests/test-fdatasync.c (main): Add more tests for EBADF.
8580
8581         Tests for module 'fchown'.
8582         * modules/fchown-tests: New file.
8583         * tests/test-fchown.c: New file.
8584
8585         Tests for module 'fchmod'.
8586         * modules/fchmod-tests: New file.
8587         * tests/test-fchmod.c: New file.
8588
8589         fchdir tests: EBADF tests.
8590         * tests/test-fchdir.c (main): Add more tests for EBADF.
8591
8592         dup2 tests: EBADF tests.
8593         * tests/test-dup2.c (main): Add more tests for EBADF.
8594
8595         Tests for module 'dup'.
8596         * modules/dup-tests: New file.
8597         * tests/test-dup.c: New file.
8598
8599         Tests for module 'close'.
8600         * modules/close-tests: New file.
8601         * tests/test-close.c: New file.
8602
8603 2011-09-20  Bruno Haible  <bruno@clisp.org>
8604
8605         Tests for module 'shutdown'.
8606         * modules/shutdown-tests: New file.
8607         * tests/test-shutdown.c: New file.
8608
8609         Tests for module 'setsockopt'.
8610         * modules/setsockopt-tests: New file.
8611         * tests/test-setsockopt.c: New file.
8612
8613         Tests for module 'sendto'.
8614         * modules/sendto-tests: New file.
8615         * tests/test-sendto.c: New file.
8616
8617         Tests for module 'send'.
8618         * modules/send-tests: New file.
8619         * tests/test-send.c: New file.
8620
8621         Tests for module 'recvfrom'.
8622         * modules/recvfrom-tests: New file.
8623         * tests/test-recvfrom.c: New file.
8624
8625         Tests for module 'recv'.
8626         * modules/recv-tests: New file.
8627         * tests/test-recv.c: New file.
8628
8629         Tests for module 'listen'.
8630         * modules/listen-tests: New file.
8631         * tests/test-listen.c: New file.
8632
8633         Tests for module 'getsockopt'.
8634         * modules/getsockopt-tests: New file.
8635         * tests/test-getsockopt.c: New file.
8636
8637         Tests for module 'getsockname'.
8638         * modules/getsockname-tests: New file.
8639         * tests/test-getsockname.c: New file.
8640
8641         Tests for module 'getpeername'.
8642         * modules/getpeername-tests: New file.
8643         * tests/test-getpeername.c: New file.
8644
8645         Tests for module 'connect'.
8646         * modules/connect-tests: New file.
8647         * tests/test-connect.c: New file.
8648
8649         Tests for module 'bind'.
8650         * modules/bind-tests: New file.
8651         * tests/test-bind.c: New file.
8652
8653         accept4 tests: Fix for native Windows.
8654         * tests/test-accept4.c: Include sockets.h.
8655         (main): Invoke gl_sockets_startup.
8656         * modules/accept4-tests (Depends-on): Add sockets.
8657
8658         accept tests: Fix for native Windows.
8659         * tests/test-accept.c: Include sockets.h.
8660         (main): Invoke gl_sockets_startup.
8661         * modules/accept-tests (Depends-on): Add sockets.
8662
8663 2011-09-19  Bruno Haible  <bruno@clisp.org>
8664
8665         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
8666         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
8667         do...while(0).
8668         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
8669         Suggested by Paul Eggert.
8670
8671 2011-09-19  Bruno Haible  <bruno@clisp.org>
8672
8673         sched: Ensure pid_t is defined.
8674         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
8675         not define pid_t.
8676         * lib/sched.in.h: Include <sys/types.h>.
8677         * doc/posix-headers/sched.texi: Mention the pid_t problem.
8678         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8679
8680 2011-09-19  Bruno Haible  <bruno@clisp.org>
8681
8682         msvc-inval: Ensure the entire expansion is a single statement.
8683         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
8684         of braces.
8685
8686 2011-09-19  Jim Meyering  <meyering@redhat.com>
8687
8688         tests: use printf, not echo in init.sh's warn_ function
8689         * tests/init.sh (warn_): Use printf, not echo.  The latter would
8690         misbehave when given strings containing a backslash or starting
8691         with e.g., -n.  James Youngman suggested setting IFS.
8692
8693 2011-09-19  Eric Blake  <eblake@redhat.com>
8694
8695         futimens: enhance test
8696         * tests/test-futimens.h (test_futimens): Also check for EBADF on
8697         closed non-negative fd.
8698
8699         date: accept 'hence' as opposite of 'ago'
8700         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
8701         * tests/test-parse-datetime.c (main): Enhance test.
8702         Suggested by Jesse Wilson.
8703
8704 2011-09-19  Jim Meyering  <meyering@redhat.com>
8705
8706         getcwd: don't fail in a deep directory on a system without openat
8707         Before this change, getcwd would fail when called from a directory
8708         of depth PATH_MAX / 3 or greater.  That was due to the fact that
8709         the non-openat implementation used "..", "../..", "../../..", etc.
8710         to access ancestor directories.  With too many, that string would
8711         be longer than PATH_MAX.
8712         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
8713         using gnulib's openat replacement.
8714         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
8715         we're using the replacement function.
8716
8717 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
8718
8719         maint.mk: avoid warnings from perl about missing files
8720         * top/maint.mk (def_sym_regex): Ignore files listed in
8721         $(gl_other_headers_) that do not exist, say because a project
8722         does not use a corresponding module.
8723
8724 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
8725
8726         stat: use pathmax.h only if needed
8727         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
8728         This is better for Emacs, which does not have a mingw port and
8729         therefore can avoid the pathmax module.
8730
8731         utimens: remove dependency on dup2
8732         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
8733         to work around the Linux kernel bug.
8734         * modules/utimens (Depends-on): Remove dup2.
8735
8736 2011-09-18  Bruno Haible  <bruno@clisp.org>
8737
8738         inet_ntop, inet_pton: Look for it also in libresolv.
8739         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
8740         libnsl, search for it in libresolv.
8741         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8742         Needed on Solaris 7.
8743
8744 2011-09-18  Bruno Haible  <bruno@clisp.org>
8745
8746         accept, accept4 tests: Avoid link error on Solaris.
8747         * modules/accept-tests (Makefile.am): Link test-accept against
8748         $(LIBSOCKET).
8749         * modules/accept4-tests (Makefile.am): Link test-accept4 against
8750         $(LIBSOCKET).
8751
8752         accept4: Avoid link error on Solaris.
8753         * modules/accept4 (Link): New section.
8754
8755         socket functions: Avoid link errors on Solaris.
8756         * modules/accept (Depends-on): Add socketlib.
8757         (Link): New section.
8758         * modules/bind (Depends-on): Add socketlib.
8759         (Link): New section.
8760         * modules/connect (Depends-on): Add socketlib.
8761         (Link): New section.
8762         * modules/getpeername (Depends-on): Add socketlib.
8763         (Link): New section.
8764         * modules/getsockname (Depends-on): Add socketlib.
8765         (Link): New section.
8766         * modules/getsockopt (Depends-on): Add socketlib.
8767         (Link): New section.
8768         * modules/listen (Depends-on): Add socketlib.
8769         (Link): New section.
8770         * modules/recv (Depends-on): Add socketlib.
8771         (Link): New section.
8772         * modules/recvfrom (Depends-on): Add socketlib.
8773         (Link): New section.
8774         * modules/send (Depends-on): Add socketlib.
8775         (Link): New section.
8776         * modules/sendto (Depends-on): Add socketlib.
8777         (Link): New section.
8778         * modules/setsockopt (Depends-on): Add socketlib.
8779         (Link): New section.
8780         * modules/shutdown (Depends-on): Add socketlib.
8781         (Link): New section.
8782         * modules/socket (Depends-on): Add socketlib.
8783         (Link): New section.
8784
8785 2011-09-18  Bruno Haible  <bruno@clisp.org>
8786
8787         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
8788         * tests/test-ptsname.c (main): Terminate the test if it takes longer
8789         than 5 seconds.
8790         * modules/ptsname-tests (configure.ac): Test for alarm.
8791
8792 2011-09-18  Bruno Haible  <bruno@clisp.org>
8793
8794         posix_spawn_file_actions_add*: Fix module dependencies.
8795         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
8796         posix_spawn_file_actions_init.
8797         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
8798         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
8799
8800 2011-09-18  Bruno Haible  <bruno@clisp.org>
8801
8802         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
8803         * tests/test-rename.h (test_rename): Allow error code EEXIST.
8804         * tests/test-renameat.c (main): Likewise.
8805
8806 2011-09-18  Bruno Haible  <bruno@clisp.org>
8807
8808         Tests for module 'accept4'.
8809         * modules/accept4-tests: New file.
8810         * tests/test-accept4.c: New file.
8811
8812 2011-09-18  Bruno Haible  <bruno@clisp.org>
8813
8814         Tests for module 'accept'.
8815         * modules/accept-tests: New file.
8816         * tests/test-accept.c: New file.
8817
8818 2011-09-18  Bruno Haible  <bruno@clisp.org>
8819
8820         dup2: Support for MSVC.
8821         * lib/dup2.c: Include msvc-inval.h.
8822         (rpl_dup2): Handle invalid parameter notifications during dup2 and
8823         _get_osfhandle calls.
8824         * modules/dup2 (Depends-on): Add msvc-inval.
8825         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
8826
8827         New module 'msvc-inval'.
8828         * lib/msvc-inval.h: New file.
8829         * lib/msvc-inval.c: New file.
8830         * m4/msvc-inval.m4: New file.
8831         * modules/msvc-inval: New file.
8832
8833 2011-09-17  Bruno Haible  <bruno@clisp.org>
8834
8835         Tests for module 'pclose'.
8836         * modules/pclose-tests: New file.
8837
8838         New module 'pclose'.
8839         * lib/stdio.in.h (pclose): New declaration.
8840         * lib/pclose.c: New file.
8841         * m4/pclose.m4: New file.
8842         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
8843         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
8844         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
8845         * modules/pclose: New file.
8846         * modules/popen-tests (Depends-on): Add pclose.
8847         * modules/popen-safer-tests (Depends-on): Likewise.
8848         * doc/posix-functions/pclose.texi: Mention the new module.
8849
8850 2011-09-17  Bruno Haible  <bruno@clisp.org>
8851
8852         popen: Support for MSVC.
8853         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
8854         * lib/popen.c (popen): Provide alternate definition for native Windows.
8855         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
8856         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
8857         * modules/popen (Depends-on, configure.ac): Update condition.
8858         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
8859         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
8860         fixed.
8861
8862 2011-09-17  Bruno Haible  <bruno@clisp.org>
8863
8864         isnanl, isnand, isnanf: Work around MSVC bug.
8865         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
8866
8867 2011-09-17  Bruno Haible  <bruno@clisp.org>
8868
8869         sys_socket tests: Fix recent mistake.
8870         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
8871
8872 2011-09-17  Bruno Haible  <bruno@clisp.org>
8873
8874         putenv: Support for MSVC.
8875         * modules/putenv (Depends-on): Add environ.
8876         * lib/putenv.c (environ): Disable declaration.
8877         * lib/unistd.in.h: Update comment.
8878
8879 2011-09-17  Bruno Haible  <bruno@clisp.org>
8880
8881         math: Avoid macro redefinition warnings on MSVC.
8882         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
8883         Undefine before redefining.
8884
8885 2011-09-17  Bruno Haible  <bruno@clisp.org>
8886
8887         doc: Mention functions which are declared as macros.
8888         * doc/posix-functions/*[fl].texi: Mention that some functions are
8889         defined as macros with arguments only.
8890
8891 2011-09-17  Bruno Haible  <bruno@clisp.org>
8892
8893         Add dependencies to new dirent related modules.
8894         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
8895         * modules/fts (Depends-on): Likewise.
8896         * modules/glob (Depends-on): Likewise.
8897         * modules/savedir (Depends-on): Likewise.
8898         * modules/scandir (Depends-on): Likewise.
8899         * modules/dirent-safer (Depends-on): Add opendir, closedir.
8900         * modules/fdopendir (Depends-on): Add opendir.
8901
8902 2011-09-17  Bruno Haible  <bruno@clisp.org>
8903
8904         inet_pton: Support for MSVC on Windows Vista or newer.
8905         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
8906         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
8907         HAVE_DECL_INET_PTON is defined.
8908         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8909         On platforms with <winsock2.h>, test whether inet_pton is declared in
8910         <ws2tcpip.h>. If so, arrange to replace it.
8911         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8912         REPLACE_INET_PTON.
8913         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
8914         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
8915         (Depends-on, configure.ac): Update condition.
8916         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
8917
8918 2011-09-17  Bruno Haible  <bruno@clisp.org>
8919
8920         inet_ntop: Support for MSVC on Windows Vista or newer.
8921         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
8922         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
8923         HAVE_DECL_INET_NTOP is defined.
8924         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8925         On platforms with <winsock2.h>, test whether inet_ntop is declared in
8926         <ws2tcpip.h>. If so, arrange to replace it.
8927         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8928         REPLACE_INET_NTOP.
8929         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
8930         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
8931         (Depends-on, configure.ac): Update condition.
8932         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
8933
8934 2011-09-16  Eric Blake  <eblake@redhat.com>
8935
8936         test-fsync: yet another enhancement
8937         * tests/test-fsync.c (main): Also test behavior on read-only text
8938         file.
8939
8940 2011-09-16  Bruno Haible  <bruno@clisp.org>
8941
8942         Enhance fsync, fdatasync tests.
8943         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
8944         * tests/test-fdatasync.c (main): Likewise.
8945
8946 2011-09-16  Bruno Haible  <bruno@clisp.org>
8947
8948         Support for MSVC compiler: Ensure mode_t gets defined.
8949         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
8950         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8951         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8952         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
8953         * tests/test-fcntl-h.c: Check that mode_t is defined.
8954         * tests/test-sys_stat.c: Likewise.
8955         * tests/test-sys_types.c: Likewise.
8956         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
8957         * doc/posix-headers/sys_stat.texi: Likewise.
8958         * doc/posix-headers/sys_types.texi: Likewise.
8959
8960 2011-09-16  Bruno Haible  <bruno@clisp.org>
8961
8962         sys_stat: Support for MSVC.
8963         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
8964         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
8965         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
8966         MSVC.
8967
8968 2011-09-16  Bruno Haible  <bruno@clisp.org>
8969
8970         Support for MSVC compiler: Ensure off_t gets defined.
8971         * lib/unistd.in.h: Include <sys/types.h>.
8972         * tests/test-fcntl-h.c: Check that off_t is defined.
8973         * tests/test-sys_stat.c: Likewise.
8974         * tests/test-sys_types.c: Likewise.
8975
8976 2011-09-16  Eric Blake  <eblake@redhat.com>
8977
8978         fdatasync: port to Solaris
8979         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
8980         * modules/fdatasync (Link): Document it.
8981         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
8982
8983         fdatasync: port to MacOS X 10.7
8984         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
8985         declared.
8986         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
8987         * modules/unistd (Makefile.am): Substitute it.
8988         * lib/unistd.in.h (fdatasync): Declare on MacOS.
8989         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
8990
8991         fdatasync: minor improvements
8992         * modules/fdatasync (Depends-on): Add condition for fsync.
8993         * lib/fdatasync.c (fdatasync): Add comment.
8994         * tests/test-unistd-c++.cc: Test fdatasync.
8995
8996         unistd: update refs to newer POSIX
8997         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
8998         Suggested by Bruno Haible.
8999
9000         fdatasync: new module
9001         * modules/fsync (Description): Document difference to fdatasync.
9002         * modules/fdatasync: New module.
9003         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
9004         * lib/fdatasync.c (fdatasync): Likewise.
9005         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
9006         defaults.
9007         * modules/unistd (Makefile.am): Set witnesses.
9008         * lib/unistd.in.h (fdatasync): Declare.
9009         * MODULES.html.sh: Document it.
9010         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
9011         * modules/fdatasync-tests: New test.
9012         * tests/test-fdatasync.c: Likewise.
9013
9014 2011-09-16  Eric Blake  <eblake@redhat.com>
9015
9016         test-fsync: enhance tests
9017         * modules/fsync-tests (Depends-on): Add errno, for mingw.
9018         * tests/test-fsync.c (main): Enhance test.
9019
9020 2011-09-15  Bruno Haible  <bruno@clisp.org>
9021
9022         Support for MSVC compiler: Ensure ssize_t gets defined.
9023         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
9024         * doc/posix-headers/stdio.texi: Likewise.
9025         * modules/stdio (Depends-on): Add ssize_t.
9026         * modules/sys_socket (Depends-on): Likewise.
9027         * modules/sys_types (Depends-on): Likewise.
9028         * modules/sys_uio (Depends-on): Likewise.
9029         * modules/unistd (Depends-on): Likewise.
9030         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
9031         * tests/test-sys_types.c: Check that ssize_t is defined.
9032
9033 2011-09-14  Bruno Haible  <bruno@clisp.org>
9034
9035         Avoid using #, the m4 comment starter character, near brackets.
9036         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
9037         delimiter character in sed expressions.
9038         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9039         Suggested by Eric Blake.
9040
9041         Properly quote AC_CHECK_DECLS' 4th argument.
9042         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
9043         argument.
9044         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
9045         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
9046         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9047         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
9048         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
9049         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
9050         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
9051         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
9052         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
9053         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
9054         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
9055         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9056         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
9057         * m4/isinf.m4 (gl_ISINF): Likewise.
9058         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
9059         * m4/readutmp.m4 (gl_READUTMP): Likewise.
9060         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9061         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
9062         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
9063         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
9064         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
9065         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
9066         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
9067         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
9068         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
9069         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
9070         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
9071         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
9072         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
9073         Reported by Eric Blake.
9074
9075         Properly quote AC_CHECK_DECL's 4th argument.
9076         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
9077         argument.
9078         * m4/argp.m4 (gl_ARGP): Likewise.
9079         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
9080         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
9081         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
9082         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
9083         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
9084         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
9085         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
9086         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
9087         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
9088         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
9089         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
9090         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
9091         Reported by Eric Blake.
9092
9093 2011-09-14  Eric Blake  <eblake@redhat.com>
9094
9095         opendir: avoid compile warning
9096         * lib/opendir.c (includes): Always include errno.h.
9097         Reported by Tatsuro MATSUOKA.
9098
9099 2011-09-14  Jim Meyering  <meyering@redhat.com>
9100
9101         maint.mk: sc_tight_scope: propagate failure from sub-make
9102         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
9103         Reported by Martin von Gagern.
9104
9105 2011-09-13  Bruno Haible  <bruno@clisp.org>
9106
9107         tempname: Support for MSVC.
9108         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
9109         MSVC.
9110         * modules/tempname (Depends-on): Add fcntl-h.
9111
9112 2011-09-13  Bruno Haible  <bruno@clisp.org>
9113
9114         sys_time: Support for MSVC.
9115         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
9116         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
9117         include <winsock2.h>.
9118         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
9119         function declarations that collide with POSIX.
9120         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
9121         (Makefile.am): Substitute HAVE_WINSOCK2_H.
9122
9123 2011-09-13  Bruno Haible  <bruno@clisp.org>
9124
9125         stat: Support for MSVC.
9126         * lib/stat.c: Include pathmax.h.
9127         * modules/stat (Depends-on): Add pathmax.
9128
9129         pathmax: Support for native Windows.
9130         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
9131
9132 2011-09-12  Bruno Haible  <bruno@clisp.org>
9133
9134         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
9135         * lib/dirent.in.h (struct dirent): New type.
9136         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
9137         DT_WHT): New macros.
9138         (DIR): New type.
9139         (opendir, closedir): Declare only if the module 'opendir' is enabled.
9140         (readdir, rewinddir): New declarations.
9141         * lib/dirent-private.h: New file.
9142         * lib/opendir.c: New file.
9143         * lib/readdir.c: New file.
9144         * lib/rewinddir.c: New file.
9145         * lib/closedir.c: New file.
9146         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
9147         * m4/opendir.m4: New file.
9148         * m4/readdir.m4: New file.
9149         * m4/rewinddir.m4: New file.
9150         * m4/closedir.m4: New file.
9151         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
9152         REPLACE_CLOSEDIR here.
9153         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
9154         readdir, rewinddir are declared.
9155         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
9156         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
9157         HAVE_REWINDDIR, HAVE_CLOSEDIR.
9158         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
9159         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
9160         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
9161         * modules/opendir: New file.
9162         * modules/readdir: New file.
9163         * modules/rewinddir: New file.
9164         * modules/closedir: New file.
9165         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
9166         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
9167         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
9168         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
9169         * NEWS: Mention the 'fchdir' change.
9170
9171 2011-09-11  Bruno Haible  <bruno@clisp.org>
9172
9173         asm-underscore.m4: Support for MSVC.
9174         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
9175         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
9176
9177 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
9178
9179         Doc about crypt functions.
9180         * doc/posix-functions/crypt.texi: Expand range of glibc versions
9181         needing for _GNU_SOURCE to get crypt.
9182         * doc/posix-functions/encrypt.texi: Likewise.
9183         * doc/posix-functions/setkey.texi: Likewise.
9184
9185 2011-09-11  Bruno Haible  <bruno@clisp.org>
9186
9187         doc: Update regarding MSVC 9.
9188         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
9189         tested".
9190         * doc/posix-functions/*.texi: Update with info about MSVC 9.
9191         * doc/posix-headers/*.texi: Likewise.
9192         * doc/pastposix-functions/*.texi: Likewise.
9193         * doc/glibc-functions/*.texi: Likewise.
9194         * doc/glibc-headers/*.texi: Likewise.
9195
9196 2011-09-11  Bruno Haible  <bruno@clisp.org>
9197
9198         unistd et al.: Don't assume <unistd.h> exists.
9199         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
9200         does not exist.
9201         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
9202         exist. But include <stdlib.h>.
9203         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
9204         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
9205         symlink() does not exist.
9206         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
9207         include <io.h> instead.
9208         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
9209         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
9210         include <direct.h> instead.
9211         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
9212         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
9213         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
9214         <io.h> instead.
9215         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
9216         correctly if the system does not have hard links.
9217         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
9218         <direct.h> instead.
9219         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
9220         it when looking for function declarations.
9221         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
9222         <direct.h> and <io.h> instead.
9223         * doc/posix-headers/unistd.texi: More details about MSVC problem.
9224
9225 2011-09-11  Bruno Haible  <bruno@clisp.org>
9226
9227         strcase: Support for MSVC.
9228         * modules/strcase (Status, Notice): Remove obsoletion mark.
9229         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
9230         * doc/posix-functions/strncasecmp.texi: Likewise.
9231
9232         strings: Don't assume <strings.h> exists.
9233         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
9234         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
9235         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
9236         * doc/posix-headers/strings.texi: Mention the MSVC problem.
9237
9238 2011-09-11  Bruno Haible  <bruno@clisp.org>
9239
9240         dirent: Don't assume <dirent.h> exists.
9241         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
9242         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
9243         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
9244         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
9245
9246 2011-09-11  Bruno Haible  <bruno@clisp.org>
9247
9248         Fix wint_t on MSVC.
9249         * lib/wchar.in.h (wint_t): On MSVC, override it.
9250         * lib/wctype.in.h (wint_t): Likewise.
9251         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
9252         MSVC.
9253         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
9254         * doc/posix-headers/wctype.texi: Likewise.
9255
9256 2011-09-11  Bruno Haible  <bruno@clisp.org>
9257
9258         sys_types: Fix typo.
9259         * lib/sys_types.in.h: Fix typo in comment.
9260         Reported by Paul Eggert.
9261
9262         Support for MSVC compiler: Ensure size_t gets defined.
9263         * modules/strings (Depends-on): Add 'sys_types'.
9264         * modules/sys_uio (Depends-on): Likewise.
9265         * lib/sys_uio.in.h: Update comment.
9266
9267         C++ tests for module 'sys_types'.
9268         * modules/sys_types-c++-tests: New file.
9269         * tests/test-sys_types-c++.cc: New file.
9270
9271         Tests for module 'sys_types'.
9272         * modules/sys_types-tests: New file.
9273         * tests/test-sys_types.c: New file.
9274
9275         New module 'sys_types'.
9276         * lib/sys_types.in.h: New file.
9277         * m4/sys_types_h.m4: New file.
9278         * modules/sys_types: New file.
9279         * doc/posix-headers/sys_types.texi: Mention the new module and the
9280         size_t problem on MSVC 9.
9281
9282 2011-09-11  Bruno Haible  <bruno@clisp.org>
9283
9284         Support for MSVC compiler: Avoid division by a literal 0.
9285         * lib/math.in.h (NAN): Define through a function call also on MSVC.
9286         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
9287         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
9288         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
9289         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
9290         * tests/infinity.h: New file.
9291         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
9292         on MSVC.
9293         * tests/test-ceilf1.c: Include infinity.h.
9294         (main): Use Infinityf.
9295         * tests/test-ceil1.c: Include infinity.h.
9296         (main): Use Infinityd.
9297         * tests/test-ceill.c: Include infinity.h.
9298         (main): Use Infinityl.
9299         * tests/test-dprintf-posix.c: Include infinity.h.
9300         (test_function): Use Infinityd.
9301         * tests/test-floorf1.c: Include infinity.h.
9302         (main): Use Infinityf.
9303         * tests/test-floor1.c: Include infinity.h.
9304         (main): Use Infinityd.
9305         * tests/test-floorl.c: Include infinity.h.
9306         (main): Use Infinityl.
9307         * tests/test-fprintf-posix.c: Include infinity.h.
9308         (test_function): Use Infinityd.
9309         * tests/test-frexp.c: Include infinity.h.
9310         (main): Use Infinityd.
9311         * tests/test-frexpl.c: Include infinity.h.
9312         (main): Use Infinityl.
9313         * tests/test-isfinite.c: Include infinity.h.
9314         (test_isfinitef): Use Infinityf.
9315         (test_isfinited): Use Infinityd.
9316         (test_isfinitel): Use Infinityl.
9317         * tests/test-isinf.c: Include infinity.h.
9318         (test_isinff): Use Infinityf.
9319         (test_isinfd): Use Infinityd.
9320         (test_isinfl): Use Infinityl.
9321         * tests/test-isnan.c: Include infinity.h.
9322         (test_float): Use Infinityf.
9323         (test_double): Use Infinityd.
9324         (test_long_double): Use Infinityl.
9325         * tests/test-isnanf.h: Include infinity.h.
9326         (main): Use Infinityf.
9327         * tests/test-isnand.h: Include infinity.h.
9328         (main): Use Infinityd.
9329         * tests/test-isnanl.h: Include infinity.h.
9330         (main): Use Infinityl.
9331         * tests/test-ldexpl.c: Include infinity.h.
9332         (main): Use Infinityl.
9333         * tests/test-printf-posix.h: Include infinity.h.
9334         (test_function): Use Infinityd.
9335         * tests/test-roundf1.c: Include infinity.h.
9336         (main): Use Infinityf.
9337         * tests/test-round1.c: Include infinity.h.
9338         (main): Use Infinityd.
9339         * tests/test-roundl.c: Include infinity.h.
9340         (main): Use Infinityl.
9341         * tests/test-signbit.c: Include infinity.h.
9342         (test_signbitf): Use Infinityf.
9343         (test_signbitd): Use Infinityd.
9344         (test_signbitl): Use Infinityl.
9345         * tests/test-snprintf-posix.h: Include infinity.h.
9346         (test_function): Use Infinityd, Infinityl.
9347         * tests/test-sprintf-posix.h: Include infinity.h.
9348         (test_function): Use Infinityd, Infinityl.
9349         * tests/test-truncf1.c: Include infinity.h.
9350         (main): Use Infinityf.
9351         * tests/test-trunc1.c: Include infinity.h.
9352         (main): Use Infinityd.
9353         * tests/test-truncl.c: Include infinity.h.
9354         (main): Use Infinityl.
9355         * tests/test-vasnprintf-posix.c: Include infinity.h.
9356         (test_function): Use Infinityd, Infinityl.
9357         * tests/test-vasprintf-posix.c: Include infinity.h.
9358         (test_function): Use Infinityd, Infinityl.
9359         * modules/ceilf-tests (Files): Add tests/infinity.h.
9360         * modules/ceil-tests (Files): Likewise.
9361         * modules/ceill-tests (Files): Likewise.
9362         * modules/dprintf-posix-tests (Files): Likewise.
9363         * modules/floorf-tests (Files): Likewise.
9364         * modules/floor-tests (Files): Likewise.
9365         * modules/floorl-tests (Files): Likewise.
9366         * modules/fprintf-posix-tests (Files): Likewise.
9367         * modules/frexp-tests (Files): Likewise.
9368         * modules/frexp-nolibm-tests (Files): Likewise.
9369         * modules/frexpl-tests (Files): Likewise.
9370         * modules/frexpl-nolibm-tests (Files): Likewise.
9371         * modules/isfinite-tests (Files): Likewise.
9372         * modules/isinf-tests (Files): Likewise.
9373         * modules/isnan-tests (Files): Likewise.
9374         * modules/isnanf-tests (Files): Likewise.
9375         * modules/isnanf-nolibm-tests (Files): Likewise.
9376         * modules/isnand-tests (Files): Likewise.
9377         * modules/isnand-nolibm-tests (Files): Likewise.
9378         * modules/isnanl-tests (Files): Likewise.
9379         * modules/isnanl-nolibm-tests (Files): Likewise.
9380         * modules/ldexpl-tests (Files): Likewise.
9381         * modules/printf-posix-tests (Files): Likewise.
9382         * modules/roundf-tests (Files): Likewise.
9383         * modules/round-tests (Files): Likewise.
9384         * modules/roundl-tests (Files): Likewise.
9385         * modules/signbit-tests (Files): Likewise.
9386         * modules/snprintf-posix-tests (Files): Likewise.
9387         * modules/sprintf-posix-tests (Files): Likewise.
9388         * modules/truncf-tests (Files): Likewise.
9389         * modules/trunc-tests (Files): Likewise.
9390         * modules/truncl-tests (Files): Likewise.
9391         * modules/vasnprintf-posix-tests (Files): Likewise.
9392         * modules/vasprintf-posix-tests (Files): Likewise.
9393         * modules/vdprintf-posix-tests (Files): Likewise.
9394         * modules/vfprintf-posix-tests (Files): Likewise.
9395         * modules/vprintf-posix-tests (Files): Likewise.
9396         * modules/vsnprintf-posix-tests (Files): Likewise.
9397         * modules/vsprintf-posix-tests (Files): Likewise.
9398         * modules/xprintf-posix-tests (Files): Likewise.
9399
9400 2011-09-11  Bruno Haible  <bruno@clisp.org>
9401
9402         Ensure pid_t gets defined.
9403         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
9404         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9405         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9406         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9407         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9408         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9409         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9410         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9411         * tests/test-fcntl-h.c: Check that pid_t is defined.
9412         * tests/test-sched.c: Likewise.
9413         * tests/test-termios.c: Likewise.
9414         * tests/test-time.c: Likewise.
9415         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
9416         * doc/posix-headers/signal.texi: Likewise.
9417         * doc/posix-headers/sys_types.texi: Likewise.
9418         * doc/posix-headers/time.texi: Likewise.
9419
9420 2011-09-11  Bruno Haible  <bruno@clisp.org>
9421
9422         acl: Fix compilation on Solaris 10 (older version).
9423         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
9424         of ACE_EVERYONE.
9425         * lib/set-mode-acl.c (qset_acl): Likewise.
9426         Reported by Christian Jullien <eligis@orange.fr>.
9427
9428 2011-09-10  Bruno Haible  <bruno@clisp.org>
9429
9430         iconv, unsetenv: Add support for MSVC compiler.
9431         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
9432         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
9433
9434 2011-09-10  Bruno Haible  <bruno@clisp.org>
9435
9436         *printf: Add support for MSVC compiler.
9437         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
9438         handles the exception caused by the %n directive. When cross-compiling,
9439         guess no on native Windows.
9440         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9441         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
9442         emulate it through vsnprintf.
9443         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
9444         * doc/posix-functions/dprintf.texi: Update documentation regarding
9445         MSVC 9.
9446         * doc/posix-functions/fprintf.texi: Likewise.
9447         * doc/posix-functions/printf.texi: Likewise.
9448         * doc/posix-functions/snprintf.texi: Likewise.
9449         * doc/posix-functions/sprintf.texi: Likewise.
9450         * doc/posix-functions/swprintf.texi: Likewise.
9451         * doc/posix-functions/vdprintf.texi: Likewise.
9452         * doc/posix-functions/vfprintf.texi: Likewise.
9453         * doc/posix-functions/vprintf.texi: Likewise.
9454         * doc/posix-functions/vsnprintf.texi: Likewise.
9455         * doc/posix-functions/vsprintf.texi: Likewise.
9456         * doc/glibc-functions/asprintf.texi: Likewise.
9457         * doc/glibc-functions/obstack_printf.texi: Likewise.
9458         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9459         * doc/glibc-functions/vasprintf.texi: Likewise.
9460
9461 2011-09-10  Bruno Haible  <bruno@clisp.org>
9462
9463         nocrash: Add support for native Windows.
9464         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
9465
9466 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
9467             Bruno Haible  <bruno@clisp.org>
9468
9469         absolute-header, include-next: Add support for MSVC compiler.
9470         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
9471         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
9472         directory separator in #line directives.
9473         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
9474         recognize also backslash as directory separator in #line directives.
9475
9476 2011-09-08  Jim Meyering  <meyering@redhat.com>
9477
9478         maint.mk: mark the post-release commit log with "maint: " prefix
9479         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
9480         one-line commit-log summary.
9481
9482 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
9483             Bruno Haible  <bruno@clisp.org>
9484
9485         Doc about crypt functions.
9486         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
9487         systems.
9488         * doc/posix-functions/encrypt.texi: Likewise.
9489         * doc/posix-functions/setkey.texi: Likewise.
9490
9491 2011-09-08  Simon Josefsson  <simon@josefsson.org>
9492
9493         * lib/gc.h: Fix copyright header.
9494
9495 2011-09-07  Bruno Haible  <bruno@clisp.org>
9496
9497         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
9498         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
9499         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
9500
9501 2011-09-07  Bruno Haible  <bruno@clisp.org>
9502
9503         openat: Work around compilation error with OSF/1 5.1 DTK cc.
9504         * lib/fopen.c: Use different syntax for include of <stdio.h>.
9505         * lib/freopen.c: Likewise.
9506         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
9507         * lib/lstat.c: Likewise.
9508         * lib/stat.c: Likewise.
9509         * lib/open.c: Use different syntax for include of <fcntl.h>.
9510         * lib/openat.c: Include fcntl.h again, explicitly.
9511
9512 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
9513
9514         parse-datetime: document the newly accepted format
9515         * doc/parse-datetime.texi (Combined date and time of day items):
9516         New section.
9517
9518 2011-09-06  Bruno Haible  <bruno@clisp.org>
9519
9520         acl: Fix a test failure on newer Solaris 10 with ZFS.
9521         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
9522         ENOSYS as no ACL.
9523         Reported by Jim Meyering.
9524
9525 2011-09-06  Bruno Haible  <bruno@clisp.org>
9526
9527         acl: Update for AIX >= 5.3 with NFS.
9528         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
9529         ENOSYS as no ACL.
9530
9531         acl: Fix a test failure on AIX >= 5.3 with NFS.
9532         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
9533         as no ACL.
9534
9535 2011-09-06  Bruno Haible  <bruno@clisp.org>
9536
9537         acl: Fix a test failure on IRIX 6.5 with NFS.
9538         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
9539         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
9540         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
9541         * lib/copy-acl.c (qcopy_acl): Likewise.
9542
9543 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9544
9545         openat: port to AIX 7.1 with large files
9546         AIX 7.1 does a "#define openat open64at" if large files are in use,
9547         so we can't simply #undef openat.  Use the orig_openat trick (similar
9548         to orig_open in lib/open.c) to work around the problem.  Problem
9549         reported by Kevin Brott for GNU tar, in the thread containing
9550         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
9551         * lib/openat.c (__need_system_fcntl_h): Define first.
9552         Include <fcntl.h> and <sys/types.h> before undefining.
9553         (orig_openat) [HAVE_OPENAT]: New inline function.
9554         (openat) [HAVE_OPENAT]: Do not undef.
9555         (rpl_openat): Use orig_openat, not openat.
9556
9557 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9558             Bruno Haible  <bruno@clisp.org>
9559
9560         acl: Avoid errors on NonStop Kernel.
9561         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
9562         ENOTSUP errors.
9563
9564 2011-09-05  Bruno Haible  <bruno@clisp.org>
9565
9566         acl: Clean up Solaris code.
9567         * lib/acl-internal.h: Remove no-op #if.
9568         * lib/file-has-acl.c: Likewise.
9569         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
9570         * lib/copy-acl.c (qcopy_acl): Likewise.
9571
9572 2011-09-05  Bruno Haible  <bruno@clisp.org>
9573
9574         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
9575         binaries built on the original Solaris 10.
9576         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
9577         trivial.
9578
9579 2011-09-05  Bruno Haible  <bruno@clisp.org>
9580
9581         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9582         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
9583         10.
9584         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
9585         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
9586         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
9587         instead of acl_get, facl_get, acl_set, facl_set.
9588
9589 2011-09-05  Bruno Haible  <bruno@clisp.org>
9590
9591         copy-file: Try unit tests on more file systems.
9592         * tests/test-copy-file-1.sh: New file.
9593         * tests/test-copy-file-2.sh: New file.
9594         * modules/copy-file-tests (Files): Add them.
9595         (Makefile.am): Add them to TESTS.
9596
9597         acl: Try unit tests on more file systems.
9598         * tests/test-file-has-acl-1.sh: New file.
9599         * tests/test-file-has-acl-2.sh: New file.
9600         * tests/test-set-mode-acl-1.sh: New file.
9601         * tests/test-set-mode-acl-2.sh: New file.
9602         * tests/test-copy-acl-1.sh: New file.
9603         * tests/test-copy-acl-2.sh: New file.
9604         * modules/acl-tests (Files): Add them.
9605         (Makefile.am): Add them to TESTS.
9606
9607 2011-09-04  Bruno Haible  <bruno@clisp.org>
9608
9609         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9610         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
9611         10.
9612         (OLD_ALLOW, OLD_DENY): New macros.
9613         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
9614         ACE_ACCESS_ALLOWED_ACE_TYPE.
9615         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
9616         ACE_ACCESS_DENIED_ACE_TYPE.
9617         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
9618         (NEW_ACE_EXECUTE): Fix value.
9619         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
9620         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
9621         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
9622         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
9623         NEW_ACE_SYNCHRONIZE): New macros.
9624         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
9625         instead of acl_fromtext, acl_set, facl_set.
9626         Fixes a coreutils/tests/cp/perm failure.
9627
9628 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
9629
9630         openat: test for fstatat (..., 0) bug
9631         Further testing with tar suggests that fstatat (..., 0)
9632         does not work in general, on AIX 7.1; see
9633         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
9634         So, give up entirely on AIX 7.1's fstatat, and fall back on our
9635         replacement fstatat (which is what older AIX releases were using
9636         anyway).
9637         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
9638         use is now changed to orig_fstatat.  This was probably the right
9639         thing to do anyway.
9640         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
9641         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
9642         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
9643         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
9644         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
9645         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
9646         if the bug is found.
9647
9648         openat: test for fstatat (AT_FDCWD, ..., 0) bug
9649         This tests for another fstatat bug on AIX 7.1:
9650         fstatat (AT_FDCWD, ..., 0) does not work.  See
9651         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
9652         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
9653         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
9654         (rpl_fstatat): Adjust so that it works around either (or both)
9655         bugs if present.
9656         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
9657
9658 2011-09-03  Karl Berry  <karl@gnu.org>
9659
9660         * doc/regex.texi (Character Class Operators): Avoid literal ":"
9661         in index entries.
9662
9663 2011-09-02  Bruno Haible  <bruno@clisp.org>
9664
9665         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
9666         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
9667         values of AR, ARFLAGS, RANLIB.
9668         Reported by John W. Eaton <jwe@gnu.org> for Octave.
9669
9670 2011-09-02  Bruno Haible  <bruno@clisp.org>
9671
9672         Find 'ar' program that fits with --host argument.
9673         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
9674
9675 2011-09-02  Bruno Haible  <bruno@clisp.org>
9676
9677         tests: init.sh: Support any non-GNU diff.
9678         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
9679         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
9680         Solaris 8.
9681
9682 2011-09-02  Bruno Haible  <bruno@clisp.org>
9683
9684         tests: init.sh: work also with any non-GNU diff that supports -u
9685         * tests/init.sh: Relax check for diff -u support.
9686         Rather than checking for GNU diff via --version, simply check
9687         for support for -u itself.  Useful at least on OpenBSD 4.9,
9688         AIX 7.1, IRIX 6.5, and Solaris 10.
9689
9690 2011-09-01  Bruno Haible  <bruno@clisp.org>
9691
9692         strtoimax, strtoumax: Document problem on HP-UX 11.
9693         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
9694         * doc/posix-functions/strtoumax.texi: Likewise.
9695
9696 2011-09-01  Bruno Haible  <bruno@clisp.org>
9697
9698         strtoumax: Avoid link error on OSF/1 with DTK cc.
9699         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
9700         defined as a function.
9701         * modules/strtoumax (Depends-on, configure.ac): Test only whether
9702         strtoumax is defined, not whether it is declared.
9703
9704 2011-09-01  Bruno Haible  <bruno@clisp.org>
9705
9706         strtoimax: Avoid link error on OSF/1 with DTK cc.
9707         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
9708         defined as a function.
9709         * modules/strtoimax (Depends-on, configure.ac): Test only whether
9710         strtoimax is defined, not whether it is declared.
9711
9712 2011-09-01  Bruno Haible  <bruno@clisp.org>
9713
9714         imaxdiv: Avoid link error on OSF/1 with DTK cc.
9715         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
9716         as a function.
9717         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
9718         whether it is declared.
9719
9720 2011-09-01  Bruno Haible  <bruno@clisp.org>
9721
9722         imaxabs: Avoid link error on OSF/1 with DTK cc.
9723         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
9724         as a function.
9725         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
9726         whether it is declared.
9727
9728 2011-09-01  Bruno Haible  <bruno@clisp.org>
9729
9730         Tests for module 'strtoumax'.
9731         * modules/strtoumax-tests: New file.
9732         * tests/test-strtoumax.c: New file.
9733
9734         Tests for module 'strtoimax'.
9735         * modules/strtoimax-tests: New file.
9736         * tests/test-strtoimax.c: New file.
9737
9738         Tests for module 'imaxdiv'.
9739         * modules/imaxdiv-tests: New file.
9740         * tests/test-imaxdiv.c: New file.
9741
9742         Tests for module 'imaxabs'.
9743         * modules/imaxabs-tests: New file.
9744         * tests/test-imaxabs.c: New file.
9745
9746 2011-09-01  Bruno Haible  <bruno@clisp.org>
9747
9748         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
9749         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
9750         pthread_create.
9751
9752 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9753
9754         openat: work around AIX 7.1 fstatat issue
9755         This should fix the problem that was not properly fixed
9756         in the previous change, dated 2011-08-30.
9757         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
9758         __need_system_stat_h defined.
9759         (orig_fstatat) [HAVE_FSTATAT]: New function.
9760         (rpl_fstatat): Go back to the old way of doing things,
9761         except call orig_fstatat instead of fstatat.
9762         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
9763         Remove unnecessary check whether fstatat fills in st_size etc.
9764
9765 2011-09-01  Bruno Haible  <bruno@clisp.org>
9766
9767         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
9768         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
9769         just include the system's header.
9770
9771 2011-08-31  Jim Meyering  <meyering@redhat.com>
9772
9773         tests: avoid spurious assertion failure in test-float.c on ppc64
9774         * tests/test-float.c (test_long_double): Comment out an assertion,
9775         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
9776         with gcc-4.4.4.
9777
9778         maint: indent with spaces, not TABs
9779         I need to get in the habit of running gnulib's "make check".
9780         Both of these would have been caught.
9781         * m4/largefile.m4: Indent with spaces, not TABs.
9782         * lib/parse-datetime.y (iso_8601_time): Likewise.
9783         Spotted by Pádraig Brady.
9784
9785         test-parse-datetime.c: accommodate a relatively strict gcc warning
9786         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
9787         to avoid a warning from gcc's -Werror=missing-declarations.
9788         Insert a few spaces-before-funcall-parenthesis.
9789
9790 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
9791
9792         parse-datetime: accept ISO 8601 date and time rep with "T" separator
9793         The parser now accepts ISO 8601 date-time strings with "T" as the
9794         separator.  It has long parsed dates like "2004-02-29 16:21:42"
9795         with a space between the date and time strings.  Now it also parses
9796         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
9797         variants like "2004-02-29T16:21:42.333-07:00"
9798         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
9799         of day representation using the 'T' separator character.
9800         * doc/parse-datetime.texi (General date syntax): replace use of
9801         deprecated --iso-8601 option with --rfc-3339 in example of date
9802         command output formats that can be parsed.
9803         * tests/test-parse-datetime.c (tm_diff): New function, taken from
9804         lib/parse-datetime.y.
9805         (gmt_offset): New function.
9806         (main): Add additional test cases to validate ISO8601 extended
9807         date and time of day parsing.
9808
9809 2011-08-31  Bruno Haible  <bruno@clisp.org>
9810
9811         freopen: Documentation.
9812         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
9813         name.
9814         Reported by Claudio Bley <claudio.bley@gmail.com>.
9815
9816 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
9817
9818         freopen: Don't crash if the filename argument is NULL.
9819         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
9820         NULL.
9821
9822 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9823
9824         openat: work around AIX 7.1 fstatat bug
9825         Problem reported by Kevin Brott for GNU tar, in the thread containing
9826         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
9827         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
9828         FSTATAT_ST_SIZE_ETC_BROKEN.
9829         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
9830         rpl_fstatat.
9831         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
9832         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
9833         AC_CHECK_FUNCS_ONCE for fstatat.
9834         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
9835         fchmodat, mkdirat, openat and unlinkat.
9836
9837 2011-08-30  Bruno Haible  <bruno@clisp.org>
9838
9839         Avoid endless recursions if config.h includes some header files.
9840         * lib/fopen.c (__need_FILE): Define already before including config.h.
9841         * lib/freopen.c (__need_FILE): Likewise.
9842         * lib/open.c (__need_system_fcntl_h): Likewise.
9843         * lib/stat.c (__need_system_sys_stat_h): Likewise.
9844         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
9845         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9846
9847 2011-08-25  Karl Berry  <karl@gnu.org>
9848
9849         * config/srclist.txt (ylwrap): new try.
9850         * build-aux/ylwrap: new file.
9851
9852 2011-08-23  Bruno Haible  <bruno@clisp.org>
9853
9854         tmpdir: Use a good default directory on native Windows.
9855         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
9856         (P_tmpdir): Default to _P_tmpdir on native Windows.
9857         (path_search): On native Windows, try the value returned by GetTempPath
9858         before trying P_tmpdir.
9859         * modules/tmpdir (Depends-on): Add pathmax.
9860         Suggested by John Darrington <john@darrington.wattle.id.au>.
9861
9862 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
9863
9864         doc: fix typo in README-release
9865         * top/README-release: Capitalize first word of a sentence.
9866
9867 2011-08-19  Jim Meyering  <meyering@redhat.com>
9868
9869         fts: do not exhaust memory when processing million-entry directories
9870         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
9871         directory would require about 256*N bytes of memory.  Thus, it was
9872         easy to construct a directory too large to be processed by any of
9873         those tools.  With this change, fts' maximum memory utilization is
9874         now limited to around 30MB.
9875         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
9876         (fts_read): When we've processed the final entry (i.e., when
9877         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
9878         using the parent entry to read any remaining entries.  Dispatch
9879         depending on what fts_build returns:
9880         - NULL+stop, aka failure: stop
9881         - NULL otherwise: move up in the dir hierarchy
9882         - non-NULL: handle this new entry
9883         (fts_build): Declare and use new local, continue_readdir.
9884         Prepare to be called from fts_read, when the entries
9885         from a partially-read directory have just been exhausted.
9886         In that case, we'll skip the opendir and instead use the parent's
9887         fts_dirp and derive dir_fd from that.
9888         Finally, in the readdir loop, if we read max_entries entries,
9889         exit the loop ensuring *not* to call closedir.  This is required
9890         so that fts_dirp can be reused on a subsequent call.
9891         Prompted by Ben England's report of memory exhaustion in find
9892         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
9893
9894         maint: fts: move decl of `dp' down into while loop; split a long line
9895         * lib/fts.c (fts_build): No semantic change.
9896
9897         fts: add/use new struct member, fts_dirp
9898         We are about to use this to manage any directory with
9899         too many entries to read all of them into memory at once.
9900         To do that, we'll need to save the DIR* pointer in each
9901         affected FTSENT struct.
9902         * lib/fts_.h: Include <dirent.h>.
9903         (struct FTSENT) [fts_dirp]: New member.
9904         * lib/fts.c (closedir_and_clear): Define.
9905         Use it in place of closedir so that we are sure to
9906         clear the new fts_dirp member when done with it.
9907         (fts_alloc): Initialize the new member.
9908         (fts_lfree): Free, if needed.
9909
9910         maint: fts: give __opendir2 a new parameter and rename
9911         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
9912         than surreptitiously using sole caller's "dir_fd".
9913         (fts_opendir): Rename from __opendir2.
9914
9915         maint: fts.c: remove __opendir2's now-unused parameter, oflag
9916         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
9917
9918         maint: fts.c: correct off-by-one indentation
9919         * lib/fts.c (fts_build): Correct indentation, change style
9920         of a couple of block comments, and bracing style.
9921
9922         maint: fts.c: move __opendir2 #define "up" out of function body
9923         * lib/fts.c (__opendir2): Move "up".  No semantic change.
9924
9925         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
9926         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
9927         out for a long time and besides was useful only on BSD systems.
9928
9929 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9930
9931         regex: port to Stratus OpenVOS
9932         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
9933         define to empty, rather than attempting nonportable optimizations.
9934         Problem reported by Paul Green in:
9935         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
9936         and fix suggested by Eric Blake in:
9937         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
9938
9939 2011-08-17  Eric Blake  <eblake@redhat.com>
9940
9941         getcwd: fix test failures on mingw
9942         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
9943         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
9944         test if long directory cannot be created, and allow mingw errno.
9945
9946         getcwd-lgpl: fix m4 to match relaxed test for BSD
9947         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
9948         (gl_FUNC_GETCWD_SIGNATURE): New macro.
9949         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
9950         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
9951         signature problem.
9952
9953         getcwd: fix compilation on mingw64
9954         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
9955         getcwd.
9956         Reported by Marc-André Lureau.
9957
9958         pipe2: silence compiler warning
9959         * lib/pipe2.c (pipe2): Hide label if it is not used.
9960
9961 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
9962
9963         relocatable-prog: fix link error
9964         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
9965         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
9966         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
9967         into modules/relocatable-lib without noticing that
9968         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
9969         also needs to build relocatable.c.
9970
9971 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
9972
9973         getaddrinfo: fix sh typo in gai_strerrorA decl checking
9974         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
9975         shell code: it contained a 'break' that was not in a loop.
9976         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
9977         via a shell-language loop; this may have been true in old Autoconf
9978         versions, but it's not true in Autoconf 2.68.  I found this bug
9979         when testing coreutils git on Solaris 8, whose shell complains
9980         about the syntax error.
9981
9982 2011-08-12  Simon Josefsson  <simon@josefsson.org>
9983
9984         * lib/base64.c: Fix comment to reference RFC 4648.
9985         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
9986         <gvtulder@gmail.com>.
9987
9988 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
9989
9990         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
9991
9992         po/Makefile.in.in: fix make -q problem
9993         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
9994         rule, since there's no file named 'check-macro-version' and its
9995         use as a file breaks make -q.
9996         (all): Don't depend on check-macro-version.
9997         (CHECK_MACRO_VERSION): New macro.
9998         (stamp-po): Use it.
9999
10000         configmake: fix make -q problem
10001         * modules/configmake (configmake.h): Update configmake.h's time stamp
10002         even if the file does not change.  Otherwise, 'make -q' fails.
10003         Problem reported by Simon Josefsson in
10004         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
10005
10006 2011-08-11  Jim Meyering  <meyering@redhat.com>
10007
10008         git-version-gen: correct the advice in a comment
10009         * build-aux/git-version-gen: Correct comment.
10010         Don't recommend to list .tarball-version in .gitignore.
10011
10012 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10013
10014         base64: fix off-by-one buffer size bug
10015         Problem and (trivial) fix reported by Gijs van Tulder in
10016         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
10017         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
10018         * tests/test-base64.c (main): Catch the bug.
10019
10020 2011-08-10  Eric Blake  <eblake@redhat.com>
10021
10022         closein: correct comments
10023         * lib/closein.c (close_stdin): Improve comments.
10024
10025 2011-08-09  Bruno Haible  <bruno@clisp.org>
10026
10027         More tests for 'fseeko'.
10028         * tests/test-fseeko3.c: New file, from Eric Blake.
10029         * tests/test-fseeko3.sh: New file.
10030         * modules/fseeko-tests (Files): Add them.
10031         (TESTS): Add test-fseeko3.sh.
10032         (check_PROGRAMS): Add test-fseeko3.
10033
10034 2011-08-09  Eric Blake  <eblake@redhat.com>
10035
10036         fseeko: remove unneeded hack
10037         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
10038
10039         fseeko: fix bug on glibc
10040         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
10041         Reported by John W. Eaton.
10042
10043 2011-08-08  Bruno Haible  <bruno@clisp.org>
10044
10045         unictype/base: Fix interoperability with preinstalled libunistring.
10046         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
10047         Reported by Simon Josefsson.
10048
10049 2011-08-08  Bruno Haible  <bruno@clisp.org>
10050
10051         iswblank: Detect declaration correctly.
10052         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
10053         AC_CHECK_DECLS invocation.
10054
10055 2011-08-08  Bruno Haible  <bruno@clisp.org>
10056
10057         tcgetsid: Detect declaration correctly.
10058         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
10059         AC_CHECK_DECLS invocation.
10060         Reported by Simon Josefsson.
10061
10062 2011-08-08  Eric Blake  <eblake@redhat.com>
10063
10064         largefile: fix typo that regressed large file support
10065         * modules/largefile (configure.ac-early): Fix section name.
10066
10067 2011-08-06  Karl Berry  <karl@gnu.org>
10068
10069         * MODULES.html.sh (func_all_files): _Noreturn is no longer
10070         a separate module.
10071
10072 2011-08-05  Simon Josefsson  <simon@josefsson.org>
10073
10074         openat: Fix warnings and commens when building unlinkat.c on Hurd.
10075         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
10076         get prototype for free.
10077
10078 2011-08-04  Bruno Haible  <bruno@clisp.org>
10079
10080         Tests for module 'pathmax'.
10081         * modules/pathmax-tests: New file.
10082         * tests/test-pathmax.c: New file.
10083
10084         canonicalize-lgpl: Support larger filenames on the Hurd.
10085         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
10086         Reported by Paul Eggert.
10087
10088         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
10089         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
10090         * lib/chdir-long.h: Include pathmax.h.
10091         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
10092         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
10093         (PATH_MAX): Remove code that is done by pathmax.h.
10094         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
10095         * lib/tmpfile.c: Add a comment.
10096         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
10097         * modules/chdir-long (Depends-on): Add pathmax.
10098         * modules/getcwd (Depends-on): Add pathmax.
10099         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
10100         is not defined.
10101         * doc/posix-headers/limits.texi: Mention the pathmax module.
10102         * NEWS: Mention the change.
10103
10104 2011-08-02  Bruno Haible  <bruno@clisp.org>
10105
10106         pthread_sigmask: Actually use results of gl_THREADLIB.
10107         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
10108         gl_THREADLIB, not gl_[]THREADLIB.
10109         Reported by Eric Blake.
10110
10111 2011-08-02  Jim Meyering  <meyering@redhat.com>
10112
10113         maint.mk: relax the default _gl_TS_function_match regexp
10114         * top/maint.mk (_gl_TS_function_match): Don't require at least one
10115         space between function name and "(" in an "extern" declaration.
10116         That would fail to match a decl with no space there: extern void foo();
10117
10118 2011-07-31  Iain Nicol  <iain@thenicols.net>
10119
10120         git-version-gen: document that EXTRA_DIST must include .version
10121         * build-aux/git-version-gen: In the how-to-use comment, document
10122         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
10123         will fail when run from an unpacked distribution tarball.
10124
10125 2011-08-01  Bruno Haible  <bruno@clisp.org>
10126
10127         wctype-h: Fix last change.
10128         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
10129         REPLACE_TOWLOWER to 0.
10130         Reported by Sam Steingold <sds@gnu.org>.
10131
10132 2011-07-31  Bruno Haible  <bruno@clisp.org>
10133
10134         frexpl: Update autoconf test.
10135         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
10136         according to changes of 2011-06-20.
10137
10138 2011-07-31  Bruno Haible  <bruno@clisp.org>
10139
10140         sys_utsname: Add support for Minix.
10141         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
10142         <sys/utsname.h>.
10143         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
10144         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
10145
10146 2011-07-31  Bruno Haible  <bruno@clisp.org>
10147
10148         strings: Add support for Minix.
10149         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
10150         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
10151         * doc/posix-headers/strings.texi: Document the Minix problem.
10152
10153 2011-07-31  Bruno Haible  <bruno@clisp.org>
10154
10155         wctype-h: Add support for Minix.
10156         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
10157         REPLACE_TOWLOWER.
10158         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
10159         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
10160         REPLACE_ISWCNTRL.
10161
10162 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
10163
10164         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
10165         This is a performance improvement for 64-bit hosts: it causes the
10166         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
10167
10168 2011-07-31  Bruno Haible  <bruno@clisp.org>
10169
10170         stdioext: Add support for Minix.
10171         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
10172         * lib/fpurge.c (fpurge): Likewise.
10173         * lib/freadahead.c (freadahead): Likewise.
10174         * lib/freadable.c (freadable): Likewise.
10175         * lib/freading.c (freading): Likewise.
10176         * lib/freadptr.c (freadptr): Likewise.
10177         * lib/freadseek.c (freadptrinc): Likewise.
10178         * lib/fseeko.c (rpl_fseeko): Likewise.
10179         * lib/fseterr.c (fseterr): Likewise.
10180         * lib/fwritable.c (fwritable): Likewise.
10181         * lib/fwriting.c (fwriting): Likewise.
10182         * lib/fflush.c (clear_ungetc_buffer): Update comment.
10183         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
10184
10185 2011-07-31  Bruno Haible  <bruno@clisp.org>
10186
10187         errno: Port to Minix.
10188         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
10189         ECONNABORTED are defined.
10190         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
10191         GNULIB_defined_ECONNABORTED): New macros.
10192         * lib/strerror-override.h (strerror_override): Test also
10193         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
10194         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
10195         ECONNABORTED.
10196         * doc/posix-headers/errno.texi: Mention the Minix problem.
10197
10198 2011-07-31  Bruno Haible  <bruno@clisp.org>
10199
10200         Work around declaration collisions on Minix.
10201         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
10202         defined, set REPLACE_MBSINIT.
10203         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
10204         defined, set REPLACE_MBRTOWC.
10205         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
10206         set REPLACE_MBRLEN.
10207         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
10208         defined, set REPLACE_MBSRTOWCS.
10209         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
10210         defined, set REPLACE_WCRTOMB.
10211         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
10212         defined, set REPLACE_WCSRTOMBS.
10213
10214 2011-07-31  Bruno Haible  <bruno@clisp.org>
10215
10216         Add support for Minix with ACK compiler.
10217         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
10218         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
10219         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
10220
10221 2011-07-31  Bruno Haible  <bruno@clisp.org>
10222
10223         Documentation about Minix.
10224         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
10225         * doc/glibc-headers/*.texi: Likewise.
10226         * doc/posix-functions/*.texi: Likewise.
10227         * doc/glibc-functions/*.texi: Likewise.
10228
10229 2011-07-31  Bruno Haible  <bruno@clisp.org>
10230
10231         snippet/warn-on-use: Fix indentation.
10232         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
10233
10234 2011-07-25  Jim Meyering  <meyering@redhat.com>
10235
10236         tests: test-update-copyright.sh: remove unnecessary "rm" commands
10237         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
10238         commands.
10239
10240 2011-07-27  Jim Meyering  <meyering@redhat.com>
10241
10242         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
10243         * top/maint.mk (gl_extract_significant_defines_): Now that
10244         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
10245         gnulib/lib/signal.in.h, and now that we recommend to
10246         define-if-undefined those two symbols in application code,
10247         we must filter them out of the "significant" list.
10248         This avoids a "make syntax-check" failure in coreutils.
10249
10250 2011-07-26  Eric Blake  <eblake@redhat.com>
10251
10252         warnings: add comments about previous patch
10253         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
10254         * m4/include_next.m4: Likewise.
10255         * m4/warn-on-use.m4: Likewise.
10256         * m4/warnings.m4: Likewise, and simplify use.
10257         Suggested by Stefano Lattarini.
10258
10259         include-next, warnings: support older autoconf
10260         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
10261         AS_VAR_PUSHDEF in a way that works with older autoconf.
10262         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
10263         Reported by Daniel P. Berrange.
10264
10265 2011-07-25  Bruno Haible  <bruno@clisp.org>
10266
10267         fseek, ftell: Fix doc.
10268         * doc/posix-functions/fseek.texi: Reword statement about
10269         AC_SYS_LARGEFILE.
10270         * doc/posix-functions/ftell.texi: Likewise.
10271
10272 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10273             Bruno Haible  <bruno@clisp.org>
10274
10275         Add dependencies to the 'largefile' module.
10276         * modules/fopen (Depends-on): Add 'largefile'.
10277         * modules/freopen (Depends-on): Likewise.
10278         * modules/fseeko (Depends-on): Likewise.
10279         * modules/ftello (Depends-on): Likewise.
10280         * modules/glob (Depends-on): Likewise.
10281         * modules/lseek (Depends-on): Likewise.
10282         * modules/lstat (Depends-on): Likewise.
10283         * modules/mkostemp (Depends-on): Likewise.
10284         * modules/mkostemps (Depends-on): Likewise.
10285         * modules/mkstemp (Depends-on): Likewise.
10286         * modules/mkstemps (Depends-on): Likewise.
10287         * modules/open (Depends-on): Likewise.
10288         * modules/openat (Depends-on): Likewise.
10289         * modules/pread (Depends-on): Likewise.
10290         * modules/pwrite (Depends-on): Likewise.
10291         * modules/scandir (Depends-on): Likewise.
10292         * modules/stat (Depends-on): Likewise.
10293         * modules/tmpfile (Depends-on): Likewise.
10294         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
10295         since the containing module now depends on the largefile module.
10296         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
10297         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
10298         off_t is fixed by gnulib.
10299         * doc/posix-functions/freopen.texi: Likewise.
10300         * doc/posix-functions/fseeko.texi: Likewise.
10301         * doc/posix-functions/fstatat.texi: Likewise.
10302         * doc/posix-functions/ftello.texi: Likewise.
10303         * doc/posix-functions/glob.texi: Likewise.
10304         * doc/posix-functions/lseek.texi: Likewise.
10305         * doc/posix-functions/lstat.texi: Likewise.
10306         * doc/posix-functions/mkstemp.texi: Likewise.
10307         * doc/posix-functions/open.texi: Likewise.
10308         * doc/posix-functions/openat.texi: Likewise.
10309         * doc/posix-functions/pread.texi: Likewise.
10310         * doc/posix-functions/pwrite.texi: Likewise.
10311         * doc/posix-functions/scandir.texi: Likewise.
10312         * doc/posix-functions/stat.texi: Likewise.
10313         * doc/posix-functions/tmpfile.texi: Likewise.
10314         * doc/glibc-functions/mkostemp.texi: Likewise.
10315         * doc/glibc-functions/mkostemps.texi: Likewise.
10316         * doc/glibc-functions/mkstemps.texi: Likewise.
10317
10318 2011-07-25  Bruno Haible  <bruno@clisp.org>
10319
10320         fcntl: Move AC_LIBOBJ invocation to module description.
10321         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
10322         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
10323
10324         fcntl: Remove call-in from fchdir.m4.
10325         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
10326         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
10327
10328         dup3: Remove potential call-in from fchdir.m4.
10329         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
10330         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
10331
10332         dup2: Move AC_LIBOBJ invocation to module description.
10333         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
10334         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
10335         Don't invoke AC_LIBOBJ.
10336         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
10337
10338         dup2: Remove call-in from fchdir.m4.
10339         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
10340         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
10341
10342         fclose: Move AC_LIBOBJ invocation to module description.
10343         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
10344         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
10345         to 1.
10346         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
10347
10348         fclose: Remove call-in from close.m4.
10349         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
10350         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
10351
10352         close: Move AC_LIBOBJ invocation to module description.
10353         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
10354         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
10355         1.
10356         * modules/close (configure.ac): Invoke AC_LIBOBJ.
10357
10358         close: Remove call-in from fchdir.m4.
10359         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
10360         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
10361
10362         open: Move AC_LIBOBJ invocation to module description.
10363         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
10364         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
10365         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
10366
10367         open: Remove call-in from fchdir.m4.
10368         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
10369         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
10370
10371         fchdir: Start to remove gl_REPLACE_* idiom.
10372         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
10373         (gl_FUNC_FCHDIR): Invoke it.
10374
10375 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10376
10377         * lib/ftell.c (ftell): Comment out cast.
10378
10379         close: use gl_REPLACE_FCLOSE only if defined
10380         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
10381         is defined.  The close module doesn't depend on the fclose module
10382         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
10383         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
10384         I reproduced the problem with "./gnulib-tool --test close sys_socket".
10385
10386 2011-07-24  Jim Meyering  <meyering@redhat.com>
10387
10388         test-select.h: avoid warning when using gcc's -Wmissing-declarations
10389         * tests/test-select.h (test_function): Declare as "static".
10390
10391 2011-07-24  Bruno Haible  <bruno@clisp.org>
10392
10393         doc: Mention the effects of AC_SYS_LARGEFILE.
10394         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
10395         on this function.
10396         * doc/posix-functions/aio_error.texi: Likewise.
10397         * doc/posix-functions/aio_fsync.texi: Likewise.
10398         * doc/posix-functions/aio_read.texi: Likewise.
10399         * doc/posix-functions/aio_return.texi: Likewise.
10400         * doc/posix-functions/aio_suspend.texi: Likewise.
10401         * doc/posix-functions/aio_write.texi: Likewise.
10402         * doc/posix-functions/fgetpos.texi: Likewise.
10403         * doc/posix-functions/fopen.texi: Likewise.
10404         * doc/posix-functions/freopen.texi: Likewise.
10405         * doc/posix-functions/fsetpos.texi: Likewise.
10406         * doc/posix-functions/fstatvfs.texi: Likewise.
10407         * doc/posix-functions/ftruncate.texi: Likewise.
10408         * doc/posix-functions/ftw.texi: Likewise.
10409         * doc/posix-functions/getrlimit.texi: Likewise.
10410         * doc/posix-functions/glob.texi: Likewise.
10411         * doc/posix-functions/lio_listio.texi: Likewise.
10412         * doc/posix-functions/lockf.texi: Likewise.
10413         * doc/posix-functions/mkstemp.texi: Likewise.
10414         * doc/posix-functions/mmap.texi: Likewise.
10415         * doc/posix-functions/nftw.texi: Likewise.
10416         * doc/posix-functions/openat.texi: Likewise.
10417         * doc/posix-functions/opendir.texi: Likewise.
10418         * doc/posix-functions/posix_fadvise.texi: Likewise.
10419         * doc/posix-functions/posix_fallocate.texi: Likewise.
10420         * doc/posix-functions/pread.texi: Likewise.
10421         * doc/posix-functions/pwrite.texi: Likewise.
10422         * doc/posix-functions/readdir.texi: Likewise.
10423         * doc/posix-functions/readdir_r.texi: Likewise.
10424         * doc/posix-functions/rewinddir.texi: Likewise.
10425         * doc/posix-functions/scandir.texi: Likewise.
10426         * doc/posix-functions/seekdir.texi: Likewise.
10427         * doc/posix-functions/setrlimit.texi: Likewise.
10428         * doc/posix-functions/statvfs.texi: Likewise.
10429         * doc/posix-functions/telldir.texi: Likewise.
10430         * doc/posix-functions/tmpfile.texi: Likewise.
10431         * doc/posix-functions/truncate.texi: Likewise.
10432         * doc/glibc-functions/fallocate.texi: Likewise.
10433         * doc/glibc-functions/fstatfs.texi: Likewise.
10434         * doc/glibc-functions/fts_children.texi: Likewise.
10435         * doc/glibc-functions/fts_read.texi: Likewise.
10436         * doc/glibc-functions/getdirentries.texi: Likewise.
10437         * doc/glibc-functions/mkostemp.texi: Likewise.
10438         * doc/glibc-functions/mkostemps.texi: Likewise.
10439         * doc/glibc-functions/mkstemps.texi: Likewise.
10440         * doc/glibc-functions/preadv.texi: Likewise.
10441         * doc/glibc-functions/pwritev.texi: Likewise.
10442         * doc/glibc-functions/sendfile.texi: Likewise.
10443         * doc/glibc-functions/statfs.texi: Likewise.
10444
10445 2011-07-24  Bruno Haible  <bruno@clisp.org>
10446
10447         doc: Fix typo.
10448         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
10449
10450 2011-07-24  Bruno Haible  <bruno@clisp.org>
10451
10452         doc: Mention fsusage.
10453         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
10454
10455 2011-07-24  Bruno Haible  <bruno@clisp.org>
10456
10457         doc: Mention new glibc headers and functions.
10458         * doc/glibc-headers/gshadow.texi: New file.
10459         * doc/glibc-functions/endsgent.texi: New file.
10460         * doc/glibc-functions/fgetsgent.texi: New file.
10461         * doc/glibc-functions/fgetsgent_r.texi: New file.
10462         * doc/glibc-functions/getsgent.texi: New file.
10463         * doc/glibc-functions/getsgent_r.texi: New file.
10464         * doc/glibc-functions/getsgnam.texi: New file.
10465         * doc/glibc-functions/getsgnam_r.texi: New file.
10466         * doc/glibc-functions/putsgent.texi: New file.
10467         * doc/glibc-functions/setsgent.texi: New file.
10468         * doc/glibc-functions/sgetsgent.texi: New file.
10469         * doc/glibc-functions/sgetsgent_r.texi: New file.
10470         * doc/glibc-functions/malloc_info.texi: New file.
10471         * doc/glibc-functions/preadv.texi: New file.
10472         * doc/glibc-functions/pwritev.texi: New file.
10473         * doc/glibc-functions/register_printf_modifier.texi: New file.
10474         * doc/glibc-functions/register_printf_specifier.texi: New file.
10475         * doc/glibc-functions/register_printf_type.texi: New file.
10476         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
10477         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
10478         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
10479         * doc/glibc-functions/pthread_getname_np.texi: New file.
10480         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
10481         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
10482         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
10483         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
10484         * doc/glibc-functions/pthread_setname_np.texi: New file.
10485         * doc/glibc-functions/pthread_sigqueue.texi: New file.
10486         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
10487         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
10488         * doc/glibc-functions/qsort_r.texi: New file.
10489         * doc/glibc-functions/quick_exit.texi: New file.
10490         * doc/glibc-functions/syncfs.texi: New file.
10491         * doc/gnulib.texi: Include them.
10492         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
10493         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
10494         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
10495         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
10496         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
10497         * doc/glibc-functions/execvpe.texi: Likewise.
10498
10499 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10500
10501         ftell: don't include <unistd.h>
10502         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
10503         guaranteed to define off_t, and the ftell module depends on the
10504         stdio module.
10505
10506         ftell: do not assume wraparound signed arithmetic
10507         * lib/ftell.c: Include <limits.h>.
10508         (ftell): Don't assume wraparound signed arithmetic.
10509
10510 2011-07-24  Bruno Haible  <bruno@clisp.org>
10511
10512         close: No longer depend on module 'fclose'.
10513         * modules/close (Depends-on): Remove fclose.
10514         * NEWS: Mention the change.
10515         Suggested by Sam Steingold <sds@gnu.org>.
10516
10517 2011-07-24  Bruno Haible  <bruno@clisp.org>
10518
10519         fsusage: Enable large volume support on AIX >= 5.2.
10520         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
10521         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
10522         instead of STAT_STATVFS.
10523         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
10524
10525         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
10526         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
10527         f_blocks field only on MacOS X.
10528
10529         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
10530         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
10531         * modules/fsusage (Depends-on): Add largefile.
10532
10533 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10534
10535         * README: Modernize discussion of signed integers.
10536         Assuming overflow wraparound is no longer safe.
10537         Mention ones' complement and signed magnitude.
10538
10539 2011-07-22  Bruno Haible  <bruno@clisp.org>
10540
10541         select tests, pselect tests: Refactor.
10542         * tests/test-select.h: New file, extracted from tests/test-select.c.
10543         (select_fn): New type.
10544         (test, do_select, do_select_nowait, do_select_wait, test_tty,
10545         test_connect_first, test_accept_first, test_pair, test_socket_pair,
10546         test_pipe): Add my_select argument.
10547         (test_function): Renamed from main. Add my_select argument.
10548         * tests/test-select.c: Move most code to tests/test-select.h. Include
10549         test-select.h.
10550         * modules/select-tests (Files): Add tests/test-select.h.
10551         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
10552         (my_select, main): New functions.
10553         * modules/pselect-tests (Files): Add tests/test-select.h,
10554         tests/macros.h, tests/signature.h.
10555         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
10556         (configure.ac): Check for <sys/wait.h>.
10557
10558 2011-07-22  Bruno Haible  <bruno@clisp.org>
10559
10560         sys_select tests: Check the signature of FD_*.
10561         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
10562         signature tests from here...
10563         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
10564         here.
10565         * modules/sys_select-tests (Files): Add tests/signature.h.
10566
10567 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10568
10569         largefile: new module, replacing large-inode
10570         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
10571         * MODULES.html.sh: Add largefile, remove large-inode.
10572         * modules/largefile, m4/largefile.m4: New files.
10573         * modules/large-inode, m4/large-inode.m4: Remove.
10574
10575         fsusage: port to MacOS X 10.7 with 4 TiB file systems
10576         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
10577         implementations that use only 32 bits to count blocks.
10578         On typical hosts with 1024-byte blocks, this fails with file
10579         systems as small as 4 TiB.  Problem reported by Herb Wartens
10580         <http://debbugs.gnu.org/9140> and this should also fix a similar
10581         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
10582
10583         large-inode: New module
10584         * MODULES.html.sh: Add it.
10585         * modules/large-inode, m4/large-inode.m4: New files.
10586
10587         extensions: Enable extensions on MacOS X 10.5 and later.
10588         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
10589
10590 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
10591
10592         file-has-acl: use acl_extended_file_nofollow if available
10593         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
10594         (acl_extended_file): New macro.
10595         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
10596         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
10597
10598 2011-07-21  Bruno Haible  <bruno@clisp.org>
10599
10600         Declare system functions in a way that works with C++.
10601         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
10602         declare fdopendir as extern "C".
10603         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
10604         declare frexpl as extern "C".
10605         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
10606         declare gai_strerror as extern "C".
10607         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
10608         programs, declare gai_strerror as extern "C".
10609         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
10610         declare getlogin_r as extern "C".
10611         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
10612         as extern "C".
10613         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
10614         declare ldexpl as extern "C".
10615         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
10616         as extern "C".
10617         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
10618         program, declare getmntinfo as extern "C".
10619         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
10620         stpncpy as extern "C".
10621         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
10622         program, declare __xpg_strerror_r as extern "C".
10623         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
10624         strndup as extern "C".
10625         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
10626         declare memset and bzero as extern "C".
10627         Reported by Sam Steingold <sds@gnu.org>.
10628
10629 2011-07-12  Jim Meyering  <meyering@redhat.com>
10630
10631         maint.mk: prohibit inclusion of "verify.h" without use
10632         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
10633
10634 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10635
10636         timer-time: A new module to check for timer_settime()
10637         * m4/timer_time.m4: Check for the posix function.
10638         * modules/timer-time: Add the new module.
10639         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
10640         Mention it.
10641
10642 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
10643             Bruno Haible  <bruno@clisp.org>
10644
10645         pthread_sigmask: assume POSIX threads if --avoid=threadlib
10646         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
10647         not defined, assume POSIX threads and look for pthread_sigmask in
10648         $LIBS, without changing $CPPFLAGS.
10649
10650 2011-07-19  Bruno Haible  <bruno@clisp.org>
10651
10652         strstr: Update cross-compilation guess.
10653         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
10654         CPUs, guess no, in view of glibc
10655         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
10656         Suggested by Eric Blake. Reported by Reuben Thomas.
10657
10658 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10659
10660         getopt-gnu: suppress core dumps from detection code
10661         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
10662         to suppress core dumps that may well occur on glibc systems.
10663         * modules/getopt-gnu: Depend on nocrash.
10664
10665 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
10666
10667         pthread_sigmask: ensure usleep is declared
10668         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
10669         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
10670
10671 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10672
10673         doc: Document NonStop portability issues.
10674         * doc/posix-functions/sigaction.texi (sigaction):
10675         * doc/posix-headers/signal.texi (signal.h):
10676         Document NonStop.  See Joachim Schmitz in
10677         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
10678
10679 2011-07-15  Bruno Haible  <bruno@clisp.org>
10680
10681         ffsl, ffsll: Avoid unportable behaviour.
10682         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
10683
10684 2011-07-15  Bruno Haible  <bruno@clisp.org>
10685
10686         ffs: More tests.
10687         * tests/test-ffs.c (NBITS): New macro.
10688         (main): Add more tests.
10689         * tests/test-ffsl.c (NBITS): New macro.
10690         (main): Add more tests.
10691         * tests/test-ffsll.c (NBITS): New macro.
10692         (main): Add more tests.
10693
10694 2011-07-15  Eric Blake  <eblake@redhat.com>
10695
10696         ffsl, ffsll: new modules
10697         * modules/ffsl: New file.
10698         * modules/ffsll: Likewise.
10699         * m4/ffsl.m4: Likewise.
10700         * m4/ffsll.m4: Likewise.
10701         * lib/ffsl.c: Likewise.
10702         * lib/ffsl.h: Likewise.
10703         * lib/ffsll.c: Likewise.
10704         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
10705         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
10706         * modules/string (Makefile.am): Substitute witnesses.
10707         * lib/strings.in.h (ffsl, ffsll): Declare.
10708         * modules/ffsl-tests: New test file.
10709         * modules/ffsll-tests: Likewise.
10710         * tests/test-ffsl.c: Likewise.
10711         * tests/test-ffsll.c: Likewise.
10712         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10713         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
10714         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
10715
10716         ffs: fix m4 prerequisite
10717         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
10718
10719         ffs: avoid undefined behavior
10720         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
10721         * tests/test-ffs.c (naive, main): Avoid signed shifts.
10722         Reported by Bruno Haible.
10723
10724 2011-07-12  Bruno Haible  <bruno@clisp.org>
10725
10726         pthread_sigmask: Rely on module 'threadlib'.
10727         * modules/pthread_sigmask (Depends-on): Add threadlib.
10728         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
10729         is defined.
10730
10731 2011-07-12  Bruno Haible  <bruno@clisp.org>
10732
10733         regex: Depend on module 'strcase'.
10734         * modules/regex (Depends-on): Add strcase, for strcasecmp().
10735
10736 2011-07-12  Jim Meyering  <meyering@redhat.com>
10737
10738         warn-on-use: fix typo in file name
10739         * modules/snippet/warn-on-use (Files): Correct file name:
10740         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
10741
10742 2011-07-12  Bruno Haible  <bruno@clisp.org>
10743
10744         strings: Document module.
10745         * doc/posix-headers/strings.texi: Mention module 'strings'.
10746
10747 2011-07-12  Bruno Haible  <bruno@clisp.org>
10748
10749         Rename module '_Noreturn' to 'snippet/_Noreturn'.
10750         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
10751         (Files, Makefile.am): Update.
10752         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
10753         * modules/stdlib (Depends-on): Update.
10754
10755 2011-07-12  Bruno Haible  <bruno@clisp.org>
10756
10757         * NEWS: Mention the changes.
10758
10759         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
10760         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
10761         (Files, Makefile.am): Update.
10762         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
10763         * modules/arpa_inet (Depends-on): Update.
10764         * modules/ctype (Depends-on): Update.
10765         * modules/dirent (Depends-on): Update.
10766         * modules/fcntl-h (Depends-on): Update.
10767         * modules/glob (Depends-on): Update.
10768         * modules/iconv-h (Depends-on): Update.
10769         * modules/inttypes-incomplete (Depends-on): Update.
10770         * modules/langinfo (Depends-on): Update.
10771         * modules/locale (Depends-on): Update.
10772         * modules/math (Depends-on): Update.
10773         * modules/netdb (Depends-on): Update.
10774         * modules/poll-h (Depends-on): Update.
10775         * modules/pty (Depends-on): Update.
10776         * modules/search (Depends-on): Update.
10777         * modules/signal (Depends-on): Update.
10778         * modules/spawn (Depends-on): Update.
10779         * modules/stdio (Depends-on): Update.
10780         * modules/stdlib (Depends-on): Update.
10781         * modules/string (Depends-on): Update.
10782         * modules/strings (Depends-on): Update.
10783         * modules/sys_file (Depends-on): Update.
10784         * modules/sys_ioctl (Depends-on): Update.
10785         * modules/sys_select (Depends-on): Update.
10786         * modules/sys_socket (Depends-on): Update.
10787         * modules/sys_stat (Depends-on): Update.
10788         * modules/sys_time (Depends-on): Update.
10789         * modules/sys_times (Depends-on): Update.
10790         * modules/sys_utsname (Depends-on): Update.
10791         * modules/sys_wait (Depends-on): Update.
10792         * modules/termios (Depends-on): Update.
10793         * modules/time (Depends-on): Update.
10794         * modules/unistd (Depends-on): Update.
10795         * modules/wchar (Depends-on): Update.
10796         * modules/wctype-h (Depends-on): Update.
10797         * MODULES.html.sh (Support for building libraries and executables):
10798         Update.
10799
10800         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
10801         * modules/snippet/unused-parameter: Renamed from
10802         modules/unused-parameter.
10803         (Files, Makefile.am): Update.
10804         * build-aux/snippet/unused-parameter.h: Renamed from
10805         build-aux/unused-parameter.h.
10806         * modules/selinux-h (Depends-on): Update.
10807         * modules/unistr/base (Depends-on): Update.
10808         * MODULES.html.sh (Core language properties): Update.
10809
10810         Rename module 'link-warning' to 'snippet/link-warning'.
10811         * modules/snippet/link-warning: Renamed from modules/link-warning.
10812         (Files, Makefile.am): Update.
10813         * build-aux/snippet/link-warning.h: Renamed from
10814         build-aux/link-warning.h.
10815         * MODULES.html.sh (Support for building libraries and executables):
10816         Update.
10817
10818         Rename module 'c++defs' to 'snippet/c++defs'.
10819         * modules/snippet/c++defs: Renamed from modules/c++defs.
10820         (Files, Makefile.am): Update.
10821         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
10822         * modules/arpa_inet (Depends-on): Update.
10823         * modules/ctype (Depends-on): Update.
10824         * modules/dirent (Depends-on): Update.
10825         * modules/fcntl-h (Depends-on): Update.
10826         * modules/glob (Depends-on): Update.
10827         * modules/iconv-h (Depends-on): Update.
10828         * modules/langinfo (Depends-on): Update.
10829         * modules/locale (Depends-on): Update.
10830         * modules/math (Depends-on): Update.
10831         * modules/netdb (Depends-on): Update.
10832         * modules/poll-h (Depends-on): Update.
10833         * modules/pty (Depends-on): Update.
10834         * modules/search (Depends-on): Update.
10835         * modules/signal (Depends-on): Update.
10836         * modules/spawn (Depends-on): Update.
10837         * modules/stdio (Depends-on): Update.
10838         * modules/stdlib (Depends-on): Update.
10839         * modules/string (Depends-on): Update.
10840         * modules/strings (Depends-on): Update.
10841         * modules/sys_ioctl (Depends-on): Update.
10842         * modules/sys_select (Depends-on): Update.
10843         * modules/sys_socket (Depends-on): Update.
10844         * modules/sys_stat (Depends-on): Update.
10845         * modules/sys_time (Depends-on): Update.
10846         * modules/sys_wait (Depends-on): Update.
10847         * modules/termios (Depends-on): Update.
10848         * modules/time (Depends-on): Update.
10849         * modules/unistd (Depends-on): Update.
10850         * modules/wchar (Depends-on): Update.
10851         * modules/wctype-h (Depends-on): Update.
10852
10853         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
10854         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
10855         (Files, Makefile.am): Update.
10856         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
10857         * modules/argv-iter (Depends-on): Update.
10858         * modules/arpa_inet (Depends-on): Update.
10859         * modules/dirent (Depends-on): Update.
10860         * modules/fcntl-h (Depends-on): Update.
10861         * modules/fnmatch (Depends-on): Update.
10862         * modules/getopt-posix (Depends-on): Update.
10863         * modules/glob (Depends-on): Update.
10864         * modules/iconv-h (Depends-on): Update.
10865         * modules/inttypes-incomplete (Depends-on): Update.
10866         * modules/locale (Depends-on): Update.
10867         * modules/math (Depends-on): Update.
10868         * modules/netdb (Depends-on): Update.
10869         * modules/search (Depends-on): Update.
10870         * modules/signal (Depends-on): Update.
10871         * modules/spawn (Depends-on): Update.
10872         * modules/stdio (Depends-on): Update.
10873         * modules/stdlib (Depends-on): Update.
10874         * modules/string (Depends-on): Update.
10875         * modules/strings (Depends-on): Update.
10876         * modules/sys_socket (Depends-on): Update.
10877         * modules/sys_stat (Depends-on): Update.
10878         * modules/sys_time (Depends-on): Update.
10879         * modules/sys_times (Depends-on): Update.
10880         * modules/sys_utsname (Depends-on): Update.
10881         * modules/time (Depends-on): Update.
10882         * modules/unistd (Depends-on): Update.
10883         * modules/wchar (Depends-on): Update.
10884         * MODULES.html.sh (Support for building libraries and executables):
10885         Update.
10886
10887 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10888
10889         Improvements on _Noreturn and related modules.
10890
10891         modules/_Exit-tests: test _Noreturn too
10892         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
10893         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
10894         (main): Use them.
10895
10896         stdnoreturn, stdnoreturn-tests: remove modules
10897         They're not needed here and a bit premature for use elsewhere.  See
10898         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
10899         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
10900         * tests/test-stdnoreturn.c: Remove files.
10901         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
10902         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
10903         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
10904         and using noreturn.
10905         * modules/openat, modules/sigpipe-die, modules/xalloc:
10906         * modules/xmemdup0, modules/xstrtol:
10907         Remove dependency on stdnoreturn.
10908
10909         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
10910         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
10911         Reparenthesize to avoid GCC warning.
10912         Support Microsoft's syntax.
10913         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
10914
10915         _Noreturn-tests: remove module
10916         * modules/_Noreturn-tests: Remove.
10917         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
10918         * tests/test-_Noreturn.c: Remove.
10919         * tests/test-stdnoreturn.c: Merge from the old
10920         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
10921
10922 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10923
10924         _Noreturn, stdnoreturn, and related modules.
10925
10926         * top/maint.mk: Adjust to new noreturn support.
10927         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
10928         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
10929
10930         xalloc: use stdnoreturn.h
10931         * lib/xalloc.h: Include <stdnoreturn.h>.
10932         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10933         * modules/xalloc (Depends-on): Add stdnoreturn.
10934
10935         xstrtol: use stdnoreturn.h
10936         * lib/xstrtol.h: Include <stdnoreturn.h>.
10937         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10938         * modules/xstrtol (Depends-on): Add stdnoreturn.
10939
10940         xmemdup0: use stdnoreturn.h
10941         * lib/xmemdup0.h: Include <stdnoreturn.h>.
10942         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10943         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
10944
10945         sigpipe-die: use stdnoreturn.h
10946         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
10947         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10948         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
10949
10950         openat: use stdnoreturn.h
10951         * lib/openat.h: Include <stdnoreturn.h>.
10952         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10953         * modules/openat (Depends-on): Add stdnoreturn.
10954
10955         * lib/openat-die.c (openat_save_fail): Modernize comment.
10956
10957         * lib/xalloc-die.c (xalloc_die): Modernize comment.
10958
10959         * lib/glthread/thread.h: Modernize comment.
10960
10961         obstack: use _Noreturn
10962         * lib/obstack.c (__attribute__): Remove macro.
10963         (print_and_abort): Use _Noreturn.
10964
10965         c-stack: use _Noreturn
10966         * lib/c-stack.c (die, overflow_handler, segv_handler):
10967         Use _Noreturn rather than __attribute__((noreturn)).
10968
10969         argmatch-tests, exclude_tests: use _Noreturn
10970         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
10971         Remove.
10972         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
10973
10974         stdlib: use _Noreturn
10975         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
10976         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
10977         * modules/stdlib (Depends-on): Add _Noreturn.
10978         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
10979
10980         stdnoreturn-tests: new module
10981         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
10982
10983         stdnoreturn: new module
10984         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
10985         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
10986
10987         _Noreturn-tests: new module
10988         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
10989
10990         _Noreturn: new module
10991         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
10992         New section, mentioning it.
10993         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
10994
10995         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
10996
10997 2011-07-11  Eric Blake  <eblake@redhat.com>
10998
10999         ffs: new module
11000         * modules/ffs: New file.
11001         * m4/ffs.m4: Likewise.
11002         * lib/ffs.c: Likewise.
11003         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
11004         * modules/strings (Makefile.am): Substitute witness.
11005         (Depends-on): Add c++defs.
11006         * lib/strings.in.h (ffs): Declare.
11007         * modules/ffs-tests: New test file.
11008         * tests/test-ffs.c: Test new module.
11009         * MODULES.html.sh (Integer arithmetic functions): Mention it.
11010         * doc/posix-functions/ffs.texi (ffs): Likewise.
11011
11012         regex: avoid compiler warning
11013         * lib/regex.c (includes): Include <strings.h>, for use of
11014         strcasecmp in regcomp.c.
11015         Reported by Joachim Schmitz.
11016
11017 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11018
11019         stdint: respect system's intmax_t if INTMAX_MAX
11020         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
11021         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
11022         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
11023         long but int64_t is long long, and where we will clash with the
11024         system intmax_t if we override it.  See
11025         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
11026         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
11027         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
11028         similarly for UINTMAX_C.
11029
11030 2011-07-08  Bruno Haible  <bruno@clisp.org>
11031
11032         pthread_sigmask tests: Avoid a compiler warning.
11033         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
11034         non-zero.
11035
11036         sigprocmask tests: A better way to avoid a compiler warning.
11037         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
11038         (main): Complain if system() returns non-zero.
11039         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
11040
11041 2011-07-08  Bruno Haible  <bruno@clisp.org>
11042
11043         pthread_sigmask: Work around IRIX bug.
11044         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
11045         bug.
11046         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
11047         there may be unblocked pending signals.
11048         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
11049
11050 2011-07-08  Bruno Haible  <bruno@clisp.org>
11051
11052         pthread_sigmask: Work around Cygwin bug.
11053         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
11054         bug.
11055         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
11056         the system's pthread_sigmask function.
11057         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
11058
11059 2011-07-08  Bruno Haible  <bruno@clisp.org>
11060
11061         pthread_sigmask: Work around bug in single-threaded implementation.
11062         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
11063         FreeBSD, HP-UX, Solaris bug.
11064         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
11065         * lib/pthread_sigmask.c: Include <stddef.h>.
11066         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
11067         the system's pthread_sigmask function.
11068         * modules/pthread_sigmask (configure.ac): Invoke
11069         gl_PREREQ_PTHREAD_SIGMASK.
11070         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
11071         HP-UX, Solaris.
11072
11073 2011-07-08  Eric Blake  <eblake@redhat.com>
11074
11075         test-sigprocmask: avoid compiler warning
11076         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
11077         * tests/test-sigprocmask.c (main): Use it to silence warning.
11078         Reported by Jim Meyering.
11079
11080         test-snprintf: avoid compiler warning
11081         * tests/test-snprintf.c (main): Avoid shadowed declaration.
11082         * tests/test-vsnprintf.c (main): Likewise.
11083         Reported by Jim Meyering.
11084
11085 2011-07-08  Bruno Haible  <bruno@clisp.org>
11086
11087         Tests for module 'pthread_sigmask'.
11088         * modules/pthread_sigmask-tests: New file.
11089         * tests/test-pthread_sigmask1.c: New file, based on
11090         tests/test-sigprocmask.c.
11091         * tests/test-pthread_sigmask2.c: New file.
11092
11093 2011-07-08  Jim Meyering  <meyering@redhat.com>
11094
11095         test-getopt.h: avoid warning about an unused variable
11096         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
11097
11098 2011-07-07  Jim Meyering  <meyering@redhat.com>
11099
11100         maint: reduce list of files exempt from sc_prohibit_leading_TABs
11101         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
11102         now that it no longer contains leading TABs.
11103         Remove unused "url=FIXME" statement.
11104
11105 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11106
11107         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
11108         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11109         When gl_THREADLIB is not in use, assume that the POSIX sematics
11110         are desired.  This is better for Emacs, which uses POSIX semantics
11111         on GNUish and/or POSIXish platforms, and does not use threads at
11112         all otherwise.
11113
11114         pthread_sigmask: fix typo when testing for libraries
11115         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
11116         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
11117
11118 2011-07-08  Eric Blake  <eblake@redhat.com>
11119
11120         fts: introduce FTS_NOATIME
11121         * lib/fts_.h (FTS_NOATIME): New bit flag.
11122         (FTS_OPTIONMASK): Adjust.
11123         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
11124         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
11125
11126 2011-07-08  Bruno Haible  <bruno@clisp.org>
11127
11128         Tests for module 'thread'.
11129         * modules/thread-tests: New file.
11130         * tests/test-thread_self.c: New file.
11131         * tests/test-thread_create.cc: New file.
11132
11133 2011-07-08  Bruno Haible  <bruno@clisp.org>
11134
11135         thread: Avoid gcc warnings when using gl_thread_self().
11136         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
11137         'void *'.
11138         (gl_thread_self_pointer): Update.
11139
11140 2011-07-07  Bruno Haible  <bruno@clisp.org>
11141
11142         signal-c++-tests: Check declaration of pthread_sigmask.
11143         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
11144         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
11145         $(LIB_PTHREAD_SIGMASK).
11146
11147 2011-07-07  Bruno Haible  <bruno@clisp.org>
11148
11149         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
11150         * lib/signal.in.h (pthread_sigmask): Override if
11151         REPLACE_PTHREAD_SIGMASK is 1.
11152         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11153         REPLACE_PTHREAD_SIGMASK.
11154         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
11155         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
11156         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
11157         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11158         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
11159
11160 2011-07-07  Bruno Haible  <bruno@clisp.org>
11161
11162         pthread_sigmask: Ensure declaration in <signal.h>.
11163         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
11164         include <pthread.h>.
11165         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
11166         problem.
11167
11168 2011-07-07  Bruno Haible  <bruno@clisp.org>
11169
11170         pthread_sigmask: Document the module.
11171         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
11172
11173 2011-07-07  Bruno Haible  <bruno@clisp.org>
11174
11175         pthread_sigmask: Follow gnulib conventions.
11176         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
11177         gl_PTHREAD_SIGMASK.
11178         * modules/pthread_sigmask (configure.ac): Update.
11179
11180 2011-07-07  Bruno Haible  <bruno@clisp.org>
11181
11182         pthread_sigmask: Make declaration C++ safe.
11183         * lib/signal.in.h: In two special conditions, just do an #include_next.
11184         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11185         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
11186         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
11187         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
11188         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
11189         not REPLACE_PTHREAD_MASK.
11190         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
11191         not REPLACE_PTHREAD_MASK.
11192         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
11193
11194 2011-07-07  Bruno Haible  <bruno@clisp.org>
11195
11196         pthread_sigmask: Fix return value.
11197         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
11198         * lib/pthread_sigmask.c: New file.
11199         * modules/pthread_sigmask (Files): Add it.
11200         (configure.ac): Invoke AC_LIBOBJ.
11201
11202 2011-07-07  Eric Blake  <eblake@redhat.com>
11203
11204         getopt: more portable argv creation
11205         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
11206         const, use char arrays rather than strings.
11207         Suggested by Paul Eggert.
11208
11209 2011-07-07  Bruno Haible  <bruno@clisp.org>
11210
11211         Tests for module 'sigprocmask'.
11212         * modules/sigprocmask-tests: New file.
11213         * tests/test-sigprocmask.c: New file.
11214
11215 2011-07-07  Bruno Haible  <bruno@clisp.org>
11216
11217         float tests: Tweak.
11218         * tests/test-float.c (main): Tweak skip message.
11219
11220 2011-07-07  Eric Blake  <eblake@redhat.com>
11221
11222         getopt: avoid compiler warning during configure
11223         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
11224         assigning string literals to non-const pointer.
11225
11226         getopt-gnu: avoid crash in glibc getopt
11227         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
11228         * tests/test-getopt.h (test_getopt): Enhance test.
11229         * tests/test-getopt_long.h (test_getopt_long): Likewise.
11230         * doc/posix-functions/getopt.texi (getopt): Document it.
11231         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
11232         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11233         Likewise.
11234
11235 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
11236
11237         getopt: handle W; without long options in getopt [BZ #12922]
11238         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
11239         but no long options are defined, just return 'W'.
11240
11241 2011-07-07  Bruno Haible  <bruno@clisp.org>
11242
11243         Avoid literal tabs.
11244         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
11245         variable containing a tab instead of a literal tab.
11246         Reported by Jim Meyering.
11247
11248 2011-07-07  Bruno Haible  <bruno@clisp.org>
11249
11250         Comments.
11251         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
11252
11253 2011-07-06  Bruno Haible  <bruno@clisp.org>
11254
11255         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
11256         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
11257         <winsock2.h>.
11258         (rpl_fd_isset, FD_ISSET): New definitions, copied from
11259         lib/sys_socket.in.h.
11260         (close, gethostname): Hide declarations from <winsock2.h>.
11261         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11262         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
11263         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
11264         (select): Don't override if gnulib's <sys/select.h> was already
11265         included.
11266         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11267         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11268         setsockopt, shutdown, select): Tweak indentation.
11269
11270 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11271
11272         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11273         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11274         in an application that does not use the sys_select module.
11275
11276 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11277
11278         poll: do not return 0 on timeout=-1
11279         * lib/poll.c: Loop with yield if no events occured
11280
11281 2011-07-06  Eric Blake  <eblake@redhat.com>
11282
11283         pthread_sigmask: always replace when not using pthread
11284         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
11285         replacement when using some threading other than pthread.  Fix
11286         logic bug.
11287
11288 2011-07-06  Bruno Haible  <bruno@clisp.org>
11289
11290         Comments.
11291         * m4/printf.m4: Update comments about mingw.
11292
11293 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11294
11295         sys_select: define sigset_t more portably
11296         * lib/sys_select.in.h: Always include <sys/types.h>, since
11297         we now need sigset_t and mingw defines it there.
11298         Include <signal.h> before split inclusion guard, to avoid
11299         mishaps on Solaris, whose <signal.h> eventually includes us.
11300         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
11301         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
11302         which come from ...
11303         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11304         gl_CHECK_TYPE_SIGSET_T.
11305         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
11306         does the real work.
11307         * modules/sys_select (Depends-on): Add 'signal'.
11308
11309         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
11310         Suggested by Bruno Haible.
11311
11312         pselect: Use pthread_sigmask, not sigprocmask.
11313         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
11314         multithreaded apps better than sigprocmask does.
11315         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
11316         sigprocmask directly.
11317
11318 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11319
11320         * lib/pselect.c (pselect): Use plain name, without "rpl_".
11321         Don't #undef,  since we don't need any underlying pselect.
11322         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
11323         (Depends-on): Add select.
11324         (Link): Add $(LIBSOCKET).
11325         These changes suggested by Bruno Haible.
11326
11327         pselect: document better
11328         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11329         * doc/posix-functions/pselect.texi (pselect): Document new module.
11330
11331         pthread_sigmask: new module
11332         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11333         * doc/posix-functions/pthread_sigmask.texi: Document new module.
11334         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
11335         This is done only as a macro; I don't know how well that'll
11336         work for C++.  Move <sys/types.h> include before the include_next,
11337         to avoid mishap on Solaris.
11338         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
11339         * modules/signal (Makefile.am): Substitute the check's results.
11340         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
11341
11342         test-pselect: new module
11343         * modules/pselect-tests, tests/test-pselect.c: New files.
11344         * tests/test-select.c, tests/test-sys_select-c++.cc:
11345         If TEST_PSELECT is defined, test pselect instead of testing select.
11346
11347         * tests/test-sys_select.c (sigset_t): Test for it, too.
11348         Suggested by Bruno Haible.
11349
11350 2011-07-05  Eric Blake  <eblake@redhat.com>
11351
11352         snprintf: guarantee %1$d, for libintl
11353         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
11354         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
11355         * doc/posix-functions/snprintf.texi (snprintf): Update.
11356         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11357         * tests/test-snprintf.c (main): Enhance test.
11358         * tests/test-vsnprintf.c (main): Likewise.
11359
11360 2011-07-05  Jim Meyering  <meyering@redhat.com>
11361
11362         maint: exempt stdio-read.c and stdio-write.c from the cppi check
11363         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
11364         per Bruno's request, to accommodate this idiom (no space after "#")
11365         even when the function is inside an #if block:
11366         char *
11367         gets (char *s)
11368         #undef gets
11369         {
11370           ...
11371         }
11372
11373 2011-07-04  Jim Meyering  <meyering@redhat.com>
11374
11375         maint: indent with spaces, not TABs, and add a rule to check this
11376         * tests/test-userspec.c: Indent with spaces, not TABs.
11377         * tests/test-argp.c: Likewise.
11378         * tests/test-c-stack2.sh: Likewise.
11379         * tests/test-parse-duration.sh: Likewise
11380         * m4/strtod.m4: Likewise.
11381         * m4/alloca.m4: Likewise.
11382         * m4/pselect.m4: Likewise.
11383         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
11384
11385 2011-07-03  Jim Meyering  <meyering@redhat.com>
11386
11387         maint.mk: correct omissions in prohibit_argmatch_without_use check
11388         This rule would mistakenly report that argmatch.h is included without
11389         use even when both the argmatch and invalid_arg macro were used.
11390         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
11391         of argmatch and invalid_arg.
11392
11393 2011-07-03  Bruno Haible  <bruno@clisp.org>
11394
11395         Comments about EINTR.
11396         * lib/safe-read.h: Explain the purpose of this module.
11397         * lib/safe-write.h: Likewise.
11398         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
11399         module.
11400         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
11401         module.
11402         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11403
11404 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11405
11406         xnanosleep: Rewrite to use new dtotimespec module.
11407         It has the conversion code that used to be in xnanosleep.
11408         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
11409         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
11410         (TIME_T_MAX): Remove.
11411         (xnanosleep): Rewrite in terms of dtotimespec.
11412         * modules/xnanosleep (Depends-on): Add dtotimespec.
11413         Remove intprops, stdbool.
11414
11415         timespec-add, timespec-sub: new modules
11416         * lib/timespec.h (timespec_add, timespec_sub): New decls.
11417         * lib/timespec-add.c, lib/timespec-sub.c:
11418         * modules/timespec-add, modules/timespec-sub: New files.
11419
11420         dtotimespec: new module
11421         * lib/timespec.h (dtotimespec): New decl.
11422         * lib/dtotimespec.c, modules/dtotimespec: New files.
11423
11424         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
11425
11426         pselect: new module
11427         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
11428         (pselect): New decls.
11429         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
11430         since the standard pselect decl uses 'restrict'.
11431         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
11432         HAVE_PSELECT, REPLACE_PSELECT.
11433         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
11434         HAVE_PSELECT, REPLACE_PSELECT.
11435         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
11436
11437         sys_select: don't depend on sys_socket
11438         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
11439         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
11440         This fix works on GNU and GNU-like platforms, but has not been tested
11441         on native Windows.
11442         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
11443         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
11444         gl_HEADER_SYS_SOCKET.
11445         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
11446         gl_PREREQ_SYS_H_WINSOCK2.
11447
11448 2011-06-29  Eric Blake  <eblake@redhat.com>
11449
11450         pipe2: fix C89 compile problem
11451         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
11452         Reported by Bruno Haible.
11453
11454         pipe, pipe2: don't corrupt fd on error
11455         * lib/pipe.c (pipe): Leave fd unchanged on error.
11456         * lib/pipe2.c (pipe2): Likewise.
11457         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
11458         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11459
11460 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
11461
11462         mmap-anon: do not use regular expressions inadvertently
11463         * m4/mmap-anon.m4: Remove trailing period from strings sought
11464         in the output.
11465
11466 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
11467
11468         nanosleep: fix integer overflow problem
11469         * lib/nanosleep.c (my_usleep): Don't assume signed integer
11470         arithmetic wraps around on overflow.
11471
11472         nanosleep: simplify carrying
11473         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
11474         first call to the underyling nanosleep, not for the last one.
11475         This doesn't fix any bugs, but it simplifies the computation of
11476         the remaining delay.  Found while auditing integer overflow issues.
11477
11478         dup2: remove test for existence of fcntl
11479         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
11480         "#if HAVE_FCNTL", in the configure-time test program.
11481         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
11482         and therefore speeds up "configure" a bit.  Found while
11483         adding the dup2 module to Emacs.
11484
11485 2011-06-24  Eric Blake  <eblake@redhat.com>
11486
11487         maint.mk: enhance useless header checks
11488         * top/maint.mk (_sc_header_without_use): Check both include
11489         styles.
11490         (sc_prohibit_assert_without_use)
11491         (sc_prohibit_close_stream_without_use)
11492         (sc_prohibit_getopt_without_use)
11493         (sc_prohibit_quotearg_without_use)
11494         (sc_prohibit_quote_without_use)
11495         (sc_prohibit_long_options_without_use)
11496         (sc_prohibit_inttostr_without_use)
11497         (sc_prohibit_ignore_value_without_use)
11498         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
11499         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
11500         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
11501         (sc_prohibit_hash_pjw_without_use)
11502         (sc_prohibit_safe_read_without_use)
11503         (sc_prohibit_argmatch_without_use)
11504         (sc_prohibit_canonicalize_without_use)
11505         (sc_prohibit_root_dev_ino_without_use)
11506         (sc_prohibit_openat_without_use)
11507         (sc_prohibit_c_ctype_without_use)
11508         (sc_prohibit_signal_without_use)
11509         (sc_prohibit_stdio--_without_use)
11510         (sc_prohibit_stdio-safer_without_use)
11511         (sc_prohibit_strings_without_use)
11512         (sc_prohibit_intprops_without_use)
11513         (sc_prohibit_stddef_without_use)
11514         (sc_prohibit_xfreopen_without_use): Update clients.
11515
11516 2011-06-24  Jim Meyering  <meyering@redhat.com>
11517
11518         syntax-check: keep one maint.mk rule in sync with its header
11519         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
11520         of the bug Eric has just fixed, with today's commit 25e4c2ec.
11521         I prefer to avoid temporary files here, so use <(...), but that
11522         is not supported by /bin/sh, so...
11523         (SHELL): Define to /bin/bash.
11524
11525 2011-06-24  Eric Blake  <eblake@redhat.com>
11526
11527         maint.mk: update sc_prohibit_intprops_without_use
11528         * top/maint.mk (_intprops_names): Match recent changes.
11529
11530 2011-06-24  Bruno Haible  <bruno@clisp.org>
11531
11532         strerror-override: No-op tweak.
11533         * lib/strerror-override.h (strerror_override): Reorder conditions,
11534         for consistency with lib/strerror-override.c.
11535
11536 2011-06-23  Eric Blake  <eblake@redhat.com>
11537
11538         maint.mk: test further PATH_MAX issues
11539         * top/maint.mk (sc_prohibit_path_max_array): Rename...
11540         (sc_prohibit_path_max_allocation): ...and also test alloca.
11541         Suggested by Jim Meyering.
11542
11543 2011-06-22  Eric Blake  <eblake@redhat.com>
11544
11545         maint.mk: add syntax-check to avoid char[PATH_MAX]
11546         * top/maint.mk (sc_prohibit_path_max_array): New rule.
11547
11548         stat: be robust to PATH_MAX definition
11549         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
11550         * modules/stat (Depends-on): Add verify.
11551
11552         link: work around IRIX bug
11553         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
11554         * lib/link.c (rpl_link): Work around it.
11555         * tests/test-link.h (test_link): Enhance test.
11556         * doc/posix-functions/link.texi (link): Document the bug.
11557
11558         getopt: silence clang warning
11559         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
11560         dereference.
11561         Reported by Gustavo Martin Domato.
11562
11563 2011-06-22  Jim Meyering  <meyering@redhat.com>
11564
11565         bootstrap: do not insert a blank line into each .gitignore file
11566         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
11567
11568 2011-06-21  Eric Blake  <eblake@redhat.com>
11569
11570         perror: test for output mismatch
11571         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
11572         perror on IRIX.
11573
11574         strerror_r: fix OpenBSD behavior on out-of-range
11575         * lib/strerror_r.c (strerror_r): Always use maximal string.
11576         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11577
11578         strerror_r: fix OpenBSD behavior on 0
11579         * lib/strerror-override.c (strerror_override): Also override 0
11580         when needed.
11581         * lib/strerror-override.h (strerror_override): Likewise.
11582         * lib/strerror.c (strerror): Simplify, now that 0 override is done
11583         earlier.
11584         * lib/strerror_r.c (strerror_r): Likewise.
11585         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
11586         behavior...
11587         (gl_FUNC_STRERROR_0): ...into new macro.
11588         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
11589         is overridden.
11590         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
11591         * modules/strerror-override (Files): Add strerror.m4.
11592         (configure.ac): Also provide override for 0 when needed.
11593         * doc/posix-functions/strerror.texi (strerror): Document this.
11594         * doc/posix-functions/perror.texi (perror): Likewise.
11595
11596         perror: adjust array size
11597         * modules/perror (Depends-on): Add strerror-override.
11598         * lib/perror.c (perror): Use it to avoid magic number.
11599
11600         strerror-override: reduce size
11601         * lib/strerror-override.c (strerror_override): Use fewer lines.
11602
11603 2011-06-20  Bruno Haible  <bruno@clisp.org>
11604
11605         pathmax: Ensure correct value for PATH_MAX on HP-UX.
11606         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
11607
11608 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11609
11610         alloca: port to compilers that can optimize like GCC 4.6.0
11611         * lib/alloca.c (find_stack_direction): New signature, taken from
11612         Autoconf git.  This works with GCC 4.6.0.  This code should never
11613         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
11614         be used with other compilers that optimize as well as GCC 4.6.0 does.
11615         (alloca): Adjust to new signature.
11616         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
11617         New macro, which patches Autoconf in a similar way.
11618
11619         c-stack: stop worrying about stack direction
11620         * lib/c-stack.c (find_stack_direction): Remove.
11621         (segv_handler): Don't worry about stack direction growth, as it's
11622         too much of a pain to configure this correctly, given how compilers
11623         are optimizing-away our stack-growth detection code.  Instead, assume
11624         that any access to just before or just after the stack is OK.
11625         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
11626         Don't require AC_FUNC_ALLOCA; no longer needed.
11627
11628 2011-06-20  Eric Blake  <eblake@redhat.com>
11629
11630         test-stat: don't allocate PATH_MAX bytes
11631         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
11632         PATH_MAX-sized buffer.
11633         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
11634         * modules/stat-tests (Depends-on): Likewise.
11635         * tests/test-fstatat.c (includes): Drop pathmax.h.
11636         * tests/test-stat.c (includes): Likewise.
11637         Reported by Bruno Haible.
11638
11639 2011-06-20  Bruno Haible  <bruno@clisp.org>
11640
11641         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
11642         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
11643         * lib/float.c: New file.
11644         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
11645         REPLACE_FLOAT_LDBL.
11646         * modules/float (Files): Add lib/float.c.
11647         (configure.ac): Invoke AC_LIBOBJ.
11648         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
11649
11650 2011-06-20  Bruno Haible  <bruno@clisp.org>
11651
11652         Tests for module 'float'.
11653         * modules/float-tests: New file.
11654         * tests/test-float.c: New file.
11655
11656 2011-06-19  Bruno Haible  <bruno@clisp.org>
11657
11658         isinf: Coding style.
11659         * lib/isinf.c: Use GNU coding style.
11660
11661 2011-06-19  Bruno Haible  <bruno@clisp.org>
11662
11663         linkat test: Avoid test failure on AIX 7.1.
11664         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
11665         * tests/test-link.h (test_link): Likewise.
11666
11667 2011-06-19  Bruno Haible  <bruno@clisp.org>
11668
11669         pread test: Avoid test failure on OpenBSD 4.9.
11670         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
11671
11672 2011-06-19  Bruno Haible  <bruno@clisp.org>
11673
11674         sprintf-posix: Fix test failure on AIX 7.1.
11675         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
11676         * doc/posix-functions/dprintf.texi: Mention limited precision problem
11677         on AIX.
11678         * doc/posix-functions/fprintf.texi: Likewise.
11679         * doc/posix-functions/printf.texi: Likewise.
11680         * doc/posix-functions/snprintf.texi: Likewise.
11681         * doc/posix-functions/sprintf.texi: Likewise.
11682         * doc/posix-functions/vdprintf.texi: Likewise.
11683         * doc/posix-functions/vfprintf.texi: Likewise.
11684         * doc/posix-functions/vprintf.texi: Likewise.
11685         * doc/posix-functions/vsnprintf.texi: Likewise.
11686         * doc/posix-functions/vsprintf.texi: Likewise.
11687
11688 2011-06-19  Bruno Haible  <bruno@clisp.org>
11689
11690         roundl-ieee: Fix test failure on AIX 7.1.
11691         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
11692         * doc/posix-functions/roundl.texi: Mention problem with negative
11693         arguments.
11694
11695 2011-06-19  Bruno Haible  <bruno@clisp.org>
11696
11697         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11698         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
11699         * doc/posix-functions/round.texi: Mention problem with negative
11700         arguments.
11701         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
11702
11703 2011-06-19  Bruno Haible  <bruno@clisp.org>
11704
11705         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11706         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
11707         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
11708         * doc/posix-functions/roundf.texi: Mention problem with negative
11709         arguments.
11710         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
11711
11712 2011-06-19  Bruno Haible  <bruno@clisp.org>
11713
11714         ceilf-ieee: Work around bug on MacOS X 10.5.
11715         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
11716
11717         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
11718         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
11719         IEEE compliant, avoid compiler optimizations.
11720         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11721         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11722         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11723         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11724         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11725         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11726         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11727         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11728         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11729         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11730
11731 2011-06-19  Bruno Haible  <bruno@clisp.org>
11732
11733         ceilf-ieee: Work around bug on AIX 7.1.
11734         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
11735         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
11736
11737 2011-06-19  Bruno Haible  <bruno@clisp.org>
11738
11739         ceil-ieee: Work around bug on AIX 7.1.
11740         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
11741         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
11742
11743 2011-06-18  Bruno Haible  <bruno@clisp.org>
11744
11745         fsync test: Avoid test failure on MacOS X and AIX.
11746         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
11747         EINVAL.
11748
11749 2011-06-18  Bruno Haible  <bruno@clisp.org>
11750
11751         openat, fdopendir tests: Fix link errors.
11752         * modules/openat-tests (Depends-on): Add progname.
11753         * modules/fdopendir-tests (Depends-on): Likewise.
11754         * tests/test-fchownat.c: Include progname.h.
11755         (main): Call set_program_name.
11756         * tests/test-fstatat.c: Include progname.h.
11757         (main): Call set_program_name.
11758         * tests/test-mkdirat.c: Include progname.h.
11759         (main): Call set_program_name.
11760         * tests/test-openat.c: Include progname.h.
11761         (main): Call set_program_name.
11762         * tests/test-unlinkat.c: Include progname.h.
11763         (main): Call set_program_name.
11764         * tests/test-fdopendir.c: Include progname.h.
11765         (main): Call set_program_name.
11766
11767 2011-06-18  Bruno Haible  <bruno@clisp.org>
11768
11769         Doc update.
11770         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
11771         HP-UX.
11772         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
11773
11774 2011-06-18  Bruno Haible  <bruno@clisp.org>
11775
11776         getcwd tests: Avoid compilation error on HP-UX 11.31.
11777         * modules/getcwd-tests (Depends-on): Add pathmax.
11778         * tests/test-getcwd.c: Include pathmax.h.
11779
11780 2011-06-18  Bruno Haible  <bruno@clisp.org>
11781
11782         isfinite, isinf: Fix link error on AIX 6 and 7.
11783         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
11784         needed, also test the macro with a 'float' argument.
11785         * m4/isinf.m4 (gl_ISINF): Likewise.
11786
11787 2011-06-18  Bruno Haible  <bruno@clisp.org>
11788
11789         getloadavg: Don't clobber LIBS. Regression from previous commit.
11790         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
11791         AC_CHECK_LIB from here...
11792         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
11793         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
11794         gl_func_getloadavg_done.
11795         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11796
11797 2011-06-18  Bruno Haible  <bruno@clisp.org>
11798
11799         clean-temp: Improve documentation.
11800         * lib/clean-temp.h: Explain better how to use this module.
11801         Reported by John Darrington <john@darrington.wattle.id.au>.
11802
11803 2011-06-17  Bruno Haible  <bruno@clisp.org>
11804
11805         pread, pwrite: Avoid cc warning on AIX.
11806         * lib/unistd.in.h (pread): Undefine before defining as a macro.
11807         (pwrite): Likewise.
11808
11809 2011-06-17  Bruno Haible  <bruno@clisp.org>
11810
11811         spawn-pipe tests: Fix link error.
11812         * tests/test-spawn-pipe-child.c: Undefine fprintf.
11813         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11814
11815 2011-06-17  Bruno Haible  <bruno@clisp.org>
11816
11817         Tests: Remove unnecessary dependency.
11818         * modules/canonicalize-tests (Depends-on): Remove progname.
11819         * modules/chown-tests (Depends-on): Likewise.
11820         * modules/dirname-tests (Depends-on): Likewise.
11821         * modules/fdopendir-tests (Depends-on): Likewise.
11822         * modules/fdutimensat-tests (Depends-on): Likewise.
11823         * modules/hash-tests (Depends-on): Likewise.
11824         * modules/lchown-tests (Depends-on): Likewise.
11825         * modules/linkat-tests (Depends-on): Likewise.
11826         * modules/renameat-tests (Depends-on): Likewise.
11827         * modules/spawn-pipe-tests (Depends-on): Likewise.
11828         * modules/utimensat-tests (Depends-on): Likewise.
11829
11830 2011-06-17  Bruno Haible  <bruno@clisp.org>
11831
11832         spawn-pipe tests: Fix link error.
11833         * tests/test-spawn-pipe-child.c: Undefine fflush.
11834
11835 2011-06-17  Bruno Haible  <bruno@clisp.org>
11836
11837         Fix tests link errors.
11838         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
11839         * modules/chown-tests (Makefile.am): Don't link test-chown with
11840         LIBINTL.
11841         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
11842         LIBINTL.
11843         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
11844         LIBINTL.
11845         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
11846         LIBINTL.
11847
11848 2011-06-16  Bruno Haible  <bruno@clisp.org>
11849
11850         crypto/gc-sha1: Fix recent regression.
11851         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
11852         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
11853
11854         crypto/gc-md5: Fix recent regression.
11855         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
11856
11857         crypto/gc-md4: Fix recent regression.
11858         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
11859         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
11860
11861         crypto/gc-arctwo: Fix recent regression.
11862         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
11863         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
11864
11865         crypto/gc-rijndael: Fix recent regression.
11866         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
11867         (configure.ac): Invoke AC_LIBOBJ here.
11868         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
11869         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11870
11871         crypto/gc-hmac-sha1: Fix recent regression.
11872         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
11873         (configure.ac): Invoke AC_LIBOBJ here.
11874         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
11875         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11876
11877         crypto/gc-hmac-md5: Fix recent regression.
11878         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
11879         (configure.ac): Invoke AC_LIBOBJ here.
11880         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
11881         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11882
11883         crypto/gc-des: Fix recent regression.
11884         * modules/crypto/gc-des (Files): Remove m4/des.m4.
11885         (configure.ac): Invoke AC_LIBOBJ here.
11886         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
11887         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11888
11889         crypto/gc-arcfour: Fix recent regression.
11890         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
11891         (configure.ac): Invoke AC_LIBOBJ here.
11892         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
11893         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11894
11895 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
11896
11897         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
11898         After the 2011-05-21 change, this macro requires
11899         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
11900         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
11901
11902 2011-06-16  Bruno Haible  <bruno@clisp.org>
11903
11904         fprintftime: Move AC_LIBOBJ invocations to module description.
11905         * m4/fprintftime.m4: Remove file.
11906         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
11907         (configure.ac): Remove gl_FPRINTFTIME call.
11908         (Makefile.am): Augment lib_SOURCES.
11909         Reported by Jim Meyering.
11910
11911 2011-06-16  Bruno Haible  <bruno@clisp.org>
11912
11913         tmpfile-safer: Finish 2011-05-23 commit.
11914         * m4/stdio-safer.m4: Really remove file.
11915         Reported by Jim Meyering.
11916
11917 2011-06-16  Bruno Haible  <bruno@clisp.org>
11918
11919         syntax-check: Fix typo.
11920         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
11921         printf-posix.m4.
11922         Reported by Jim Meyering.
11923
11924 2011-06-13  Jim Meyering  <meyering@redhat.com>
11925
11926         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
11927         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
11928
11929 2011-05-23  Bruno Haible  <bruno@clisp.org>
11930
11931         yesno: Move AC_LIBOBJ invocations to module description.
11932         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
11933         * modules/yesno (Makefile.am): Augment lib_SOURCES.
11934
11935 2011-05-23  Bruno Haible  <bruno@clisp.org>
11936
11937         xstrtol: Move AC_LIBOBJ invocations to module description.
11938         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
11939         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
11940
11941 2011-05-23  Bruno Haible  <bruno@clisp.org>
11942
11943         xstrtold: Move AC_LIBOBJ invocations to module description.
11944         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
11945         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
11946
11947 2011-05-23  Bruno Haible  <bruno@clisp.org>
11948
11949         xstrtod: Move AC_LIBOBJ invocations to module description.
11950         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
11951         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
11952
11953 2011-05-23  Bruno Haible  <bruno@clisp.org>
11954
11955         xnanosleep: Move AC_LIBOBJ invocations to module description.
11956         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
11957         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
11958
11959 2011-05-23  Bruno Haible  <bruno@clisp.org>
11960
11961         xgetcwd: Move AC_LIBOBJ invocations to module description.
11962         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
11963         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
11964
11965 2011-05-23  Bruno Haible  <bruno@clisp.org>
11966
11967         xalloc: Move AC_LIBOBJ invocations to module description.
11968         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
11969         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
11970
11971 2011-05-23  Bruno Haible  <bruno@clisp.org>
11972
11973         write-any-file: Move AC_LIBOBJ invocations to module description.
11974         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
11975         invocation.
11976         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
11977
11978 2011-05-23  Bruno Haible  <bruno@clisp.org>
11979
11980         utimens: Move AC_LIBOBJ invocations to module description.
11981         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
11982         * modules/utimens (Makefile.am): Augment lib_SOURCES.
11983
11984 2011-05-23  Bruno Haible  <bruno@clisp.org>
11985
11986         utimecmp: Move AC_LIBOBJ invocations to module description.
11987         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
11988         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
11989
11990 2011-05-23  Bruno Haible  <bruno@clisp.org>
11991
11992         userspec: Move AC_LIBOBJ invocations to module description.
11993         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
11994         * modules/userspec (Makefile.am): Augment lib_SOURCES.
11995
11996 2011-05-23  Bruno Haible  <bruno@clisp.org>
11997
11998         unlinkdir: Move AC_LIBOBJ invocations to module description.
11999         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
12000         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
12001
12002 2011-05-23  Bruno Haible  <bruno@clisp.org>
12003
12004         unistd-safer: Move AC_LIBOBJ invocations to module description.
12005         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
12006         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
12007
12008 2011-05-23  Bruno Haible  <bruno@clisp.org>
12009
12010         tempname: Move AC_LIBOBJ invocations to module description.
12011         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
12012         * modules/tempname (Makefile.am): Augment lib_SOURCES.
12013
12014 2011-05-23  Bruno Haible  <bruno@clisp.org>
12015
12016         strftime: Move AC_LIBOBJ invocations to module description.
12017         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
12018         * modules/strftime (Makefile.am): Augment lib_SOURCES.
12019
12020 2011-05-23  Bruno Haible  <bruno@clisp.org>
12021
12022         stdlib-safer: Move AC_LIBOBJ invocations to module description.
12023         * m4/stdlib-safer.m4: Remove file.
12024         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
12025         (configure.ac): Remove gl_STDLIB_SAFER call.
12026         (Makefile.am): Augment lib_SOURCES.
12027
12028 2011-05-23  Bruno Haible  <bruno@clisp.org>
12029
12030         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
12031         * m4/stdio-safer.m4: Remove file.
12032         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
12033         (configure.ac): Remove gl_TMPFILE_SAFER call.
12034         (Makefile.am): Augment lib_SOURCES.
12035
12036 2011-05-23  Bruno Haible  <bruno@clisp.org>
12037
12038         popen-safer: Move AC_LIBOBJ invocations to module description.
12039         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
12040         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
12041         (configure.ac): Remove gl_POPEN_SAFER call.
12042         (Makefile.am): Augment lib_SOURCES.
12043
12044 2011-05-23  Bruno Haible  <bruno@clisp.org>
12045
12046         freopen-safer: Move AC_LIBOBJ invocations to module description.
12047         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
12048         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
12049         (configure.ac): Remove gl_FREOPEN_SAFER call.
12050         (Makefile.am): Augment lib_SOURCES.
12051
12052 2011-05-23  Bruno Haible  <bruno@clisp.org>
12053
12054         fopen-safer: Move AC_LIBOBJ invocations to module description.
12055         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
12056         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
12057         (configure.ac): Remove gl_FOPEN_SAFER call.
12058         (Makefile.am): Augment lib_SOURCES.
12059
12060 2011-05-23  Bruno Haible  <bruno@clisp.org>
12061
12062         crypto/sha512: Move AC_LIBOBJ invocations to module description.
12063         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
12064         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
12065
12066 2011-05-23  Bruno Haible  <bruno@clisp.org>
12067
12068         crypto/sha256: Move AC_LIBOBJ invocations to module description.
12069         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
12070         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
12071
12072 2011-05-23  Bruno Haible  <bruno@clisp.org>
12073
12074         crypto/sha1: Move AC_LIBOBJ invocations to module description.
12075         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
12076         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
12077
12078 2011-05-23  Bruno Haible  <bruno@clisp.org>
12079
12080         settime: Move AC_LIBOBJ invocations to module description.
12081         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
12082         * modules/settime (Makefile.am): Augment lib_SOURCES.
12083
12084 2011-05-23  Bruno Haible  <bruno@clisp.org>
12085
12086         savedir: Move AC_LIBOBJ invocations to module description.
12087         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
12088         * modules/savedir (Makefile.am): Augment lib_SOURCES.
12089
12090 2011-05-23  Bruno Haible  <bruno@clisp.org>
12091
12092         save-cwd: Move AC_LIBOBJ invocations to module description.
12093         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
12094         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
12095
12096 2011-05-23  Bruno Haible  <bruno@clisp.org>
12097
12098         same: Move AC_LIBOBJ invocations to module description.
12099         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
12100         * modules/same (Makefile.am): Augment lib_SOURCES.
12101
12102 2011-05-23  Bruno Haible  <bruno@clisp.org>
12103
12104         safe-write: Move AC_LIBOBJ invocations to module description.
12105         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
12106         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
12107         instead of gl_SAFE_WRITE.
12108         (Makefile.am): Augment lib_SOURCES.
12109
12110 2011-05-23  Bruno Haible  <bruno@clisp.org>
12111
12112         safe-read: Move AC_LIBOBJ invocations to module description.
12113         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
12114         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
12115         of gl_SAFE_READ.
12116         (Makefile.am): Augment lib_SOURCES.
12117
12118 2011-05-23  Bruno Haible  <bruno@clisp.org>
12119
12120         safe-alloc: Move AC_LIBOBJ invocations to module description.
12121         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
12122         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
12123
12124 2011-05-23  Bruno Haible  <bruno@clisp.org>
12125
12126         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
12127         * m4/rijndael.m4: Remove file.
12128         * modules/crypto/rijndael (Files): Remove it.
12129         (configure.ac): Remove gl_RIJNDAEL call.
12130         (Makefile.am): Augment lib_SOURCES.
12131
12132 2011-05-23  Bruno Haible  <bruno@clisp.org>
12133
12134         readtokens: Move AC_LIBOBJ invocations to module description.
12135         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
12136         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
12137
12138 2011-05-23  Bruno Haible  <bruno@clisp.org>
12139
12140         read-file: Move AC_LIBOBJ invocations to module description.
12141         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
12142         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
12143         of gl_FUNC_READ_FILE.
12144         (Makefile.am): Augment lib_SOURCES.
12145
12146 2011-05-23  Bruno Haible  <bruno@clisp.org>
12147
12148         quotearg: Move AC_LIBOBJ invocations to module description.
12149         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
12150         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
12151
12152 2011-05-23  Bruno Haible  <bruno@clisp.org>
12153
12154         quote: Move AC_LIBOBJ invocations to module description.
12155         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
12156         * modules/quote (Makefile.am): Augment lib_SOURCES.
12157
12158 2011-05-23  Bruno Haible  <bruno@clisp.org>
12159
12160         posixver: Move AC_LIBOBJ invocations to module description.
12161         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
12162         * modules/posixver (Makefile.am): Augment lib_SOURCES.
12163
12164 2011-05-23  Bruno Haible  <bruno@clisp.org>
12165
12166         posixtm: Move AC_LIBOBJ invocations to module description.
12167         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
12168         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
12169
12170 2011-05-23  Bruno Haible  <bruno@clisp.org>
12171
12172         physmem: Move AC_LIBOBJ invocations to module description.
12173         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
12174         * modules/physmem (Makefile.am): Augment lib_SOURCES.
12175
12176 2011-05-23  Bruno Haible  <bruno@clisp.org>
12177
12178         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
12179         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
12180         invocation.
12181         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
12182
12183 2011-05-23  Bruno Haible  <bruno@clisp.org>
12184
12185         mpsort: Move AC_LIBOBJ invocations to module description.
12186         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
12187         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
12188
12189 2011-05-23  Bruno Haible  <bruno@clisp.org>
12190
12191         modechange: Move AC_LIBOBJ invocations to module description.
12192         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
12193         * modules/modechange (Makefile.am): Augment lib_SOURCES.
12194
12195 2011-05-23  Bruno Haible  <bruno@clisp.org>
12196
12197         mkdir-p: Move AC_LIBOBJ invocations to module description.
12198         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
12199         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
12200
12201 2011-05-23  Bruno Haible  <bruno@clisp.org>
12202
12203         mkancesdirs: Move AC_LIBOBJ invocations to module description.
12204         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
12205         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
12206
12207 2011-05-23  Bruno Haible  <bruno@clisp.org>
12208
12209         mgetgroups: Move AC_LIBOBJ invocations to module description.
12210         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
12211         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
12212
12213 2011-05-23  Bruno Haible  <bruno@clisp.org>
12214
12215         memxor: Move AC_LIBOBJ invocations to module description.
12216         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
12217         * modules/memxor (Makefile.am): Augment lib_SOURCES.
12218
12219 2011-05-23  Bruno Haible  <bruno@clisp.org>
12220
12221         memcoll: Move AC_LIBOBJ invocations to module description.
12222         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
12223         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
12224
12225 2011-05-23  Bruno Haible  <bruno@clisp.org>
12226
12227         memcasecmp: Move AC_LIBOBJ invocations to module description.
12228         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
12229         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
12230
12231 2011-05-23  Bruno Haible  <bruno@clisp.org>
12232
12233         crypto/md5: Move AC_LIBOBJ invocations to module description.
12234         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
12235         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
12236
12237 2011-05-23  Bruno Haible  <bruno@clisp.org>
12238
12239         crypto/md4: Move AC_LIBOBJ invocations to module description.
12240         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
12241         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
12242
12243 2011-05-23  Bruno Haible  <bruno@clisp.org>
12244
12245         crypto/md2: Move AC_LIBOBJ invocations to module description.
12246         * m4/md2.m4: Remove file.
12247         * modules/crypto/md2 (Files): Remove it.
12248         (configure.ac): Remove gl_MD2 call.
12249         (Makefile.am): Augment lib_SOURCES.
12250
12251 2011-05-23  Bruno Haible  <bruno@clisp.org>
12252
12253         long-options: Move AC_LIBOBJ invocations to module description.
12254         * m4/long-options.m4: Remove file.
12255         * modules/long-options (Files): Remove it.
12256         (configure.ac): Remove gl_LONG_OPTIONS call.
12257         (Makefile.am): Augment lib_SOURCES.
12258
12259 2011-05-23  Bruno Haible  <bruno@clisp.org>
12260
12261         i-ring: Move AC_LIBOBJ invocations to module description.
12262         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
12263         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
12264
12265 2011-05-23  Bruno Haible  <bruno@clisp.org>
12266
12267         idcache: Move AC_LIBOBJ invocations to module description.
12268         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12269         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12270
12271 2011-05-23  Bruno Haible  <bruno@clisp.org>
12272
12273         human: Move AC_LIBOBJ invocations to module description.
12274         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12275         * modules/human (Makefile.am): Augment lib_SOURCES.
12276
12277 2011-05-23  Bruno Haible  <bruno@clisp.org>
12278
12279         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12280         * m4/hmac-sha1.m4: Remove file.
12281         * modules/crypto/hmac-sha1 (Files): Remove it.
12282         (configure.ac): Remove gl_HMAC_SHA1 call.
12283         (Makefile.am): Augment lib_SOURCES.
12284
12285 2011-05-23  Bruno Haible  <bruno@clisp.org>
12286
12287         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12288         * m4/hmac-md5.m4: Remove file.
12289         * modules/crypto/hmac-md5 (Files): Remove it.
12290         (configure.ac): Remove gl_HMAC_MD5 call.
12291         (Makefile.am): Augment lib_SOURCES.
12292
12293 2011-05-23  Bruno Haible  <bruno@clisp.org>
12294
12295         hash: Move AC_LIBOBJ invocations to module description.
12296         * m4/hash.m4: Remove file.
12297         * modules/hash (Files): Remove it.
12298         (configure.ac): Remove gl_HASH call.
12299         (Makefile.am): Augment lib_SOURCES.
12300
12301 2011-05-23  Bruno Haible  <bruno@clisp.org>
12302
12303         hard-locale: Move AC_LIBOBJ invocations to module description.
12304         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
12305         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
12306
12307 2011-05-23  Bruno Haible  <bruno@clisp.org>
12308
12309         getugroups: Move AC_LIBOBJ invocations to module description.
12310         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
12311         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
12312
12313 2011-05-23  Bruno Haible  <bruno@clisp.org>
12314
12315         gettime: Move AC_LIBOBJ invocations to module description.
12316         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
12317         * modules/gettime (Makefile.am): Augment lib_SOURCES.
12318
12319 2011-05-23  Bruno Haible  <bruno@clisp.org>
12320
12321         getndelim2: Move AC_LIBOBJ invocations to module description.
12322         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
12323         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
12324
12325 2011-05-23  Bruno Haible  <bruno@clisp.org>
12326
12327         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
12328         * m4/gc-pbkdf2-sha1.m4: Remove file.
12329         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
12330         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
12331         (Makefile.am): Augment lib_SOURCES.
12332
12333 2011-05-23  Bruno Haible  <bruno@clisp.org>
12334
12335         fts: Move AC_LIBOBJ invocations to module description.
12336         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
12337         * modules/fts (configure.ac): ... to here.
12338
12339 2011-05-23  Bruno Haible  <bruno@clisp.org>
12340
12341         file-type: Move AC_LIBOBJ invocations to module description.
12342         * m4/file-type.m4: Remove file.
12343         * modules/file-type (Files): Remove it.
12344         (configure.ac): Remove gl_FILE_TYPE call.
12345         (Makefile.am): Augment lib_SOURCES.
12346
12347 2011-05-23  Bruno Haible  <bruno@clisp.org>
12348
12349         filenamecat*: Respect rules for use of AC_LIBOBJ.
12350         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
12351         Remove AC_LIBOBJ invocation.
12352         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
12353         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
12354
12355 2011-05-23  Bruno Haible  <bruno@clisp.org>
12356
12357         filemode: Move AC_LIBOBJ invocations to module description.
12358         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
12359         * modules/filemode (Makefile.am): Augment lib_SOURCES.
12360
12361 2011-05-23  Bruno Haible  <bruno@clisp.org>
12362
12363         openat-safer: Move AC_LIBOBJ invocations to module description.
12364         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
12365         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
12366
12367 2011-05-23  Bruno Haible  <bruno@clisp.org>
12368
12369         fcntl-safer: Move AC_LIBOBJ invocations to module description.
12370         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
12371         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
12372
12373 2011-05-23  Bruno Haible  <bruno@clisp.org>
12374
12375         exclude: Move AC_LIBOBJ invocations to module description.
12376         * m4/exclude.m4: Remove file.
12377         * modules/exclude (Files): Remove it.
12378         (configure.ac): Remove gl_EXCLUDE call.
12379         (Makefile.am): Augment lib_SOURCES.
12380
12381 2011-05-23  Bruno Haible  <bruno@clisp.org>
12382
12383         dirname*: Respect rules for use of AC_LIBOBJ.
12384         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
12385         invocations.
12386         * modules/dirname (Makefile.am): Augment lib_SOURCES.
12387         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
12388
12389 2011-05-23  Bruno Haible  <bruno@clisp.org>
12390
12391         dirent-safer: Move AC_LIBOBJ invocations to module description.
12392         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
12393         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
12394
12395 2011-05-23  Bruno Haible  <bruno@clisp.org>
12396
12397         crypto/des: Move AC_LIBOBJ invocations to module description.
12398         * m4/des.m4: Remove file.
12399         * modules/crypto/des (Files): Remove it.
12400         (configure.ac): Remove gl_DES call.
12401         (Makefile.am): Augment lib_SOURCES.
12402
12403 2011-05-23  Bruno Haible  <bruno@clisp.org>
12404
12405         cycle-check: Move AC_LIBOBJ invocations to module description.
12406         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
12407         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
12408
12409 2011-05-23  Bruno Haible  <bruno@clisp.org>
12410
12411         c-strtold: Move AC_LIBOBJ invocations to module description.
12412         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
12413         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
12414
12415 2011-05-23  Bruno Haible  <bruno@clisp.org>
12416
12417         c-strtod: Move AC_LIBOBJ invocations to module description.
12418         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
12419         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
12420
12421 2011-05-23  Bruno Haible  <bruno@clisp.org>
12422
12423         crc: Move AC_LIBOBJ invocations to module description.
12424         * m4/crc.m4: Remove file.
12425         * modules/crc (Files): Remove it.
12426         (configure.ac): Remove gl_CRC call.
12427         (Makefile.am): Augment lib_SOURCES.
12428
12429 2011-05-23  Bruno Haible  <bruno@clisp.org>
12430
12431         close-stream: Move AC_LIBOBJ invocations to module description.
12432         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
12433         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
12434
12435 2011-05-23  Bruno Haible  <bruno@clisp.org>
12436
12437         closeout: Move AC_LIBOBJ invocations to module description.
12438         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
12439         * modules/closeout (Makefile.am): Augment lib_SOURCES.
12440
12441 2011-05-23  Bruno Haible  <bruno@clisp.org>
12442
12443         closein: Move AC_LIBOBJ invocations to module description.
12444         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
12445         * modules/closein (Makefile.am): Augment lib_SOURCES.
12446
12447 2011-05-23  Bruno Haible  <bruno@clisp.org>
12448
12449         cloexec: Move AC_LIBOBJ invocations to module description.
12450         * m4/cloexec.m4: Remove file.
12451         * modules/cloexec (Files): Remove it.
12452         (configure.ac): Remove gl_CLOEXEC call.
12453         (Makefile.am): Augment lib_SOURCES.
12454
12455 2011-05-23  Bruno Haible  <bruno@clisp.org>
12456
12457         check-version: Move AC_LIBOBJ invocations to module description.
12458         * m4/check-version.m4: Remove file.
12459         * modules/check-version (Files): Remove it.
12460         (configure.ac): Remove gl_CHECK_VERSION call.
12461         (Makefile.am): Augment lib_SOURCES.
12462
12463 2011-05-23  Bruno Haible  <bruno@clisp.org>
12464
12465         chdir-safer: Move AC_LIBOBJ invocations to module description.
12466         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
12467         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
12468
12469 2011-05-23  Bruno Haible  <bruno@clisp.org>
12470
12471         canonicalize: Move AC_LIBOBJ invocations to module description.
12472         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
12473         AC_LIBOBJ invocation.
12474         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
12475
12476 2011-05-23  Bruno Haible  <bruno@clisp.org>
12477
12478         canon-host: Move AC_LIBOBJ invocations to module description.
12479         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
12480         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
12481         instead of gl_CANON_HOST.
12482         (Makefile.am): Augment lib_SOURCES.
12483
12484 2011-05-23  Bruno Haible  <bruno@clisp.org>
12485
12486         backupfile: Move AC_LIBOBJ invocations to module description.
12487         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
12488         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
12489
12490 2011-05-23  Bruno Haible  <bruno@clisp.org>
12491
12492         argmatch: Move AC_LIBOBJ invocations to module description.
12493         * m4/argmatch.m4: Remove file.
12494         * modules/argmatch (Files): Remove it.
12495         (configure.ac): Remove gl_ARGMATCH call.
12496         (Makefile.am): Augment lib_SOURCES.
12497
12498 2011-05-23  Bruno Haible  <bruno@clisp.org>
12499
12500         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
12501         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
12502         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
12503
12504 2011-05-23  Bruno Haible  <bruno@clisp.org>
12505
12506         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
12507         * m4/arcfour.m4: Remove file.
12508         * modules/crypto/arcfour (Files): Remove it.
12509         (configure.ac): Remove gl_ARCFOUR call.
12510         (Makefile.am): Augment lib_SOURCES.
12511
12512 2011-05-22  Bruno Haible  <bruno@clisp.org>
12513
12514         write: Move AC_LIBOBJ invocations to module description.
12515         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
12516         * modules/write (configure.ac): ... to here.
12517
12518 2011-05-22  Bruno Haible  <bruno@clisp.org>
12519
12520         wmemset: Move AC_LIBOBJ invocations to module description.
12521         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
12522         here...
12523         * modules/wmemset (configure.ac): ... to here.
12524
12525 2011-05-22  Bruno Haible  <bruno@clisp.org>
12526
12527         wmemmove: Move AC_LIBOBJ invocations to module description.
12528         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
12529         here...
12530         * modules/wmemmove (configure.ac): ... to here.
12531
12532 2011-05-22  Bruno Haible  <bruno@clisp.org>
12533
12534         wmemcpy: Move AC_LIBOBJ invocations to module description.
12535         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
12536         here...
12537         * modules/wmemcpy (configure.ac): ... to here.
12538
12539 2011-05-22  Bruno Haible  <bruno@clisp.org>
12540
12541         wmemcmp: Move AC_LIBOBJ invocations to module description.
12542         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
12543         here...
12544         * modules/wmemcmp (configure.ac): ... to here.
12545
12546 2011-05-22  Bruno Haible  <bruno@clisp.org>
12547
12548         wmemchr: Move AC_LIBOBJ invocations to module description.
12549         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
12550         here...
12551         * modules/wmemchr (configure.ac): ... to here.
12552
12553 2011-05-22  Bruno Haible  <bruno@clisp.org>
12554
12555         wcswidth: Move AC_LIBOBJ invocations to module description.
12556         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
12557         here...
12558         * modules/wcswidth (configure.ac): ... to here.
12559
12560 2011-05-22  Bruno Haible  <bruno@clisp.org>
12561
12562         wcwidth: Respect rules for use of AC_LIBOBJ.
12563         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
12564         invocation from here...
12565         * modules/wcwidth (configure.ac): ... to here.
12566         (Depends-on): Update conditions.
12567
12568 2011-05-22  Bruno Haible  <bruno@clisp.org>
12569
12570         wctype: Move AC_LIBOBJ invocations to module description.
12571         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
12572         invocation from here...
12573         * modules/wctype (configure.ac): ... to here.
12574         (Depends-on): Update conditions.
12575
12576 2011-05-22  Bruno Haible  <bruno@clisp.org>
12577
12578         wctrans: Move AC_LIBOBJ invocations to module description.
12579         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
12580         invocation from here...
12581         * modules/wctrans (configure.ac): ... to here.
12582
12583 2011-05-22  Bruno Haible  <bruno@clisp.org>
12584
12585         wctomb: Move AC_LIBOBJ invocations to module description.
12586         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
12587         invocations from here...
12588         * modules/wctomb (configure.ac): ... to here.
12589
12590 2011-05-22  Bruno Haible  <bruno@clisp.org>
12591
12592         wctob: Move AC_LIBOBJ invocations to module description.
12593         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
12594         gl_PREREQ_WCTOB invocations from here...
12595         * modules/wctob (configure.ac): ... to here.
12596         (Depends-on): Update conditions.
12597
12598 2011-05-22  Bruno Haible  <bruno@clisp.org>
12599
12600         wcsxfrm: Move AC_LIBOBJ invocations to module description.
12601         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
12602         here...
12603         * modules/wcsxfrm (configure.ac): ... to here.
12604
12605 2011-05-22  Bruno Haible  <bruno@clisp.org>
12606
12607         wcstok: Move AC_LIBOBJ invocations to module description.
12608         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
12609         * modules/wcstok (configure.ac): ... to here.
12610
12611 2011-05-22  Bruno Haible  <bruno@clisp.org>
12612
12613         wcsstr: Move AC_LIBOBJ invocations to module description.
12614         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
12615         * modules/wcsstr (configure.ac): ... to here.
12616
12617 2011-05-22  Bruno Haible  <bruno@clisp.org>
12618
12619         wcsspn: Move AC_LIBOBJ invocations to module description.
12620         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
12621         * modules/wcsspn (configure.ac): ... to here.
12622
12623 2011-05-22  Bruno Haible  <bruno@clisp.org>
12624
12625         wcsrtombs: Move AC_LIBOBJ invocations to module description.
12626         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
12627         gl_PREREQ_WCSRTOMBS invocations from here...
12628         * modules/wcsrtombs (configure.ac): ... to here.
12629
12630 2011-05-22  Bruno Haible  <bruno@clisp.org>
12631
12632         wcsrchr: Move AC_LIBOBJ invocations to module description.
12633         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
12634         here...
12635         * modules/wcsrchr (configure.ac): ... to here.
12636
12637 2011-05-22  Bruno Haible  <bruno@clisp.org>
12638
12639         wcspbrk: Move AC_LIBOBJ invocations to module description.
12640         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
12641         here...
12642         * modules/wcspbrk (configure.ac): ... to here.
12643
12644 2011-05-22  Bruno Haible  <bruno@clisp.org>
12645
12646         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
12647         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
12648         gl_PREREQ_WCSNRTOMBS invocations from here...
12649         * modules/wcsnrtombs (configure.ac): ... to here.
12650
12651 2011-05-22  Bruno Haible  <bruno@clisp.org>
12652
12653         wcsnlen: Move AC_LIBOBJ invocations to module description.
12654         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
12655         here...
12656         * modules/wcsnlen (configure.ac): ... to here.
12657
12658 2011-05-22  Bruno Haible  <bruno@clisp.org>
12659
12660         wcsncpy: Move AC_LIBOBJ invocations to module description.
12661         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
12662         here...
12663         * modules/wcsncpy (configure.ac): ... to here.
12664
12665 2011-05-22  Bruno Haible  <bruno@clisp.org>
12666
12667         wcsncmp: Move AC_LIBOBJ invocations to module description.
12668         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
12669         here...
12670         * modules/wcsncmp (configure.ac): ... to here.
12671
12672 2011-05-22  Bruno Haible  <bruno@clisp.org>
12673
12674         wcsncat: Move AC_LIBOBJ invocations to module description.
12675         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
12676         here...
12677         * modules/wcsncat (configure.ac): ... to here.
12678
12679 2011-05-22  Bruno Haible  <bruno@clisp.org>
12680
12681         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
12682         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
12683         from here...
12684         * modules/wcsncasecmp (configure.ac): ... to here.
12685
12686 2011-05-22  Bruno Haible  <bruno@clisp.org>
12687
12688         wcslen: Move AC_LIBOBJ invocations to module description.
12689         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
12690         * modules/wcslen (configure.ac): ... to here.
12691
12692 2011-05-22  Bruno Haible  <bruno@clisp.org>
12693
12694         wcsdup: Move AC_LIBOBJ invocations to module description.
12695         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
12696         * modules/wcsdup (configure.ac): ... to here.
12697
12698 2011-05-22  Bruno Haible  <bruno@clisp.org>
12699
12700         wcscspn: Move AC_LIBOBJ invocations to module description.
12701         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
12702         here...
12703         * modules/wcscspn (configure.ac): ... to here.
12704
12705 2011-05-22  Bruno Haible  <bruno@clisp.org>
12706
12707         wcscpy: Move AC_LIBOBJ invocations to module description.
12708         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
12709         * modules/wcscpy (configure.ac): ... to here.
12710
12711 2011-05-22  Bruno Haible  <bruno@clisp.org>
12712
12713         wcscoll: Move AC_LIBOBJ invocations to module description.
12714         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
12715         here...
12716         * modules/wcscoll (configure.ac): ... to here.
12717
12718 2011-05-22  Bruno Haible  <bruno@clisp.org>
12719
12720         wcscmp: Move AC_LIBOBJ invocations to module description.
12721         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
12722         * modules/wcscmp (configure.ac): ... to here.
12723
12724 2011-05-22  Bruno Haible  <bruno@clisp.org>
12725
12726         wcschr: Move AC_LIBOBJ invocations to module description.
12727         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
12728         * modules/wcschr (configure.ac): ... to here.
12729
12730 2011-05-22  Bruno Haible  <bruno@clisp.org>
12731
12732         wcscat: Move AC_LIBOBJ invocations to module description.
12733         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
12734         * modules/wcscat (configure.ac): ... to here.
12735
12736 2011-05-22  Bruno Haible  <bruno@clisp.org>
12737
12738         wcscasecmp: Move AC_LIBOBJ invocations to module description.
12739         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
12740         here...
12741         * modules/wcscasecmp (configure.ac): ... to here.
12742
12743 2011-05-22  Bruno Haible  <bruno@clisp.org>
12744
12745         wcrtomb: Move AC_LIBOBJ invocations to module description.
12746         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
12747         invocations from here...
12748         * modules/wcrtomb (configure.ac): ... to here.
12749
12750 2011-05-22  Bruno Haible  <bruno@clisp.org>
12751
12752         wcpncpy: Move AC_LIBOBJ invocations to module description.
12753         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
12754         here...
12755         * modules/wcpncpy (configure.ac): ... to here.
12756
12757 2011-05-22  Bruno Haible  <bruno@clisp.org>
12758
12759         wcpcpy: Move AC_LIBOBJ invocations to module description.
12760         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
12761         * modules/wcpcpy (configure.ac): ... to here.
12762
12763 2011-05-22  Bruno Haible  <bruno@clisp.org>
12764
12765         waitpid: Move AC_LIBOBJ invocations to module description.
12766         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
12767         invocation from here...
12768         * modules/waitpid (configure.ac): ... to here.
12769
12770 2011-05-22  Bruno Haible  <bruno@clisp.org>
12771
12772         utimensat: Move AC_LIBOBJ invocations to module description.
12773         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
12774         here...
12775         * modules/utimensat (configure.ac): ... to here.
12776
12777 2011-05-22  Bruno Haible  <bruno@clisp.org>
12778
12779         usleep: Move AC_LIBOBJ invocations to module description.
12780         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
12781         here...
12782         * modules/usleep (configure.ac): ... to here.
12783
12784 2011-05-22  Bruno Haible  <bruno@clisp.org>
12785
12786         unlockpt: Move AC_LIBOBJ invocations to module description.
12787         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
12788         gl_PREREQ_UNLOCKPT invocations from here...
12789         * modules/unlockpt (configure.ac): ... to here.
12790
12791 2011-05-22  Bruno Haible  <bruno@clisp.org>
12792
12793         unlink: Respect rules for use of AC_LIBOBJ.
12794         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
12795         * modules/unlink (configure.ac): ... to here.
12796
12797 2011-05-22  Bruno Haible  <bruno@clisp.org>
12798
12799         uname: Move AC_LIBOBJ invocations to module description.
12800         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
12801         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
12802         here...
12803         * modules/uname (configure.ac): ... to here.
12804
12805 2011-05-22  Bruno Haible  <bruno@clisp.org>
12806
12807         ttyname_r: Move AC_LIBOBJ invocations to module description.
12808         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
12809         gl_PREREQ_TTYNAME_R invocations from here...
12810         * modules/ttyname_r (configure.ac): ... to here.
12811
12812 2011-05-22  Bruno Haible  <bruno@clisp.org>
12813
12814         tsearch: Move AC_LIBOBJ invocations to module description.
12815         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
12816         invocations from here...
12817         * modules/tsearch (configure.ac): ... to here.
12818
12819 2011-05-22  Bruno Haible  <bruno@clisp.org>
12820
12821         towctrans: Move AC_LIBOBJ invocations to module description.
12822         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
12823         AC_LIBOBJ invocation from here...
12824         * modules/towctrans (configure.ac): ... to here.
12825
12826 2011-05-22  Bruno Haible  <bruno@clisp.org>
12827
12828         tmpfile: Move AC_LIBOBJ invocations to module description.
12829         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
12830         invocations from here...
12831         * modules/tmpfile (configure.ac): ... to here.
12832
12833 2011-05-22  Bruno Haible  <bruno@clisp.org>
12834
12835         times: Move AC_LIBOBJ invocations to module description.
12836         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
12837         * modules/times (configure.ac): ... to here.
12838
12839 2011-05-22  Bruno Haible  <bruno@clisp.org>
12840
12841         time_r: Move AC_LIBOBJ invocations to module description.
12842         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
12843         invocations from here...
12844         * modules/time_r (configure.ac): ... to here.
12845
12846 2011-05-22  Bruno Haible  <bruno@clisp.org>
12847
12848         timegm: Move AC_LIBOBJ invocations to module description.
12849         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
12850         invocations from here...
12851         * modules/timegm (configure.ac): ... to here.
12852
12853 2011-05-22  Bruno Haible  <bruno@clisp.org>
12854
12855         tcgetsid: Move AC_LIBOBJ invocations to module description.
12856         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
12857         and gl_PREREQ_TCGETSID invocations from here...
12858         * modules/tcgetsid (configure.ac): ... to here.
12859         (Depends-on): Update conditions.
12860
12861 2011-05-22  Bruno Haible  <bruno@clisp.org>
12862
12863         symlinkat: Move AC_LIBOBJ invocations to module description.
12864         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
12865         here...
12866         * modules/symlinkat (configure.ac): ... to here.
12867
12868 2011-05-22  Bruno Haible  <bruno@clisp.org>
12869
12870         symlink: Move AC_LIBOBJ invocations to module description.
12871         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
12872         here...
12873         * modules/symlink (configure.ac): ... to here.
12874
12875 2011-05-22  Bruno Haible  <bruno@clisp.org>
12876
12877         strverscmp: Move AC_LIBOBJ invocations to module description.
12878         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
12879         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
12880         from here...
12881         * modules/strverscmp (configure.ac): ... to here.
12882
12883 2011-05-22  Bruno Haible  <bruno@clisp.org>
12884
12885         strtok_r: Move AC_LIBOBJ invocations to module description.
12886         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
12887         and gl_PREREQ_STRTOK_R invocations from here...
12888         * modules/strtok_r (configure.ac): ... to here.
12889         (Depends-on): Update conditions.
12890
12891 2011-05-22  Bruno Haible  <bruno@clisp.org>
12892
12893         strtoumax: Move AC_LIBOBJ invocations to module description.
12894         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
12895         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
12896         from here...
12897         * modules/strtoumax (configure.ac): ... to here.
12898
12899 2011-05-22  Bruno Haible  <bruno@clisp.org>
12900
12901         strtoimax: Move AC_LIBOBJ invocations to module description.
12902         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
12903         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
12904         from here...
12905         * modules/strtoimax (configure.ac): ... to here.
12906
12907 2011-05-22  Bruno Haible  <bruno@clisp.org>
12908
12909         strtoull: Move AC_LIBOBJ invocations to module description.
12910         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
12911         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
12912         from here...
12913         * modules/strtoull (configure.ac): ... to here.
12914
12915 2011-05-22  Bruno Haible  <bruno@clisp.org>
12916
12917         strtoll: Move AC_LIBOBJ invocations to module description.
12918         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
12919         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
12920         here...
12921         * modules/strtoll (configure.ac): ... to here.
12922
12923 2011-05-22  Bruno Haible  <bruno@clisp.org>
12924
12925         strtoul: Move AC_LIBOBJ invocations to module description.
12926         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
12927         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12928         * modules/strtoul (configure.ac): ... to here.
12929
12930 2011-05-22  Bruno Haible  <bruno@clisp.org>
12931
12932         strtol: Move AC_LIBOBJ invocations to module description.
12933         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
12934         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12935         * modules/strtol (configure.ac): ... to here.
12936
12937 2011-05-22  Bruno Haible  <bruno@clisp.org>
12938
12939         strtod: Move AC_LIBOBJ invocations to module description.
12940         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
12941         invocations from here...
12942         * modules/strtod (configure.ac): ... to here.
12943
12944 2011-05-22  Bruno Haible  <bruno@clisp.org>
12945
12946         strstr*: Move AC_LIBOBJ invocations to module description.
12947         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
12948         invocations from here...
12949         * modules/strstr-simple (configure.ac): ... to here.
12950         * modules/strstr (configure.ac): ... and here.
12951
12952 2011-05-22  Bruno Haible  <bruno@clisp.org>
12953
12954         strsignal: Move AC_LIBOBJ invocations to module description.
12955         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
12956         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
12957         * modules/strsignal (configure.ac): ... to here.
12958         (Depends-on): Update conditions.
12959
12960 2011-05-22  Bruno Haible  <bruno@clisp.org>
12961
12962         strsep: Move AC_LIBOBJ invocations to module description.
12963         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
12964         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
12965         here...
12966         * modules/strsep (configure.ac): ... to here.
12967
12968 2011-05-22  Bruno Haible  <bruno@clisp.org>
12969
12970         strptime: Move AC_LIBOBJ invocations to module description.
12971         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
12972         gl_PREREQ_STRPTIME invocations from here...
12973         * modules/strptime (configure.ac): ... to here.
12974
12975 2011-05-22  Bruno Haible  <bruno@clisp.org>
12976
12977         strpbrk: Move AC_LIBOBJ invocations to module description.
12978         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
12979         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
12980         here...
12981         * modules/strpbrk (configure.ac): ... to here.
12982
12983 2011-05-22  Bruno Haible  <bruno@clisp.org>
12984
12985         strnlen: Move AC_LIBOBJ invocations to module description.
12986         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
12987         invocations from here...
12988         * modules/strnlen (configure.ac): ... to here.
12989
12990 2011-05-22  Bruno Haible  <bruno@clisp.org>
12991
12992         strndup: Move AC_LIBOBJ invocations to module description.
12993         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
12994         invocations from here...
12995         * modules/strndup (configure.ac): ... to here.
12996         (Depends-on): Update conditions.
12997
12998 2011-05-22  Bruno Haible  <bruno@clisp.org>
12999
13000         strncat: Move AC_LIBOBJ invocations to module description.
13001         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
13002         invocations from here...
13003         * modules/strncat (configure.ac): ... to here.
13004
13005 2011-05-22  Bruno Haible  <bruno@clisp.org>
13006
13007         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
13008         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
13009         invocations from here...
13010         * modules/strdup (configure.ac): ... to here.
13011         * modules/strdup-posix (configure.ac): ... and here.
13012
13013 2011-05-22  Bruno Haible  <bruno@clisp.org>
13014
13015         strcspn: Move AC_LIBOBJ invocations to module description.
13016         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
13017         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
13018         here...
13019         * modules/strcspn (configure.ac): ... to here.
13020
13021 2011-05-22  Bruno Haible  <bruno@clisp.org>
13022
13023         strchrnul: Move AC_LIBOBJ invocations to module description.
13024         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
13025         gl_PREREQ_STRCHRNUL invocations from here...
13026         * modules/strchrnul (configure.ac): ... to here.
13027
13028 2011-05-22  Bruno Haible  <bruno@clisp.org>
13029
13030         strcasestr*: Move AC_LIBOBJ invocations to module description.
13031         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
13032         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
13033         * modules/strcasestr-simple (configure.ac): ... to here.
13034         * modules/strcasestr (configure.ac): ... and here.
13035
13036 2011-05-22  Bruno Haible  <bruno@clisp.org>
13037
13038         strcase: Move AC_LIBOBJ invocations to module description.
13039         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
13040         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
13041         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
13042         gl_PREREQ_STRNCASECMP invocations from here...
13043         * modules/strcase (configure.ac): ... to here.
13044
13045 2011-05-22  Bruno Haible  <bruno@clisp.org>
13046
13047         stpncpy: Move AC_LIBOBJ invocations to module description.
13048         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
13049         here...
13050         * modules/stpncpy (configure.ac): ... to here.
13051
13052 2011-05-22  Bruno Haible  <bruno@clisp.org>
13053
13054         stpcpy: Move AC_LIBOBJ invocations to module description.
13055         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
13056         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
13057         here...
13058         * modules/stpcpy (configure.ac): ... to here.
13059
13060 2011-05-21  Bruno Haible  <bruno@clisp.org>
13061
13062         stat: Move AC_LIBOBJ invocations to module description.
13063         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
13064         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
13065         here...
13066         * modules/stat (configure.ac): ... to here.
13067
13068 2011-05-21  Bruno Haible  <bruno@clisp.org>
13069
13070         sleep: Move AC_LIBOBJ invocations to module description.
13071         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
13072         * modules/sleep (configure.ac): ... to here.
13073
13074 2011-05-21  Bruno Haible  <bruno@clisp.org>
13075
13076         signbit: Move AC_LIBOBJ invocations to module description.
13077         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
13078         * modules/signbit (configure.ac): ... to here.
13079
13080 2011-05-21  Bruno Haible  <bruno@clisp.org>
13081
13082         sigprocmask: Move AC_LIBOBJ invocations to module description.
13083         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
13084         gl_PREREQ_SIGPROMASK invocations from here...
13085         * modules/sigprocmask (configure.ac): ... to here.
13086
13087 2011-05-21  Bruno Haible  <bruno@clisp.org>
13088
13089         sigaction: Move AC_LIBOBJ invocations to module description.
13090         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
13091         gl_PREREQ_SIGACTION invocations from here...
13092         * modules/sigaction (configure.ac): ... to here.
13093
13094 2011-05-21  Bruno Haible  <bruno@clisp.org>
13095
13096         sig2str: Move AC_LIBOBJ invocations to module description.
13097         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
13098         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
13099         here...
13100         * modules/sig2str (configure.ac): ... to here.
13101
13102 2011-05-21  Bruno Haible  <bruno@clisp.org>
13103
13104         setlocale: Move AC_LIBOBJ invocations to module description.
13105         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
13106         gl_PREREQ_SETLOCALE invocations from here...
13107         * modules/setlocale (configure.ac): ... to here.
13108
13109 2011-05-21  Bruno Haible  <bruno@clisp.org>
13110
13111         unsetenv: Move AC_LIBOBJ invocations to module description.
13112         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
13113         and gl_PREREQ_UNSETENV invocations from here...
13114         * modules/unsetenv (configure.ac): ... to here.
13115         (Depends-on): Update.
13116
13117 2011-05-21  Bruno Haible  <bruno@clisp.org>
13118
13119         setenv: Move AC_LIBOBJ invocations to module description.
13120         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
13121         here...
13122         * modules/setenv (configure.ac): ... to here.
13123
13124 2011-05-21  Bruno Haible  <bruno@clisp.org>
13125
13126         selinux-h: Move AC_LIBOBJ invocations to module description.
13127         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
13128         AC_LIBOBJ invocation from here...
13129         * modules/selinux-h (configure.ac): ... to here.
13130
13131 2011-05-21  Bruno Haible  <bruno@clisp.org>
13132
13133         select: Respect rules for use of AC_LIBOBJ.
13134         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
13135         here...
13136         * modules/select (configure.ac): ... to here.
13137
13138 2011-05-21  Bruno Haible  <bruno@clisp.org>
13139
13140         scandir: Move AC_LIBOBJ invocations to module description.
13141         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
13142         invocations from here...
13143         * modules/scandir (configure.ac): ... to here.
13144
13145 2011-05-21  Bruno Haible  <bruno@clisp.org>
13146
13147         rpmatch: Move AC_LIBOBJ invocations to module description.
13148         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
13149         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
13150         here...
13151         * modules/rpmatch (configure.ac): ... to here.
13152
13153 2011-05-21  Bruno Haible  <bruno@clisp.org>
13154
13155         rmdir: Respect rules for use of AC_LIBOBJ.
13156         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
13157         * modules/rmdir (configure.ac): ... to here.
13158
13159 2011-05-21  Bruno Haible  <bruno@clisp.org>
13160
13161         renameat: Move AC_LIBOBJ invocations to module description.
13162         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
13163         here...
13164         * modules/renameat (configure.ac): ... to here.
13165
13166 2011-05-21  Bruno Haible  <bruno@clisp.org>
13167
13168         rename: Respect rules for use of AC_LIBOBJ.
13169         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
13170         here...
13171         * modules/rename (configure.ac): ... to here.
13172
13173 2011-05-21  Bruno Haible  <bruno@clisp.org>
13174
13175         remove: Move AC_LIBOBJ invocations to module description.
13176         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
13177         here...
13178         * modules/remove (configure.ac): ... to here.
13179
13180 2011-05-21  Bruno Haible  <bruno@clisp.org>
13181
13182         relocatable-lib: Move AC_LIBOBJ invocations to module description.
13183         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
13184         macro.
13185         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
13186         * modules/relocatable-lib (configure.ac): ... to here.
13187         * modules/relocatable-prog-wrapper (configure.ac): Invoke
13188         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
13189
13190 2011-05-21  Bruno Haible  <bruno@clisp.org>
13191
13192         relocatable-prog: Move AC_LIBOBJ invocations to module description.
13193         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
13194         here...
13195         * modules/relocatable-prog (configure.ac): ... to here.
13196
13197 2011-05-21  Bruno Haible  <bruno@clisp.org>
13198
13199         regex: Move AC_LIBOBJ invocations to module description.
13200         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
13201         invocations from here...
13202         * modules/regex (configure.ac): ... to here.
13203
13204 2011-05-21  Bruno Haible  <bruno@clisp.org>
13205
13206         realloc-*: Move AC_LIBOBJ invocations to module description.
13207         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
13208         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
13209         AC_LIBOBJ invocations from here...
13210         * modules/realloc-gnu (configure.ac): ... to here.
13211         * modules/realloc-posix (configure.ac): ... and here.
13212
13213 2011-05-21  Bruno Haible  <bruno@clisp.org>
13214
13215         readutmp: Move AC_LIBOBJ invocations to module description.
13216         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
13217         * modules/readutmp (configure.ac): ... to here.
13218
13219 2011-05-21  Bruno Haible  <bruno@clisp.org>
13220
13221         readlinkat: Move AC_LIBOBJ invocations to module description.
13222         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
13223         here...
13224         * modules/readlinkat (configure.ac): ... to here.
13225
13226 2011-05-21  Bruno Haible  <bruno@clisp.org>
13227
13228         readlink: Move AC_LIBOBJ invocations to module description.
13229         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
13230         gl_PREREQ_READLINK invocations from here...
13231         * modules/readlink (configure.ac): ... to here.
13232
13233 2011-05-21  Bruno Haible  <bruno@clisp.org>
13234
13235         readline: Move AC_LIBOBJ invocations to module description.
13236         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
13237         gl_PREREQ_READLINE invocations from here...
13238         * modules/readline (configure.ac): ... to here.
13239
13240 2011-05-21  Bruno Haible  <bruno@clisp.org>
13241
13242         read: Move AC_LIBOBJ invocations to module description.
13243         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
13244         * modules/read (configure.ac): ... to here.
13245
13246 2011-05-21  Bruno Haible  <bruno@clisp.org>
13247
13248         rawmemchr: Move AC_LIBOBJ invocations to module description.
13249         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
13250         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
13251         from here...
13252         * modules/rawmemchr (configure.ac): ... to here.
13253
13254 2011-05-21  Bruno Haible  <bruno@clisp.org>
13255
13256         random_r: Move AC_LIBOBJ invocations to module description.
13257         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
13258         gl_PREREQ_RANDOM_R invocations from here...
13259         * modules/random_r (configure.ac): ... to here.
13260
13261 2011-05-21  Bruno Haible  <bruno@clisp.org>
13262
13263         pwrite: Move AC_LIBOBJ invocations to module description.
13264         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
13265         * modules/pwrite (configure.ac): ... to here.
13266
13267 2011-05-21  Bruno Haible  <bruno@clisp.org>
13268
13269         putenv: Move AC_LIBOBJ invocations to module description.
13270         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13271         * modules/putenv (configure.ac): ... to here.
13272
13273 2011-05-21  Bruno Haible  <bruno@clisp.org>
13274
13275         login_tty: Move AC_LIBOBJ invocations to module description.
13276         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13277         * modules/login_tty (configure.ac): ... to here.
13278
13279 2011-05-21  Bruno Haible  <bruno@clisp.org>
13280
13281         openpty: Move AC_LIBOBJ invocations to module description.
13282         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13283         * modules/openpty (configure.ac): ... to here.
13284
13285 2011-05-21  Bruno Haible  <bruno@clisp.org>
13286
13287         forkpty: Move AC_LIBOBJ invocations to module description.
13288         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
13289         * modules/forkpty (configure.ac): ... to here.
13290
13291 2011-05-21  Bruno Haible  <bruno@clisp.org>
13292
13293         ptsname: Move AC_LIBOBJ invocations to module description.
13294         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
13295         invocations from here...
13296         * modules/ptsname (configure.ac): ... to here.
13297
13298 2011-05-21  Bruno Haible  <bruno@clisp.org>
13299
13300         pread: Move AC_LIBOBJ invocations to module description.
13301         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
13302         * modules/pread (configure.ac): ... to here.
13303
13304 2011-05-21  Bruno Haible  <bruno@clisp.org>
13305
13306         posix_spawn*: Move AC_LIBOBJ invocations to module description.
13307         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
13308         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
13309         * modules/posix_spawn (configure.ac): ... to here.
13310         * modules/posix_spawnp (configure.ac): ... and here.
13311
13312 2011-05-21  Bruno Haible  <bruno@clisp.org>
13313
13314         popen: Move AC_LIBOBJ invocations to module description.
13315         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
13316         invocations from here...
13317         * modules/popen (configure.ac): ... to here.
13318
13319 2011-05-21  Bruno Haible  <bruno@clisp.org>
13320
13321         poll: Move AC_LIBOBJ invocations to module description.
13322         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
13323         invocations from here...
13324         * modules/poll (configure.ac): ... to here.
13325
13326 2011-05-21  Bruno Haible  <bruno@clisp.org>
13327
13328         pipe-posix: Move AC_LIBOBJ invocations to module description.
13329         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
13330         * modules/pipe-posix (configure.ac): ... to here.
13331
13332 2011-05-21  Bruno Haible  <bruno@clisp.org>
13333
13334         openat: Respect rules for use of AC_LIBOBJ.
13335         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
13336         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13337         * modules/openat (configure.ac): ... to here.
13338
13339 2011-05-21  Bruno Haible  <bruno@clisp.org>
13340
13341         obstack-printf*: Move AC_LIBOBJ invocations to module description.
13342         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
13343         invocation from here...
13344         * modules/obstack-printf (configure.ac): ... to here.
13345         * modules/obstack-printf-posix (configure.ac): ... and here.
13346
13347 2011-05-21  Bruno Haible  <bruno@clisp.org>
13348
13349         nl_langinfo: Move AC_LIBOBJ invocations to module description.
13350         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
13351         from here...
13352         * modules/nl_langinfo (configure.ac): ... to here.
13353
13354 2011-05-21  Bruno Haible  <bruno@clisp.org>
13355
13356         nanosleep: Move AC_LIBOBJ invocations to module description.
13357         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
13358         gl_PREREQ_NANOSLEEP invocations from here...
13359         * modules/nanosleep (configure.ac): ... to here.
13360
13361 2011-05-21  Bruno Haible  <bruno@clisp.org>
13362
13363         mountlist: Move AC_LIBOBJ invocations to module description.
13364         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
13365         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
13366         * modules/mountlist (configure.ac): ... to here.
13367
13368 2011-05-21  Bruno Haible  <bruno@clisp.org>
13369
13370         mktime: Respect rules for use of AC_LIBOBJ.
13371         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
13372         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
13373         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
13374         (gl_FUNC_MKTIME_INTERNAL): ... and here...
13375         * modules/mktime (configure.ac): ... to here.
13376         * modules/mktime-internal (configure.ac): ... and here.
13377         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
13378
13379 2011-05-21  Bruno Haible  <bruno@clisp.org>
13380
13381         mkstemps: Move AC_LIBOBJ invocations to module description.
13382         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
13383         here...
13384         * modules/mkstemps (configure.ac): ... to here.
13385
13386 2011-05-21  Bruno Haible  <bruno@clisp.org>
13387
13388         mkstemp: Move AC_LIBOBJ invocations to module description.
13389         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
13390         gl_PREREQ_MKSTEMP invocations from here...
13391         * modules/mkstemp (configure.ac): ... to here.
13392
13393 2011-05-21  Bruno Haible  <bruno@clisp.org>
13394
13395         mkostemps: Move AC_LIBOBJ invocations to module description.
13396         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
13397         here...
13398         * modules/mkostemps (configure.ac): ... to here.
13399
13400 2011-05-21  Bruno Haible  <bruno@clisp.org>
13401
13402         mkostemp: Move AC_LIBOBJ invocations to module description.
13403         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
13404         gl_PREREQ_MKOSTEMP invocations from here...
13405         * modules/mkostemp (configure.ac): ... to here.
13406
13407 2011-05-21  Bruno Haible  <bruno@clisp.org>
13408
13409         mknod: Move AC_LIBOBJ invocations to module description.
13410         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
13411         * modules/mknod (configure.ac): ... to here.
13412
13413 2011-05-21  Bruno Haible  <bruno@clisp.org>
13414
13415         mkfifoat: Move AC_LIBOBJ invocations to module description.
13416         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
13417         here...
13418         * modules/mkfifoat (configure.ac): ... to here.
13419
13420 2011-05-21  Bruno Haible  <bruno@clisp.org>
13421
13422         mkfifo: Respect rules for use of AC_LIBOBJ.
13423         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
13424         here...
13425         * modules/mkfifo (configure.ac): ... to here.
13426
13427 2011-05-21  Bruno Haible  <bruno@clisp.org>
13428
13429         mkdtemp: Move AC_LIBOBJ invocations to module description.
13430         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
13431         invocations from here...
13432         * modules/mkdtemp (configure.ac): ... to here.
13433
13434 2011-05-21  Bruno Haible  <bruno@clisp.org>
13435
13436         mkdir: Move AC_LIBOBJ invocations to module description.
13437         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
13438         * modules/mkdir (configure.ac): ... to here.
13439
13440 2011-05-21  Bruno Haible  <bruno@clisp.org>
13441
13442         memset: Move AC_LIBOBJ invocations to module description.
13443         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
13444         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
13445         here...
13446         * modules/memset (configure.ac): ... to here.
13447
13448 2011-05-21  Bruno Haible  <bruno@clisp.org>
13449
13450         memrchr: Move AC_LIBOBJ invocations to module description.
13451         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
13452         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
13453         here...
13454         * modules/memrchr (configure.ac): ... to here.
13455
13456 2011-05-21  Bruno Haible  <bruno@clisp.org>
13457
13458         mempcpy: Move AC_LIBOBJ invocations to module description.
13459         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
13460         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
13461         here...
13462         * modules/mempcpy (configure.ac): ... to here.
13463
13464 2011-05-21  Bruno Haible  <bruno@clisp.org>
13465
13466         memmove: Move AC_LIBOBJ invocations to module description.
13467         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
13468         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
13469         here...
13470         * modules/memmove (configure.ac): ... to here.
13471
13472 2011-05-21  Bruno Haible  <bruno@clisp.org>
13473
13474         memmem*: Move AC_LIBOBJ invocations to module description.
13475         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
13476         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
13477         here...
13478         (gl_FUNC_MEMMEM): ... and here...
13479         * modules/memmem-simple (configure.ac): ... to here.
13480         * modules/memmem (configure.ac): ... and here.
13481
13482 2011-05-21  Bruno Haible  <bruno@clisp.org>
13483
13484         memcpy: Move AC_LIBOBJ invocations to module description.
13485         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
13486         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
13487         here...
13488         * modules/memcpy (configure.ac): ... to here.
13489
13490 2011-05-21  Bruno Haible  <bruno@clisp.org>
13491
13492         memcmp: Simplify autoconf macro.
13493         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
13494         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
13495         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
13496
13497 2011-05-21  Bruno Haible  <bruno@clisp.org>
13498
13499         memcmp: Move AC_LIBOBJ invocations to module description.
13500         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
13501         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
13502         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
13503         * modules/memcmp (configure.ac): ... to here.
13504         (Depends-on): Update conditions.
13505
13506 2011-05-21  Bruno Haible  <bruno@clisp.org>
13507
13508         memchr: Respect rules for use of AC_LIBOBJ.
13509         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
13510         invocations from here...
13511         * modules/memchr (configure.ac): ... to here.
13512
13513 2011-05-21  Bruno Haible  <bruno@clisp.org>
13514
13515         mbtowc: Move AC_LIBOBJ invocations to module description.
13516         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
13517         invocations from here...
13518         * modules/mbtowc (configure.ac): ... to here.
13519
13520 2011-05-21  Bruno Haible  <bruno@clisp.org>
13521
13522         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
13523         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
13524         gl_PREREQ_MBSRTOWCS invocations from here...
13525         * modules/mbsrtowcs (configure.ac): ... to here.
13526
13527 2011-05-21  Bruno Haible  <bruno@clisp.org>
13528
13529         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
13530         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
13531         gl_PREREQ_MBSNRTOWCS invocations from here...
13532         * modules/mbsnrtowcs (configure.ac): ... to here.
13533
13534 2011-05-21  Bruno Haible  <bruno@clisp.org>
13535
13536         mbsinit: Move AC_LIBOBJ invocations to module description.
13537         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
13538         invocations from here...
13539         * modules/mbsinit (configure.ac): ... to here.
13540
13541 2011-05-21  Bruno Haible  <bruno@clisp.org>
13542
13543         mbrlen: Move AC_LIBOBJ invocations to module description.
13544         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
13545         invocations from here...
13546         * modules/mbrlen (configure.ac): ... to here.
13547
13548 2011-05-21  Bruno Haible  <bruno@clisp.org>
13549
13550         mbrtowc: Respect rules for use of AC_LIBOBJ.
13551         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
13552         invocations from here...
13553         * modules/mbrtowc (configure.ac): ... to here.
13554
13555 2011-05-21  Bruno Haible  <bruno@clisp.org>
13556
13557         malloc-*: Move AC_LIBOBJ invocations to module description.
13558         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
13559         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
13560         AC_LIBOBJ invocations from here...
13561         * modules/malloc-gnu (configure.ac): ... to here.
13562         * modules/malloc-posix (configure.ac): ... and here.
13563
13564 2011-05-21  Bruno Haible  <bruno@clisp.org>
13565
13566         lstat, openat: Respect rules for use of AC_LIBOBJ.
13567         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
13568         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
13569         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
13570         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
13571         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
13572         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
13573         here.
13574         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
13575
13576 2011-05-21  Bruno Haible  <bruno@clisp.org>
13577
13578         lseek: Move AC_LIBOBJ invocations to module description.
13579         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
13580         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13581         * modules/lseek (configure.ac): ... to here.
13582
13583 2011-05-21  Bruno Haible  <bruno@clisp.org>
13584
13585         linkat: Move AC_LIBOBJ invocations to module description.
13586         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
13587         here...
13588         * modules/linkat (configure.ac): ... to here.
13589
13590 2011-05-21  Bruno Haible  <bruno@clisp.org>
13591
13592         link: Respect rules for use of AC_LIBOBJ.
13593         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
13594         * modules/link (configure.ac): ... to here.
13595
13596 2011-05-21  Bruno Haible  <bruno@clisp.org>
13597
13598         lchown: Move AC_LIBOBJ invocations to module description.
13599         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13600         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13601         * modules/lchown (configure.ac): ... to here.
13602
13603 2011-05-21  Bruno Haible  <bruno@clisp.org>
13604
13605         iswctype: Move AC_LIBOBJ invocations to module description.
13606         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
13607         here...
13608         * modules/iswctype (configure.ac): ... to here.
13609
13610 2011-05-21  Bruno Haible  <bruno@clisp.org>
13611
13612         iswblank: Move AC_LIBOBJ invocations to module description.
13613         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
13614         here...
13615         * modules/iswblank (configure.ac): ... to here.
13616
13617 2011-05-21  Bruno Haible  <bruno@clisp.org>
13618
13619         atanl: Move AC_LIBOBJ invocations to module description.
13620         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
13621         * modules/atanl (configure.ac): ... to here.
13622
13623 2011-05-21  Bruno Haible  <bruno@clisp.org>
13624
13625         acosl: Move AC_LIBOBJ invocations to module description.
13626         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
13627         * modules/acosl (configure.ac): ... to here.
13628
13629 2011-05-21  Bruno Haible  <bruno@clisp.org>
13630
13631         asinl: Respect rules for use of AC_LIBOBJ.
13632         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
13633         * modules/asinl (configure.ac): ... to here.
13634
13635 2011-05-21  Bruno Haible  <bruno@clisp.org>
13636
13637         tanl: Move AC_LIBOBJ invocations to module description.
13638         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
13639         * modules/tanl (configure.ac): ... to here.
13640
13641 2011-05-21  Bruno Haible  <bruno@clisp.org>
13642
13643         cosl: Move AC_LIBOBJ invocations to module description.
13644         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
13645         * modules/cosl (configure.ac): ... to here.
13646
13647 2011-05-21  Bruno Haible  <bruno@clisp.org>
13648
13649         sinl: Move AC_LIBOBJ invocations to module description.
13650         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
13651         * modules/sinl (configure.ac): ... to here.
13652
13653 2011-05-21  Bruno Haible  <bruno@clisp.org>
13654
13655         logl: Move AC_LIBOBJ invocations to module description.
13656         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
13657         * modules/logl (configure.ac): ... to here.
13658
13659 2011-05-21  Bruno Haible  <bruno@clisp.org>
13660
13661         expl: Move AC_LIBOBJ invocations to module description.
13662         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
13663         * modules/expl (configure.ac): ... to here.
13664
13665 2011-05-21  Bruno Haible  <bruno@clisp.org>
13666
13667         roundl: Move AC_LIBOBJ invocations to module description.
13668         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
13669         * modules/roundl (configure.ac): ... to here.
13670
13671 2011-05-21  Bruno Haible  <bruno@clisp.org>
13672
13673         round: Move AC_LIBOBJ invocations to module description.
13674         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
13675         * modules/round (configure.ac): ... to here.
13676
13677 2011-05-21  Bruno Haible  <bruno@clisp.org>
13678
13679         roundf: Move AC_LIBOBJ invocations to module description.
13680         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
13681         * modules/roundf (configure.ac): ... to here.
13682
13683 2011-05-21  Bruno Haible  <bruno@clisp.org>
13684
13685         truncl: Move AC_LIBOBJ invocations to module description.
13686         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
13687         * modules/truncl (configure.ac): ... to here.
13688
13689 2011-05-21  Bruno Haible  <bruno@clisp.org>
13690
13691         trunc: Move AC_LIBOBJ invocations to module description.
13692         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
13693         * modules/trunc (configure.ac): ... to here.
13694
13695 2011-05-21  Bruno Haible  <bruno@clisp.org>
13696
13697         truncf: Move AC_LIBOBJ invocations to module description.
13698         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
13699         * modules/truncf (configure.ac): ... to here.
13700
13701 2011-05-21  Bruno Haible  <bruno@clisp.org>
13702
13703         ceill: Move AC_LIBOBJ invocations to module description.
13704         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
13705         * modules/ceill (configure.ac): ... to here.
13706
13707 2011-05-21  Bruno Haible  <bruno@clisp.org>
13708
13709         ceil: Move AC_LIBOBJ invocations to module description.
13710         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
13711         * modules/ceil (configure.ac): ... to here.
13712
13713 2011-05-21  Bruno Haible  <bruno@clisp.org>
13714
13715         ceilf: Move AC_LIBOBJ invocations to module description.
13716         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
13717         * modules/ceilf (configure.ac): ... to here.
13718
13719 2011-05-21  Bruno Haible  <bruno@clisp.org>
13720
13721         floorl: Respect rules for use of AC_LIBOBJ.
13722         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
13723         * modules/floorl (configure.ac): ... to here.
13724
13725 2011-05-21  Bruno Haible  <bruno@clisp.org>
13726
13727         floor: Respect rules for use of AC_LIBOBJ.
13728         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
13729         * modules/floor (configure.ac): ... to here.
13730
13731 2011-05-21  Bruno Haible  <bruno@clisp.org>
13732
13733         floorf: Move AC_LIBOBJ invocations to module description.
13734         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
13735         * modules/floorf (configure.ac): ... to here.
13736
13737 2011-05-20  Bruno Haible  <bruno@clisp.org>
13738
13739         sqrtl: Respect rules for use of AC_LIBOBJ.
13740         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
13741         * modules/sqrtl (configure.ac): ... to here.
13742
13743 2011-05-20  Bruno Haible  <bruno@clisp.org>
13744
13745         ldexpl: Respect rules for use of AC_LIBOBJ.
13746         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
13747         * modules/ldexpl (configure.ac): ... to here.
13748
13749 2011-05-20  Bruno Haible  <bruno@clisp.org>
13750
13751         frexpl*: Respect rules for use of AC_LIBOBJ.
13752         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
13753         invocation from here...
13754         * modules/frexpl (configure.ac): ... to here.
13755         * modules/frexpl-nolibm (configure.ac): ... and here.
13756
13757 2011-05-20  Bruno Haible  <bruno@clisp.org>
13758
13759         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
13760         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
13761         invocation from here...
13762         * modules/frexp (configure.ac): ... to here.
13763         * modules/frexp-nolibm (configure.ac): ... and here.
13764
13765 2011-05-20  Bruno Haible  <bruno@clisp.org>
13766
13767         isnan: Respect rules for use of AC_LIBOBJ.
13768         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
13769         invocations here.
13770         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
13771         REPLACE_ISNAN.
13772         * modules/isnand (configure.ac): Likewise.
13773         * modules/isnanl (configure.ac): Likewise.
13774
13775 2011-05-20  Bruno Haible  <bruno@clisp.org>
13776
13777         isnanl*: Respect rules for use of AC_LIBOBJ.
13778         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
13779         invocation from here...
13780         * modules/isnanl (configure.ac): ... to here.
13781         * modules/isnanl-nolibm (configure.ac): ... and here.
13782
13783 2011-05-20  Bruno Haible  <bruno@clisp.org>
13784
13785         isnand*: Move AC_LIBOBJ invocations to module description.
13786         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
13787         invocation from here...
13788         * modules/isnand (configure.ac): ... to here.
13789         * modules/isnand-nolibm (configure.ac): ... and here.
13790
13791 2011-05-20  Bruno Haible  <bruno@clisp.org>
13792
13793         isnanf*: Move AC_LIBOBJ invocations to module description.
13794         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
13795         invocation from here...
13796         * modules/isnanf (configure.ac): ... to here.
13797         * modules/isnanf-nolibm (configure.ac): ... and here.
13798
13799 2011-05-20  Bruno Haible  <bruno@clisp.org>
13800
13801         isnan*: Separate the AC_LIBOBJ invocations.
13802         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
13803         AC_LIBOBJ invocation.
13804         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
13805         here.
13806         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
13807         AC_LIBOBJ invocation.
13808         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
13809         here.
13810         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
13811         AC_LIBOBJ invocation.
13812         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
13813         here.
13814         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
13815
13816 2011-05-08  Bruno Haible  <bruno@clisp.org>
13817
13818         isinf: Move AC_LIBOBJ invocations to module description.
13819         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
13820         * modules/isinf (configure.ac): ... to here.
13821
13822 2011-05-08  Bruno Haible  <bruno@clisp.org>
13823
13824         isfinite: Move AC_LIBOBJ invocations to module description.
13825         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
13826         * modules/isfinite (configure.ac): ... to here.
13827
13828 2011-05-08  Bruno Haible  <bruno@clisp.org>
13829
13830         isblank: Move AC_LIBOBJ invocations to module description.
13831         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
13832         here...
13833         * modules/isblank (configure.ac): ... to here.
13834
13835 2011-05-08  Bruno Haible  <bruno@clisp.org>
13836
13837         isapipe: Move AC_LIBOBJ invocations to module description.
13838         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
13839         gl_PREREQ_ISAPIPE invocations from here...
13840         * modules/isapipe (configure.ac): ... to here.
13841         (Depends-on): Update condition.
13842
13843 2011-05-08  Bruno Haible  <bruno@clisp.org>
13844
13845         ioctl: Move AC_LIBOBJ invocations to module description.
13846         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
13847         invocations from here...
13848         * modules/ioctl (configure.ac): ... to here.
13849         (Depends-on): Update condition.
13850
13851 2011-05-08  Bruno Haible  <bruno@clisp.org>
13852
13853         imaxdiv: Move AC_LIBOBJ invocations to module description.
13854         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
13855         invocations from here...
13856         * modules/imaxdiv (configure.ac): ... to here.
13857
13858 2011-05-08  Bruno Haible  <bruno@clisp.org>
13859
13860         imaxabs: Move AC_LIBOBJ invocations to module description.
13861         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
13862         invocations from here...
13863         * modules/imaxabs (configure.ac): ... to here.
13864
13865 2011-05-08  Bruno Haible  <bruno@clisp.org>
13866
13867         getaddrinfo: Move AC_LIBOBJ invocations to module description.
13868         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
13869         AC_LIBOBJ invocations from here...
13870         * modules/getaddrinfo (configure.ac): ... to here.
13871         (Depends-on): Add conditions.
13872
13873 2011-05-08  Bruno Haible  <bruno@clisp.org>
13874
13875         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13876         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
13877         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13878         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
13879         (gl_PREREQ_INET_PTON): ... from here.
13880         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
13881         gl_PREREQ_INET_PTON here.
13882         (Depends-on): Update condition.
13883
13884 2011-05-08  Bruno Haible  <bruno@clisp.org>
13885
13886         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13887         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
13888         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13889         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
13890         (gl_PREREQ_INET_NTOP): ... from here.
13891         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
13892         gl_PREREQ_INET_NTOP here.
13893         (Depends-on): Update condition.
13894
13895 2011-05-08  Bruno Haible  <bruno@clisp.org>
13896
13897         iconv_open: Move AC_LIBOBJ invocations to module description.
13898         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
13899         AC_LIBOBJ invocations from here...
13900         * modules/iconv_open (configure.ac): ... to here.
13901
13902 2011-05-08  Bruno Haible  <bruno@clisp.org>
13903
13904         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
13905         If module 'iconv_open' is among the main modules and module
13906         'iconv_open-utf' is among the tests dependencies, then
13907         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
13908         return the special iconv_t values. Therefore iconv() and iconv_close()
13909         must support these special iconv_t values, already in lib, not only in
13910         tests.
13911         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
13912         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
13913         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
13914         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
13915         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
13916         (Depends-on): Add the dependencies of iconv_open-utf.
13917         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
13918         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
13919         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
13920
13921 2011-05-08  Bruno Haible  <bruno@clisp.org>
13922
13923         group-member: Move AC_LIBOBJ invocations to module description.
13924         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
13925         gl_PREREQ_GROUP_MEMBER invocations from here...
13926         * modules/group-member (configure.ac): ... to here.
13927
13928 2011-05-08  Bruno Haible  <bruno@clisp.org>
13929
13930         grantpt: Move AC_LIBOBJ invocations to module description.
13931         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
13932         invocations from here...
13933         * modules/grantpt (configure.ac): ... to here.
13934
13935 2011-05-08  Bruno Haible  <bruno@clisp.org>
13936
13937         glob: Move AC_LIBOBJ invocations to module description.
13938         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
13939         from here...
13940         * modules/glob (configure.ac): ... to here.
13941
13942 2011-05-08  Bruno Haible  <bruno@clisp.org>
13943
13944         getusershell: Move AC_LIBOBJ invocations to module description.
13945         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
13946         Move AC_LIBOBJ invocation from here...
13947         * modules/getusershell (configure.ac): ... to here.
13948         (Depends-on): Update condition.
13949
13950 2011-05-08  Bruno Haible  <bruno@clisp.org>
13951
13952         gettimeofday: Move AC_LIBOBJ invocations to module description.
13953         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
13954         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
13955         gl_PREREQ_GETTIMEOFDAY invocations from here...
13956         * modules/gettimeofday (configure.ac): ... to here.
13957
13958 2011-05-08  Bruno Haible  <bruno@clisp.org>
13959
13960         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
13961         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
13962         just gl_FUNC_TZSET.
13963         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
13964         (gl_FUNC_TZSET_CLOBBER): Remove actions.
13965         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
13966         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
13967
13968 2011-05-08  Bruno Haible  <bruno@clisp.org>
13969
13970         getsubopt: Move AC_LIBOBJ invocations to module description.
13971         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
13972         gl_PREREQ_GETSUBOPT invocations from here...
13973         * modules/getsubopt (configure.ac): ... to here.
13974
13975 2011-05-08  Bruno Haible  <bruno@clisp.org>
13976
13977         getpass-gnu: Move AC_LIBOBJ invocations to module description.
13978         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
13979         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
13980         * modules/getpass-gnu (configure.ac): ... to here.
13981
13982 2011-05-08  Bruno Haible  <bruno@clisp.org>
13983
13984         getpass: Move AC_LIBOBJ invocations to module description.
13985         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
13986         gl_PREREQ_GETPASS invocations from here...
13987         * modules/getpass (configure.ac): ... to here.
13988
13989 2011-05-08  Bruno Haible  <bruno@clisp.org>
13990
13991         getpagesize: Move AC_LIBOBJ invocations to module description.
13992         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
13993         from here...
13994         * modules/getpagesize (configure.ac): ... to here.
13995
13996 2011-05-08  Bruno Haible  <bruno@clisp.org>
13997
13998         getopt: Move AC_LIBOBJ invocations to module description.
13999         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
14000         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
14001         invocations from here...
14002         * modules/getopt-gnu (configure.ac): ... to here.
14003         * modules/getopt-posix (configure.ac): ... and here.
14004         (Depends-on): Update condition.
14005
14006 2011-05-08  Bruno Haible  <bruno@clisp.org>
14007
14008         getopt, argp: Respect rules for use of AC_LIBOBJ.
14009         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
14010         (gl_REPLACE_GETOPT_ALWAYS): New macro.
14011         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
14012         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
14013
14014 2011-05-08  Bruno Haible  <bruno@clisp.org>
14015
14016         getlogin_r: Move AC_LIBOBJ invocations to module description.
14017         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
14018         gl_PREREQ_GETLOGIN_R invocations from here...
14019         * modules/getlogin_r (configure.ac): ... to here.
14020
14021 2011-05-08  Bruno Haible  <bruno@clisp.org>
14022
14023         getlogin: Move AC_LIBOBJ invocations to module description.
14024         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
14025         here...
14026         * modules/getlogin (configure.ac): ... to here.
14027
14028 2011-05-08  Bruno Haible  <bruno@clisp.org>
14029
14030         getloadavg: Move AC_LIBOBJ invocations to module description.
14031         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
14032         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
14033         * modules/getloadavg (configure.ac): ... to here.
14034
14035 2011-05-08  Bruno Haible  <bruno@clisp.org>
14036
14037         gethrxtime: Move AC_LIBOBJ invocations to module description.
14038         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
14039         LIB_GETHRXTIME from here...
14040         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
14041         invocations from here...
14042         * modules/gethrxtime (configure.ac): ... to here.
14043
14044 2011-05-08  Bruno Haible  <bruno@clisp.org>
14045
14046         gethostname: Move AC_LIBOBJ invocations to module description.
14047         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
14048         gl_PREREQ_GETHOSTNAME invocations from here...
14049         * modules/gethostname (configure.ac): ... to here.
14050
14051 2011-05-08  Bruno Haible  <bruno@clisp.org>
14052
14053         getgroups: Move AC_LIBOBJ invocations to module description.
14054         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
14055         here...
14056         * modules/getgroups (configure.ac): ... to here.
14057
14058 2011-05-08  Bruno Haible  <bruno@clisp.org>
14059
14060         getdtablesize: Move AC_LIBOBJ invocations to module description.
14061         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
14062         invocation from here...
14063         * modules/getdtablesize (configure.ac): ... to here.
14064
14065 2011-05-08  Bruno Haible  <bruno@clisp.org>
14066
14067         getdomainname: Move AC_LIBOBJ invocations to module description.
14068         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
14069         gl_PREREQ_GETDOMAINNAME invocations from here...
14070         * modules/getdomainname (configure.ac): ... to here.
14071
14072 2011-05-08  Bruno Haible  <bruno@clisp.org>
14073
14074         getline: Move AC_LIBOBJ invocations to module description.
14075         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
14076         invocations from here...
14077         * modules/getline (configure.ac): ... to here.
14078
14079 2011-05-08  Bruno Haible  <bruno@clisp.org>
14080
14081         getline: Simplify.
14082         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
14083         It's already handled through the module dependency.
14084
14085 2011-05-08  Bruno Haible  <bruno@clisp.org>
14086
14087         getdelim: Move AC_LIBOBJ invocations to module description.
14088         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
14089         and gl_PREREQ_GETDELIM invocations from here...
14090         * modules/getdelim (configure.ac): ... to here.
14091         (Depends-on): Fix condition.
14092
14093 2011-05-08  Bruno Haible  <bruno@clisp.org>
14094
14095         getcwd: Move AC_LIBOBJ invocations to module description.
14096         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
14097         invocations from here...
14098         * modules/getcwd (configure.ac): ... to here.
14099
14100 2011-05-08  Bruno Haible  <bruno@clisp.org>
14101
14102         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
14103         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
14104         here...
14105         * modules/getcwd-lgpl (configure.ac): ... to here.
14106
14107 2011-05-07  Bruno Haible  <bruno@clisp.org>
14108
14109         crypto/gc: Move AC_LIBOBJ invocations to module description.
14110         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
14111         * modules/crypto/gc (configure.ac): ... to here.
14112
14113 2011-05-07  Bruno Haible  <bruno@clisp.org>
14114
14115         fwriting: Move AC_LIBOBJ invocations to module description.
14116         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
14117         here...
14118         * modules/fwriting (configure.ac): ... to here.
14119
14120 2011-05-07  Bruno Haible  <bruno@clisp.org>
14121
14122         fwritable: Move AC_LIBOBJ invocations to module description.
14123         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
14124         here...
14125         * modules/fwritable (configure.ac): ... to here.
14126
14127 2011-05-07  Bruno Haible  <bruno@clisp.org>
14128
14129         futimens: Move AC_LIBOBJ invocations to module description.
14130         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
14131         here...
14132         * modules/futimens (configure.ac): ... to here.
14133
14134 2011-05-07  Bruno Haible  <bruno@clisp.org>
14135
14136         ftruncate: Move AC_LIBOBJ invocations to module description.
14137         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
14138         gl_PREREQ_FTRUNCATE invocations from here...
14139         * modules/ftruncate (configure.ac): ... to here.
14140
14141 2011-05-07  Bruno Haible  <bruno@clisp.org>
14142
14143         fsync: Move AC_LIBOBJ invocations to module description.
14144         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
14145         invocations from here...
14146         * modules/fsync (configure.ac): ... to here.
14147
14148 2011-05-07  Bruno Haible  <bruno@clisp.org>
14149
14150         fsusage: Move AC_LIBOBJ invocations to module description.
14151         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
14152         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
14153         * modules/fsusage (configure.ac): ... to here.
14154
14155 2011-05-07  Bruno Haible  <bruno@clisp.org>
14156
14157         freopen: Move AC_LIBOBJ invocations to module description.
14158         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
14159         invocations from here...
14160         * modules/freopen (configure.ac): ... to here.
14161
14162 2011-05-07  Bruno Haible  <bruno@clisp.org>
14163
14164         free: Move AC_LIBOBJ invocations to module description.
14165         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
14166         invocations from here...
14167         * modules/free (configure.ac): ... to here.
14168
14169 2011-05-07  Bruno Haible  <bruno@clisp.org>
14170
14171         freadable: Move AC_LIBOBJ invocations to module description.
14172         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
14173         here...
14174         * modules/freadable (configure.ac): ... to here.
14175
14176 2011-05-07  Bruno Haible  <bruno@clisp.org>
14177
14178         fpurge: Move AC_LIBOBJ invocations to module description.
14179         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
14180         invocations from here...
14181         * modules/fpurge (configure.ac): ... to here.
14182
14183 2011-05-07  Bruno Haible  <bruno@clisp.org>
14184
14185         fpending: Move AC_LIBOBJ invocations to module description.
14186         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
14187         gl_FUNC_FPENDING.
14188         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
14189         invocations from here...
14190         * modules/fpending (configure.ac): ... to here.
14191
14192 2011-05-07  Bruno Haible  <bruno@clisp.org>
14193
14194         fopen: Move AC_LIBOBJ invocations to module description.
14195         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
14196         invocations from here...
14197         * modules/fopen (configure.ac): ... to here.
14198
14199 2011-05-07  Bruno Haible  <bruno@clisp.org>
14200
14201         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
14202         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
14203         gl_FUNC_FNMATCH_POSIX.
14204         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
14205         invocations from here...
14206         * modules/fnmatch (configure.ac): ... to here.
14207         * modules/fnmatch-gnu (configure.ac): ... and here.
14208
14209 2011-05-07  Bruno Haible  <bruno@clisp.org>
14210
14211         flock: Move AC_LIBOBJ invocations to module description.
14212         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
14213         invocations from here...
14214         * modules/flock (configure.ac): ... to here.
14215
14216 2011-05-07  Bruno Haible  <bruno@clisp.org>
14217
14218         fileblocks: Move AC_LIBOBJ invocations to module description.
14219         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
14220         gl_PREREQ_FILEBLOCKS invocations from here...
14221         * modules/fileblocks (configure.ac): ... to here.
14222
14223 2011-05-06  Bruno Haible  <bruno@clisp.org>
14224
14225         fflush: Move AC_LIBOBJ invocations to module description.
14226         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
14227         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
14228         invocations from here...
14229         * modules/fflush (configure.ac): ... to here.
14230
14231 2011-05-06  Bruno Haible  <bruno@clisp.org>
14232
14233         fdopendir: Move AC_LIBOBJ invocations to module description.
14234         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
14235         here...
14236         * modules/fdopendir (configure.ac): ... to here.
14237         (Depends-on): Improve conditions.
14238
14239 2011-05-06  Bruno Haible  <bruno@clisp.org>
14240
14241         _Exit: Move AC_LIBOBJ invocations to module description.
14242         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
14243         invocations from here...
14244         * modules/_Exit (configure.ac): ... to here.
14245
14246 2011-05-21  Bruno Haible  <bruno@clisp.org>
14247
14248         euidaccess: Respect rules for use of AC_LIBOBJ.
14249         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
14250         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
14251         from here...
14252         * modules/euidaccess (configure.ac): ... to here.
14253
14254 2011-05-06  Bruno Haible  <bruno@clisp.org>
14255
14256         error: Move AC_LIBOBJ invocations to module description.
14257         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
14258         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
14259         invocations from here...
14260         * modules/error (configure.ac): ... to here.
14261
14262 2011-05-06  Bruno Haible  <bruno@clisp.org>
14263
14264         duplocale: Move AC_LIBOBJ invocations to module description.
14265         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14266         gl_PREREQ_DUPLOCALE invocations from here...
14267         * modules/duplocale (configure.ac): ... to here.
14268
14269 2011-05-05  Bruno Haible  <bruno@clisp.org>
14270
14271         dirfd: Move AC_LIBOBJ invocations to module description.
14272         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14273         gl_FUNC_DIRFD.
14274         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14275         here...
14276         * modules/dirfd (configure.ac): ... to here.
14277         (Depends-on): Fix condition.
14278
14279 2011-05-05  Bruno Haible  <bruno@clisp.org>
14280
14281         chown: Respect rules for use of AC_LIBOBJ.
14282         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14283         * modules/chown (configure.ac): ... to here.
14284
14285 2011-05-05  Bruno Haible  <bruno@clisp.org>
14286
14287         chdir-long: Move AC_LIBOBJ invocations to module description.
14288         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
14289         gl_PREREQ_CHDIR_LONG invocations from here...
14290         * modules/chdir-long (configure.ac): ... to here.
14291
14292 2011-05-05  Bruno Haible  <bruno@clisp.org>
14293
14294         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
14295         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
14296         from here...
14297         * modules/canonicalize-lgpl (configure.ac): ... to here.
14298
14299 2011-05-05  Bruno Haible  <bruno@clisp.org>
14300
14301         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
14302         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
14303         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
14304         REPLACE_CALLOC.
14305         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
14306         * modules/calloc-gnu (configure.ac): Likewise.
14307
14308 2011-05-05  Bruno Haible  <bruno@clisp.org>
14309
14310         btowc: Move AC_LIBOBJ invocations to module description.
14311         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
14312         invocations from here...
14313         * modules/btowc (configure.ac): ... to here.
14314
14315 2011-05-21  Bruno Haible  <bruno@clisp.org>
14316
14317         atexit: Move AC_LIBOBJ invocations to module description.
14318         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
14319         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
14320         here...
14321         * modules/atexit (configure.ac): ... to here.
14322
14323 2011-05-05  Bruno Haible  <bruno@clisp.org>
14324
14325         atoll: Move AC_LIBOBJ invocations to module description.
14326         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
14327         invocations from here...
14328         * modules/atoll (configure.ac): ... to here.
14329
14330 2011-05-05  Bruno Haible  <bruno@clisp.org>
14331
14332         argz: Move AC_LIBOBJ invocations to module description.
14333         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
14334         * modules/argz (configure.ac): ... to here.
14335
14336 2011-05-05  Bruno Haible  <bruno@clisp.org>
14337
14338         alphasort: Move AC_LIBOBJ invocations to module description.
14339         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
14340         gl_PREREQ_ALPHASORT invocations from here...
14341         * modules/alphasort (configure.ac): ... to here.
14342
14343 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14344
14345         verify: new macro verify_expr; verify_true deprecated
14346         * NEWS: Mention this.
14347         * doc/verify.texi (Compile-time Assertions): Document this.
14348         * lib/verify.h (verify_true): Deprecate.
14349         (verify_expr): New macro.
14350         * tests/test-verify.c (function): Test verify_expr.
14351
14352 2011-06-14  Jim Meyering  <meyering@redhat.com>
14353
14354         init.sh: give more portable redirection-related advice in a comment
14355         * tests/init.sh (stderr_fileno_): Update the advice in comments.
14356         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
14357         for lots of discussion.  Stefano Lattarini suggested the solution
14358         of putting "9>&2" after the command.  Reported by Bruno Haible.
14359
14360 2011-06-13  Bruno Haible  <bruno@clisp.org>
14361
14362         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
14363         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
14364         'none'.
14365
14366 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
14367
14368         ftoastr: use strtof only if HAVE_STRTOF
14369         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
14370         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
14371         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
14372         * modules/ftoastr (configure.ac): Check for strtof.
14373
14374 2011-06-13  Bruno Haible  <bruno@clisp.org>
14375
14376         gnulib-tool: Addendum to 2011-06-08 commit.
14377         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
14378         and --witness-c-macro have been given, augment AM_CPPFLAGS.
14379
14380 2011-06-13  Bruno Haible  <bruno@clisp.org>
14381
14382         fseeko: Provide a non-inline replacement of fseek().
14383         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
14384         * modules/fseeko (Depends-on): Add fseek.
14385         * modules/fseek (License): Change to LGPLv2+.
14386
14387 2011-06-13  Bruno Haible  <bruno@clisp.org>
14388
14389         ftello: Provide a non-inline replacement of ftell().
14390         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
14391         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
14392         not have ftello() (such as on mingw).
14393         * modules/ftello (Depends-on): Add ftell.
14394         * modules/ftell (License): Change to LGPLv2+.
14395
14396 2011-05-07  Bruno Haible  <bruno@clisp.org>
14397
14398         ftell: Move AC_LIBOBJ invocations to module description.
14399         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
14400         * modules/ftell (configure.ac): ... to here.
14401
14402 2011-05-07  Bruno Haible  <bruno@clisp.org>
14403
14404         ftello: Respect rules for use of AC_LIBOBJ.
14405         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
14406         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
14407         here...
14408         * modules/ftello (configure.ac): ... to here.
14409
14410 2011-05-07  Bruno Haible  <bruno@clisp.org>
14411
14412         fseeko: Simplify.
14413         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
14414         (gl_FUNC_FSEEKO): Inline it here.
14415
14416 2011-05-07  Bruno Haible  <bruno@clisp.org>
14417
14418         fseek: Move AC_LIBOBJ invocations to module description.
14419         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
14420         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14421         * modules/fseek (configure.ac): ... to here.
14422
14423 2011-05-07  Bruno Haible  <bruno@clisp.org>
14424
14425         fseek: Respect rules for use of AC_LIBOBJ.
14426         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
14427         here...
14428         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
14429
14430 2011-05-07  Bruno Haible  <bruno@clisp.org>
14431
14432         fseeko: Respect rules for use of AC_LIBOBJ.
14433         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
14434         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
14435         here...
14436         * modules/fseeko (configure.ac): ... to here.
14437
14438 2011-06-13  Bruno Haible  <bruno@clisp.org>
14439
14440         gnulib-tool: Allow comments in the 'Depends-on' section.
14441         * doc/gnulib.texi (Module description): Mention comment syntax in the
14442         Depends-on section.
14443         * gnulib-tool (func_get_dependencies): Filter out comment lines.
14444
14445 2011-06-13  Bruno Haible  <bruno@clisp.org>
14446
14447         file-set.h: guard __attibute__ use, now that it's not always defined
14448         * lib/file-set.h (record_file): Use __attribute__ only with compiler
14449         versions that support it.  This fixes a coreutils build failure with
14450         the vendor cc on HP-UX 11.31.
14451
14452 2011-06-12  Bruno Haible  <bruno@clisp.org>
14453
14454         acl: Add support for HP-UX >= 11.11 JFS ACLs.
14455         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
14456         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
14457         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
14458         (acl, aclsort): New declarations.
14459         (aclv_nontrivial): New declaration.
14460         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
14461         (file_has_acl): Read also the second kind of HP-UX ACLs.
14462         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
14463         kind of HP-UX ACLs if the first kind fails.
14464         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
14465         second kind of HP-UX ACLs.
14466         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
14467         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
14468         agree.
14469         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14470         hpuxjfs.
14471         Handle hpuxjfs.
14472         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14473         hpuxjfs.
14474         Handle hpuxjfs.
14475         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14476         (func_test_same_acls): Use both lsacl and getacl.
14477         Handle hpuxjfs.
14478         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14479         (func_test_same_acls): Use both lsacl and getacl.
14480         Handle hpuxjfs.
14481
14482 2011-06-12  Bruno Haible  <bruno@clisp.org>
14483
14484         acl: Complete the 2010-08-10 fix.
14485         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
14486         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
14487         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
14488         explicitly.
14489         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
14490         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
14491
14492 2011-06-12  Bruno Haible  <bruno@clisp.org>
14493
14494         spawn-pipe tests: Comments.
14495         * tests/test-spawn-pipe-child.c (main): Update comment.
14496         Reported by James Youngman <jay@gnu.org>.
14497
14498 2011-06-11  James Youngman  <jay@gnu.org>
14499
14500         New module 'stat-size'.
14501         * modules/stat-size: New module.  Provides macros for accessing
14502         file size information in instances of struct stat.  Depends on the
14503         fileblocks module because it calls st_blocks.
14504         * lib/stat-size.h: New file, adapted from coreutils' system.h.
14505         * doc/gnulib.texi: Include stat-size.texi.
14506         * doc/stat-size.texi: Documentation for this module.
14507         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
14508         * m4/fileblocks.m4: Mention that stat-size depends on the call to
14509         AC_STRUCT_ST_BLOCKS.
14510
14511 2011-06-09  Bruno Haible  <bruno@clisp.org>
14512
14513         thread: Support pthreads-win32.
14514         * lib/glthread/thread.h (gl_thread_self): Define differently on
14515         pthreads-win32.
14516         (gl_null_thread): New declaration.
14517         (gl_thread_self_pointer): New macro.
14518         * lib/glthread/thread.c (gl_null_thread): New constant.
14519         * tests/test-lock.c: Use gl_thread_self_pointer instead of
14520         gl_thread_self.
14521         * tests/test-tls.c: Likewise.
14522         Suggested by Paul Eggert. Reported by Eric Blake.
14523
14524 2011-06-09  Bruno Haible  <bruno@clisp.org>
14525
14526         thread: Fix confusion between NULL and 0.
14527         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
14528         Reported by Paul Eggert.
14529
14530 2011-06-09  Bruno Haible  <bruno@clisp.org>
14531
14532         spawn-pipe tests: Avoid test failure on HP-UX 11.
14533         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
14534         is closed.
14535
14536 2011-06-09  Bruno Haible  <bruno@clisp.org>
14537
14538         acl tests: Fix compilation error on HP-UX 11.
14539         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
14540
14541 2011-06-09  Bruno Haible  <bruno@clisp.org>
14542
14543         rmdir: Avoid test failure on HP-UX 10.20.
14544         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
14545         EEXIST.
14546
14547 2011-06-08  Eric Blake  <eblake@redhat.com>
14548
14549         perror: fix test on mingw
14550         * modules/perror-tests (Depends-on): Add dup2.
14551
14552         strerror_r-posix: fix on MacOS
14553         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
14554         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
14555         logic bug.
14556         * lib/strerror_r.c (strerror_r): Fix the bug.
14557         * lib/strerror.c (strerror): Likewise.
14558         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14559         problem.
14560         * doc/posix-functions/strerror.texi (strerror): Likewise.
14561         * doc/posix-functions/perror.texi (perror): Likewise.
14562         * tests/test-strerror.c (main): Enhance test.
14563         * tests/test-strerror_r.c (main): Likewise.
14564
14565 2011-06-08  Bruno Haible  <bruno@clisp.org>
14566
14567         gnulib-tool: Better isolation between different gnulib-tool invocations.
14568         * gnulib-tool: New option --witness-c-macro.
14569         (witness_c_macro): New variable.
14570         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
14571         AM_CPPFLAGS define it as a C macro.
14572         (func_emit_tests_Makefile_am): Likewise.
14573         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
14574         read it from there.
14575         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
14576         m4_define, not AC_DEFUN.
14577         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
14578         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
14579         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
14580         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
14581         s|...|...|, to substitute the values of the GNULIB_* module indicator
14582         variables.
14583         * modules/dirent (Makefile.am): Likewise.
14584         * modules/fcntl-h (Makefile.am): Likewise.
14585         * modules/iconv-h (Makefile.am): Likewise.
14586         * modules/langinfo (Makefile.am): Likewise.
14587         * modules/locale (Makefile.am): Likewise.
14588         * modules/math (Makefile.am): Likewise.
14589         * modules/netdb (Makefile.am): Likewise.
14590         * modules/poll-h (Makefile.am): Likewise.
14591         * modules/pty (Makefile.am): Likewise.
14592         * modules/search (Makefile.am): Likewise.
14593         * modules/signal (Makefile.am): Likewise.
14594         * modules/spawn (Makefile.am): Likewise.
14595         * modules/stdio (Makefile.am): Likewise.
14596         * modules/stdlib (Makefile.am): Likewise.
14597         * modules/string (Makefile.am): Likewise.
14598         * modules/sys_ioctl (Makefile.am): Likewise.
14599         * modules/sys_select (Makefile.am): Likewise.
14600         * modules/sys_socket (Makefile.am): Likewise.
14601         * modules/sys_stat (Makefile.am): Likewise.
14602         * modules/sys_times (Makefile.am): Likewise.
14603         * modules/sys_utsname (Makefile.am): Likewise.
14604         * modules/sys_wait (Makefile.am): Likewise.
14605         * modules/termios (Makefile.am): Likewise.
14606         * modules/time (Makefile.am): Likewise.
14607         * modules/unistd (Makefile.am): Likewise.
14608         * modules/wchar (Makefile.am): Likewise.
14609
14610 2011-06-08  Eric Blake  <eblake@redhat.com>
14611
14612         strerror: simplify replacement
14613         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
14614         * modules/strerror (configure.ac): No prereqs needed here...
14615         * modules/strerror-override (configure.ac): ...but this needs it.
14616         (Files): Add file for needed prereq macro.
14617
14618 2011-06-08  Bruno Haible  <bruno@clisp.org>
14619
14620         strerror_r-posix: Tweaks.
14621         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
14622         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
14623         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
14624         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
14625         (gl_FUNC_STRERROR_R): ... to here.
14626         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
14627
14628 2011-06-07  Eric Blake  <eblake@redhat.com>
14629
14630         perror: document fixed bugs
14631         * doc/posix-functions/perror.texi (perror): Document recent
14632         patches.
14633
14634 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
14635
14636         stat-time: get_stat_birthtime failure is better-defined
14637         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
14638         return a timestamp whose tv_sec and tv_nsec values are both -1.
14639         Previously, the spec said only that the tv_nsec value was negative.
14640         This upward-compatible change simplifies GNU tar a bit.
14641
14642 2011-06-07  Eric Blake  <eblake@redhat.com>
14643
14644         strerror_r-posix: work around cygwin 1.7.9
14645         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
14646         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
14647         bug without replacing strerror_r.
14648         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
14649         strerror_r is buggy, but without requiring strerror_r compilation.
14650         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
14651
14652         test-perror: relax test to ignore cygwin bug
14653         * tests/test-perror2.c (main): Relax test on requiring detection
14654         of stream errors, and use unbuffered stream.
14655         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
14656         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
14657         * doc/posix-functions/fputc.texi (fputc): Likewise.
14658         * doc/posix-functions/fputs.texi (fputs): Likewise.
14659         * doc/posix-functions/fputws.texi (fputws): Likewise.
14660         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
14661         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
14662         * doc/posix-functions/getopt.texi (getopt): Likewise.
14663         * doc/posix-functions/perror.texi (perror): Likewise.
14664         * doc/posix-functions/printf.texi (printf): Likewise.
14665         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
14666         * doc/posix-functions/psignal.texi (psignal): Likewise.
14667         * doc/posix-functions/putc.texi (putc): Likewise.
14668         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
14669         Likewise.
14670         * doc/posix-functions/putchar.texi (putchar): Likewise.
14671         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
14672         Likewise.
14673         * doc/posix-functions/puts.texi (puts): Likewise.
14674         * doc/posix-functions/putwc.texi (putwc): Likewise.
14675         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
14676         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
14677         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14678         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
14679         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14680         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
14681         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
14682         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
14683
14684 2011-05-22  Bruno Haible  <bruno@clisp.org>
14685
14686         strerror: Move AC_LIBOBJ invocations to module description.
14687         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
14688         gl_PREREQ_STRERROR invocations from here...
14689         * modules/strerror (configure.ac): ... to here.
14690
14691 2011-05-21  Bruno Haible  <bruno@clisp.org>
14692
14693         perror: Use common idiom.
14694         * modules/perror (configure.ac): Reorder statements.
14695
14696 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14697
14698         tests: fix usage message in 'mktempd_'
14699         * tests/init.sh (mktempd_): In the usage message, use literal
14700         'mktempd_', not '$ME' (which is even undefined), as the name of
14701         the subroutine.
14702
14703 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14704
14705         tests init: new function 'fatal_', for hard errors
14706         Before this patch, the only way offered by tests/init.sh to
14707         properly signal a hard error was the `framework_failure_'
14708         function.  But the error message issued by that function,
14709         as its name would suggest, refers to a set-up failure in the
14710         testsuite, while hard errors can obviously also be due to
14711         other reasons.  The best way to fix this inconsistency is to
14712         introduce a new function with a more general error message.
14713         * tests/init.sh (fatal_): New function.
14714
14715 2011-06-06  Eric Blake  <eblake@redhat.com>
14716
14717         canonicalize-lgpl: use common idiom
14718         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
14719         over newer POSIX -Rf.
14720         Reported by Bruno Haible.
14721
14722         canonicalize-lgpl: work around AIX realpath bug
14723         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
14724         * doc/posix-functions/realpath.texi (realpath): Document it.
14725         Reported by Bruno Haible.
14726
14727         strerror: work around FreeBSD bug
14728         * lib/strerror.c (strerror): Special case 0.
14729         Reported by Bruno Haible.
14730
14731         strerror-override: avoid bloating errno module
14732         * modules/errno (Files, configure.ac): Move replacement strings...
14733         * modules/strerror-override: ...to new module.
14734         * modules/strerror (Depends-on): Add strerror-override.
14735         * modules/strerror_r-posix (Depends-on): Likewise.
14736         * MODULES.html.sh: Document new module.
14737         Reported by Bruno Haible.
14738
14739 2011-06-06  Bruno Haible  <bruno@clisp.org>
14740
14741         spawn-pipe tests: Rename program.
14742         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
14743         * tests/test-spawn-pipe-child.c: Update comment.
14744         * tests/test-spawn-pipe.sh: Update.
14745         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
14746
14747         spawn-pipe tests: Link the child program only against libc.
14748         * tests/test-spawn-pipe-child.c: New file, extracted from
14749         tests/test-spawn-pipe.c.
14750         (main): Expect only one argument.
14751         (is_open): New function, copied from tests/test-pipe.c.
14752         * tests/test-spawn-pipe.c: Don't include <errno.h>.
14753         (child_main): Remove function.
14754         (test_pipe): Pass only one argument to the child program.
14755         (main): Remove child process code. Expect the child program's name as
14756         first argument.
14757         * tests/test-spawn-pipe.sh: Pass the child program's name as first
14758         argument.
14759         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
14760         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
14761         test-spawn-pipe-child against no libraries.
14762
14763 2011-06-06  Bruno Haible  <bruno@clisp.org>
14764
14765         careadlinkat: Avoid mismatch between ssize_t and int.
14766         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
14767         * lib/careadlinkat.c (careadlinkatcwd): Define always.
14768
14769 2011-06-06  Jim Meyering  <meyering@redhat.com>
14770
14771         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
14772         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
14773         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
14774
14775 2011-06-05  Bruno Haible  <bruno@clisp.org>
14776
14777         ansi-c++-opt: Interoperability with libtool.
14778         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
14779         set the variable to "no", not to ":".
14780         * NEWS: Mention the change.
14781
14782 2011-06-05  Bruno Haible  <bruno@clisp.org>
14783
14784         acl: Fix test failure on AIX 7.
14785         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
14786         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
14787
14788 2011-06-05  Bruno Haible  <bruno@clisp.org>
14789
14790         pipe-filter-ii: Fix test failure on AIX and IRIX.
14791         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
14792         with EAGAIN, retry with a smaller buffer size.
14793
14794 2011-06-05  Bruno Haible  <bruno@clisp.org>
14795
14796         localename: Fix link dependencies.
14797         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
14798         * modules/localename-tests (Makefile.am): Link test-localename with
14799         $(LIBTHREAD).
14800
14801 2011-06-05  Bruno Haible  <bruno@clisp.org>
14802
14803         error: Avoid gcc warning.
14804         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
14805
14806 2011-06-05  Bruno Haible  <bruno@clisp.org>
14807
14808         unsetenv: Avoid gcc warning.
14809         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
14810
14811 2011-06-05  Bruno Haible  <bruno@clisp.org>
14812
14813         setenv: Avoid gcc warning.
14814         * lib/setenv.c (setenv): Provide declaration if system lacks it.
14815
14816 2011-06-05  Bruno Haible  <bruno@clisp.org>
14817
14818         sys_select: Ensure memset is declared also on AIX 7.
14819         * lib/sys_select.in.h: Include <string.h> also on AIX.
14820         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
14821         self-contained also on AIX 7.1.
14822
14823 2011-06-04  Jim Meyering  <meyering@redhat.com>
14824
14825         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
14826         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
14827         function name, "error".
14828         (_gl_translatable_diag_func_re): New configurable variable.
14829
14830 2011-06-04  Bruno Haible  <bruno@clisp.org>
14831
14832         getopt: Avoid gcc warning.
14833         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
14834
14835 2011-06-04  Bruno Haible  <bruno@clisp.org>
14836
14837         strerror_r: Fix comments.
14838         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
14839         commit.
14840
14841 2011-06-04  Bruno Haible  <bruno@clisp.org>
14842
14843         perror: Fix compilation error.
14844         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
14845         Undefine fprintf, not sprintf.
14846         * modules/perror (Depends-on): Remove intprops, verify.
14847
14848 2011-06-04  Bruno Haible  <bruno@clisp.org>
14849
14850         setlocale: Enable replacement on Cygwin 1.5.
14851         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
14852         Cygwin 1.5.x.
14853         * doc/posix-functions/setlocale.texi: Mention that the problem with the
14854         LC_CTYPE category also exists on Cygwin 1.5.x.
14855
14856 2011-06-04  Bruno Haible  <bruno@clisp.org>
14857
14858         strerror-override: Don't disable symbol renamings.
14859         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
14860         * lib/strerror-override.c: Include config.h.
14861         (strerror_override): Don't undefine.
14862
14863 2011-06-03  Bruno Haible  <bruno@clisp.org>
14864
14865         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
14866         * lib/localename.h: Update copyright header.
14867         * lib/localename.c: Likewise.
14868         * lib/relocatable.h: Likewise.
14869         * lib/relocatable.c: Likewise.
14870
14871 2011-06-02  Bruno Haible  <bruno@clisp.org>
14872
14873         doc: Fix a module name.
14874         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
14875
14876 2011-06-02  Bruno Haible  <bruno@clisp.org>
14877
14878         pipe2: Remove dependency on 'nonblocking' module.
14879         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
14880         O_NONBLOCK is defined by gnulib.
14881         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
14882         is zero.
14883         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
14884         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
14885         defined by gnulib.
14886         (get_nonblocking_flag): New function.
14887         (main): Test O_NONBLOCK flag only if it is nonzero.
14888         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
14889
14890 2011-06-03  Jim Meyering  <meyering@redhat.com>
14891
14892         maint: three new prohibit-header-without-use rules
14893         Prohibit use of cloexec.h, posixver.h, same.h without use.
14894         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
14895         (sc_prohibit_posixver_without_use): Likewise.
14896         (sc_prohibit_same_without_use): Likewise.
14897
14898 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14899
14900         allocator: 'die' routine is now given requested size
14901         * lib/allocator.h (struct allocator.die): New size arg.
14902         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
14903         If the actual problem is an ssize_t limitation, not a size_t or
14904         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
14905
14906 2011-06-01  Eric Blake  <eblake@redhat.com>
14907
14908         strerror: drop strerror_r dependency
14909         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
14910         * lib/strerror-override.c (strerror_override): ...to new file.
14911         * lib/strerror-override.h: Add prototype.
14912         * lib/strerror-impl.h: Delete.
14913         * lib/strerror.c (strerror): New implementation.
14914         * modules/errno (Files): Add new files.
14915         (configure.ac): Compile new file as appropriate.
14916         * modules/strerror (Files): Drop unused file.
14917         (Depends-on): Drop strerror_r-posix.
14918         * MODULES.html.sh: Document strerror_r-posix.
14919         Requested by Sam Steingold.
14920
14921         perror: call strerror_r directly
14922         * modules/perror (Files): Drop strerror-impl.h.
14923         * lib/perror.c (perror): Use our own stack buffer, rather than
14924         calling a wrapper that uses static storage.
14925         * doc/posix-functions/perror.texi (perror): Document a limitation
14926         of our replacement.
14927
14928         strerror_r: fix includes for FreeBSD
14929         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
14930         since we use abort on some platforms.
14931         Reported by Matthias Bolte.
14932
14933 2011-05-31  Bruno Haible  <bruno@clisp.org>
14934
14935         Fix link errors in tests: openat-die uses gettext-h.
14936         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
14937         against $(LIBINTL).
14938         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
14939         against $(LIBINTL).
14940         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
14941         $(LIBINTL).
14942         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
14943         against $(LIBINTL).
14944         * modules/linkat-tests (Makefile.am): Link test-linkat against
14945         $(LIBINTL).
14946         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
14947         $(LIBINTL).
14948         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
14949         against $(LIBINTL).
14950         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
14951         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
14952         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
14953         $(LIBINTL).
14954         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
14955         $(LIBINTL).
14956         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
14957         $(LIBINTL).
14958         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14959
14960 2011-05-31  Bruno Haible  <bruno@clisp.org>
14961
14962         Fix link errors in tests: wait-process uses gettext-h.
14963         * modules/nonblocking-pipe-tests (Makefile.am): Set
14964         test_nonblocking_pipe_main_LDADD.
14965         * modules/nonblocking-socket-tests (Makefile.am): Link
14966         test-nonblocking-socket-main against $(LIBINTL).
14967         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14968
14969 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
14970
14971         assert-h: work around 'verify' incompatibility
14972         * lib/verify.h: Use @...@ directives, not ifdef.
14973         * modules/assert-h (assert.h): Implement the directives.
14974         (assert.h): Substitute the symbol-prefix more consistently.
14975
14976 2011-05-29  Jim Meyering  <meyering@redhat.com>
14977
14978         trim: remove three superfluous assignments
14979         * lib/trim.c (trim2): Remove three superfluous assignments
14980         and correct brace positioning.
14981
14982 2011-05-29  Bruno Haible  <bruno@clisp.org>
14983
14984         wctype-h: Avoid namespace pollution on Solaris 2.6.
14985         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
14986         identifiers.
14987         * doc/posix-headers/wctype.texi: Mention the problem.
14988         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14989
14990 2011-05-28  Jim Meyering  <meyering@redhat.com>
14991
14992         parse-datetime.y: accommodate -Wstrict-overflow
14993         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
14994         placate -Wstrict-overflow.
14995
14996         trim: avoid a warning from -O2 -Wstrict-overflow
14997         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
14998
14999 2011-05-29  Bruno Haible  <bruno@clisp.org>
15000
15001         gnulib-tool: Fix bug in yesterday's commit.
15002         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
15003         twice.
15004
15005 2011-05-29  Bruno Haible  <bruno@clisp.org>
15006
15007         Allow multiple gnulib generated include files to be combined.
15008         * gnulib-tool (func_compute_include_guard_prefix): New function.
15009         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
15010         ${gl_include_guard_prefix} references.
15011         (func_import, func_create_testdir): Invoke
15012         func_compute_include_guard_prefix.
15013         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
15014         * lib/ctype.in.h: Likewise.
15015         * lib/dirent.in.h: Likewise.
15016         * lib/errno.in.h: Likewise.
15017         * lib/fcntl.in.h: Likewise.
15018         * lib/float.in.h: Likewise.
15019         * lib/getopt.in.h: Likewise.
15020         * lib/iconv.in.h: Likewise.
15021         * lib/langinfo.in.h: Likewise.
15022         * lib/locale.in.h: Likewise.
15023         * lib/math.in.h: Likewise.
15024         * lib/netdb.in.h: Likewise.
15025         * lib/netinet_in.in.h: Likewise.
15026         * lib/poll.in.h: Likewise.
15027         * lib/pthread.in.h: Likewise.
15028         * lib/pty.in.h: Likewise.
15029         * lib/sched.in.h: Likewise.
15030         * lib/se-selinux.in.h: Likewise.
15031         * lib/search.in.h: Likewise.
15032         * lib/signal.in.h: Likewise.
15033         * lib/spawn.in.h: Likewise.
15034         * lib/stdarg.in.h: Likewise.
15035         * lib/stddef.in.h: Likewise.
15036         * lib/stdint.in.h: Likewise.
15037         * lib/stdio.in.h: Likewise.
15038         * lib/stdlib.in.h: Likewise.
15039         * lib/string.in.h: Likewise.
15040         * lib/strings.in.h: Likewise.
15041         * lib/sys_file.in.h: Likewise.
15042         * lib/sys_ioctl.in.h: Likewise.
15043         * lib/sys_select.in.h: Likewise.
15044         * lib/sys_socket.in.h: Likewise.
15045         * lib/sys_stat.in.h: Likewise.
15046         * lib/sys_time.in.h: Likewise.
15047         * lib/sys_times.in.h: Likewise.
15048         * lib/sys_uio.in.h: Likewise.
15049         * lib/sys_utsname.in.h: Likewise.
15050         * lib/sys_wait.in.h: Likewise.
15051         * lib/sysexits.in.h: Likewise.
15052         * lib/termios.in.h: Likewise.
15053         * lib/time.in.h: Likewise.
15054         * lib/unistd.in.h: Likewise.
15055         * lib/wchar.in.h: Likewise.
15056         * lib/wctype.in.h: Likewise.
15057         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
15058         * modules/ctype (Makefile.am): Likewise.
15059         * modules/dirent (Makefile.am): Likewise.
15060         * modules/errno (Makefile.am): Likewise.
15061         * modules/fcntl-h (Makefile.am): Likewise.
15062         * modules/float (Makefile.am): Likewise.
15063         * modules/getopt-posix (Makefile.am): Likewise.
15064         * modules/iconv-h (Makefile.am): Likewise.
15065         * modules/langinfo (Makefile.am): Likewise.
15066         * modules/locale (Makefile.am): Likewise.
15067         * modules/math (Makefile.am): Likewise.
15068         * modules/netdb (Makefile.am): Likewise.
15069         * modules/netinet_in (Makefile.am): Likewise.
15070         * modules/poll-h (Makefile.am): Likewise.
15071         * modules/pthread (Makefile.am): Likewise.
15072         * modules/pty (Makefile.am): Likewise.
15073         * modules/sched (Makefile.am): Likewise.
15074         * modules/search (Makefile.am): Likewise.
15075         * modules/selinux-h (Makefile.am): Likewise.
15076         * modules/signal (Makefile.am): Likewise.
15077         * modules/spawn (Makefile.am): Likewise.
15078         * modules/stdarg (Makefile.am): Likewise.
15079         * modules/stddef (Makefile.am): Likewise.
15080         * modules/stdint (Makefile.am): Likewise.
15081         * modules/stdio (Makefile.am): Likewise.
15082         * modules/stdlib (Makefile.am): Likewise.
15083         * modules/string (Makefile.am): Likewise.
15084         * modules/strings (Makefile.am): Likewise.
15085         * modules/sys_file (Makefile.am): Likewise.
15086         * modules/sys_ioctl (Makefile.am): Likewise.
15087         * modules/sys_select (Makefile.am): Likewise.
15088         * modules/sys_socket (Makefile.am): Likewise.
15089         * modules/sys_stat (Makefile.am): Likewise.
15090         * modules/sys_time (Makefile.am): Likewise.
15091         * modules/sys_times (Makefile.am): Likewise.
15092         * modules/sys_uio (Makefile.am): Likewise.
15093         * modules/sys_utsname (Makefile.am): Likewise.
15094         * modules/sys_wait (Makefile.am): Likewise.
15095         * modules/sysexits (Makefile.am): Likewise.
15096         * modules/termios (Makefile.am): Likewise.
15097         * modules/time (Makefile.am): Likewise.
15098         * modules/unistd (Makefile.am): Likewise.
15099         * modules/wchar (Makefile.am): Likewise.
15100         * modules/wctype-h (Makefile.am): Likewise.
15101         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
15102
15103 2011-05-29  Bruno Haible  <bruno@clisp.org>
15104
15105         assert-h: Allow multiple gnulib generated replacements to coexist.
15106         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
15107
15108 2011-05-29  Bruno Haible  <bruno@clisp.org>
15109
15110         argp: Allow coexistence with strerror_r-posix module.
15111         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
15112         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
15113         by gnulib's <string.h> replacement), assume it has the POSIX signature,
15114         not the glibc signature.
15115
15116 2011-05-28  Bruno Haible  <bruno@clisp.org>
15117
15118         gnulib-tool: Alternative structure of testdirs, similar to --import.
15119         * gnulib-tool: New option --single-configure.
15120         (func_usage): Document it.
15121         (single_configure): New variable.
15122         (func_modules_transitive_closure_separately,
15123         func_modules_transitive_closure_separately,
15124         func_determine_use_libtests, func_modules_add_dummy_separately,
15125         func_modules_to_filelist_separately): New functions, extracted from
15126         func_import.
15127         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
15128         (func_import): Use the new functions.
15129         (func_create_testdir): Set final_modules. Handle $single_configure =
15130         true case.
15131
15132 2011-05-28  Bruno Haible  <bruno@clisp.org>
15133
15134         getloadavg: Remove an unreliable safety check.
15135         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
15136         getloadavg.c is in place.
15137         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
15138         Reported by Sam Steingold <sds@gnu.org>.
15139
15140 2011-05-28  Bruno Haible  <bruno@clisp.org>
15141
15142         doc: Cleanup yet another file produced by texinfo.tex.
15143         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
15144
15145 2011-05-28  Bruno Haible  <bruno@clisp.org>
15146
15147         Finish the conditional dependencies mechanism.
15148         * gnulib-tool: New option --no-conditional-dependencies.
15149         (func_usage): Document it. Don't mark --conditional-dependencies as
15150         experimental.
15151         (cond_dependencies): The possible values can now be true, false, empty.
15152         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
15153         (func_import): Store setting in gnulib-cache.m4 and read it from there.
15154         * doc/gnulib-tool.texi (Conditional dependencies): New section.
15155
15156 2011-05-28  Bruno Haible  <bruno@clisp.org>
15157
15158         doc: Use a recent texinfo.tex.
15159         * doc/Makefile (tex_opts): New variable.
15160         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
15161
15162 2011-05-28  Jim Meyering  <meyering@redhat.com>
15163
15164         intprops.h: adjust comment to match code change
15165         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
15166         only once, it *may* have side effects.  Also fix an unrelated typo.
15167         (_GL_INT_SIGNED): Likewise.
15168
15169 2011-05-26  Simon Josefsson  <simon@josefsson.org>
15170
15171         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
15172
15173 2011-05-26  Bruno Haible  <bruno@clisp.org>
15174
15175         mbsrchr: Avoid collision with system function on Interix.
15176         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
15177         Reported by Markus Duft <mduft@gentoo.org>.
15178
15179 2011-05-15  James Youngman  <jay@gnu.org>
15180
15181         getopt: for ambiguous options, enumerate the possibilities.
15182         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
15183         the ambiguous options when an ambiguous prefix is given. This was
15184         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
15185         glibc change was
15186         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
15187
15188 2011-05-25  Eric Blake  <eblake@redhat.com>
15189
15190         getcwd: work around mingw bug
15191         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
15192         * doc/posix-functions/getcwd.texi (getcwd): Document it.
15193         Reported by Matthias Bolte.
15194
15195 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
15196
15197         test-intprops: disable -Wtype-limits diagnostics
15198         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
15199         diagnostics.  Otherwise, the integer overflow macros generate many
15200         diagnostics.  Reported by Jim Meyering in
15201         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15202
15203         intprops: shorten, to pacify gcc -Woverlength-strings
15204         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
15205         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
15206         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
15207         likely to run afoul of C compiler limits for string constant lengths.
15208         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
15209
15210 2011-05-24  Eric Blake  <eblake@redhat.com>
15211
15212         docs: document recently fixed glibc printf bug
15213         * doc/posix-functions/fprintf.texi (fprintf): Document it.
15214         * doc/posix-functions/printf.texi (printf): Likewise.
15215         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15216         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15217
15218         closein-tests: convert to init.sh
15219         * modules/closein-tests (Files): Add init.sh
15220         * tests/test-closein.sh Use it.
15221
15222         yesno-tests: convert to init.sh
15223         * modules/yesno-tests (Files): Add init.sh.
15224         * tests/test-yesno.sh: Use it.
15225
15226         atexit-tests: ensure reliable exit status
15227         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
15228         Reported by Bruno Haible.
15229
15230 2011-05-24  Bruno Haible  <bruno@clisp.org>
15231
15232         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
15233         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
15234         gl_PREREQ_STRERROR_R invocations from here...
15235         * modules/strerror_r-posix (configure.ac): ... to here.
15236
15237 2011-05-24  Eric Blake  <eblake@redhat.com>
15238
15239         strerror_r: fix missing header
15240         * lib/strerror_r.c: Avoid compiler warning about snprintf.
15241
15242         strerror_r: fix AIX test failures
15243         * lib/strerror_r.c (strerror_r): Convert silent truncation to
15244         ERANGE failure.
15245
15246         strerror_r: fix Solaris test failures
15247         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
15248         failures.
15249         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15250
15251         strerror_r: enforce POSIX recommendations
15252         * lib/strerror_r.c (safe_copy): New helper method.
15253         (strerror_r): Guarantee a non-empty string.
15254         * tests/test-strerror_r.c (main): Enhance tests to incorporate
15255         recent POSIX rulings and to match our strerror guarantees.
15256         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
15257
15258 2011-05-24  Jim Meyering  <meyering@redhat.com>
15259
15260         test-perror2.c: avoid warning about unused variable
15261         * tests/test-perror2.c (main): Remove declaration of unused "fp".
15262
15263 2011-05-24  Eric Blake  <eblake@redhat.com>
15264
15265         perror: avoid spurious test failure on HP-UX
15266         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15267
15268         tests: fix logic bug in init.sh
15269         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15270         shell.
15271
15272 2011-05-24  Jim Meyering  <meyering@redhat.com>
15273
15274         utimensat: do not reference an out-of-scope buffer
15275         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15276         declared in an inner scope, yet "times" would be dereferenced outside
15277         the scope in which "ts" was valid.
15278         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15279         of ts[2] "out/up", so that the use of aliased "times" (via
15280         "times = ts;") does not end up referencing an out-of-scope "ts"
15281
15282         opendir-safer.c: don't clobber errno; don't close negative FD
15283         * lib/opendir-safer.c (opendir_safer):
15284         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
15285         file descriptor, and more importantly, don't clobber the
15286         offending errno value with EINVAL.  Before, upon failure
15287         of dup_safer, we would pass the negative file descriptor to
15288         fdopendir, which would clobber errno.
15289
15290 2011-05-23  Bruno Haible  <bruno@clisp.org>
15291
15292         idcache: Fix module description.
15293         * modules/idcache (Include): Set to "idcache.h".
15294
15295 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15296
15297         gnulib-tool: fix portability problem with MacOS sed
15298         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
15299         before the "}".  Problem reported by Leo in
15300         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
15301         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
15302         sed_extract_condition1, sed_extract_condition2.
15303
15304 2011-05-23  Bruno Haible  <bruno@clisp.org>
15305
15306         hash: Simplify autoconf macro.
15307         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
15308
15309 2011-05-23  Bruno Haible  <bruno@clisp.org>
15310
15311         getugroups: Fix module description.
15312         * modules/getugroups (Include): Set to "getugroups.h".
15313
15314 2011-05-23  Bruno Haible  <bruno@clisp.org>
15315
15316         linkat: Simplify autoconf macro.
15317         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
15318
15319 2011-05-23  Bruno Haible  <bruno@clisp.org>
15320             Eric Blake  <eblake@redhat.com>
15321
15322         linkat, renameat: Update dependencies.
15323         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
15324         * modules/linkat (Depends-on): Likewise. Remove also readlink,
15325         symlinkat.
15326
15327 2011-05-23  Jim Meyering  <meyering@redhat.com>
15328
15329         maint.mk: more tight_scope improvements
15330         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
15331         (_gl_TS_headers): Define only in if-0'd block.
15332         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
15333         sometimes we must *not* use it.  Adjust uses accordingly.
15334         (sc_tight_scope): Use much simpler grep-based test to determine
15335         whether we skip this rule.
15336
15337         maint.mk: generalize/improve the tight-scope rule
15338         * top/maint.mk: Emit a warning when the test is skipped.
15339         (_gl_TS_dir): Add $(srcdir)/ prefix.
15340         (_gl_TS_function_match): Simplify, rather than trying
15341         to enumerate common types.  Otherwise, it would fail to match an
15342         "extern unsigned char const *" declaration in idutils.
15343         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
15344         a way to support use of that type of macro.
15345         (_gl_TS_var_match): Simplify regexp.
15346         (_gl_TS_obj_files): New configurable variable.
15347         (_gl_TS_headers): Likewise.
15348
15349 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
15350
15351         verify: fix bug when gnulib <assert.h> is also included
15352         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
15353         is defined, not if _GL_STATIC_ASSERT_H is not defined.
15354         Perhaps there's a better way, but this fixes the immediate problem.
15355         Problem reported by Bruno Haible in
15356         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
15357
15358 2011-05-22  Bruno Haible  <bruno@clisp.org>
15359
15360         xgetcwd: Simplify autoconf macro.
15361         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
15362
15363 2011-05-22  Bruno Haible  <bruno@clisp.org>
15364
15365         New module 'mktime-internal'.
15366         * modules/mktime-internal: New file.
15367         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
15368         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
15369         mktime_internal as a C macro if libc has __mktime_internal.
15370         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
15371         conditions.
15372         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
15373
15374 2011-05-22  Bruno Haible  <bruno@clisp.org>
15375
15376         timegm: Correct mktime replacement statements.
15377         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
15378         defining mktime as a C macro. This completes a 2009-07-28 commit.
15379
15380 2011-05-22  Bruno Haible  <bruno@clisp.org>
15381
15382         timegm: Simplify autoconf macro.
15383         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
15384
15385 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15386
15387         clock-time: change to LGPLv2+.
15388         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
15389         BSD-like but we have no mark for that; this is good enough for now.
15390
15391 2011-05-21  Bruno Haible  <bruno@clisp.org>
15392
15393         strerror_r: Fix comments.
15394         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
15395
15396 2011-05-21  Bruno Haible  <bruno@clisp.org>
15397
15398         relocatable-prog-wrapper: Fix possible link error.
15399         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
15400         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
15401         (gl_FUNC_SETENV): ... to here.
15402         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
15403         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
15404
15405 2011-05-21  Bruno Haible  <bruno@clisp.org>
15406
15407         relocatable-prog-wrapper: Assume strerror() exists.
15408         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
15409         m4/strerror.m4.
15410         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
15411         * lib/relocwrapper.c: Remove mention of strerror module.
15412         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
15413         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
15414         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
15415         C macro.
15416
15417 2011-05-21  Bruno Haible  <bruno@clisp.org>
15418
15419         select: Simplify replacement idiom.
15420         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
15421         Win32 platforms.
15422         * lib/sys_select.in.h (select): Simplify accordingly.
15423         * modules/select (Depends-on): Likewise.
15424
15425 2011-05-21  Bruno Haible  <bruno@clisp.org>
15426
15427         mkdir-p: Simplify autoconf macro.
15428         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
15429         gl_FUNC_LCHOWN.
15430
15431 2011-05-21  Eric Blake  <eblake@redhat.com>
15432
15433         strerror_r: avoid clobbering strerror on cygwin
15434         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
15435         fall back instead to sys_errlist.
15436         * modules/strerror (configure.ac): Add witness.
15437         * tests/test-strerror_r.c (main): Enhance test.
15438         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15439         * tests/test-perror2.c (main): Free memory before exit.
15440
15441 2011-05-21  Bruno Haible  <bruno@clisp.org>
15442
15443         mkdtemp: Use gnulib naming conventions.
15444         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
15445         * modules/mkdtemp (configure.ac): Update.
15446
15447 2011-05-20  Eric Blake  <eblake@redhat.com>
15448
15449         strerror_r: avoid corrupting errno on Solaris
15450         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
15451         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15452
15453         strerror_r: avoid compiler warning
15454         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
15455
15456         strerror_r: simplify AIX code
15457         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
15458
15459         test-perror: avoid spurious failure on FreeBSD
15460         * modules/perror-tests (Depends-on): Add strerror, now that
15461         strerror_r no longer pulls it in.
15462
15463 2011-05-20  Bruno Haible  <bruno@clisp.org>
15464
15465         strerror_r-posix: Remove unused dependencies.
15466         * modules/strerror_r-posix (Depends-on): Remove strerror.
15467         Reported by Eric Blake.
15468
15469 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15470
15471         intprops: remove assumption about A|B representation
15472         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
15473         is a valid integer if both A and B are.  Although this is true for
15474         all known practical hosts, the C standard doesn't guarantee it,
15475         and the code need not assume it.  Also, this change may work around
15476         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
15477         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
15478
15479 2011-05-20  Eric Blake  <eblake@redhat.com>
15480
15481         perror: work around FreeBSD bug
15482         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
15483         is broken.  Move AC_LIBOBJ...
15484         * modules/perror (configure.ac): Here.
15485         * doc/posix-functions/perror.texi (perror): Document this.
15486         * tests/test-perror2.c (main): Enhance test.
15487
15488         test-perror: check for strerror interactions
15489         * tests/macros.h (STREQ): Add macro.
15490         * modules/perror-tests (Files): Add second test.
15491         * tests/test-perror2.c (main): New file.
15492         * doc/posix-functions/perror.texi (perror): Document glibc bug.
15493
15494         test-perror: rewrite to use init script
15495         * modules/perror-tests (Files): Add init.sh.
15496         * tests/test-perror.sh: Use temporary directory.
15497
15498 2011-05-20  Jim Meyering  <meyering@redhat.com>
15499
15500         maint: replace misused "a" with "an"
15501         * doc/intprops.texi: "a integer"
15502         * doc/regex.texi: "a explanation"
15503         * lib/alignof.h: "a object"
15504         * lib/argmatch.h: "a explanation"
15505         * lib/argp-help.c: "a option" and "a OPTION_DOC"
15506         * lib/stdint.in.h: "a integer"
15507         * lib/userspec.c: "a owner"
15508         * doc/gnulib.texi: Fix "a idea", and reword.
15509
15510 2011-05-19  Jim Meyering  <meyering@redhat.com>
15511
15512         maint: correct misuse of "a" and "an"
15513         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
15514         * lib/argp-help.c: "an docum...": s/an/a/
15515         * lib/argp-parse.c: "An vector": s/An/A/
15516         * lib/execute.c: "an native": s/an/a/
15517         * lib/spawn-pipe.c: Likewise.
15518         * lib/gc.h: "an Gc_rc": s/an/a/
15519         * lib/unigbrk.in.h: "an grapheme": s/an/a/
15520         * lib/fts.c: "an stat.st_dev": s/an/a/
15521
15522 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15523
15524         intprops-tests: work around HP-UX 11.23 cc bug with constants
15525         * tests/test-intprops.c (VERIFY): New macro.
15526         (main): Use it, instead of verify, to work around the compiler bug; see
15527         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15528
15529         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
15530         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
15531         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
15532         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
15533         (_GL_REMAINDER_OVERFLOW): Use it.
15534
15535         intprops-tests: revert unsigned part of previous change
15536         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
15537         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
15538         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
15539         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
15540
15541 2011-05-19  Bruno Haible  <bruno@clisp.org>
15542
15543         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
15544         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
15545         strerror_r() returned without filling the buffer.
15546         Reported by Eric Blake.
15547
15548 2011-05-19  Eric Blake  <eblake@redhat.com>
15549
15550         strerror_r: guarantee unchanged errno
15551         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
15552         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
15553         failure.
15554         * tests/test-strerror_r.c (main): Enhance test.
15555
15556 2011-05-19  Bruno Haible  <bruno@clisp.org>
15557
15558         strerror_r: Reorder #if blocks.
15559         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
15560         for consistency with the previous commit.
15561
15562 2011-05-19  Bruno Haible  <bruno@clisp.org>
15563
15564         perror: Avoid clobbering the strerror buffer when possible.
15565         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
15566         * lib/strerror.c: Include it.
15567         * modules/strerror (Files): Add lib/strerror-impl.h.
15568         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
15569         (my_strerror): New function, defined through lib/strerror-impl.h.
15570         (perror): Use it instead of strerror.
15571         * modules/perror (Files): Add lib/strerror-impl.h.
15572         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
15573
15574 2011-05-19  Eric Blake  <eblake@redhat.com>
15575
15576         strerror_r: fix on newer cygwin
15577         * lib/strerror_r.c (strerror_r): Cygwin now has
15578         __xpg_strerror_r, use it.
15579
15580 2011-05-19  Bruno Haible  <bruno@clisp.org>
15581
15582         strerror_r: Avoid clobbering the strerror buffer when possible.
15583         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
15584         (sys_nerr, sys_errlist): New declarations.
15585         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
15586         HP-UX, native Win32, IRIX, and 32-bit Solaris.
15587         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
15588
15589 2011-05-19  Bruno Haible  <bruno@clisp.org>
15590
15591         strerror_r: Fix test failure on mingw.
15592         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
15593         EXTEND_STRERROR_R.
15594         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
15595         macros from errno.in.h instead.
15596
15597 2011-05-19  Eric Blake  <eblake@redhat.com>
15598
15599         strerror: relax test for Solaris
15600         * tests/test-strerror.c (main): Permit Solaris behavior.
15601         * tests/test-strerror_r.c (main): Likewise.
15602
15603         strerror: enforce POSIX ruling on strerror(0)
15604         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
15605         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15606         * lib/strerror_r.c (rpl_strerror_r): Work around it.
15607         * doc/posix-functions/strerror.texi (strerror): Document it.
15608         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
15609         * tests/test-strerror.c (main): Strengthen test.
15610         * tests/test-strerror_r.c (main): Likewise.
15611
15612 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15613
15614         intprop-tests: port to older and more-pedantic compilers
15615         * modules/intprops-tests (Files): Add tests/macros.h.
15616         * tests/test-intprops.c: Include macros.h.
15617         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
15618         it's no longer documented to expand to an integer constant expression.
15619         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
15620         argument is floating point, as it's no longer documented to expand
15621         to an integer constant expression in that case.
15622         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
15623         compiler bugs reported by Bruno Haible.  See
15624         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15625         (U0, U1): New constants, to work around the same bugs.  Also,
15626         in tests, use e.g., "(unsigned int) 39" rather than "39u".
15627
15628         intprops: work around C compiler bugs
15629         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
15630         bug in Sun C 5.11 2010/08/13 and other compilers; see
15631         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15632
15633         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
15634         * doc/intprops.texi (Integer Type Determination): Fix
15635         documentation for TYPE_IS_INTEGER: it returns an constant
15636         expression, not an integer constant expression.  Fix doc for
15637         TYPE_SIGNED: it returns an integer constant expression only if its
15638         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
15639         hardly worth documented that way....)
15640
15641 2011-05-18  Bruno Haible  <bruno@clisp.org>
15642
15643         strerror_r: Avoid clobbering the strerror buffer when possible.
15644         * lib/strerror_r.c (strerror_r): Merge the three implementations.
15645         Handle gnulib defined errno values here. When strerror() returns NULL
15646         or an empty string, return EINVAL.
15647         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
15648         gnulib defined errno values here.
15649         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
15650
15651 2011-05-18  Eric Blake  <eblake@redhat.com>
15652
15653         fnmatch: avoid compiler warning
15654         * lib/fnmatch_loop.c (FCT): Use correct type.
15655         Reported by Matthias Bolte.
15656
15657 2011-05-13  Jim Meyering  <meyering@redhat.com>
15658
15659         maint.mk: three new prohibit_<HDR>_without_use rules
15660         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
15661         (sc_prohibit_stdio-safer_without_use): Likewise.
15662         (sc_prohibit_xfreopen_without_use): Likewise.
15663
15664 2011-05-17  Jim Meyering  <meyering@redhat.com>
15665
15666         announce-gen: fail if the NEWS delta is empty
15667         If there's nothing noteworthy in NEWS, then either you forgot
15668         or you shouldn't be releasing.
15669         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
15670
15671 2011-05-17  Pádraig Brady <P@draigBrady.com>
15672
15673         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
15674         reserved symbols starting with double underscore from the check.
15675
15676 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15677
15678         intprops: add doc
15679         * doc/intprops.texi: New file, documenting intprops.
15680         * doc/gnulib.texi (Particular Modules): Include it.
15681
15682         verify: add doc to gnulib manual and fix example
15683         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
15684         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
15685         (Compile-time Assertions): Fix example so it can't overflow.
15686
15687 2011-05-17  Jim Meyering  <meyering@redhat.com>
15688
15689         warnings.m4: don't usurp save_CPPFLAGS variable name
15690         * m4/warnings.m4: Prefix local temporary variable name with gl_.
15691
15692         doc: fix typo
15693         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
15694
15695 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15696             Bruno Haible  <bruno@clisp.org>
15697
15698         doc: Tweak recent change.
15699         * README (Portability guidelines): Tweak new text.
15700         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
15701         Interix 6.1.
15702
15703 2011-05-16  Eric Blake  <eblake@redhat.com>
15704
15705         inttypes: avoid autoconf warning
15706         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
15707         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15708
15709 2011-05-16  Sam Steingold <sds@gnu.org>
15710         and Eric Blake  <eblake@redhat.com>
15711
15712         vc-list-files: accept multiple directory operands
15713         * build-aux/vc-list-files: Iterate over all remaining operands.
15714
15715 2011-05-16  Bruno Haible  <bruno@clisp.org>
15716
15717         Fix confusion regarding deprecated modules.
15718         * modules/calloc (Status, Notice): Mark module as deprecated, not
15719         obsolete.
15720         * modules/fnmatch-posix (Status, Notice): Likewise.
15721         * modules/getdate (Status, Notice): Likewise.
15722         * modules/getopt (Status, Notice): Likewise.
15723         * modules/malloc (Status, Notice): Likewise.
15724         * modules/pipe (Status, Notice): Likewise.
15725         * modules/realloc (Status, Notice): Likewise.
15726         * modules/rename-dest-slash (Status, Notice): Likewise.
15727         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
15728         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
15729         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
15730         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
15731         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
15732
15733 2011-05-16  Bruno Haible  <bruno@clisp.org>
15734
15735         doc: List the target platforms.
15736         * doc/gnulib-intro.texi (Target Platforms): New section.
15737         * doc/gnulib.texi (Introduction): Update menu.
15738         * README (Portability guidelines): Refer to the new section. Update
15739         statement about oldest supported environment. Remove rationale why
15740         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
15741         unportable C89 function.
15742         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
15743         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
15744
15745 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15746
15747         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
15748
15749 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
15750
15751         intprops-tests: new module
15752         * modules/intprops-tests, tests/test-intprops.c: New files.
15753
15754         intprops: add safe, portable integer overflow checking
15755         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
15756         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
15757         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
15758         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
15759         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
15760         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
15761         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
15762         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
15763         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
15764         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
15765         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
15766
15767 2011-05-12  James Youngman  <jay@gnu.org>
15768
15769         Add a test for glibc's Bugzilla bug #12378.
15770         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
15771         doesn't allow the literal matching of a lone "[" (which is
15772         required by POSIX).
15773         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
15774
15775 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
15776
15777         Sync glibc change fixing Bugzilla bug #12378.
15778         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
15779         beginning and fall back to matching as normal character if the
15780         string ends before the matching ']' is found.  This is what POSIX
15781         requires.
15782
15783 2011-05-13  Eric Blake  <eblake@redhat.com>
15784
15785         getcwd-lgpl: relax test for FreeBSD
15786         * doc/posix-functions/getcwd.texi (getcwd): Document portability
15787         issue.
15788         * tests/test-getcwd-lgpl.c (main): Relax test.
15789         Reported by Matthias Bolte.
15790
15791 2011-05-11  Eric Blake  <eblake@redhat.com>
15792
15793         test-fflush: silence compiler warning
15794         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
15795
15796 2011-05-11  Bruno Haible  <bruno@clisp.org>
15797
15798         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
15799         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
15800         * modules/canonicalize (Depends-on): Add 'nocrash'.
15801         * modules/canonicalize-lgpl (Depends-on): Likewise.
15802         * doc/posix-functions/realpath.texi: Update platforms list.
15803         Reported by Ryan Schmidt <ryandesign@macports.org>.
15804
15805 2011-05-11  Bruno Haible  <bruno@clisp.org>
15806
15807         group-member: Declare function in <unistd.h>.
15808         * lib/unistd.in.h (group_member): New declaration.
15809         * lib/group-member.h: Remove file.
15810         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
15811         * tests/test-unistd-c++.cc: Check signature of group_member.
15812         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
15813         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
15814         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
15815         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
15816         HAVE_GROUP_MEMBER.
15817         * modules/group-member (Files): Remove lib/group-member.h.
15818         (Depends-on): Add unistd. Specify conditions.
15819         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15820         (Include): Change to <unistd.h>.
15821         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
15822         HAVE_GROUP_MEMBER.
15823         * NEWS: Mention the change.
15824         * lib/euidaccess.c: Don't include group-member.h.
15825
15826 2011-05-11  Bruno Haible  <bruno@clisp.org>
15827
15828         group-member: Document module.
15829         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
15830         module.
15831
15832 2011-05-11  Bruno Haible  <bruno@clisp.org>
15833
15834         fclose: Fix mistake earlier today.
15835         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
15836
15837 2011-05-11  Eric Blake  <eblake@redhat.com>
15838
15839         fclose: preserve fflush errors
15840         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
15841         Reported by Jim Meyering.
15842
15843         bootstrap: support a prereq of 'rpcgen -' on RHEL5
15844         * build-aux/bootstrap (check_versions): When no specific version
15845         is required, merely check that the app produces an exit status
15846         that indicates its existence.
15847
15848         maint.mk: drop redundant check
15849         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
15850         the same but better.
15851
15852 2011-05-11  Bruno Haible  <bruno@clisp.org>
15853
15854         fclose: Fix possible link error.
15855         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
15856         unregister_shadow_fd. Improve comments.
15857         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
15858         Eric Blake.
15859
15860 2011-05-11  Jim Meyering  <meyering@redhat.com>
15861
15862         maint.mk: improve "can not" detection and generalize rule name
15863         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
15864         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
15865         Use the same technique as in sc_prohibit_doubled_word, so that
15866         we recognize "can not" also when the words are separated by a newline.
15867         Suggested by Eric Blake.
15868         (perl_filename_lineno_text_): Define.  Factored out of...
15869         (prohibit_doubled_word_): ...here.  Use the new definition.
15870         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
15871         (prohibit_undesirable_word_seq_RE_): New overridable variable.
15872         (ignore_undesirable_word_sequence_RE_): New overridable variable.
15873
15874 2011-05-10  Eric Blake  <eblake@redhat.com>
15875
15876         fclose: avoid double close race when possible
15877         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
15878         all but WINDOWS_SOCKETS.
15879
15880 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
15881
15882         openat: correct new comment
15883         * lib/openat-proc.c (openat_proc_name): Correct the comment.
15884
15885 2011-05-10  Jim Meyering  <meyering@redhat.com>
15886
15887         openat: add comments
15888         * lib/openat-proc.c (openat_proc_name): Add comments,
15889         mostly from Eric Blake.
15890
15891 2011-05-09  Eric Blake  <eblake@redhat.com>
15892
15893         openat: reduce syscalls in first probe of /proc
15894         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
15895         be a directory.  Simplify the probe for .. bugs.
15896         * modules/openat (Depends-on): Drop same-inode.
15897         Reported by Bastien ROUCARIES.
15898
15899 2011-05-09  Jim Meyering  <meyering@redhat.com>
15900
15901         maint.mk: change semantics/name of tight_scope variables
15902         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
15903         Rename variables to align with semantics that make them more useful.
15904
15905         maint.mk: tweak new rule's name not to impinge
15906         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
15907         (sc_tight_scope): Use new rule name rather than $@-0.
15908
15909         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
15910         * top/maint.mk (sc_tight_scope): New rule.
15911         (sc_tight_scope-0): New rule, ifdef'd out.
15912         (_gl_TS_dir): Default.
15913         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
15914         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
15915
15916 2011-05-09  Simon Josefsson  <simon@josefsson.org>
15917
15918         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
15919         Haible <bruno@clisp.org>.
15920
15921 2011-05-08  Bruno Haible  <bruno@clisp.org>
15922
15923         Comments.
15924         * m4/isnanf.m4: Add comment.
15925         * m4/isnanl.m4: Likewise.
15926
15927 2011-05-08  Bruno Haible  <bruno@clisp.org>
15928
15929         glob: Remove obsolete macro.
15930         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
15931
15932 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
15933
15934         intprops: Sun C 5.11 supports __typeof__
15935         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
15936         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
15937         which is new.
15938         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
15939
15940         intprops: switch to usual gnulib indenting and naming
15941         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
15942         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
15943
15944         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
15945
15946 2011-05-08  Jim Meyering  <meyering@redhat.com>
15947
15948         maint.mk: suppress "Entering/Leaving directory" diag in announcement
15949         * top/maint.mk (release-prep): Use make's --no-print-directory
15950         option when generating the announcement.  This eliminates the
15951         pesky "make[2]: Entering/Leaving directory" diagnostics in the
15952         generated announcement template.
15953
15954 2011-05-08  Bruno Haible  <bruno@clisp.org>
15955
15956         tzset: Fix gettimeofday wrapper on Solaris 2.6.
15957         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
15958         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
15959
15960 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15961
15962         ignore-value, verify: Omit include files from lib_SOURCES.
15963         * modules/ignore-value, modules/verify (Makefile.am):
15964         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
15965         that leads Automake to duplicate use of am__objects_... variables
15966         in Makefile.in.  See
15967         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
15968
15969 2011-05-07  Bruno Haible  <bruno@clisp.org>
15970
15971         fclose: Simplify autoconf macro.
15972         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
15973         defined.
15974
15975 2011-05-07  Bruno Haible  <bruno@clisp.org>
15976
15977         canonicalize-lgpl: Fix autoconf macro ordering bug.
15978         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
15979         gl_STDLIB_H_DEFAULTS.
15980
15981 2011-05-06  Eric Blake  <eblake@redhat.com>
15982
15983         maintainer-makefile: make sc_po_check easier to tune
15984         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
15985         to probe for strings, such as an alternate location for gnulib.
15986
15987         fclose: guarantee behavior on seekable stdin
15988         * modules/fclose (Depends-on): Add fflush.
15989         * doc/posix-functions/fclose.texi (fclose): Document this.
15990         * tests/test-fclose.c (main): Make test for this unconditional.
15991
15992 2011-05-06  Bruno Haible  <bruno@clisp.org>
15993
15994         fflush, fpurge: Relicense under LGPLv2+.
15995         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
15996         * modules/fpurge (License): Likewise.
15997         With permission from Eric Blake and Jim Meyering.
15998         Suggested by Eric Blake.
15999
16000 2011-05-06  Karl Berry  <karl@gnu.org>
16001
16002         * MODULES.html.sh (func_all_modules): remove exit.
16003
16004 2011-05-06  Jim Meyering  <meyering@redhat.com>
16005
16006         maint.mk: use info-gnu@ as the default only for a stable release
16007         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
16008         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
16009         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
16010         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
16011
16012 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
16013
16014         assert-h: new module, which supports C1X-style static_assert
16015         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
16016         * lib/verify.h: Revamp so that this can be copied into assert.h,
16017         while retaining the ability to use it standalone as before.
16018         Rename private identifiers so as not to encroach on the
16019         standard C namespace, since this is now used by assert.h.
16020         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
16021         the old verify_true.
16022         (_GL_VERIFY_TRUE): New macro, with much of the contents of
16023         the old verify_true.  Use _GL_VERIFY_TYPE.
16024         (_GL_VERIFY): New macro, with much of the contents of the old verify.
16025         (static_assert): New macro, if _GL_STATIC_ASSERT_H
16026         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
16027         defined when this file is copied into the replacement assert.h.
16028         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
16029         and _Static_assert is not built in.
16030         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
16031         defined, and use the new macros mentioned above.
16032         * doc/posix-headers/assert.texi: Document this.
16033
16034 2011-05-05  Bruno Haible  <bruno@clisp.org>
16035
16036         fclose, fflush: Respect rules for use of AC_LIBOBJ.
16037         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
16038         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
16039         gl_REPLACE_FCLOSE here.
16040         * modules/fflush (Depends-on): Remove fclose.
16041         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
16042         combination with module 'fclose'.
16043
16044 2011-05-05  Bruno Haible  <bruno@clisp.org>
16045
16046         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
16047         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
16048         gl_FUNC_FFLUSH.
16049         (gl_FUNC_FFLUSH): Use it.
16050         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
16051         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
16052         gl_REPLACE_FSEEKO here.
16053
16054 2011-05-05  Bruno Haible  <bruno@clisp.org>
16055
16056         tzset: Relicense under LGPL.
16057         * modules/tzset (License): Change to LGPL.
16058         No agreement needed; it's a no-op.
16059
16060         strtoimax, strtoumax: Relicense under LGPL.
16061         * modules/strtoimax (License): Change to LGPL.
16062         * modules/strtoumax (License): Likewise.
16063         With permission from Jim Meyering, Paul Eggert:
16064         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
16065         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
16066
16067         getgroups: Relicense under LGPL.
16068         * modules/getgroups (License): Change to LGPL.
16069         With permission from Jim Meyering, Paul Eggert, Eric Blake:
16070         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16071         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16072         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16073
16074         nanosleep: Relicense under LGPL.
16075         * modules/nanosleep (License): Change to LGPL.
16076         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
16077         Haible:
16078         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
16079         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
16080         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16081         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16082
16083         futimens: Relicense under LGPL.
16084         * modules/futimens (License): Change to LGPL.
16085         With permission from Eric Blake:
16086         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16087
16088         fflush: Relicense under LGPL.
16089         * modules/fflush (License): Change to LGPL.
16090         With permission from Eric Blake, Bruno Haible, Jim Meyering:
16091         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
16092         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
16093         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
16094
16095         tmpfile: Relicense under LGPL.
16096         * modules/tmpfile (License): Change to LGPL.
16097         With permission from Ben Pfaff:
16098         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16099
16100         isfinite: Relicense under LGPL.
16101         * modules/isfinite (License): Change to LGPL.
16102         With permission from Ben Pfaff, Bruno Haible:
16103         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
16104         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
16105
16106         acosl..tanl: Relicense under LGPL.
16107         * modules/acosl (License): Change to LGPL.
16108         * modules/asinl (License): Likewise.
16109         * modules/atanl (License): Likewise.
16110         * modules/cosl (License): Likewise.
16111         * modules/expl (License): Likewise.
16112         * modules/logl (License): Likewise.
16113         * modules/sinl (License): Likewise.
16114         * modules/sqrtl (License): Likewise.
16115         * modules/tanl (License): Likewise.
16116         Source code originally from glibc and Paolo Bonzini. Agreements:
16117         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
16118         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
16119
16120 2011-05-05  Bruno Haible  <bruno@clisp.org>
16121
16122         signal: Define sighandler_t.
16123         * lib/signal.in.h (sighandler_t): New type.
16124         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
16125         whether sighandler_t is defined.
16126         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
16127         * modules/signal (Depends-on): Add extensions.
16128         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
16129         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
16130         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
16131
16132 2011-05-05  Eric Blake  <eblake@redhat.com>
16133
16134         maint: remove useless REPLACE_*_H macros
16135         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
16136         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
16137         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
16138         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
16139         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
16140         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
16141         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
16142         * m4/btowc.m4: Update callers.
16143         * m4/dirfd.m4: Likewise.
16144         * m4/duplocale.m4: Likewise.
16145         * m4/fchdir.m4: Likewise.
16146         * m4/fdopendir.m4: Likewise.
16147         * m4/inet_ntop.m4: Likewise.
16148         * m4/inet_pton.m4: Likewise.
16149         * m4/ioctl.m4: Likewise.
16150         * m4/mbrlen.m4: Likewise.
16151         * m4/mbrtowc.m4: Likewise.
16152         * m4/mbsinit.m4: Likewise.
16153         * m4/mbsnrtowcs.m4: Likewise.
16154         * m4/mbsrtowcs.m4: Likewise.
16155         * m4/poll.m4: Likewise.
16156         * m4/setlocale.m4: Likewise.
16157         * m4/wcrtomb.m4: Likewise.
16158         * m4/wcsnrtombs.m4: Likewise.
16159         * m4/wcsrtombs.m4: Likewise.
16160         * m4/wctob.m4: Likewise.
16161         * m4/wcwidth.m4: Likewise.
16162         * modules/posix_spawn: Likewise.
16163         * modules/posix_spawn_file_actions_addclose: Likewise.
16164         * modules/posix_spawn_file_actions_adddup2: Likewise.
16165         * modules/posix_spawn_file_actions_addopen: Likewise.
16166         * modules/posix_spawn_file_actions_destroy: Likewise.
16167         * modules/posix_spawn_file_actions_init: Likewise.
16168         * modules/posix_spawnattr_destroy: Likewise.
16169         * modules/posix_spawnattr_getflags: Likewise.
16170         * modules/posix_spawnattr_getpgroup: Likewise.
16171         * modules/posix_spawnattr_getschedparam: Likewise.
16172         * modules/posix_spawnattr_getschedpolicy: Likewise.
16173         * modules/posix_spawnattr_getsigdefault: Likewise.
16174         * modules/posix_spawnattr_getsigmask: Likewise.
16175         * modules/posix_spawnattr_init: Likewise.
16176         * modules/posix_spawnattr_setflags: Likewise.
16177         * modules/posix_spawnattr_setpgroup: Likewise.
16178         * modules/posix_spawnattr_setschedparam: Likewise.
16179         * modules/posix_spawnattr_setschedpolicy: Likewise.
16180         * modules/posix_spawnattr_setsigdefault: Likewise.
16181         * modules/posix_spawnattr_setsigmask: Likewise.
16182         * modules/posix_spawnp: Likewise.
16183
16184 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
16185
16186         Add option to do-release-commit-and-tag to specify branch.
16187         * build-aux/do-release-commit-and-tag: Add --branch.
16188
16189 2011-05-03  Bruno Haible  <bruno@clisp.org>
16190
16191         Avoid unnecessary compilation units, through conditional dependencies.
16192         * modules/accept (Depends-on): Add conditions to the dependencies.
16193         * modules/acosl (Depends-on): Likewise.
16194         * modules/argz (Depends-on): Likewise.
16195         * modules/asinl (Depends-on): Likewise.
16196         * modules/atanl (Depends-on): Likewise.
16197         * modules/atoll (Depends-on): Likewise.
16198         * modules/bind (Depends-on): Likewise.
16199         * modules/btowc (Depends-on): Likewise.
16200         * modules/canonicalize-lgpl (Depends-on): Likewise.
16201         * modules/ceil (Depends-on): Likewise.
16202         * modules/ceilf (Depends-on): Likewise.
16203         * modules/ceill (Depends-on): Likewise.
16204         * modules/chdir-long (Depends-on): Likewise.
16205         * modules/chown (Depends-on): Likewise.
16206         * modules/close (Depends-on): Likewise.
16207         * modules/connect (Depends-on): Likewise.
16208         * modules/cosl (Depends-on): Likewise.
16209         * modules/dirfd (Depends-on): Likewise.
16210         * modules/dprintf (Depends-on): Likewise.
16211         * modules/dprintf-posix (Depends-on): Likewise.
16212         * modules/error (Depends-on): Likewise.
16213         * modules/euidaccess (Depends-on): Likewise.
16214         * modules/expl (Depends-on): Likewise.
16215         * modules/faccessat (Depends-on): Likewise.
16216         * modules/fchdir (Depends-on): Likewise.
16217         * modules/fclose (Depends-on): Likewise.
16218         * modules/fcntl (Depends-on): Likewise.
16219         * modules/fdopendir (Depends-on): Likewise.
16220         * modules/fflush (Depends-on): Likewise.
16221         * modules/floor (Depends-on): Likewise.
16222         * modules/floorf (Depends-on): Likewise.
16223         * modules/floorl (Depends-on): Likewise.
16224         * modules/fnmatch (Depends-on): Likewise.
16225         * modules/fopen (Depends-on): Likewise.
16226         * modules/fprintf-posix (Depends-on): Likewise.
16227         * modules/frexp (Depends-on): Likewise.
16228         * modules/frexp-nolibm (Depends-on): Likewise.
16229         * modules/frexpl (Depends-on): Likewise.
16230         * modules/frexpl-nolibm (Depends-on): Likewise.
16231         * modules/fseek (Depends-on): Likewise.
16232         * modules/fsusage (Depends-on): Likewise.
16233         * modules/ftell (Depends-on): Likewise.
16234         * modules/ftello (Depends-on): Likewise.
16235         * modules/futimens (Depends-on): Likewise.
16236         * modules/getcwd (Depends-on): Likewise.
16237         * modules/getcwd-lgpl (Depends-on): Likewise.
16238         * modules/getdelim (Depends-on): Likewise.
16239         * modules/getdomainname (Depends-on): Likewise.
16240         * modules/getgroups (Depends-on): Likewise.
16241         * modules/gethostname (Depends-on): Likewise.
16242         * modules/getline (Depends-on): Likewise.
16243         * modules/getlogin_r (Depends-on): Likewise.
16244         * modules/getopt-posix (Depends-on): Likewise.
16245         * modules/getpeername (Depends-on): Likewise.
16246         * modules/getsockname (Depends-on): Likewise.
16247         * modules/getsockopt (Depends-on): Likewise.
16248         * modules/getsubopt (Depends-on): Likewise.
16249         * modules/getusershell (Depends-on): Likewise.
16250         * modules/glob (Depends-on): Likewise.
16251         * modules/grantpt (Depends-on): Likewise.
16252         * modules/iconv_open (Depends-on): Likewise.
16253         * modules/iconv_open-utf (Depends-on): Likewise.
16254         * modules/inet_ntop (Depends-on): Likewise.
16255         * modules/inet_pton (Depends-on): Likewise.
16256         * modules/ioctl (Depends-on): Likewise.
16257         * modules/isapipe (Depends-on): Likewise.
16258         * modules/isfinite (Depends-on): Likewise.
16259         * modules/isinf (Depends-on): Likewise.
16260         * modules/lchown (Depends-on): Likewise.
16261         * modules/ldexpl (Depends-on): Likewise.
16262         * modules/link (Depends-on): Likewise.
16263         * modules/linkat (Depends-on): Likewise.
16264         * modules/listen (Depends-on): Likewise.
16265         * modules/logl (Depends-on): Likewise.
16266         * modules/lstat (Depends-on): Likewise.
16267         * modules/mbrlen (Depends-on): Likewise.
16268         * modules/mbrtowc (Depends-on): Likewise.
16269         * modules/mbsinit (Depends-on): Likewise.
16270         * modules/mbsnrtowcs (Depends-on): Likewise.
16271         * modules/mbsrtowcs (Depends-on): Likewise.
16272         * modules/mbtowc (Depends-on): Likewise.
16273         * modules/memcmp (Depends-on): Likewise.
16274         * modules/mkdir (Depends-on): Likewise.
16275         * modules/mkdtemp (Depends-on): Likewise.
16276         * modules/mkfifo (Depends-on): Likewise.
16277         * modules/mkfifoat (Depends-on): Likewise.
16278         * modules/mknod (Depends-on): Likewise.
16279         * modules/mkostemp (Depends-on): Likewise.
16280         * modules/mkostemps (Depends-on): Likewise.
16281         * modules/mkstemp (Depends-on): Likewise.
16282         * modules/mkstemps (Depends-on): Likewise.
16283         * modules/mktime (Depends-on): Likewise.
16284         * modules/nanosleep (Depends-on): Likewise.
16285         * modules/open (Depends-on): Likewise.
16286         * modules/openat (Depends-on): Likewise.
16287         * modules/perror (Depends-on): Likewise.
16288         * modules/poll (Depends-on): Likewise.
16289         * modules/popen (Depends-on): Likewise.
16290         * modules/posix_spawn (Depends-on): Likewise.
16291         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
16292         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16293         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16294         * modules/posix_spawnp (Depends-on): Likewise.
16295         * modules/pread (Depends-on): Likewise.
16296         * modules/printf-posix (Depends-on): Likewise.
16297         * modules/ptsname (Depends-on): Likewise.
16298         * modules/putenv (Depends-on): Likewise.
16299         * modules/pwrite (Depends-on): Likewise.
16300         * modules/readline (Depends-on): Likewise.
16301         * modules/readlink (Depends-on): Likewise.
16302         * modules/readlinkat (Depends-on): Likewise.
16303         * modules/recv (Depends-on): Likewise.
16304         * modules/recvfrom (Depends-on): Likewise.
16305         * modules/regex (Depends-on): Likewise.
16306         * modules/remove (Depends-on): Likewise.
16307         * modules/rename (Depends-on): Likewise.
16308         * modules/renameat (Depends-on): Likewise.
16309         * modules/rmdir (Depends-on): Likewise.
16310         * modules/round (Depends-on): Likewise.
16311         * modules/roundf (Depends-on): Likewise.
16312         * modules/roundl (Depends-on): Likewise.
16313         * modules/rpmatch (Depends-on): Likewise.
16314         * modules/select (Depends-on): Likewise.
16315         * modules/send (Depends-on): Likewise.
16316         * modules/sendto (Depends-on): Likewise.
16317         * modules/setenv (Depends-on): Likewise.
16318         * modules/setlocale (Depends-on): Likewise.
16319         * modules/setsockopt (Depends-on): Likewise.
16320         * modules/shutdown (Depends-on): Likewise.
16321         * modules/sigaction (Depends-on): Likewise.
16322         * modules/signbit (Depends-on): Likewise.
16323         * modules/sigprocmask (Depends-on): Likewise.
16324         * modules/sinl (Depends-on): Likewise.
16325         * modules/sleep (Depends-on): Likewise.
16326         * modules/snprintf (Depends-on): Likewise.
16327         * modules/snprintf-posix (Depends-on): Likewise.
16328         * modules/socket (Depends-on): Likewise.
16329         * modules/sprintf-posix (Depends-on): Likewise.
16330         * modules/sqrtl (Depends-on): Likewise.
16331         * modules/stat (Depends-on): Likewise.
16332         * modules/strchrnul (Depends-on): Likewise.
16333         * modules/strdup-posix (Depends-on): Likewise.
16334         * modules/strerror (Depends-on): Likewise.
16335         * modules/strerror_r-posix (Depends-on): Likewise.
16336         * modules/strndup (Depends-on): Likewise.
16337         * modules/strnlen (Depends-on): Likewise.
16338         * modules/strptime (Depends-on): Likewise.
16339         * modules/strsep (Depends-on): Likewise.
16340         * modules/strsignal (Depends-on): Likewise.
16341         * modules/strstr-simple (Depends-on): Likewise.
16342         * modules/strtod (Depends-on): Likewise.
16343         * modules/strtoimax (Depends-on): Likewise.
16344         * modules/strtok_r (Depends-on): Likewise.
16345         * modules/strtoumax (Depends-on): Likewise.
16346         * modules/symlink (Depends-on): Likewise.
16347         * modules/symlinkat (Depends-on): Likewise.
16348         * modules/tanl (Depends-on): Likewise.
16349         * modules/tcgetsid (Depends-on): Likewise.
16350         * modules/tmpfile (Depends-on): Likewise.
16351         * modules/trunc (Depends-on): Likewise.
16352         * modules/truncf (Depends-on): Likewise.
16353         * modules/truncl (Depends-on): Likewise.
16354         * modules/uname (Depends-on): Likewise.
16355         * modules/unlink (Depends-on): Likewise.
16356         * modules/unlockpt (Depends-on): Likewise.
16357         * modules/unsetenv (Depends-on): Likewise.
16358         * modules/usleep (Depends-on): Likewise.
16359         * modules/utimensat (Depends-on): Likewise.
16360         * modules/vasprintf (Depends-on): Likewise.
16361         * modules/vdprintf (Depends-on): Likewise.
16362         * modules/vdprintf-posix (Depends-on): Likewise.
16363         * modules/vfprintf-posix (Depends-on): Likewise.
16364         * modules/vprintf-posix (Depends-on): Likewise.
16365         * modules/vsnprintf (Depends-on): Likewise.
16366         * modules/vsnprintf-posix (Depends-on): Likewise.
16367         * modules/vsprintf-posix (Depends-on): Likewise.
16368         * modules/wcrtomb (Depends-on): Likewise.
16369         * modules/wcscasecmp (Depends-on): Likewise.
16370         * modules/wcscspn (Depends-on): Likewise.
16371         * modules/wcsdup (Depends-on): Likewise.
16372         * modules/wcsncasecmp (Depends-on): Likewise.
16373         * modules/wcsnrtombs (Depends-on): Likewise.
16374         * modules/wcspbrk (Depends-on): Likewise.
16375         * modules/wcsrtombs (Depends-on): Likewise.
16376         * modules/wcsspn (Depends-on): Likewise.
16377         * modules/wcsstr (Depends-on): Likewise.
16378         * modules/wcstok (Depends-on): Likewise.
16379         * modules/wcswidth (Depends-on): Likewise.
16380         * modules/wctob (Depends-on): Likewise.
16381         * modules/wctomb (Depends-on): Likewise.
16382         * modules/wctype (Depends-on): Likewise.
16383         * modules/wcwidth (Depends-on): Likewise.
16384         * modules/write (Depends-on): Likewise.
16385
16386 2011-05-03  Bruno Haible  <bruno@clisp.org>
16387
16388         Support for conditional dependencies.
16389         * doc/gnulib.texi (Module description): Document the syntax of
16390         conditional dependencies.
16391         * gnulib-tool: New option --conditional-dependencies.
16392         (func_usage): Document it.
16393         (cond_dependencies): New variable.
16394         (func_get_automake_snippet_conditional,
16395         func_get_automake_snippet_unconditional): New functions, extracted from
16396         func_get_automake_snippet.
16397         (func_get_automake_snippet): Use them.
16398         (sed_first_32_chars): New variable.
16399         (func_module_shellfunc_name): New function.
16400         (func_module_shellvar_name): New function.
16401         (func_module_conditional_name): New function.
16402         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
16403         func_cond_module_condition): New functions.
16404         (func_modules_transitive_closure): Add support for conditional
16405         dependencies.
16406         (func_emit_lib_Makefile_am): For a conditional module, enclose the
16407         conditional automake snippet in an automake conditional.
16408         (func_emit_autoconf_snippets): Emit shell functions that contain the
16409         code for conditional modules.
16410         (func_import, func_create_testdir): Update specification.
16411
16412 2011-05-03  Eric Blake  <eblake@redhat.com>
16413
16414         test-getaddrinfo: report error information
16415         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
16416
16417 2011-05-03  Jim Meyering  <meyering@redhat.com>
16418
16419         bootstrap: avoid build failure when $GZIP is set
16420         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
16421         program name.  If defined at all, it is supposed to list gzip options.
16422         Reported by Alan Curry in http://debbugs.gnu.org/8609
16423
16424 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
16425
16426         readme-release: new module with release instructions
16427         * modules/readme-release: New module.
16428         * top/README-release: New file, from coreutils, grep, diffutils.
16429         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16430
16431 2011-05-02  Eric Blake  <eblake@redhat.com>
16432
16433         fflush: also replace fclose when fixing fflush
16434         * modules/fflush (Depends-on): Add fclose.
16435         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
16436         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
16437         memstreams with no backing fd.
16438         * doc/posix-functions/fclose.texi (fclose): Document the use of
16439         fflush module to fix the bug.
16440         * tests/test-fclose.c (main): Relax test when fclose is used in
16441         isolation.
16442
16443         fclose: add some tests
16444         * modules/fclose-tests: New test module.
16445         * tests/test-fclose.c: New file.
16446         * doc/posix-functions/fclose.texi (fclose): Document the bug.
16447
16448         fclose: reduced dependencies
16449         * modules/fclose (Depends-on): Switch from fflush/fseeko to
16450         simpler lseek.
16451         * lib/fclose.c (rpl_fclose): Likewise.
16452         Reported by Simon Josefsson.
16453
16454         exit: drop remaining clients
16455         * modules/argmatch (Depends-on): Replace exit with stdlib.
16456         * modules/copy-file (Depends-on): Likewise.
16457         * modules/execute (Depends-on): Likewise.
16458         * modules/exitfail (Depends-on): Likewise.
16459         * modules/obstack (Depends-on): Likewise.
16460         * modules/pagealign_alloc (Depends-on): Likewise.
16461         * modules/pipe-filter-gi (Depends-on): Likewise.
16462         * modules/pipe-filter-ii (Depends-on): Likewise.
16463         * modules/savewd (Depends-on): Likewise.
16464         * modules/spawn-pipe (Depends-on): Likewise.
16465         * modules/wait-process (Depends-on): Likewise.
16466         * modules/xsetenv (Depends-on): Likewise.
16467         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
16468         * modules/git-merge-changelog (Depends-on): Likewise.
16469         * modules/long-options (Depends-on): Likewise.
16470         * modules/pt_chown (Depends-on): Likewise.
16471         * modules/sysexits (Depends-on): Likewise.
16472
16473         freading: relax license from LGPLv3+ to LGPLv2+
16474         * modules/freading (License): Relax LGPL version.
16475
16476 2011-05-02  Bruno Haible  <bruno@clisp.org>
16477
16478         fchdir: Remove unused dependencies.
16479         * modules/fchdir (Depends-on): Remove include_next.
16480
16481 2011-05-02  Bruno Haible  <bruno@clisp.org>
16482
16483         gnulib-tool: Refactor.
16484         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
16485         from func_emit_autoconf_snippets.
16486         (func_emit_autoconf_snippets): Use it.
16487
16488 2011-05-02  Simon Josefsson  <simon@josefsson.org>
16489
16490         * NEWS: Document removal of 'exit'.
16491         * modules/exit: Remove file.
16492
16493 2011-05-01  Bruno Haible  <bruno@clisp.org>
16494
16495         Update DEPENDENCIES.
16496         * DEPENDENCIES (gettext): Recommend the newest release.
16497         Reported by Simon Josefsson.
16498
16499 2011-05-01  Bruno Haible  <bruno@clisp.org>
16500
16501         gnulib-tool: Reduce code duplication.
16502         * gnulib-tool (func_emit_autoconf_snippets): New function.
16503         (func_import, func_create_testdir): Use it.
16504
16505 2011-04-30  Eric Blake  <eblake@redhat.com>
16506
16507         fclose: don't fail on non-seekable input stream
16508         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
16509         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
16510         since fflush is allowed to fail in that case.
16511
16512 2011-04-30  Bruno Haible  <bruno@clisp.org>
16513
16514         dup3: cleanup
16515         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
16516
16517 2011-04-30  Bruno Haible  <bruno@clisp.org>
16518
16519         netdb: Make it work in C++ mode.
16520         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
16521         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
16522         module.
16523         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
16524         gl_MODULE_INDICATOR_FOR_TESTS.
16525         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
16526         * modules/netdb-c++-tests: New file.
16527         * tests/test-netdb-c++.cc: New file.
16528
16529 2011-04-30  Bruno Haible  <bruno@clisp.org>
16530
16531         New modules 'vfscanf', 'vscanf'.
16532         * modules/vfscanf: New file.
16533         * modules/vscanf: New file.
16534         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
16535         here.
16536         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
16537         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
16538
16539 2011-04-30  Bruno Haible  <bruno@clisp.org>
16540
16541         passfd: Add comments.
16542         * lib/passfd.c: Add comments about platforms.
16543
16544 2011-04-30  Bruno Haible  <bruno@clisp.org>
16545
16546         sys_uio: Make <sys/uio.h> self-contained.
16547         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
16548         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
16549
16550 2011-04-30  Bruno Haible  <bruno@clisp.org>
16551
16552         sys_socket: Ensure 'struct iovec' definition.
16553         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
16554         <sys/socket.h>.
16555         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
16556
16557 2011-04-30  Bruno Haible  <bruno@clisp.org>
16558
16559         sys_uio: Protect definition of 'struct iovec'.
16560         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
16561         it as a C struct.
16562
16563 2011-04-30  Bruno Haible  <bruno@clisp.org>
16564
16565         manywarnings: fix indentation
16566         * m4/manywarnings.m4: Indent by 2 spaces consistently.
16567
16568 2011-04-30  Pádraig Brady <P@draigBrady.com>
16569
16570         manywarnings: add -Wno-missing-field-initializers if needed.
16571         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
16572         option if it's needed to allow initialization with { 0, }
16573
16574 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
16575
16576         announce-gen: cosmetic improvement
16577         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
16578
16579 2011-04-29  Jim Meyering  <meyering@redhat.com>
16580
16581         vc-list-files: indent with spaces, not TABs
16582         * build-aux/vc-list-files: Convert leading TABs to spaces,
16583         to match the style of most other files in gnulib.
16584
16585         announce-gen: indent with spaces, not TABs
16586         * build-aux/announce-gen: Convert all TABs to spaces, to match
16587         the style of most other files in gnulib.
16588
16589 2011-04-29  Eric Blake  <eblake@redhat.com>
16590
16591         quotearg: avoid uninitialized variable use
16592         * lib/quotearg.c (quoting_options_from_style): Initialize
16593         remaining fields, and ensure that custom styles are only used via
16594         quoting_options rather than quoting_style.
16595
16596 2011-04-29  Jim Meyering  <meyering@redhat.com>
16597
16598         maint.mk: remove unused VC-tag variable
16599         * top/maint.mk (VC-tag): Remove unused variable.
16600
16601 2011-04-29  Bruno Haible  <bruno@clisp.org>
16602
16603         netdb: fix gai_strerror replacements
16604         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
16605         * modules/netdb: Substitute it.
16606
16607 2011-04-29  Jim Meyering  <meyering@redhat.com>
16608
16609         test-getcwd.c: avoid new set-but-not-used warning
16610         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
16611         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
16612         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
16613         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
16614
16615         test-hash.c: avoid a new shadowing warning
16616         * tests/test-hash.c (main): Don't shadow "dup".
16617
16618 2011-04-28  Eric Blake  <eblake@redhat.com>
16619
16620         getaddrinfo: fix gai_strerror signature
16621         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
16622         and work around mingw with UNICODE defined.
16623         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
16624         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
16625         * modules/netdb (Makefile.am): Substitute it.
16626         * lib/netdb.in.h (gai_strerror): Declare replacement.
16627         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
16628         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
16629         the fix.
16630
16631         getsockopt: avoid compiler warning
16632         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
16633         Reported by Matthias Bolte.
16634
16635         tests: drop unused link dependency
16636         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
16637         * modules/dirent-safer-tests (Makefile.am): Likewise.
16638         * modules/fdopendir-tests (Makefile.am): Likewise.
16639         * modules/mkfifoat-tests (Makefile.am): Likewise.
16640         * modules/openat-safer-tests (Makefile.am): Likewise.
16641         * modules/openat-tests (Makefile.am): Likewise.
16642         * modules/readlinkat-tests (Makefile.am): Likewise.
16643         * modules/symlinkat-tests (Makefile.am): Likewise.
16644         * modules/linkat-tests (Makefile.am): Likewise.
16645         (Depends-on): Switch to filenamecat-lgpl.
16646         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
16647         LIBINTL.
16648         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
16649         * tests/test-linkat.c (main): Don't require xalloc.
16650
16651         hash, mgetgroups: drop xalloc dependency
16652         * lib/hash.c (includes): Adjust includes.
16653         * lib/mgetgroups.c (includes): Likewise.
16654         (xgetgroups): Move...
16655         * lib/xgetgroups.c: ...to new file.
16656         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
16657         * modules/xgetgroups: New file, split from...
16658         * modules/mgetgroups: ...here.
16659         (Depends-on): Add xalloc-oversized.
16660         * modules/hash (Depends-on): Likewise.
16661         * modules/hash-tests (Depends-on): Drop xalloc.
16662         (test_hash_LDADD): Drop unused library.
16663         * tests/test-hash.c (main): Break xalloc dependency.
16664         (includes): Drop unused include.
16665
16666         xalloc-oversized: new module
16667         * modules/xalloc-oversized: New module.
16668         * modules/xalloc (Depends-on): Add it.
16669         * lib/xalloc.h (xalloc_oversized): Move...
16670         * lib/xalloc-oversized.h: ...into new file.
16671
16672         utimecmp: drop dependency on xmalloc
16673         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
16674         due to memory pressure.
16675         * modules/utimecmp (Depends-on): Drop xalloc.
16676
16677 2011-04-27  Eric Blake  <eblake@redhat.com>
16678
16679         getcwd: fix mingw bugs
16680         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
16681         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
16682         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
16683
16684 2011-04-27  Bruno Haible  <bruno@clisp.org>
16685
16686         mkstemps: Ensure declaration on MacOS X 10.5.
16687         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
16688         * doc/glibc-functions/mkstemps.texi: Document header file problem on
16689         MacOS X.
16690
16691 2011-04-27  Bruno Haible  <bruno@clisp.org>
16692
16693         mkstemp: More documentation.
16694         * doc/posix-functions/mkstemp.texi: Document header file problem on
16695         MacOS X.
16696
16697 2011-04-27  Bruno Haible  <bruno@clisp.org>
16698
16699         mkstemp: Tweak configure message when cross-compiling.
16700         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
16701         result as a guess.
16702
16703 2011-04-27  Bruno Haible  <bruno@clisp.org>
16704
16705         clean-temp: Clarify what it does.
16706         * lib/clean-temp.h: Add more comments.
16707         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
16708         module.
16709         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
16710         * doc/glibc-functions/mkstemps.texi: Likewise.
16711         * doc/glibc-functions/mkostemps.texi: Likewise.
16712
16713 2011-04-27  Eric Blake  <eblake@redhat.com>
16714
16715         fchdir: avoid extra chdir and fix test
16716         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
16717         getcwd-lgpl.
16718         * lib/fchdir.c (get_name): Any absolute name will do; it does not
16719         have to be canonical.
16720         (canonicalize_file_name): Drop unused macro.
16721         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
16722
16723         filenamecat-lgpl: fix licence
16724         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
16725         when it was first created.
16726
16727         linkat, renameat: add missing dependency
16728         * modules/linkat (Depends-on): Require getcwd-lgpl.
16729         * modules/renameat (Depends-on): Likewise.
16730
16731         tests: reduce dependencies
16732         * tests/test-linkat.c (main): Use lighter-weight getcwd.
16733         * tests/test-renameat.c (main): Likewise.
16734         * modules/linkat-tests (Depends-on): Relax dependency.
16735         * modules/renameat-tests (Depends-on): Likewise.
16736         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
16737         dependency explicit.
16738
16739         save-cwd: reduce default dependency
16740         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
16741         * lib/save-cwd.c: Update comments.
16742         * NEWS: Document the semantic change.
16743
16744         getcwd: enhance tests
16745         * tests/test-getcwd-lgpl.c: New file, taken from...
16746         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
16747         repeat long path stress tests from m4 probe.
16748         * modules/getcwd-lgpl-tests: New module.
16749         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
16750         * m4/getcwd-abort-bug.m4: Update comment.
16751         * m4/getcwd-path-max.m4: Likewise.
16752
16753         getcwd-lgpl: new module
16754         * modules/getcwd-lgpl: New module.
16755         * lib/getcwd-lgpl.c: New file.
16756         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16757         * MODULES.html.sh (lacking POSIX:2008): Likewise.
16758         * modules/getcwd (configure.ac): Set C witness.
16759         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
16760
16761         getcwd: tweak comments
16762         * m4/getcwd-abort-bug.m4: Fix comments.
16763         * m4/getcwd-path-max.m4: Likewise.
16764         * m4/getcwd.m4: Likewise.
16765
16766 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16767         and Eric Blake  <eblake@redhat.com>
16768
16769         mkstemp: replace if system version uses wrong permissions
16770         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
16771         read/write mode bits set in file created by mkstemp.
16772         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
16773
16774 2011-04-27  Eric Blake  <eblake@redhat.com>
16775
16776         passfd: avoid compiler warning
16777         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
16778         Reported by Laine Stump.
16779
16780 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
16781
16782         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
16783         required by the NetBSD (and perhaps other 4.4BSD derived) join.
16784
16785 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16786         and Eric Blake  <eblake@redhat.com>
16787
16788         mkstemp: mention clean-temp module
16789         * lib/mkstemp.c: Add comment.
16790         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
16791
16792 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
16793
16794         inttypes: also provide default values for 32-bit tests
16795         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
16796         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
16797
16798 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
16799
16800         strtoumax: remove dependency on strtoimax
16801         This is like the strtoull change of yesterday.
16802         * modules/strtoumax (Files): Add lib/strtoimax.c.
16803         (Depends-on): Remove strtoimax and add verify.
16804
16805         inttypes-incomplete: new module
16806         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
16807         all but the PRI* and SCN* parts of gl_INTTYPES_H.
16808         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
16809         of gl_INTTYPES_H.
16810         (gl_INTTYPES_H): Rewrite in terms of these new macros.
16811         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
16812         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
16813         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
16814         * modules/strtoumax, modules/xstrtol (Depends-on):
16815         Depend on inttypes-incomplete, not inttypes.
16816         * modules/inttypes-incomplete: New module, containing the contents
16817         of the old modules/inttypes module, except that the Files: section
16818         omits m4/inttypes-pri.m4, and the configure.ac section invokes
16819         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
16820         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
16821         (Depends-on): Depend only on inttypes-incomplete.
16822         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
16823
16824         inttypes: omit now-redundant strtoimax and strtoumax work
16825         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
16826         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
16827
16828         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
16829         This supports apps that need pointers to strtoimax and strtoumax,
16830         and ports to HP-UX 11.00 64.bit, which has macros that expand to
16831         nonexistent functions.  See
16832         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
16833         et seq.
16834         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
16835         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
16836         a macro.
16837         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16838
16839 2011-04-25  Simon Josefsson  <simon@josefsson.org>
16840
16841         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
16842
16843 2011-04-25  Bruno Haible  <bruno@clisp.org>
16844
16845         strtol, strtoul: Mark modules as obsolete.
16846         * modules/strtol (Status, Notice): New sections.
16847         * modules/strtoul (Status, Notice): New sections.
16848
16849 2011-04-25  Bruno Haible  <bruno@clisp.org>
16850
16851         strtod: Remove check for strtod, unless supporting old platforms.
16852         * modules/strtod-obsolete: New file.
16853         * m4/strtod-obsolete.m4: New file.
16854         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
16855         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
16856         * modules/strtod (Depends-on): Add strtod-obsolete.
16857         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
16858
16859 2011-04-25  Bruno Haible  <bruno@clisp.org>
16860
16861         strcase: Make module obsolete.
16862         * modules/strcase (Status, Notice): New sections.
16863
16864 2011-04-25  Bruno Haible  <bruno@clisp.org>
16865
16866         dup2: Remove check for dup2, unless supporting old obsolete platforms.
16867         * modules/dup2-obsolete: New file.
16868         * m4/dup2-obsolete.m4: New file.
16869         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
16870         gl_FUNC_DUP2_OBSOLETE is not also defined.
16871         * modules/dup2 (Depends-on): Add dup2-obsolete.
16872         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
16873
16874 2011-04-25  Bruno Haible  <bruno@clisp.org>
16875
16876         strnlen: Avoid memchr related link error on old obsolete platforms.
16877         * modules/memchr-obsolete: New file.
16878         * m4/memchr-obsolete.m4: New file.
16879         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
16880         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
16881         * modules/memchr (Depends-on): Add memchr-obsolete.
16882         * modules/strnlen (Depends-on): Likewise.
16883         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
16884
16885 2011-04-25  Jim Meyering  <meyering@redhat.com>
16886
16887         maint.mk: makefile_at_at_check extend and clean up
16888         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
16889         in addition to */Makefile.am.
16890         Exempt legitimate uses of @VAR@ notation, e.g.,
16891         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
16892         Remove obsolete coreutils-specific comment.
16893         Prompted by discussion here:
16894         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
16895
16896 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
16897
16898         strtoul: remove dependency on strtol
16899         This is so that 'configure' need not check for strtol merely because
16900         the application needs strtoul.
16901         * modules/strtoul (Files): Add lib/strtol.c.
16902         (Depends-on): Remove strtol.
16903
16904         strtoull: remove dependency on strtoul
16905         This is like the strtoll change.
16906         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
16907         (Depends-on): Remove strtoul.
16908
16909         strtoll: remove dependency on strtol
16910         This is so that 'configure' need not check for strtol merely because
16911         the application needs strtoll.
16912         * modules/strtoll (Files): Add lib/strtol.c.
16913         (Depends-on): Remove strtol.
16914
16915 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16916
16917         inttypes: Move some configure check to module 'imaxdiv'.
16918         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
16919         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
16920         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
16921
16922 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16923
16924         inttypes: Move some configure check to module 'imaxabs'.
16925         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
16926         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
16927         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
16928
16929 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16930
16931         inttypes: Remove configure tests that are not needed since 2009-12-31.
16932         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
16933         gl_cv_header_working_inttypes_h.
16934
16935 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16936
16937         * modules/strnlen (Depends-on): Remove memchr.
16938         The strnlen implementation doesn't need the memchr module's fixes; see
16939         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
16940
16941         strtol: remove dependency on wchar
16942         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
16943         * modules/strtol (Depends-on): Remove wchar.
16944
16945 2011-04-21  Eric Blake  <eblake@redhat.com>
16946
16947         passfd: fix test regression on Linux
16948         * modules/passfd-tests (configure.ac): Correct socketpair check.
16949
16950         passfd: speed up configure and drop unused code
16951         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
16952         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
16953         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
16954         Instead of probing at configure for unix_scm_rights_bsd44_way,
16955         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
16956         check to a struct member probe.
16957         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
16958         (sendfd, recvfd): Update preprocessor checks.
16959         * modules/passfd (Files): Reflect rename, and drop unused file.
16960         (Depends-on): Drop unused dependency.
16961
16962         passfd: allow compilation on mingw
16963         * modules/sys_socket (Depends-on): Add sys_uio.
16964         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
16965         iovec and a minimal struct msghdr.
16966         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
16967         * tests/test-sys_socket.c (main): Enhance test.
16968         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
16969         guaranteed to provide what we need.
16970         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
16971         * modules/passfd-tests (Depends-on): Add sys_wait.
16972         * tests/test-passfd.c (main): Skip test on mingw, for now.
16973         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
16974         partial 'struct msghdr' implementation.
16975
16976         sys_uio: new module
16977         * modules/sys_uio: New module.
16978         * modules/sys_uio-tests: Likewise.
16979         * lib/sys_uio.in.h: New file.
16980         * m4/sys_uio_h.m4: Likewise.
16981         * tests/test-sys_uio.c: Likewise.
16982         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
16983         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
16984
16985 2011-04-20  Jim Meyering  <meyering@redhat.com>
16986
16987         useless-if-before-free: avoid false-positive
16988         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
16989         disjunct so that it too requires a terminating ";".  Without that,
16990         this script would identify as useless one statement from gcc that
16991         was not:
16992           if (aligned_ptr)
16993             free (((void **) aligned_ptr) [-1]);
16994
16995 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
16996
16997         doc: update users.txt.
16998         * users.txt: Add barcode.
16999
17000 2011-04-19  Bruno Haible  <bruno@clisp.org>
17001
17002         ioctl: Remove link dependency on native Windows.
17003         * lib/fd-hook.h: Renamed from lib/close-hook.h.
17004         (gl_close_fn, gl_ioctl_fn): New types.
17005         (struct fd_hook): Renamed from struct close_hook. Change type of
17006         private_close_fn field. Add private_ioctl_fn field.
17007         (close_hook_fn): Add parameter for primary close method.
17008         (execute_close_hooks, execute_all_close_hooks): Likewise.
17009         (ioctl_hook_fn): New type.
17010         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
17011         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17012         argument.
17013         (unregister_fd_hook): Renamed from unregister_close_hook.
17014         * lib/fd-hook.c: Renamed from lib/close-hook.c.
17015         Don't include <unistd.h>.
17016         (close): Remove undef.
17017         (anchor): Update.
17018         (execute_close_hooks): Add argument for primary close method.
17019         (execute_all_close_hooks): Likewise.
17020         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
17021         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
17022         argument. Allow each argument to be NULL.
17023         (unregister_fd_hook): Renamed from unregister_close_hook.
17024         * lib/close.c (rpl_close): Pass 'close' function pointer to
17025         execute_all_close_hooks.
17026         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
17027         (primary_ioctl): New function.
17028         (ioctl): Don't call ioctlsocket here. Instead, call
17029         execute_all_ioctl_hooks.
17030         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
17031         close method.
17032         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
17033         (fd_sockets_hook): Renamed from close_sockets_hook.
17034         (gl_sockets_startup, gl_sockets_cleanup): Update.
17035         * modules/fd-hook: Renamed from modules/close-hook. Update.
17036         * modules/close (Depends-on): Add fd-hook, remove close-hook.
17037         * modules/sockets (Depends-on): Likewise.
17038         * modules/ioctl (Depends-on): Add fd-hook.
17039         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
17040         GNULIB_SOCKET.
17041
17042 2011-04-19  Bruno Haible  <bruno@clisp.org>
17043
17044         Move the support of O_NONBLOCK in open() to the 'open' module.
17045         * modules/nonblocking (Depends-on): Remove 'open'.
17046         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
17047         gl_cv_have_open_O_NONBLOCK.
17048         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
17049         O_NONBLOCK support.
17050         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
17051
17052 2011-04-17  Bruno Haible  <bruno@clisp.org>
17053
17054         pipe2: Simplify code.
17055         * lib/pipe2.c (pipe2): Reduce code duplication.
17056
17057 2011-04-17  Bruno Haible  <bruno@clisp.org>
17058
17059         nonblocking: Add comment.
17060         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
17061
17062 2011-04-17  Bruno Haible  <bruno@clisp.org>
17063
17064         nonblocking: Add tests for sockets.
17065         * tests/test-nonblocking-socket.sh: New file.
17066         * tests/test-nonblocking-socket-main.c: New file.
17067         * tests/test-nonblocking-socket-child.c: New file.
17068         * tests/test-nonblocking-socket.h: New file.
17069         * tests/socket-server.h: New file.
17070         * tests/socket-client.h: New file.
17071         * modules/nonblocking-socket-tests: New file.
17072         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
17073
17074 2011-04-17  Bruno Haible  <bruno@clisp.org>
17075
17076         nonblocking: Add tests for pipes.
17077         * tests/test-nonblocking-pipe.sh: New file.
17078         * tests/test-nonblocking-pipe-main.c: New file.
17079         * tests/test-nonblocking-pipe-child.c: New file.
17080         * tests/test-nonblocking-pipe.h: New file.
17081         * tests/test-nonblocking-writer.h: New file.
17082         * tests/test-nonblocking-reader.h: New file.
17083         * tests/test-nonblocking-misc.h: New file.
17084         * modules/nonblocking-pipe-tests: New file.
17085         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
17086
17087 2011-04-16  Bruno Haible  <bruno@clisp.org>
17088
17089         gettext: Clarify the needed programmer actions.
17090         * modules/gettext (Notice): New field.
17091         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
17092
17093 2011-04-16  Bruno Haible  <bruno@clisp.org>
17094
17095         strchrnul: Tweak last commit.
17096         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
17097         bug.
17098         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
17099         as in _GL_FUNCDECL_SYS.
17100         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
17101         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
17102
17103 2011-04-15  Eric Blake  <eblake@redhat.com>
17104
17105         strchrnul: work around cygwin bug
17106         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
17107         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
17108         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
17109         * modules/string (Makefile.am): Substitute it.
17110         * lib/string.in.h (strchrnul): Use it.
17111
17112 2011-04-15  Bruno Haible  <bruno@clisp.org>
17113
17114         Don't require lib/stdio-write.c when only module 'stdio' is used.
17115         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
17116         invocation.
17117         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
17118
17119 2011-04-14  Bruno Haible  <bruno@clisp.org>
17120
17121         Support non-blocking pipe I/O in read() on native Windows.
17122         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
17123         (read): New declaration.
17124         * lib/read.c: New file.
17125         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
17126         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
17127         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
17128         vscanf): New declarations.
17129         * lib/stdio-read.c: New file.
17130         * m4/read.m4: New file.
17131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
17132         REPLACE_READ.
17133         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
17134         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17135         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
17136         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
17137         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
17138         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17139         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17140         * modules/read: New file.
17141         * modules/nonblocking (Files): Add lib/stdio-read.c.
17142         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
17143         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
17144         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
17145         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
17146         * modules/pread (Depends-on): Add read.
17147         * modules/safe-read (Depends-on): Likewise.
17148         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
17149         gets, scanf, vfscanf, vscanf): Verify signatures.
17150         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
17151         problem with non-blocking pipes.
17152         * doc/posix-functions/fgetc.texi: Likewise.
17153         * doc/posix-functions/fgets.texi: Likewise.
17154         * doc/posix-functions/fread.texi: Likewise.
17155         * doc/posix-functions/fscanf.texi: Likewise.
17156         * doc/posix-functions/getc.texi: Likewise.
17157         * doc/posix-functions/getchar.texi: Likewise.
17158         * doc/posix-functions/gets.texi: Likewise.
17159         * doc/posix-functions/scanf.texi: Likewise.
17160         * doc/posix-functions/vfscanf.texi: Likewise.
17161         * doc/posix-functions/vscanf.texi: Likewise.
17162
17163 2011-04-14  Bruno Haible  <bruno@clisp.org>
17164
17165         Support non-blocking pipe I/O in write() on native Windows.
17166         * lib/write.c (rpl_write): Split a write request that failed merely
17167         because the byte count was larger than the pipe buffer's size.
17168         * doc/posix-functions/write.texi: Mention the problem with large byte
17169         counts.
17170
17171 2011-04-14  Bruno Haible  <bruno@clisp.org>
17172
17173         wchar: Ensure that wchar_t gets defined on uClibc.
17174         * lib/wchar.in.h: On uClibc, include <stddef.h>.
17175         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
17176
17177 2011-04-13  Bruno Haible  <bruno@clisp.org>
17178
17179         safe-write, full-read: Avoid unnecessary compilation units.
17180         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
17181         (Depends-on): Remove safe-read. Add ssize_t.
17182         * modules/full-read (Files): Add lib/full-write.c.
17183         (Depends-on): Add full-write.
17184
17185 2011-04-13  Bruno Haible  <bruno@clisp.org>
17186
17187         Support non-blocking pipe I/O and SIGPIPE in pwrite().
17188         * modules/pwrite (Depends-on): Add 'write'.
17189
17190 2011-04-13  Bruno Haible  <bruno@clisp.org>
17191
17192         Support non-blocking pipe I/O in write() on native Windows.
17193         * lib/unistd.in.h (write): Enable replacement also if
17194         GNULIB_UNISTD_H_NONBLOCKING is 1.
17195         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
17196         (rpl_write): When failing to write on a non-blocking pipe, change
17197         errno from ENOSPC to EAGAIN.
17198         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
17199         putchar, puts, vfprintf, vprintf): Enable replacement also if
17200         GNULIB_STDIO_H_NONBLOCKING is 1.
17201         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
17202         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
17203         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
17204         CALL_WITH_SIGPIPE_EMULATION.
17205         (CALL_WITH_SIGPIPE_EMULATION): Use them.
17206         * m4/nonblocking.m4: New file.
17207         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
17208         for non-blocking I/O support.
17209         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17210         GNULIB_UNISTD_H_NONBLOCKING.
17211         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
17212         required for non-blocking I/O support.
17213         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
17214         * modules/nonblocking (Files): Add m4/nonblocking.m4,
17215         lib/stdio-write.c, m4/asm-underscore.m4.
17216         (Depends-on): Add stdio, unistd.
17217         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
17218         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
17219         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
17220         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
17221         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
17222         problem with non-blocking pipes.
17223         * doc/posix-functions/fputc.texi: Likewise.
17224         * doc/posix-functions/fputs.texi: Likewise.
17225         * doc/posix-functions/fwrite.texi: Likewise.
17226         * doc/posix-functions/printf.texi: Likewise.
17227         * doc/posix-functions/putc.texi: Likewise.
17228         * doc/posix-functions/putchar.texi: Likewise.
17229         * doc/posix-functions/puts.texi: Likewise.
17230         * doc/posix-functions/vfprintf.texi: Likewise.
17231         * doc/posix-functions/vprintf.texi: Likewise.
17232         * doc/posix-functions/write.texi: Likewise.
17233
17234 2011-04-10  Jim Meyering  <meyering@redhat.com>
17235
17236         maint.mk: prohibit doubled words
17237         Detect them also when they're separated by a newline.
17238         There are 3 ways to customize it:
17239           - disable the test on a per file basis, as usual with rules using
17240             $(VC_LIST_EXCEPT)
17241           - replace the default doubled-word-selecting regexp (affects all files)
17242           - ignore a particular file-vs-doubled-word match
17243         I nearly used that last one to ignore the "is is" match in
17244         coreutils' NEWS file, since the text was "ls -is is ..."
17245         To do that, I would have added this line to cfg.mk:
17246           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
17247         but it would have ignored any "is is" match in NEWS.
17248         Low probability, but still...
17249         Instead, I changed the text, slightly:
17250           -  ls -is is now consistent with ls -lis in ignoring values returned
17251           +  "ls -is" is now consistent with ls -lis in ignoring values returned
17252         * top/maint.mk (prohibit_double_word_RE_): Provide default.
17253         (prohibit_doubled_word_): Define.
17254         (sc_prohibit_doubled_word): New rule.
17255         (sc_prohibit_the_the): Remove.  Subsumed by the above.
17256
17257 2011-04-10  Jim Meyering  <meyering@redhat.com>
17258
17259         maint: fix doubled-word typo in comment
17260         * m4/gethostname.m4: s/is is/it is/
17261         * m4/getdomainname.m4: Likewise.
17262
17263 2011-04-10  Jim Meyering  <meyering@redhat.com>
17264
17265         maint: remove doubled word: s/it it/it/
17266         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17267
17268 2011-04-10  Jim Meyering  <meyering@redhat.com>
17269
17270         maint.mk: remove useless semicolon and backslash
17271         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17272         semicolon and backslash.
17273
17274 2011-04-10  Bruno Haible  <bruno@clisp.org>
17275
17276         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17277         * modules/stdint-tests (Depends-on): Add wchar.
17278
17279 2011-04-10  Jim Meyering  <meyering@redhat.com>
17280
17281         maint: remove doubled words in comments, e.g., s/a a/a/
17282         * lib/strptime.c (day_of_the_week): s/the the/the/
17283         * tests/test-chown.h (test_chown): s/a a/a/
17284
17285         test-chown.h: correct a cast
17286         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
17287         when the destination is a stat.st_gid.
17288
17289 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
17290
17291         getaddrinfo: Fix test for sa_len member.
17292         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
17293         include <sys/types.h> before <sys/socket.h>.
17294
17295 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17296
17297         maint: change "can not" to "cannot"
17298         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17299         boundaries.
17300
17301 2011-04-09  Jim Meyering  <meyering@redhat.com>
17302
17303         maint: change "a a" to "a"
17304         * tests/test-lchown.h (test_lchown): s/a a/a/
17305
17306         maint.mk: prohibit \<the the\>
17307         * top/maint.mk (sc_prohibit_the_the): New rule.
17308
17309         maint: fix "the the" in comment
17310         * lib/count-one-bits.h: s/the the/the/
17311
17312         maint: change "can not" to "cannot"
17313         But do not change the occurrences in maintain.texi or in
17314         build-aux/po/Makefile.in.in, which I presume comes from gettext.
17315         * doc/gnulib-tool.texi: s/can not/cannot/
17316         * doc/posix-functions/accept.texi (accept): Likewise.
17317         * doc/posix-functions/socket.texi (socket): Likewise.
17318         * lib/mbrtowc.c: Likewise.
17319
17320         maint.mk: prohibit use of "can not"
17321         * top/maint.mk (sc_prohibit_can_not): New rule.
17322         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
17323
17324 2011-04-09  Bruno Haible  <bruno@clisp.org>
17325
17326         careadlinkat: Guard against misuse of careadlinkatcwd.
17327         * lib/careadlinkat.c: Include <stdlib.h>.
17328         (careadlinkatcwd): Check that the fd argument is as expected.
17329
17330 2011-04-09  Bruno Haible  <bruno@clisp.org>
17331
17332         careadlinkat: Use common coding style.
17333         * lib/careadlinkat.c: Move gnulib includes after system includes.
17334
17335 2011-04-09  Bruno Haible  <bruno@clisp.org>
17336
17337         careadlinkat: Clarify specification.
17338         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
17339         (careadlinkatcwd): Add comment.
17340         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
17341
17342 2011-04-09  Bruno Haible  <bruno@clisp.org>
17343
17344         areadlinkat: Avoid link error on many platforms.
17345         * modules/areadlinkat (Depends-on): Add areadlink.
17346
17347 2011-04-09  Bruno Haible  <bruno@clisp.org>
17348
17349         allocator, careadlinkat: Fix double-inclusion guard.
17350         * lib/allocator.h: Fix double-inclusion guard.
17351         * lib/careadlinkat.h: Likewise.
17352
17353 2011-04-09  Bruno Haible  <bruno@clisp.org>
17354
17355         relocatable-prog-wrapper: Update after module 'areadlink' changed.
17356         * lib/relocwrapper.c: Update dependencies hierarchy.
17357         * build-aux/install-reloc: Update list of files to be compiled.
17358         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
17359         lib/allocator.[hc].
17360
17361 2011-04-08  Eric Blake  <eblake@redhat.com>
17362
17363         strftime: silence gnulib-tool warning
17364         * modules/strftime-tests (Depends-on): Drop automatic dependency.
17365
17366 2011-04-08  Bruno Haible  <bruno@clisp.org>
17367
17368         verify: Fix syntax error with GCC 4.6 in C++ mode.
17369         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
17370         (HAVE_STATIC_ASSERT): New macro.
17371         (verify_true, verify): Use 'static_assert' if it is supported and
17372         '_Static_assert' is not supported.
17373
17374 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
17375
17376         allocator: New module.
17377         * modules/allocator, lib/allocator.c: New files.
17378         * lib/allocator.h (stdlib_allocator): New decl.
17379         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
17380         Remove.  Do not include <stdlib.h>.
17381         (careadlinkat): Use stdlib_allocator instead of rolling our own.
17382         * modules/careadlinkat (Files): Remove lib/allocator.h.
17383         (Depends-on): Add allocator.
17384
17385         stdlib: let modules use system malloc, realloc
17386         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
17387         if !_GL_USE_STDLIB_ALLOC.
17388         (malloc, realloc): Limit this change to a smaller scope.
17389
17390         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
17391         (malloc, realloc): Don't #undef; no longer needed.
17392         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17393         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17394         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17395         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17396         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17397         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17398         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17399         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17400
17401         careadlinkat: rename members to avoid problem
17402         * lib/allocator.h (struct allocator): Rename members from
17403         malloc/realloc to allocate/reallocate, to avoid problems if malloc
17404         and realloc are #define'd.  Reported by Eric Blake in
17405         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
17406         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
17407
17408 2011-04-08  Eric Blake  <eblake@redhat.com>
17409
17410         nonblocking: reduce dependency
17411         * tests/test-nonblocking.c: Only test sockets when in use.
17412         * modules/nonblocking-tests (Depends-on): Drop socket.
17413         (Makefile.am): Link even if sockets are not present.
17414         * modules/pipe2-tests (Makefile.am): Likewise.
17415         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
17416
17417         pipe2: fix O_NONBLOCK support on mingw
17418         * modules/pipe2 (Depends-on): Add nonblocking.
17419         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
17420         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
17421         * tests/test-nonblocking.c (main): Likewise.
17422         * modules/pipe2-tests (Makefile.am): Avoid link failure.
17423
17424         fcntl-h: fix O_ACCMODE on cygwin
17425         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
17426         * lib/fcntl.in.h (O_ACCMODE): Fix it.
17427
17428         pipe-filter: drop O_NONBLOCK workarounds
17429         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
17430         * modules/pipe-filter-ii (Depends-on): Likewise.
17431         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
17432
17433         nonblocking: provide O_NONBLOCK for mingw
17434         * modules/nonblocking (Depends-on): Add open.
17435         (configure.ac): Set new witness macro.
17436         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
17437         * modules/fcntl-h (Makefile.am): Substitute it.
17438         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
17439         nonblocking module is in use.
17440         * lib/nonblocking.c: Adjust portability test.
17441         * lib/open.c (open): Don't let native open see gnulib flag.
17442         * tests/test-fcntl-h.c (main): Enhance test.
17443         * tests/test-open.h (test_open): Likewise.
17444         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
17445
17446         careadlinkat: fix compilation error on mingw
17447         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
17448         within struct allocator.
17449
17450 2011-04-06  Eric Blake  <eblake@redhat.com>
17451
17452         binary-io: relicense under LGPLv2+
17453         * modules/binary-io (License): Relax to LGPLv2+.
17454         Requested for libvirt, and required by pipe2.
17455
17456 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
17457
17458         verify: use _Static_assert if available
17459         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
17460         (verify_true, verify): Use it if available.  This generates better
17461         diagnostics with GCC 4.6.0 and later.
17462
17463 2011-04-05  Bruno Haible  <bruno@clisp.org>
17464
17465         Remove leftover generated .h files after config.status changed.
17466
17467         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
17468         GL_GENERATE_ALLOCA_H.
17469         * modules/alloca-opt (Makefile.am): Remove alloca.h if
17470         GL_GENERATE_ALLOCA_H evaluates to false.
17471
17472         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
17473         GL_GENERATE_ARGZ_H.
17474         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
17475         evaluates to false.
17476
17477         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
17478         GL_GENERATE_BYTESWAP_H.
17479         * modules/byteswap (Makefile.am): Remove byteswap.h if
17480         GL_GENERATE_BYTESWAP_H evaluates to false.
17481
17482         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
17483         GL_GENERATE_ERRNO_H.
17484         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
17485         evaluates to false.
17486
17487         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
17488         GL_GENERATE_FLOAT_H.
17489         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
17490         evaluates to false.
17491
17492         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
17493         GL_GENERATE_FNMATCH_H.
17494         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
17495         GL_GENERATE_FNMATCH_H evaluates to false.
17496
17497         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
17498         GL_GENERATE_GLOB_H.
17499         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
17500         evaluates to false.
17501
17502         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
17503         automake conditional GL_GENERATE_ICONV_H.
17504         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
17505         evaluates to false.
17506
17507         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
17508         GL_GENERATE_NETINET_IN_H.
17509         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
17510         GL_GENERATE_NETINET_IN_H evaluates to false.
17511
17512         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
17513         conditional GL_GENERATE_PTHREAD_H.
17514         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
17515         * modules/pthread (Makefile.am): Remove pthread.h if
17516         GL_GENERATE_PTHREAD_H evaluates to false.
17517
17518         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
17519         GL_GENERATE_SCHED_H.
17520         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
17521         evaluates to false.
17522
17523         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
17524         conditional GL_GENERATE_SELINUX_CONTEXT_H.
17525         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
17526         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
17527
17528         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
17529         GL_GENERATE_STDARG_H.
17530         * modules/stdarg (Makefile.am): Remove stdarg.h if
17531         GL_GENERATE_STDARG_H evaluates to false.
17532
17533         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
17534         GL_GENERATE_STDBOOL_H.
17535         * modules/stdbool (Makefile.am): Remove stdbool.h if
17536         GL_GENERATE_STDBOOL_H evaluates to false.
17537
17538         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
17539         conditional GL_GENERATE_STDDEF_H.
17540         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
17541         * modules/stddef (Makefile.am): Remove stddef.h if
17542         GL_GENERATE_STDDEF_H evaluates to false.
17543
17544         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
17545         GL_GENERATE_STDINT_H.
17546         * modules/stdint (Makefile.am): Remove stdint.h if
17547         GL_GENERATE_STDINT_H evaluates to false.
17548
17549         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
17550         GL_GENERATE_SYSEXITS_H.
17551         * modules/sysexits (Makefile.am): Remove sysexits.h if
17552         GL_GENERATE_SYSEXITS_H evaluates to false.
17553
17554         Reported by Karl Berry and Ralf Wildenhues.
17555
17556 2011-04-05  Bruno Haible  <bruno@clisp.org>
17557
17558         Ensure to rebuild generated .h files when config.status has changed.
17559         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
17560         config.status.
17561         * modules/ctype (Makefile.am): Likewise.
17562         * modules/dirent (Makefile.am): Likewise.
17563         * modules/errno (Makefile.am): Likewise.
17564         * modules/fcntl-h (Makefile.am): Likewise.
17565         * modules/float (Makefile.am): Likewise.
17566         * modules/getopt-posix (Makefile.am): Likewise.
17567         * modules/glob (Makefile.am): Likewise.
17568         * modules/iconv-h (Makefile.am): Likewise.
17569         * modules/inttypes (Makefile.am): Likewise.
17570         * modules/langinfo (Makefile.am): Likewise.
17571         * modules/locale (Makefile.am): Likewise.
17572         * modules/math (Makefile.am): Likewise.
17573         * modules/netdb (Makefile.am): Likewise.
17574         * modules/netinet_in (Makefile.am): Likewise.
17575         * modules/poll-h (Makefile.am): Likewise.
17576         * modules/pthread (Makefile.am): Likewise.
17577         * modules/pty (Makefile.am): Likewise.
17578         * modules/sched (Makefile.am): Likewise.
17579         * modules/search (Makefile.am): Likewise.
17580         * modules/selinux-h (Makefile.am): Likewise.
17581         * modules/signal (Makefile.am): Likewise.
17582         * modules/spawn (Makefile.am): Likewise.
17583         * modules/stdarg (Makefile.am): Likewise.
17584         * modules/stdbool (Makefile.am): Likewise.
17585         * modules/stddef (Makefile.am): Likewise.
17586         * modules/stdint (Makefile.am): Likewise.
17587         * modules/stdio (Makefile.am): Likewise.
17588         * modules/stdlib (Makefile.am): Likewise.
17589         * modules/string (Makefile.am): Likewise.
17590         * modules/strings (Makefile.am): Likewise.
17591         * modules/sys_file (Makefile.am): Likewise.
17592         * modules/sys_ioctl (Makefile.am): Likewise.
17593         * modules/sys_select (Makefile.am): Likewise.
17594         * modules/sys_socket (Makefile.am): Likewise.
17595         * modules/sys_stat (Makefile.am): Likewise.
17596         * modules/sys_time (Makefile.am): Likewise.
17597         * modules/sys_times (Makefile.am): Likewise.
17598         * modules/sys_utsname (Makefile.am): Likewise.
17599         * modules/sys_wait (Makefile.am): Likewise.
17600         * modules/sysexits (Makefile.am): Likewise.
17601         * modules/termios (Makefile.am): Likewise.
17602         * modules/time (Makefile.am): Likewise.
17603         * modules/unistd (Makefile.am): Likewise.
17604         * modules/wchar (Makefile.am): Likewise.
17605         * modules/wctype-h (Makefile.am): Likewise.
17606         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
17607
17608 2011-04-05  Bruno Haible  <bruno@clisp.org>
17609
17610         pipe2: Relicense under LGPLv2+.
17611         * modules/pipe2 (License): Change to LGPLv2+.
17612         Requested by Eric Blake, for libvirt.
17613
17614 2011-04-05  Bruce Korb  <bkorb@gnu.org>
17615
17616         bootstrap: compute gnulib_extra_files after updating build_aux
17617         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
17618         change build_aux or also supply gnulib_extra_files.  Handle correctly.
17619
17620 2011-04-05  Eric Blake  <eblake@redhat.com>
17621
17622         bootstrap: preserve git whitelist item sorting
17623         * build-aux/bootstrap (sort_patterns): New function.
17624         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
17625
17626 2011-04-05  Simon Josefsson  <simon@josefsson.org>
17627
17628         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
17629         sc_space_tab check.
17630
17631 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
17632
17633         areadlink, areadlinkat: rewrite in terms of careadlinkat
17634         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
17635         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
17636         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
17637         (malloc, realloc): Remove #undefs.
17638         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
17639         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
17640         readlink, ssize_t, stdint, unistd.
17641         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
17642         areadlink, stdint.
17643
17644         careadlinkat: new module
17645         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
17646         * modules/careadlinkat: New files, written by me with
17647         a review and feedback from Ben Pfaff in
17648         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
17649
17650 2011-04-01  Bruno Haible  <bruno@clisp.org>
17651
17652         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
17653         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
17654         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
17655         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
17656         Reported by Bruce Korb <bruce.korb@gmail.com>.
17657
17658 2011-04-01  Bruno Haible  <bruno@clisp.org>
17659
17660         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
17661         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
17662         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
17663         * modules/wcpcpy (Depends-on): Add extensions.
17664         * modules/wcpncpy (Depends-on): Likewise.
17665         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
17666         systems.
17667         * doc/posix-functions/wcpncpy.texi: Likewise.
17668         * doc/posix-functions/wcwidth.texi: Likewise.
17669
17670 2011-03-31  Eric Blake  <eblake@redhat.com>
17671
17672         nonblocking: fix mingw test failures
17673         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
17674         non-blocking flag on regular file.
17675         (get_nonblocking_flag): Set errno on invalid fd.
17676         * tests/test-nonblocking.c (main): Avoid test failure on
17677         directories if fchdir is not active.
17678         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
17679
17680 2011-03-31  Bruno Haible  <bruno@clisp.org>
17681
17682         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
17683         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
17684         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
17685         Reported by Simon Josefsson <simon@josefsson.org>.
17686
17687 2011-03-31  Bruno Haible  <bruno@clisp.org>
17688         and Eric Blake  <eblake@redhat.com>
17689
17690         nonblocking: new module
17691         * modules/nonblocking: New module.
17692         * modules/nonblocking-tests: Likewise.
17693         * lib/nonblocking.h: New file.
17694         * lib/nonblocking.c: Likewise.
17695         * tests/test-nonblocking.c: New test.
17696         * lib/ioctl.c (ioctl) [mingw]: Update comment.
17697
17698 2011-03-30  Bruno Haible  <bruno@clisp.org>
17699
17700         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
17701         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
17702         instead of 'printf' format for GCC >= 4.4.
17703         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
17704         (fprintf, printf, vfprintf, vprintf): Declare with
17705         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
17706         the system's vfprintf() function.
17707         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
17708
17709 2011-03-30  Eric Blake  <eblake@redhat.com>
17710
17711         passfd: fix scoping bug
17712         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
17713         before sendmsg/recvmsg.
17714
17715         passfd: standardize coding conventions
17716         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
17717         can be learned at compile time.
17718         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
17719         ifdefs.
17720         (sendfd, recvfd): Follow gnulib code conventions.
17721
17722         passfd: fix incorrect sendmsg arguments
17723         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
17724         incorrect msg_controllen value.
17725         * modules/passfd-tests (Depends-on): Check for alarm.
17726         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
17727         Reported by Bastien ROUCARIES.
17728
17729 2011-03-30  Bruno Haible  <bruno@clisp.org>
17730
17731         c-strcasestr: Relicense under LGPLv2+.
17732         * modules/c-strcasestr (License): Change to LGPLv2+.
17733         Requested by Eric Blake, for libvirt.
17734
17735 2011-03-30  Simon Josefsson  <simon@josefsson.org>
17736
17737         * users.txt: Add libidn2.  Fix libtasn1 link.
17738
17739 2011-03-30  Jim Meyering  <meyering@redhat.com>
17740
17741         tests: readlink* ("",... fails with EINVAL on newer kernels
17742         readlink and readlinkat have typically failed with ENOENT for
17743         the invalid, empty file name,  "".  However, with the advent
17744         of linux-2.6.39, they fail with EINVAL.
17745         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
17746         when operating on the empty file name.
17747         * tests/test-readlink.h (test_readlink): Likewise.
17748
17749 2011-03-29  Bruno Haible  <bruno@clisp.org>
17750
17751         Relicense some modules under LGPLv2+, for libidn2.
17752         * modules/array-mergesort (License): Change to LGPLv2+.
17753         * modules/c-strcaseeq (License): Likewise.
17754         * modules/striconveh (License): Likewise.
17755         * modules/striconveha (License): Likewise.
17756         * modules/uniconv/base (License): Likewise.
17757         * modules/uniconv/u8-conv-from-enc (License): Likewise.
17758         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
17759         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
17760         * modules/unictype/base (License): Likewise.
17761         * modules/unictype/bidiclass-of (License): Likewise.
17762         * modules/unictype/category-M (License): Likewise.
17763         * modules/unictype/category-none (License): Likewise.
17764         * modules/unictype/category-of (License): Likewise.
17765         * modules/unictype/category-test (License): Likewise.
17766         * modules/unictype/category-test-withtable (License): Likewise.
17767         * modules/unictype/combining-class (License): Likewise.
17768         * modules/unictype/joiningtype-of (License): Likewise.
17769         * modules/unictype/scripts (License): Likewise.
17770         * modules/uninorm/base (License): Likewise.
17771         * modules/uninorm/canonical-decomposition (License): Likewise.
17772         * modules/uninorm/composition (License): Likewise.
17773         * modules/uninorm/decompose-internal (License): Likewise.
17774         * modules/uninorm/decomposition-table (License): Likewise.
17775         * modules/uninorm/nfc (License): Likewise.
17776         * modules/uninorm/nfd (License): Likewise.
17777         * modules/uninorm/u32-normalize (License): Likewise.
17778         * modules/unistr/base (License): Likewise.
17779         * modules/unistr/u32-cpy (License): Likewise.
17780         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
17781         * modules/unistr/u32-to-u8 (License): Likewise.
17782         * modules/unistr/u32-uctomb (License): Likewise.
17783         * modules/unistr/u8-check (License): Likewise.
17784         * modules/unistr/u8-mblen (License): Likewise.
17785         * modules/unistr/u8-mbtouc (License): Likewise.
17786         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
17787         * modules/unistr/u8-mbtoucr (License): Likewise.
17788         * modules/unistr/u8-prev (License): Likewise.
17789         * modules/unistr/u8-strlen (License): Likewise.
17790         * modules/unistr/u8-to-u32 (License): Likewise.
17791         * modules/unistr/u8-uctomb (License): Likewise.
17792         * modules/unitypes (License): Likewise.
17793         Requested by Simon Josefsson.
17794
17795 2011-03-29  Simon Josefsson  <simon@josefsson.org>
17796
17797         lib-symbol-visibility: Add a notice.
17798         * modules/lib-symbol-visibility (Notice): New field.
17799
17800 2011-03-29  Bruno Haible  <bruno@clisp.org>
17801
17802         getaddrinfo: Doc fix.
17803         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
17804         section "fixed in Gnulib".
17805
17806 2011-03-28  Simon Josefsson  <simon@josefsson.org>
17807
17808         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
17809         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
17810
17811 2011-03-26  Bruno Haible  <bruno@clisp.org>
17812
17813         unictype/property-byname: Reduce the number of load-time relocations.
17814         * lib/unictype/pr_byname.c: Include <stdlib.h>.
17815         (UC_PROPERTY_INDEX_*): New enumeration values.
17816         (uc_property_byname): Convert an index from the lookup table to an
17817         uc_property_t.
17818         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
17819         values.
17820
17821 2011-03-26  Bruno Haible  <bruno@clisp.org>
17822
17823         unictype/property-byname: Allow omitted word separators and aliases.
17824         * lib/unictype/pr_byname.gperf: Add property names without word
17825         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
17826         for 'space'.
17827
17828 2011-03-26  Bruno Haible  <bruno@clisp.org>
17829
17830         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
17831         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
17832         also hyphens to space.
17833         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
17834         without spaces.
17835         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
17836
17837 2011-03-26  Bruno Haible  <bruno@clisp.org>
17838
17839         unictype/joiningtype-byname: Recognize long names as well.
17840         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
17841         a long name.
17842         * lib/unictype/joiningtype_byname.c: Include <string.h>,
17843         unictype/joiningtype_byname.h.
17844         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
17845         * lib/unictype/joiningtype_byname.gperf: New file.
17846         * modules/unictype/joiningtype-byname (Files): Add
17847         lib/unictype/joiningtype_byname.gperf.
17848         (Depends-on): Add gperf.
17849         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
17850         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
17851         long names.
17852
17853         Tests for module 'unictype/joiningtype-longname'.
17854         * modules/unictype/joiningtype-longname-tests: New file.
17855         * tests/unictype/test-joiningtype_longname.c: New file.
17856
17857         New module 'unictype/joiningtype-longname'.
17858         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
17859         * lib/unictype/joiningtype_longname.c: New file.
17860         * modules/unictype/joiningtype-longname: New file.
17861         * modules/unictype/joiningtype-all (Depends-on): Add
17862         unictype/joiningtype-longname.
17863
17864 2011-03-26  Bruno Haible  <bruno@clisp.org>
17865
17866         unictype/bidiclass-byname: Recognize long names as well.
17867         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
17868         name.
17869         * lib/unictype/bidi_byname.c: Include <string.h>,
17870         unictype/bidi_byname.h.
17871         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
17872         * lib/unictype/bidi_byname.gperf: New file.
17873         * modules/unictype/bidiclass-byname (Files): Add
17874         lib/unictype/bidi_byname.gperf.
17875         (Depends-on): Add gperf.
17876         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
17877         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
17878         long names.
17879
17880         Tests for module 'unictype/bidiclass-longname'.
17881         * modules/unictype/bidiclass-longname-tests: New file.
17882         * tests/unictype/test-bidi_longname.c: New file.
17883
17884         New module 'unictype/bidiclass-longname'.
17885         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
17886         * lib/unictype/bidi_longname.c: New file.
17887         * modules/unictype/bidiclass-longname: New file.
17888         * modules/unictype/bidiclass-all (Depends-on): Add
17889         unictype/bidiclass-longname.
17890
17891 2011-03-26  Bruno Haible  <bruno@clisp.org>
17892
17893         unictype/bidi*: Rename modules.
17894         * modules/unictype/bidiclass-all: Renamed from
17895         modules/unictype/bidicategory-all.
17896         * modules/unictype/bidiclass-name: Renamed from
17897         modules/unictype/bidiclass-name.
17898         (Description): Update.
17899         * modules/unictype/bidiclass-name-tests: Renamed from
17900         modules/unictype/bidicategory-name-tests.
17901         * modules/unictype/bidiclass-byname: Renamed from
17902         modules/unictype/bidicategory-byname.
17903         (Description): Update.
17904         * modules/unictype/bidiclass-byname-tests: Renamed from
17905         modules/unictype/bidicategory-byname-tests.
17906         * modules/unictype/bidiclass-of: Renamed from
17907         modules/unictype/bidicategory-of.
17908         (Description): Update.
17909         * modules/unictype/bidiclass-of-tests: Renamed from
17910         modules/unictype/bidicategory-of-tests.
17911         * modules/unictype/bidiclass-test: Renamed from
17912         modules/unictype/bidicategory-test.
17913         (Description): Update.
17914         * modules/unictype/bidiclass-test-tests: Renamed from
17915         modules/unictype/bidicategory-test-tests.
17916         * modules/unictype/bidicategory-all: New file, a simple redirection.
17917         * modules/unictype/bidicategory-name: Likewise.
17918         * modules/unictype/bidicategory-byname: Likewise.
17919         * modules/unictype/bidicategory-of: Likewise.
17920         * modules/unictype/bidicategory-test: Likewise.
17921         * modules/unictype/property-bidi-* (Dependencies): Update.
17922         * lib/unictype/bidi_*.c: Update comment.
17923
17924 2011-03-26  Bruno Haible  <bruno@clisp.org>
17925
17926         unictype/bidi*: Rename functions, part 2.
17927         * modules/unictype/bidicategory-name (configure.ac): Update required
17928         libunistring version.
17929         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
17930
17931 2011-03-25  Bruno Haible  <bruno@clisp.org>
17932
17933         New module 'unictype/combining-class-all'.
17934         * modules/unictype/combining-class-all: New file.
17935
17936         Tests for module 'unictype/combining-class-byname'.
17937         * modules/unictype/combining-class-byname-tests: New file.
17938         * tests/unictype/test-combiningclass_byname.c: New file.
17939
17940         New module 'unictype/combining-class-byname'.
17941         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
17942         * lib/unictype/combiningclass_byname.c: New file.
17943         * lib/unictype/combiningclass_byname.gperf: New file.
17944         * modules/unictype/combining-class-byname: New file.
17945
17946         Tests for module 'unictype/combining-class-longname'.
17947         * modules/unictype/combining-class-longname-tests: New file.
17948         * tests/unictype/test-combiningclass_longname.c: New file.
17949
17950         New module 'unictype/combining-class-longname'.
17951         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
17952         * lib/unictype/combiningclass_longname.c: New file.
17953         * modules/unictype/combining-class-longname: New file.
17954
17955         Tests for module 'unictype/combining-class-name'.
17956         * modules/unictype/combining-class-name-tests: New file.
17957         * tests/unictype/test-combiningclass_name.c: New file.
17958
17959         New module 'unictype/combining-class-name'.
17960         * lib/unictype.in.h (uc_combining_class_name): New declaration.
17961         * lib/unictype/combiningclass_name.c: New file.
17962         * modules/unictype/combining-class-name: New file.
17963
17964 2011-03-25  Bruno Haible  <bruno@clisp.org>
17965
17966         unictype/combining-class: Rename source files.
17967         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
17968         of unictype/combining.h.
17969         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
17970         Update.
17971         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
17972         * modules/unictype/combining-class (Description): Fix.
17973         (Files, Makefile.am): Update.
17974         * tests/unictype/test-combiningclass.c: Renamed from
17975         tests/unictype/test-combining.c.
17976         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
17977
17978 2011-03-25  Bruno Haible  <bruno@clisp.org>
17979
17980         unictype: Update list of canonical combining classes.
17981         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
17982
17983 2011-03-25  Bruno Haible  <bruno@clisp.org>
17984
17985         unictype/category-byname: Recognize long names as well.
17986         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
17987         a long name.
17988         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
17989         unictype/categ_byname.h.
17990         (UC_CATEGORY_INDEX_*): New enumeration values.
17991         (uc_general_category_byname): Use uc_general_category_lookup and
17992         convert from index to value.
17993         * lib/unictype/categ_byname.gperf: New file.
17994         * modules/unictype/category-byname (Files): Add
17995         lib/unictype/categ_byname.gperf.
17996         (Depends-on): Add gperf.
17997         (Makefile.am): Add rule for generating unictype/categ_byname.h.
17998         * tests/unictype/test-categ_byname.c (main): Test the recognition of
17999         long names.
18000
18001         Tests for module 'unictype/category-longname'.
18002         * modules/unictype/category-longname-tests: New file.
18003         * tests/unictype/test-categ_longname.c: New file.
18004
18005         New module 'unictype/category-longname'.
18006         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
18007         * lib/unictype/categ_longname.c: New file.
18008         * modules/unictype/category-longname: New file.
18009         * modules/unictype/category-all (Depends-on): Add it.
18010
18011 2011-03-25  Bruno Haible  <bruno@clisp.org>
18012
18013         Tests for module 'unictype/category-LC'.
18014         * modules/unictype/category-LC-tests: New file.
18015         * tests/unictype/test-categ_LC.c: New file, automatically generated.
18016
18017         New module 'unictype/category-LC'.
18018         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
18019         (UC_CATEGORY_LC): New declaration.
18020         (UC_CASED_LETTER): New macro.
18021         * lib/gen-uni-tables.c (is_category_LC): New function.
18022         (output_categories): Also handle category LC.
18023         (UC_CATEGORY_MASK_LC): New enumeration value.
18024         (general_category_byname): Also handle category LC.
18025         * lib/unictype/categ_LC.c: New file.
18026         * lib/unictype/categ_LC.h: New file, automatically generated.
18027         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
18028         category LC.
18029         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
18030         * modules/unictype/category-LC: New file.
18031         * modules/unictype/category-byname (Depends-on): Add
18032         unictype/category-LC.
18033         * modules/unictype/category-all (Depends-on): Likewise.
18034
18035 2011-03-25  Eric Blake  <eblake@redhat.com>
18036
18037         xmalloc: revert yesterday's regression
18038         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
18039         realloc's underlying behavior (allowing allocation of zero-size
18040         objects, especially if malloc-gnu is also in use).
18041
18042 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
18043
18044         maint.mk: add missing version to VC-tag
18045         * top/maint.mk: git tag was missing actual tag name; add it.
18046
18047         valgrind: do leak checking, and exit with code 1 on error (not 0)
18048         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
18049         to VALGRIND.
18050
18051 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
18052
18053         posix-modules: say what it does.
18054         * posix-modules: Add a line to the --help output saying what it does.
18055
18056 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
18057
18058         xmalloc: Do not leak if underlying realloc is C99 compatible.
18059         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
18060         This avoids a leak on C99-based systems.  See
18061         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
18062
18063 2011-03-24  Eric Blake  <eblake@redhat.com>
18064
18065         realloc: document portability problem
18066         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
18067         passing 0 size to realloc.
18068
18069 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
18070
18071         doc: update users.txt
18072         * users.txt: Add cvsps, tmpwatch
18073
18074 2011-03-23  Matt Rice  <ratmice@gmail.com>
18075
18076         doc: update users.txt
18077         * users.txt: Add gdb.
18078
18079 2011-03-23  Jim Meyering  <meyering@redhat.com>
18080
18081         doc: update users.txt
18082         Looking through matches up to the following URL (there are still
18083         several more pages), I found several projects that use gnulib:
18084         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
18085         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
18086         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
18087
18088 2011-03-22  Bruno Haible  <bruno@clisp.org>
18089
18090         unictype/bidi*: Rename functions.
18091         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
18092         uc_bidi_class, uc_is_bidi_class): New declarations.
18093         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
18094         uc_bidi_category_byname.
18095         (uc_bidi_category_byname): New function.
18096         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
18097         u_bidi_category_name.
18098         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
18099         (uc_bidi_category_name): New function.
18100         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
18101         uc_bidi_category.
18102         (uc_bidi_category): New function.
18103         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
18104         uc_is_bidi_category. Invoke uc_bidi_class.
18105         (uc_is_bidi_category): New function.
18106         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
18107         instead of uc_bidi_category_byname.
18108         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
18109         instead of uc_bidi_category_name.
18110         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
18111         uc_bidi_category.
18112         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
18113         instead of uc_is_bidi_category.
18114
18115 2011-03-21  Bruno Haible  <bruno@clisp.org>
18116
18117         New module 'unictype/joininggroup-all'.
18118         * modules/unictype/joininggroup-all: New file.
18119
18120         Tests for module 'unictype/joininggroup-of'.
18121         * modules/unictype/joininggroup-of-tests: New file.
18122         * tests/unictype/test-joininggroup_of.c: New file.
18123         * tests/unictype/test-joininggroup_of.h: New file, automatically
18124         generated by gen-uni-tables.
18125
18126         New module 'unictype/joininggroup-of'.
18127         * modules/unictype/joininggroup-of: New file.
18128         * lib/unictype/joininggroup_of.c: New file.
18129         * lib/unictype/joininggroup_of.h: New file, automatically generated by
18130         gen-uni-tables.
18131
18132         Tests for module 'unictype/joininggroup-byname'.
18133         * modules/unictype/joininggroup-byname-tests: New file.
18134         * tests/unictype/test-joininggroup_byname.c: New file.
18135
18136         New module 'unictype/joininggroup-byname'.
18137         * modules/unictype/joininggroup-byname: New file.
18138         * lib/unictype/joininggroup_byname.c: New file.
18139         * lib/unictype/joininggroup_byname.gperf: New file.
18140
18141         Tests for module 'unictype/joininggroup-name'.
18142         * modules/unictype/joininggroup-name-tests: New file.
18143         * tests/unictype/test-joininggroup_name.c: New file.
18144
18145         New module 'unictype/joininggroup-name'.
18146         * modules/unictype/joininggroup-name: New file.
18147         * lib/unictype/joininggroup_name.c: New file.
18148         * lib/unictype/joininggroup_name.h: New file.
18149
18150         New module 'unictype/joiningtype-all'.
18151         * modules/unictype/joiningtype-all: New file.
18152
18153         Tests for module 'unictype/joiningtype-of'.
18154         * modules/unictype/joiningtype-of-tests: New file.
18155         * tests/unictype/test-joiningtype_of.c: New file.
18156         * tests/unictype/test-joiningtype_of.h: New file, automatically
18157         generated by gen-uni-tables.
18158
18159         New module 'unictype/joiningtype-of'.
18160         * modules/unictype/joiningtype-of: New file.
18161         * lib/unictype/joiningtype_of.c: New file.
18162         * lib/unictype/joiningtype_of.h: New file, automatically generated by
18163         gen-uni-tables.
18164
18165         Tests for module 'unictype/joiningtype-byname'.
18166         * modules/unictype/joiningtype-byname-tests: New file.
18167         * tests/unictype/test-joiningtype_byname.c: New file.
18168
18169         New module 'unictype/joiningtype-byname'.
18170         * modules/unictype/joiningtype-byname: New file.
18171         * lib/unictype/joiningtype_byname.c: New file.
18172
18173         Tests for module 'unictype/joiningtype-name'.
18174         * modules/unictype/joiningtype-name-tests: New file.
18175         * tests/unictype/test-joiningtype_name.c: New file.
18176
18177         New module 'unictype/joiningtype-name'.
18178         * modules/unictype/joiningtype-name: New file.
18179         * lib/unictype/joiningtype_name.c: New file.
18180
18181         unictype: Add support for Arabic shaping properties.
18182         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
18183         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
18184         declarations.
18185         (UC_JOINING_GROUP_*): New enumeration values.
18186         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
18187         declarations.
18188         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
18189         (unicode_joining_type): New variable.
18190         (UC_JOINING_GROUP_*): New enumeration values.
18191         (unicode_joining_group): New variable.
18192         (fill_arabicshaping, joining_type_as_c_identifier,
18193         output_joining_type_test, output_joining_type,
18194         joining_group_as_c_identifier, output_joining_group_test,
18195         output_joining_group): New functions.
18196         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
18197         fill_arabicshaping and output_joining_type_test, output_joining_type,
18198         output_joining_group_test, output_joining_group.
18199         Reported by Simon Josefsson.
18200
18201 2011-03-21  Jim Meyering  <meyering@redhat.com>
18202
18203         strftime: fix a bug in yesterday's change
18204         * lib/strftime.c (add): Accommodate width's initial value of -1.
18205         Otherwise, nstrftime would copy uninitialized data into
18206         the result buffer.
18207
18208 2011-03-21  Jim Meyering  <meyering@redhat.com>
18209
18210         tests: add strftime-tests module
18211         * tests/test-strftime.c: New file.
18212         * modules/strftime-tests: New module.
18213
18214 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18215
18216         strftime: don't assume a byte count fits in 'int'
18217         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
18218         found this problem by static analysis, using gcc -Wstrict-overflow
18219         (GCC 4.5.2, x86-64).  This reported an optimization that depended
18220         on an integer overflow having undefined behavior, but it turns out
18221         that the argument is a size, which might not fit in 'int' anyway,
18222
18223 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18224
18225         stdio: don't require ignore_value around fwrite
18226
18227         This patch works around libc bug 11959
18228         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
18229         Without this patch, applications must often write
18230         ignore_value (fwrite (...)) even though the ignore_value is
18231         not helpful here.  It's common to write many objects, using
18232         fwrite/printf/etc., and then use ferror to detect output error.
18233
18234         I considered making this patch optional, but decided against it,
18235         because libc is obviously being inconsistent here: there is no
18236         reason libc should insist that user code must inspect fwrite
18237         return's value without also insisting that it inspect printf's,
18238         putchar's, etc.  If user code wants to have a strict style where
18239         all these functions' values are checked (so that ferror need not
18240         be checked), we could add support for that style in a new gnulib
18241         module, but in the meantime it's better to be consistent and to
18242         support common usage.
18243
18244         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
18245         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
18246         that we are compiling in checking mode, and if not C++, and
18247         if not already wrapping fwrite for some other reason.
18248         (fwrite): #define to rpl_fwrite if the latter is defined.
18249
18250 2011-03-20  Bruno Haible  <bruno@clisp.org>
18251
18252         verror: Fix compilation error introduced on 2011-02-13.
18253         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
18254         instead of __attribute__.
18255         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18256
18257 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
18258             Bruno Haible  <bruno@clisp.org>
18259
18260         socklen: do not depend on sys_socket
18261         While trying to modify Emacs to use gnulib's socklen module,
18262         I discovered a circular dependency: socklen depends on sys_socket
18263         and vice versa.  Emacs can use socklen, but it does not need
18264         sys_socket because it has its own substitute for sys/socket.h.
18265         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18266         gl_TYPE_SOCKLEN_T.
18267         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18268         gl_PREREQ_SYS_H_SOCKET.
18269         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18270         gl_PREREQ_SYS_H_SOCKET.
18271         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18272         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18273         * modules/socklen (Depends-on): Do not depend on sys_socket.
18274         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18275
18276 2011-03-20  Jim Meyering  <meyering@redhat.com>
18277
18278         maint.mk: sort file names *after* new transformation
18279         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18280         prefix would have led to an unwarranted failure in GNU parted.
18281         Sort after that transformation.
18282
18283 2011-03-19  Jim Meyering  <meyering@redhat.com>
18284
18285         maint.mk: fix po-file syntax-check rule
18286         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
18287         Patch by Bruno Haible.
18288
18289 2011-03-19  Bruno Haible  <bruno@clisp.org>
18290
18291         socklen: Update comment.
18292         * m4/socklen.m4: Update comment about platforms.
18293
18294 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18295             Bruno Haible  <bruno@clisp.org>
18296
18297         inet_ntop, inet_pton: Simplify.
18298         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
18299         documented to provide socklen_t and we already depend on sys_socket.
18300         * modules/inet_pton (Depends-on): Likewise.
18301         * lib/arpa_inet.in.h: Adjust comment.
18302
18303 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18304             Bruno Haible  <bruno@clisp.org>
18305
18306         netdb: Simplify.
18307         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
18308         documented to provide socklen_t and we already depend on sys_socket.
18309         * lib/netdb.in.h: Adjust comment.
18310
18311 2011-03-19  Bruno Haible  <bruno@clisp.org>
18312
18313         sys_socket, netdb: Document problem with socklen_t.
18314         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
18315         platforms.
18316         * doc/posix-headers/netdb.texi: Likewise.
18317
18318 2011-03-18  Eric Blake  <eblake@redhat.com>
18319
18320         maint.mk: let po check work in VPATH build
18321         * top/maint.mk (po_file): Allow cfg.mk override.
18322         (sc_po_check): Allow VPATH use.
18323         Reported by Jiri Denemark.
18324
18325 2011-03-16  Jim Meyering  <meyering@redhat.com>
18326
18327         maint.mk: allow fine-grained syntax-check exclusion via Make variables
18328         Before, you would have had to create one .x-sc_ file per rule in order
18329         to exempt offending files.  Now, you may instead use a Make variable --
18330         usually defined in cfg.mk -- whose name identifies the affected rule.
18331         * top/maint.mk (_sc_excl): Define.
18332         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
18333         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
18334
18335 2011-03-13  Bruno Haible  <bruno@clisp.org>
18336
18337         ignore-value tests: Avoid warnings.
18338         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
18339         empty for gcc < 3.4.
18340
18341 2011-03-13  Bruno Haible  <bruno@clisp.org>
18342
18343         passfd: Fix link error on Solaris.
18344         * modules/passfd (Description): Correct.
18345         (Depends-on): Add socketlib.
18346         (Link): New section.
18347         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
18348
18349 2011-03-13  Bruno Haible  <bruno@clisp.org>
18350
18351         passfd: Fix link error on AIX 5.2.
18352         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
18353
18354 2011-03-13  Bruno Haible  <bruno@clisp.org>
18355
18356         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
18357         * lib/sys_socket.in.h: Include <stddef.h>.
18358         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
18359         CMSG_FIRSTHDR. Remove unused variable.
18360
18361 2011-03-13  Bruno Haible  <bruno@clisp.org>
18362
18363         passfd: Fix compilation error on OpenBSD.
18364         * lib/passfd.c: Include <sys/uio.h>.
18365
18366 2011-03-13  Bruno Haible  <bruno@clisp.org>
18367
18368         passfd test: Fix warnings.
18369         * tests/test-passfd.c: Include <sys/wait.h>.
18370         (main): Fix typo.
18371
18372 2011-03-13  Bruno Haible  <bruno@clisp.org>
18373
18374         passfd module, part 4, tweaks.
18375         * tests/test-passfd.c: Reorder includes.
18376         (main): Fix perror and printf calls.
18377
18378 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18379
18380         passfd module, part 4.
18381         * modules/passfd-tests: New file.
18382         * tests/test-passfd.c: New file.
18383
18384 2011-03-13  Jim Meyering  <meyering@redhat.com>
18385
18386         Makefile: rely on GNU make; derive syntax-check rule names
18387         Rather than requiring that each sc_ rule be listed as a dependent
18388         of "check", use features of GNU make to derive the list.
18389         * Makefile (syntax-check-rules): Define.
18390         (check): Depend on the new variable, not the hard-coded list.
18391
18392 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
18393             Bruno Haible  <bruno@clisp.org>
18394
18395         passfd module, part 3.
18396         * lib/passfd.h (recvfd): Add a flags argument.
18397         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
18398         (recvfd): Add a flags argument.
18399         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
18400         exists.
18401         * modules/passfd (Depends-on): Add cloexec.
18402         Suggested by Eric Blake.
18403
18404 2011-03-13  Bruno Haible  <bruno@clisp.org>
18405
18406         passfd module, part 2, tweaks.
18407         * modules/passfd (Files): Reorder.
18408         (Depends-on): Remove errno.
18409         (Include): Remove <sys/socket.h>, <sys/un.h>.
18410         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
18411         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
18412         specification header. Include <sys/socket.h> always. Don't include
18413         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
18414         (sendfd): Clarify that it sets errno when it fails.
18415         (recvfd): Fix specification.
18416
18417 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18418
18419         passfd module, part 2.
18420         * modules/passfd: New file.
18421         * lib/passfd.h: New file.
18422         * lib/passfd.c: New file.
18423
18424 2011-03-12  Bruno Haible  <bruno@clisp.org>
18425
18426         wcswidth, mbswidth: Avoid integer overflow.
18427         * lib/wcswidth.c: Include <limits.h>.
18428         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
18429         * lib/mbswidth.c: Include <limits.h>.
18430         (mbsnwidth): Avoid 'int' overflow.
18431         Reported by Jim Meyering.
18432
18433 2011-03-12  Bruno Haible  <bruno@clisp.org>
18434
18435         futimens, utimensat: Avoid endless recursion on Solaris 10.
18436         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
18437         Solaris.
18438         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
18439         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
18440
18441 2011-03-11  Jim Meyering  <meyering@redhat.com>
18442
18443         maint.mk: relax a regexp to accommodate other formatting styles
18444         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
18445         between "ngettext" and the following "(".
18446
18447 2011-03-11  Pádraig Brady <P@draigBrady.com>
18448
18449         maint.mk: suppress a false positive warning
18450         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
18451         diagnostics are marked with ngettext.
18452
18453 2011-03-10  Eric Blake  <eblake@redhat.com>
18454
18455         wchar: add explicit dependencies, for Tru64
18456         * modules/mbmemcasecoll (Depends-on): Add wchar.
18457         * modules/mbtowc (Depends-on): Likewise.
18458         * modules/vasnprintf (Depends-on): Likewise.
18459         * modules/unistdio/u-printf-args (Depends-on): Likewise.
18460         * modules/wctomb (Depends-on): Likewise.
18461         Reported by Peter O'Gorman.
18462
18463 2011-03-08  Bruno Haible  <bruno@clisp.org>
18464
18465         passfd module, part 1, tweaks.
18466         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
18467         Improve indentation. Improve AC_MSG_CHECKING messages.
18468         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
18469         gl_SOCKET_FAMILIES.
18470
18471 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18472
18473         passfd module, part 1.
18474         * m4/afunix.m4: New file.
18475         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
18476         sockets.
18477
18478 2011-03-08  Bruno Haible  <bruno@clisp.org>
18479
18480         regex-quote: New API.
18481         * lib/regex-quote.h: Include <stdbool.h>.
18482         (struct regex_quote_spec): New type.
18483         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18484         New declarations.
18485         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18486         'const struct regex_quote_spec *' argument.
18487         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
18488         (pcre_special): New constant.
18489         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18490         New functions.
18491         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18492         'const struct regex_quote_spec *' argument.
18493         * modules/regex-quote (Depends-on): Add stdbool.
18494         * tests/test-regex-quote.c (check): Update for new API. Add test for
18495         anchored results.
18496         * NEWS: Mention the API change.
18497         Reported by Reuben Thomas and Eric Blake.
18498
18499 2011-03-06  Bruno Haible  <bruno@clisp.org>
18500
18501         regex-quote: Fix creation of POSIX extended regular expressions.
18502         * lib/regex-quote.c (ere_special): Add grouping and alternation
18503         operators.
18504
18505 2011-03-05  Bruno Haible  <bruno@clisp.org>
18506
18507         doc: Improve doc regarding autopoint vs. gnulib.
18508         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
18509         disable autopoint while running autoreconf.
18510         Suggested by Ralf Wildenhues.
18511
18512 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18513
18514         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
18515         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
18516
18517 2011-03-03  Bruce Korb  <bkorb@gnu.org>
18518
18519         parse-duration: remove xalloc.h dependency
18520         * lib/parse-duration.c (parse_period): handle NULL return from
18521         strdup instead of calling xstrdup().
18522         * modules/parse-duration: remove "xalloc" dependency
18523
18524 2011-03-03  Matthew Booth  <mbooth@redhat.com>
18525
18526         bootstrap: honor m4_base when running aclocal
18527         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
18528
18529 2011-03-02  Jim Meyering  <meyering@redhat.com>
18530
18531         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
18532         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
18533         on request from Matt Booth.
18534
18535 2011-03-01  Eric Blake  <eblake@redhat.com>
18536
18537         test-link: work on Hurd
18538         * tests/test-link.h (test_link): Hurd rejects linking directories
18539         with EISDIR instead of the POSIX-mandated EPERM.
18540
18541 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
18542
18543         stdio: simplify by moving files to printf-posix, sigpipe
18544         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
18545         since this symbol is needed only if printf is replaced.
18546         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
18547         Require gl_ASM_SYMBOL_PREFIX.
18548         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
18549         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
18550         (Depends-on): Add 'raise'.
18551         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
18552         * modules/stdio (Files): Remove lib/stdio-write.c,
18553         m4/asm-underscore.m4.
18554         (Depends-on): Remove 'raise'.
18555
18556         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
18557         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
18558         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
18559         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
18560
18561 2011-02-28  Bruno Haible  <bruno@clisp.org>
18562
18563         localcharset: Assume ANSI C behaviour of free().
18564         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
18565         calling free().
18566         Suggested by Simon Josefsson <simon@josefsson.org>.
18567
18568 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
18569             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
18570             Bruno Haible  <bruno@clisp.org>  (tiny change)
18571
18572         On Cygwin, use /proc file system instead of win32 API.
18573         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
18574         Win32 file names.
18575         (DllMain): Simplify by removing Cygwin specific code.
18576         (find_shared_library_fullname): Use Linux specific implementation also
18577         for Cygwin.
18578         (get_shared_library_fullname): Update accordingly.
18579         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
18580         Win32 file names.
18581         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
18582         Cygwin specific code.
18583
18584 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
18585             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
18586
18587         Fix OpenMP flag detection for various Fortran compilers.
18588         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
18589         OpenMP-conditional compilation construct, to force compile
18590         failure with missing OpenMP flag.
18591         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
18592
18593 2011-02-25  Eric Blake  <eblake@redhat.com>
18594
18595         strstr: expand test coverage
18596         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
18597         compilation.
18598         * tests/test-memmem.c (main): Duplicate tests.
18599         * tests/test-strcasestr.c (main): Likewise.
18600         * tests/test-c-strcasestr.c (main): Likewise.
18601
18602 2011-02-25  Jim Meyering  <meyering@redhat.com>
18603
18604         maint.mk: detect missing-NL-at-EOF, too
18605         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
18606         it also detects when a file lacks a newline at EOF.
18607         (require_exactly_one_NL_at_EOF_): Renamed from
18608         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
18609         since people may well have .x-sc_... file names tied to the
18610         existing name.  Suggested by Eric Blake.
18611
18612 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18613
18614         dirname: move m4/dos.m4 functionality into lib/dosname.h
18615
18616         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
18617         extracts symbols from it, puts them into config.h; but it's much
18618         easier to use the symbols directly.  filename.h already does this,
18619         but it disagrees with dos.m4 in some respects.  This patch
18620         introduces a different include file dosname.h that packages up
18621         dos.m4, and then later we can work on merging filename.h and
18622         dosname.h.  Applications that need only the easy-to-configure
18623         symbols should consider including dosname.h rather than dirname.h.
18624         * NEWS: Mention incompatible changes.
18625         * m4/dos.m4: Remove.
18626         * lib/dosname.h, modules/dosname: New files.
18627         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
18628         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
18629         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
18630         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
18631         Include dosname.h, not dirname.h.
18632         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
18633         Include dosname.h, for definitions of symbols like ISSLASH
18634         that used to be in config.h.
18635         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
18636         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18637         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18638         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18639         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
18640         * modules/rmdir (Files): Likewise.
18641         * modules/stat (Files): Likewise.
18642         * modules/unlink (Files): Likewise.
18643         * modules/dirname-lgpl (Depends-on): Add dosname.
18644         * modules/lstat (Depends-on): Likewise.
18645         * modules/openat (Depends-on): Likewise.
18646         * modules/rmdir (Depends-on): Likewise.
18647         * modules/savewd (Depends-on): Likewise.
18648         * modules/stat (Depends-on): Likewise.
18649         * modules/unlink (Depends-on): Likewise.
18650         * modules/openat (Depends-on): Remove dirname-lgpl.
18651         * modules/savewd (Depends-on): Likewise.
18652         * tests/test-dirname.c: Do not use removed symbols like
18653         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
18654         the remaining symbols, e.g., ISSLASH ('\\').
18655
18656 2011-02-25  Eric Blake  <eblake@redhat.com>
18657
18658         strstr: revert patches that introduced bug and pessimization
18659         * lib/str-two-way.h: Add another reference.
18660         (two_way_short_needle, two_way_long_needle): Revert changes from
18661         2011-02-24; they pessimize search speed.
18662         (critical_factorization): Partially revert changes from
18663         2010-06-22; they violate the requirement that the left half of the
18664         needle be smaller than the period of the needle.
18665
18666 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18667
18668         filenamecat: remove unnecessary dependency on dirname-lgpl
18669         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
18670         is no direct dependency, just an indirect one via filenamecat-lgpl.
18671
18672         remove: remove unnecessary use of m4/dos.m4
18673         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
18674         * modules/remove (FILES): Remove m4/dos.m4.
18675
18676         * lib/openat-proc.c: Don't include dirname.h; not needed.
18677
18678         backupfile: remove unnecessary use of m4/dos.m4
18679         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
18680         of its symbols are used by the backupfile code.  backupfile.c does
18681         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
18682         for the rare case of programs that want all their backup file
18683         names to live within 8+3 limits, and dos.m4 doesn't address that.
18684         * modules/backupfile (Files): Remove m4/dos.m4.
18685
18686 2011-02-24  Jim Meyering  <meyering@redhat.com>
18687
18688         strstr: fix a bug whereby strstr would mistakenly return NULL
18689         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
18690         in period calculation.
18691         (two_way_long_needle): Likewise.
18692         The original problem was reported by Mike Stump in
18693         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
18694         Ralf Wildenhues provided the short needle and haystack.
18695         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
18696         Add a more involved test to trigger the bug in two_way_long_needle.
18697
18698 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18699
18700         gnulib-tool: remove use of bold display in help screen
18701         * gnulib-tool (func_usage): Do not use bold display anymore in the
18702         help screen.  That was just meant to be a temporary emphasis for a
18703         backward-incompatible change.
18704
18705 2011-02-23  Bruno Haible  <bruno@clisp.org>
18706
18707         Fix misindentation of preprocessor directives.
18708         * lib/argp-namefrob.h: Reindent preprocessor directives.
18709         * lib/getopt_int.h (struct _getopt_data): Likewise.
18710         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
18711         * lib/vasnprintf.c (decode_long_double): Likewise.
18712         * tests/test-argmatch.c: Insert blank lines, for clarity.
18713         * tests/test-exclude.c: Likewise.
18714
18715 2011-02-22  Bruno Haible  <bruno@clisp.org>
18716
18717         ioctl: Fix for MacOS X in 64-bit mode.
18718         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
18719         value.
18720         Suggested by Eric Blake.
18721         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
18722
18723 2011-02-22  Jim Meyering  <meyering@redhat.com>
18724
18725         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
18726         * Makefile (sc_cpp_indent_check): Don't limit the check to files
18727         in lib/.
18728
18729 2011-02-22  Eric Blake  <eblake@redhat.com>
18730
18731         maint: avoid any CDPATH issue
18732         * Makefile (sc_cpp_indent_check): Anchor cd argument.
18733
18734         maint: adjust cpp indentation for my modules, as well
18735         * Makefile (sc_cpp_indent_check): Add my name.
18736         * lib/fbufmode.c: Filter through cppi.
18737         * lib/fpurge.c: Likewise.
18738         * lib/freadable.c: Likewise.
18739         * lib/freading.c: Likewise.
18740         * lib/fwritable.c: Likewise.
18741         * lib/fwriting.c: Likewise.
18742         * lib/sigaction.c: Likewise.
18743
18744 2011-02-22  Jim Meyering  <meyering@redhat.com>
18745
18746         maint: adjust cpp indentation to reflect nesting depth
18747         I.e., in a block of code that begins with an unnested "#if",
18748         put one space between the "#" in column 1 and following token.
18749         For example,
18750         -#include <sys/vfs.h>
18751         +# include <sys/vfs.h>
18752         Do this only in .c files that are part of a module I maintain.
18753         * lib/linkat.c: Filter through cppi.
18754         * lib/nanosleep.c: Likewise.
18755         * lib/openat.c: Likewise.
18756         * lib/openat-die.c: Likewise.
18757         * lib/dup3.c: Likewise.
18758         * lib/fchownat.c: Likewise.
18759         * lib/flock.c: Likewise.
18760         * lib/fsync.c: Likewise.
18761         * lib/fts.c: Likewise.
18762         * lib/getpass.c: Likewise.
18763         * lib/gettimeofday.c: Likewise.
18764         * lib/userspec.c: Likewise.
18765         * Makefile (sc_cpp_indent_check): New rule, to check this.
18766
18767 2011-02-22  Bruno Haible  <bruno@clisp.org>
18768
18769         New module 'wctomb'.
18770         * lib/stdlib.in.h (wctomb): New declaration.
18771         * lib/wctomb.c: New file.
18772         * lib/wctomb-impl.h: New file.
18773         * m4/wctomb.m4: New file.
18774         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
18775         REPLACE_WCTOMB.
18776         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
18777         REPLACE_WCTOMB.
18778         * modules/wctomb: New file.
18779         * tests/test-stdlib-c++.cc: Test signature of wctomb.
18780         * doc/posix-functions/wctomb.texi: Mention the new module.
18781         * modules/wctob (Depends-on): Add wctomb.
18782
18783 2011-02-22  Bruno Haible  <bruno@clisp.org>
18784
18785         New module 'mbtowc'.
18786         * lib/stdlib.in.h (mbtowc): New declaration.
18787         * lib/mbtowc.c: New file.
18788         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
18789         * m4/mbtowc.m4: New file.
18790         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
18791         REPLACE_MBTOWC.
18792         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
18793         REPLACE_MBTOWC.
18794         * modules/mbtowc: New file.
18795         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
18796         * doc/posix-functions/mbtowc.texi: Mention the new module.
18797         * modules/btowc (Depends-on): Add mbtowc.
18798
18799 2011-02-22  Bruno Haible  <bruno@clisp.org>
18800
18801         wcrtomb: Add more tests for native Windows platforms.
18802         * tests/test-wcrtomb-w32-1.sh: New file.
18803         * tests/test-wcrtomb-w32-2.sh: New file.
18804         * tests/test-wcrtomb-w32-3.sh: New file.
18805         * tests/test-wcrtomb-w32-4.sh: New file.
18806         * tests/test-wcrtomb-w32-5.sh: New file.
18807         * tests/test-wcrtomb-w32.c: New file.
18808         * modules/wcrtomb-tests (Files): Add them.
18809         (Makefile.am): Arrange to run these tests.
18810         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
18811         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
18812
18813 2011-02-20  Bruno Haible  <bruno@clisp.org>
18814
18815         wcrtomb: Enhance test.
18816         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
18817
18818 2011-02-20  Bruno Haible  <bruno@clisp.org>
18819
18820         mbrtowc: Tiny optimization.
18821         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
18822
18823 2011-02-20  Jim Meyering  <meyering@redhat.com>
18824
18825         test-exclude.c: remove unmatched #endif
18826         * tests/test-exclude.c: Remove stray #endif, left over from
18827         the change of a week ago.
18828
18829 2011-02-19  Jim Meyering  <meyering@redhat.com>
18830
18831         git-version-gen: skip "-dirty" check when appropriate
18832         * build-aux/git-version-gen: Don't run any git commands when the
18833         version string comes from .tarball-version.  Prior to this, we
18834         would run git update-index --refresh even from a just-unpacked
18835         tarball directory, and that could affect a .git/ directory in a
18836         parent of the build directory.  Reported by Mike Frysinger.
18837
18838 2011-02-19  Bruno Haible  <bruno@clisp.org>
18839
18840         unictype/property-byname: Reduce the size of the 'data' segment.
18841         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
18842
18843 2011-02-19  Bruno Haible  <bruno@clisp.org>
18844
18845         unictype/scripts: Reduce the size of the 'data' segment.
18846         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
18847         '%pic'.
18848         * lib/unictype/scripts_byname.gperf: Regenerated.
18849
18850 2011-02-19  Bruno Haible  <bruno@clisp.org>
18851
18852         stdint: Update documentation.
18853         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
18854
18855 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
18856
18857         stdint: omit redundant check for wchar.h
18858         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
18859         always tests whether wchar.h exists, so remove the now-redundant test.
18860
18861 2011-02-18  Bruno Haible  <bruno@clisp.org>
18862
18863         stdint: Cut dependency to module 'wchar'.
18864         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
18865         include the necessary prerequisites.
18866         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
18867         * modules/stdint (Depends-on): Remove wchar.
18868         (Makefile.am): Substitute HAVE_WCHAR_H.
18869         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
18870
18871 2011-02-18  Eric Blake  <eblake@redhat.com>
18872
18873         longlong: skip, rather than fail, on cross-compilation
18874         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
18875         when cross-compiling; regression from 2011-02-16.
18876
18877 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18878
18879         * NEWS: Mention 2011-02-08 change to stdlib.
18880
18881 2011-02-17  Bruno Haible  <bruno@clisp.org>
18882
18883         getloadavg: Add comments about platforms.
18884         * m4/getloadavg.m4: Add comment.
18885         * lib/getloadavg.c: Likewise.
18886
18887 2011-02-17  Bruno Haible  <bruno@clisp.org>
18888
18889         getloadavg: Fix link error on Solaris 2.6.
18890         * modules/getloadavg (Link): New section.
18891         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
18892         linking test-getloadavg.
18893         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
18894         getloadavg.
18895
18896 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18897
18898         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
18899         It was 'int', but this doesn't match the IRIX 6.5 manual.
18900         Suggested by Bruno Haible in
18901         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
18902
18903 2011-02-17  Bruno Haible  <bruno@clisp.org>
18904
18905         havelib: Fix comments.
18906         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
18907         change.
18908
18909 2011-02-17  Bruno Haible  <bruno@clisp.org>
18910
18911         havelib: Update config.rpath.
18912         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
18913
18914 2011-02-17  Bruno Haible  <bruno@clisp.org>
18915
18916         getloadavg test: Add some plausibility checks.
18917         * tests/test-getloadavg.c (check_avg): Print a warning when the value
18918         is improbable.
18919
18920 2011-02-16  Eric Blake  <eblake@redhat.com>
18921
18922         maintainer-makefile: make syntax-check a no-op from tarballs
18923         * top/maint.mk (no-vc-detected): New rule.
18924         (local-checks-available): Use it to avoid hanging if someone tries
18925         'make syntax-check' from a tarball.  Also append to any non-syntax
18926         checks already defined in cfg.mk.
18927
18928 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
18929
18930         longlong: tune, particularly for common case of c99
18931
18932         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
18933         or running anything if c99, or if unsigned long long int does not
18934         work.  In either case, we know the answer without further tests.
18935         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
18936         it at most once, and use its results for both long long int and
18937         unsigned long long int.  This is more likely to be efficient in
18938         the common case where the program wants to check for both long
18939         long int and unsigned long long int.
18940         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
18941         since the answer is already known.
18942
18943 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
18944
18945         getloadavg: set errno
18946         * lib/getloadavg.c: Set errno when returning -1.  If no other
18947         error number looks appropriate, set it to ENOSYS if the getloadavg
18948         looks like it can't possibly ever work, ENOTSUP otherwise.
18949         Suggested by Bruno Haible in
18950         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
18951
18952         getloadavg: trim unused parts and speed up 'configure'
18953         * NEWS: Document this.
18954         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
18955         always compiled if getloadavg is absent.
18956         Move test code to ...
18957         * tests/test-getloadavg.c: New file, containing previous
18958         contents of test from lib/getloadavg.c.  It also contains
18959         suggestions by Bruno Haible in
18960         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
18961         * modules/getloadavg-tests: New file.
18962         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
18963         Do tests in the same order as they're needed for getloadavg.c.
18964         Omit setgid-related tests that generate symbols KMEM_GROUP,
18965         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
18966         Do only the tests that are needed to see whether the system has
18967         getloadavg, moving the other tests into ...
18968         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
18969         NLIST_NAME_UNION; nobody should be using it.  Do not define
18970         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
18971         relevant, as the user of this module shouldn't care how getloadavg
18972         is implemented.
18973
18974         getloadavg: omit unused var
18975         * lib/getloadavg.c (getloadavg): Omit unused local variable.
18976
18977 2011-02-15  Jim Meyering  <meyering@redhat.com>
18978
18979         doc: update users.txt
18980         * users.txt: Update iwhd's URL.
18981
18982 2011-02-13  Bruno Haible  <bruno@clisp.org>
18983
18984         Consistent macro naming for macros that use GCC __attribute__.
18985         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
18986         _ATTRIBUTE_NONNULL_.
18987         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
18988         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
18989         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
18990         ATTRIBUTE_DEPRECATED.
18991         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
18992         ATTRIBUTE_NORETURN.
18993         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18994         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18995         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18996         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18997         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
18998         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
18999         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
19000         ATTRIBUTE_SENTINEL.
19001         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
19002         ATTRIBUTE_RETURN_CHECK.
19003         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
19004         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
19005         ATTRIBUTE_NORETURN.
19006         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
19007         Reported by Paul Eggert.
19008
19009 2011-02-13  Bruno Haible  <bruno@clisp.org>
19010
19011         Don't interfere with a program's definition of __attribute__.
19012         * lib/argp.h (__attribute__): Remove definition.
19013         (_GL_ATTRIBUTE_FORMAT): New macro.
19014         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
19015         * lib/argp-fmtstream.h (__attribute__): Remove definition.
19016         (_GL_ATTRIBUTE_FORMAT): New macro.
19017         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
19018         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
19019         GCC 3 or newer.
19020         * lib/error.h (__attribute__): Remove definition.
19021         (_GL_ATTRIBUTE_FORMAT): New macro.
19022         (error, error_at_line): Use it.
19023         * lib/hash.h (__attribute__): Remove definition.
19024         (ATTRIBUTE_WUR): Update definition. Define always.
19025         * lib/openat.h (__attribute__): Remove definition.
19026         (ATTRIBUTE_NORETURN): Update definition. Define always.
19027         * lib/sigpipe-die.h (__attribute__): Remove definition.
19028         (ATTRIBUTE_NORETURN): Update definition. Define always.
19029         * lib/vasnprintf.h (__attribute__): Remove definition.
19030         (_GL_ATTRIBUTE_FORMAT): New macro.
19031         (asnprintf, vasnprintf): Use it.
19032         * lib/xalloc.h (__attribute__): Remove definition.
19033         (ATTRIBUTE_NORETURN): Update definition. Define always.
19034         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
19035         * lib/xmemdup0.h (__attribute__): Remove definition.
19036         (ATTRIBUTE_NORETURN): Update definition. Define always.
19037         * lib/xprintf.h (__attribute__): Remove definition.
19038         (_GL_ATTRIBUTE_FORMAT): New macro.
19039         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
19040         * lib/xstrtol.h (__attribute__): Remove definition.
19041         (ATTRIBUTE_NORETURN): Update definition. Define always.
19042         * lib/xvasprintf.h (__attribute__): Remove definition.
19043         (_GL_ATTRIBUTE_FORMAT): New macro.
19044         (xasprintf, xvasprintf): Use it.
19045         * tests/test-argmatch.c (__attribute__): Remove definition.
19046         (ATTRIBUTE_NORETURN): Update definition. Define always.
19047         * tests/test-exclude.c (__attribute__): Remove definition.
19048         (ATTRIBUTE_NORETURN): Update definition. Define always.
19049         Reported by Paul Eggert.
19050
19051 2011-02-13  Bruno Haible  <bruno@clisp.org>
19052
19053         mbrtowc: Add more tests for native Windows platforms.
19054         * tests/test-mbrtowc-w32-1.sh: New file.
19055         * tests/test-mbrtowc-w32-2.sh: New file.
19056         * tests/test-mbrtowc-w32-3.sh: New file.
19057         * tests/test-mbrtowc-w32-4.sh: New file.
19058         * tests/test-mbrtowc-w32-5.sh: New file.
19059         * tests/test-mbrtowc-w32.c: New file.
19060         * modules/mbrtowc-tests (Files): Add them.
19061         (Makefile.am): Arrange to run these tests.
19062         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
19063         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
19064
19065 2011-02-13  Bruno Haible  <bruno@clisp.org>
19066
19067         mbrtowc: Work around native Windows bug.
19068         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
19069         guess when no suitable locale for testing was found.
19070         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
19071
19072 2011-02-13  Bruno Haible  <bruno@clisp.org>
19073
19074         mbsinit: Work around mingw bug.
19075         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
19076         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
19077         Windows.
19078         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
19079
19080 2011-02-13  Bruno Haible  <bruno@clisp.org>
19081
19082         mbsinit: Don't crash for a NULL argument.
19083         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
19084         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
19085
19086 2011-02-13  Bruno Haible  <bruno@clisp.org>
19087
19088         Don't interfere with a program's definition of __attribute__.
19089         * lib/stdio.in.h (__attribute__): Remove definition.
19090         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
19091         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
19092         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
19093         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
19094         * lib/string.in.h (__attribute__): Remove definition.
19095         Reported by Paul Eggert.
19096
19097 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19098
19099         stdlib: don't get in the way of non-GCC __attribute__
19100         See thread starting at
19101         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
19102         Revert previous stdlib change, installing the following instead:
19103         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
19104         to get in the way of a non-GCC compiler that supports __attribute__.
19105         (_GL_ATTRIBUTE_RETURN): New macro.
19106         (_Exit): Use it instead of __attribute__.
19107
19108 2011-02-12  Bruno Haible  <bruno@clisp.org>
19109
19110         quotearg test: Avoid test failure on mingw.
19111         * tests/test-quotearg.sh: Convert the locale identifier from native
19112         Windows syntax to Unix syntax.
19113
19114 2011-02-12  Bruno Haible  <bruno@clisp.org>
19115
19116         setlocale: Prefer gnulib's override over libintl's override.
19117         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
19118         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
19119         GNULIB_defined_setlocale is set.
19120
19121 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19122
19123         stdlib: support non-GCC __attribute__
19124
19125         Fix a serious and tricky problem encountered when attempting to
19126         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
19127         5.5, but it crashed due to memory corruption on Solaris 10 with
19128         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
19129         bits that are otherwise zero.  This tagging is optional inside
19130         Emacs but is preferred and is used when __attribute__ ((__aligned
19131         (8))) works, as it does with both recent-enough GCC and with Sun C
19132         5.11.  However, Sun C 5.11 is not GCC and does not #define
19133         __GNUC__ and __GNUC_MINOR__.
19134
19135         When I added the getloadavg module to Emacs, it brought in
19136         stdlib.in.h, which contained this fragment:
19137
19138            #ifndef __attribute__
19139            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
19140            #  define __attribute__(Spec)   /* empty */
19141            # endif
19142            #endif
19143
19144         When files that include <stdlib.h> were compiled with Sun C 5.11,
19145         the above code disabled __attribute__ ((__aligned (8))), which
19146         caused variables to not be properly aligned, which eventually led
19147         to the pointer corruption mentioned above.  (This was a bit hard
19148         to diagnose, unfortunately.)
19149
19150         Several "#define __attribute__(X) /* empty */" code snippets need
19151         to be eradicated from Gnulib to work with non-GCC compilers that
19152         support __attribute__.  The Autoconf way to do this is to test for
19153         each kind of attribute that we want support for, and selectively
19154         enable that in source code.
19155
19156         Fix this problem just for stdlib.h, by adding a test for the
19157         __noreturn__ attribute, and change stdlib.in.h to use that test
19158         when needed.  This technique can be easily generalized to the
19159         other *.in.h files and attributes, and a similar technique can be
19160         used for *.h and *.c files.  This patch is enough to solve the
19161         problem for Emacs + getloadavg, and I thought I'd publish it for
19162         feedback before undertaking further, similar fixes in other
19163         modules.
19164
19165         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
19166         because it's not needed for stdlib.h.  It merely substitutes the
19167         value directly into stdlib.h.  We may well need to #define it, or
19168         similar symbols, for other modules, but it's nice to also have an
19169         option to not #define it for applications like Emacs that do not
19170         need it.
19171
19172         * lib/stdlib.in.h (__attribute__): Do not #define.
19173         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
19174         be defined only if the _Exit module is also used.
19175         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
19176         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
19177         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
19178         platforms.
19179         * modules/_Exit (Files): Add m4/attribute.m4.
19180         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
19181         * m4/attribute.m4: New file.
19182
19183 2011-02-12  Bruno Haible  <bruno@clisp.org>
19184
19185         wcsrtombs: Work around bug on native Windows.
19186         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
19187         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
19188         instead of len.
19189         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
19190
19191 2011-02-12  Bruno Haible  <bruno@clisp.org>
19192
19193         mbsrtowcs: Work around bug on native Windows.
19194         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
19195         against mingw bug.
19196         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
19197
19198 2011-02-12  Bruno Haible  <bruno@clisp.org>
19199
19200         Avoid setlocale bugs in tests.
19201         * modules/btowc (Dependencies): Add setlocale.
19202         * modules/c-strcase (Dependencies): Likewise.
19203         * modules/mbmemcasecmp (Dependencies): Likewise.
19204         * modules/mbmemcasecoll (Dependencies): Likewise.
19205         * modules/mbrtowc (Dependencies): Likewise.
19206         * modules/mbscasecmp (Dependencies): Likewise.
19207         * modules/mbscasestr (Dependencies): Likewise.
19208         * modules/mbschr (Dependencies): Likewise.
19209         * modules/mbscspn (Dependencies): Likewise.
19210         * modules/mbsinit (Dependencies): Likewise.
19211         * modules/mbsncasecmp (Dependencies): Likewise.
19212         * modules/mbsnrtowcs (Dependencies): Likewise.
19213         * modules/mbspbrk (Dependencies): Likewise.
19214         * modules/mbspcasecmp (Dependencies): Likewise.
19215         * modules/mbsrchr (Dependencies): Likewise.
19216         * modules/mbsrtowcs (Dependencies): Likewise.
19217         * modules/mbsspn (Dependencies): Likewise.
19218         * modules/mbsstr (Dependencies): Likewise.
19219         * modules/nl_langinfo (Dependencies): Likewise.
19220         * modules/quotearg (Dependencies): Likewise.
19221         * modules/unicase/locale-language (Dependencies): Likewise.
19222         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
19223         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
19224         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
19225         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
19226         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
19227         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
19228         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
19229         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
19230         * modules/vasnprintf-posix (Dependencies): Likewise.
19231         * modules/wcrtomb (Dependencies): Likewise.
19232         * modules/wcsnrtombs (Dependencies): Likewise.
19233         * modules/wcsrtombs (Dependencies): Likewise.
19234
19235 2011-02-12  Bruno Haible  <bruno@clisp.org>
19236
19237         setlocale: Workaround native Windows bug.
19238         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
19239         succeeds but sets LC_CTYPE to "C", report a failure.
19240         * tests/test-setlocale2.sh: New file.
19241         * tests/test-setlocale2.c: New file.
19242         * modules/setlocale-tests (Files): Add the new files.
19243         (Makefile.am): Enable test-setlocale2.sh test.
19244         * doc/posix-functions/setlocale.texi: Mention workaround.
19245
19246 2011-02-11  Bruno Haible  <bruno@clisp.org>
19247
19248         Tests for module 'setlocale'.
19249         * modules/setlocale-tests: New file.
19250         * tests/test-setlocale1.sh: New file.
19251         * tests/test-setlocale1.c: New file.
19252
19253         New module 'setlocale'.
19254         * lib/locale.in.h (setlocale): New declaration.
19255         * lib/setlocale.c: New file, based on
19256         gettext/gettext-runtime/intl/setlocale.c.
19257         * m4/setlocale.m4: New file.
19258         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
19259         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
19260         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
19261         REPLACE_SETLOCALE.
19262         * modules/setlocale: New file.
19263         * tests/test-locale-c++.cc: Test the declaration of setlocale.
19264         * doc/posix-functions/setlocale.texi: Mention the new module.
19265
19266 2011-02-11  Bruno Haible  <bruno@clisp.org>
19267
19268         Prepare for locale dependent tests on mingw.
19269         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19270         because it has the wrong locale encoding.
19271         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19272         French_France.1252 instead of "fr".
19273         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19274         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19275         because it has the wrong locale encoding.
19276         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19277         native Windows, try Turkish_Turkey.65001.
19278         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19279         Chinese_China.54936.
19280
19281         Prepare for locale dependent tests on mingw.
19282         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19283         differently.
19284         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19285         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19286         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19287         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19288
19289 2011-02-11  Eric Blake  <eblake@redhat.com>
19290
19291         strptime: avoid compiler warnings
19292         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
19293         compiler warnings about dead code.
19294         Reported by Daniel P. Berrange.
19295
19296 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
19297
19298         doc: update users.txt
19299         * users.txt: Add rcs.
19300
19301 2011-02-10  John W. Eaton  <jwe@gnu.org>
19302
19303         doc: update users.txt
19304         * users.txt: Add octave.
19305
19306 2011-02-10  Jim Meyering  <meyering@redhat.com>
19307
19308         doc: update users.txt
19309         * users.txt: Add iwhd.
19310
19311 2011-02-09  Bruno Haible  <bruno@clisp.org>
19312
19313         gnulib-tool: Make copyright notice adjustment more robust.
19314         * gnulib-tool (func_import): In sed_transform_main_lib_file,
19315         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
19316         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
19317         License".
19318         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
19319
19320 2011-02-06  Bruno Haible  <bruno@clisp.org>
19321
19322         New module 'towctrans'.
19323         * modules/towctrans: New file.
19324         * lib/wctype.in.h (towctrans): New declaration.
19325         * lib/towctrans.c: New file.
19326         * lib/towctrans-impl.h: New file.
19327         * m4/towctrans.m4: New file.
19328         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
19329         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
19330         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
19331         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
19332         * doc/posix-functions/towctrans.texi: Mention the new module.
19333
19334 2011-02-06  Bruno Haible  <bruno@clisp.org>
19335
19336         New module 'wctrans'.
19337         * modules/wctrans: New file.
19338         * lib/wctype.in.h (wctrans): New declaration.
19339         * lib/wctrans.c: New file.
19340         * lib/wctrans-impl.h: New file.
19341         * m4/wctrans.m4: New file.
19342         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
19343         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
19344         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
19345         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
19346         * doc/posix-functions/wctrans.texi: Mention the new module.
19347
19348 2011-02-06  Bruno Haible  <bruno@clisp.org>
19349
19350         New module 'iswctype'.
19351         * modules/iswctype: New file.
19352         * lib/wctype.in.h (iswctype): New declaration.
19353         * lib/iswctype.c: New file.
19354         * lib/iswctype-impl.h: New file.
19355         * m4/iswctype.m4: New file.
19356         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
19357         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
19358         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
19359         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
19360         * doc/posix-functions/iswctype.texi: Mention the new module and the
19361         HP-UX 11.00 problem.
19362
19363 2011-02-06  Bruno Haible  <bruno@clisp.org>
19364
19365         New module 'wctype'.
19366         * modules/wctype: Change to represent the wctype() substitute.
19367         * lib/wctype.in.h (wctype): New declaration.
19368         * lib/wctype.c: New file.
19369         * lib/wctype-impl.h: New file.
19370         * m4/wctype.m4: New file.
19371         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
19372         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
19373         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
19374         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
19375         * doc/posix-functions/wctype.texi: Mention the new module and the
19376         HP-UX 11.00 problem.
19377
19378 2011-02-06  Bruno Haible  <bruno@clisp.org>
19379
19380         wctype-h: Ensure wctype_t and wctrans_t are defined.
19381         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
19382         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19383         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19384         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
19385         HAVE_WCTRANS_T.
19386         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
19387
19388 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19389
19390         flock: fix license typo
19391
19392         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
19393         omitted.
19394
19395 2011-02-08  Bruno Haible  <bruno@clisp.org>
19396
19397         Split large sed scripts, for HP-UX sed.
19398         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
19399         to avoid HP-UX limit of 99 commands, in the near future.
19400         * modules/stdlib (Makefile.am): Likewise.
19401         * modules/unistd (Makefile.am): Likewise.
19402         * modules/wchar (Makefile.am): Likewise.
19403         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19404         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
19405         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
19406
19407 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19408             Bruno Haible  <bruno@clisp.org>
19409
19410         stdlib: improve random_r modularization
19411         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
19412         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
19413         you also need the random_r module to get this material right.
19414         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
19415         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
19416         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
19417
19418 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19419
19420         stdlib: don't depend on stdint
19421         * lib/stdlib.in.h: Don't include <stdint.h> merely because
19422         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
19423         be independent of whether stdint.h is needed.
19424         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
19425         here, instead of ...
19426         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
19427         struct random_data should be using the random_r module, not just
19428         the stdlib module (which wouldn't make sense: what package needs
19429         just struct random_data without also needing random_r?).
19430         * modules/stdlib (Depends-on): Remove stdint.
19431
19432         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
19433         See the thread rooted at
19434         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
19435         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
19436         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
19437         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
19438         __VMS)); previously it was always included (via fcntl--.h).
19439         (getloadavg): Do not use c_strtod.  Instead, approximate it by
19440         hand; this is good enough for load averages.  Also, do not use
19441         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
19442         flags directly if available and don't bother otherwise.  (Packages
19443         that need the extra reliability should use the modules that define
19444         these flags on older platforms that lack them.)
19445         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
19446         fcntl-safer.
19447
19448 2011-02-08  Jim Meyering  <meyering@redhat.com>
19449
19450         di-set.h, ino-map.h: add multiple-inclusion guard
19451         Technically, the guard is required only for ino-map.h, due to its
19452         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
19453         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
19454         * lib/ino-map.h: Likewise.
19455
19456 2011-02-06  Bruno Haible  <bruno@clisp.org>
19457
19458         iswblank: Ensure declaration on glibc systems.
19459         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
19460         * modules/iswblank (Dependencies): Add 'extensions'.
19461         * doc/posix-functions/iswblank.texi: Document the glibc problem.
19462
19463 2011-02-06  Bruno Haible  <bruno@clisp.org>
19464
19465         New module 'iswblank'.
19466         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
19467         * modules/iswblank: New file.
19468         * modules/wctype-h (Files): Remove lib/iswblank.c.
19469         (Makefile.am): Substitute GNULIB_ISWBLANK.
19470         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
19471         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
19472         (gl_WCTYPE_H_DEFAULTS): New macro.
19473         (gl_WCTYPE_H): Require it. Remove iswblank related code.
19474         * modules/iswblank-tests: New file.
19475         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
19476         * tests/test-wctype-h.c (main): Remove iswblank tests.
19477         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
19478         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
19479         of 'wctype-h'.
19480         * NEWS: Mention the change.
19481         * modules/mbchar (Depends-on): Add iswblank.
19482
19483 2011-02-08  Bruno Haible  <bruno@clisp.org>
19484
19485         di-set tests: Refactor.
19486         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
19487         unnecessary includes.
19488         (ASSERT): Remove macro.
19489         (main): Make C90 compliant by avoiding variable declaration after
19490         statement.
19491         * modules/di-set-tests (Files): Add tests/macros.h.
19492
19493 2011-02-08  Bruno Haible  <bruno@clisp.org>
19494
19495         ino-map tests: Refactor.
19496         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
19497         unnecessary includes.
19498         (ASSERT): Remove macro.
19499         (main): Make C90 compliant by avoiding variable declaration after
19500         statement.
19501         * modules/ino-map-tests (Files): Add tests/macros.h.
19502
19503 2011-02-08  Jim Meyering  <meyering@redhat.com>
19504
19505         di-set: add "const" to a cast
19506         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
19507         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
19508
19509 2011-02-06  Bruno Haible  <bruno@clisp.org>
19510
19511         Rename module 'wctype' to 'wctype-h'.
19512         * modules/wctype-h: Renamed from modules/wctype.
19513         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
19514         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
19515         (Files, Depends-on, Makefile.am): Update.
19516         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
19517         (Files, Makefile.am): Update.
19518         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
19519         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
19520         * doc/posix-headers/wctype.texi: Update.
19521         * doc/posix-functions/iswalnum.texi: Update.
19522         * doc/posix-functions/iswalpha.texi: Update.
19523         * doc/posix-functions/iswblank.texi: Update.
19524         * doc/posix-functions/iswcntrl.texi: Update.
19525         * doc/posix-functions/iswdigit.texi: Update.
19526         * doc/posix-functions/iswgraph.texi: Update.
19527         * doc/posix-functions/iswlower.texi: Update.
19528         * doc/posix-functions/iswprint.texi: Update.
19529         * doc/posix-functions/iswpunct.texi: Update.
19530         * doc/posix-functions/iswspace.texi: Update.
19531         * doc/posix-functions/iswupper.texi: Update.
19532         * doc/posix-functions/iswxdigit.texi: Update.
19533         * doc/posix-functions/towlower.texi: Update.
19534         * doc/posix-functions/towupper.texi: Update.
19535         * NEWS: Mention the change.
19536         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
19537         * modules/mbchar (Dependencies): Likewise.
19538         * modules/mbswidth (Dependencies): Likewise.
19539         * modules/quotearg (Dependencies): Likewise.
19540         * modules/regex (Dependencies): Likewise.
19541         * modules/wcscasecmp (Dependencies): Likewise.
19542         * modules/wcsncasecmp (Dependencies): Likewise.
19543         * modules/wcwidth (Dependencies): Likewise.
19544
19545 2011-02-06  Bruno Haible  <bruno@clisp.org>
19546
19547         New module 'wcswidth'.
19548         * modules/wcswidth: New file.
19549         * lib/wchar.in.h (wcswidth): New declaration.
19550         * lib/wcswidth.c: New file.
19551         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
19552         * m4/wcswidth.m4: New file.
19553         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
19554         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
19555         REPLACE_WCSWIDTH.
19556         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
19557         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
19558         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
19559         * doc/posix-functions/wcswidth.texi: Mention the new module.
19560
19561 2011-02-06  Bruno Haible  <bruno@clisp.org>
19562
19563         New module 'wcstok'.
19564         * modules/wcstok: New file.
19565         * lib/wchar.in.h (wcstok): New declaration.
19566         * lib/wcstok.c: New file.
19567         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
19568         * m4/wcstok.m4: New file.
19569         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
19570         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
19571         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
19572         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
19573         * doc/posix-functions/wcstok.texi: Mention the new module.
19574
19575 2011-02-06  Bruno Haible  <bruno@clisp.org>
19576
19577         New module 'wcsstr'.
19578         * modules/wcsstr: New file.
19579         * lib/wchar.in.h (wcsstr): New declaration.
19580         * lib/wcsstr.c: New file.
19581         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
19582         * m4/wcsstr.m4: New file.
19583         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
19584         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
19585         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
19586         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
19587         * doc/posix-functions/wcsstr.texi: Mention the new module.
19588
19589 2011-02-06  Bruno Haible  <bruno@clisp.org>
19590
19591         New module 'wcspbrk'.
19592         * modules/wcspbrk: New file.
19593         * lib/wchar.in.h (wcspbrk): New declaration.
19594         * lib/wcspbrk.c: New file.
19595         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
19596         * m4/wcspbrk.m4: New file.
19597         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
19598         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
19599         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
19600         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
19601         * doc/posix-functions/wcspbrk.texi: Mention the new module.
19602
19603 2011-02-06  Bruno Haible  <bruno@clisp.org>
19604
19605         New module 'wcsspn'.
19606         * modules/wcsspn: New file.
19607         * lib/wchar.in.h (wcsspn): New declaration.
19608         * lib/wcsspn.c: New file.
19609         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
19610         * m4/wcsspn.m4: New file.
19611         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
19612         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
19613         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
19614         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
19615         * doc/posix-functions/wcsspn.texi: Mention the new module.
19616
19617 2011-02-06  Bruno Haible  <bruno@clisp.org>
19618
19619         New module 'wcscspn'.
19620         * modules/wcscspn: New file.
19621         * lib/wchar.in.h (wcscspn): New declaration.
19622         * lib/wcscspn.c: New file.
19623         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
19624         * m4/wcscspn.m4: New file.
19625         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
19626         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
19627         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
19628         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
19629         * doc/posix-functions/wcscspn.texi: Mention the new module.
19630
19631 2011-02-06  Bruno Haible  <bruno@clisp.org>
19632
19633         New module 'wcsrchr'.
19634         * modules/wcsrchr: New file.
19635         * lib/wchar.in.h (wcsrchr): New declaration.
19636         * lib/wcsrchr.c: New file.
19637         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
19638         * m4/wcsrchr.m4: New file.
19639         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
19640         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
19641         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
19642         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
19643         * doc/posix-functions/wcsrchr.texi: Mention the new module.
19644
19645 2011-02-06  Bruno Haible  <bruno@clisp.org>
19646
19647         New module 'wcschr'.
19648         * modules/wcschr: New file.
19649         * lib/wchar.in.h (wcschr): New declaration.
19650         * lib/wcschr.c: New file.
19651         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
19652         * m4/wcschr.m4: New file.
19653         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
19654         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
19655         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
19656         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
19657         * doc/posix-functions/wcschr.texi: Mention the new module.
19658
19659 2011-02-06  Bruno Haible  <bruno@clisp.org>
19660
19661         New module 'wcsdup'.
19662         * modules/wcsdup: New file.
19663         * lib/wchar.in.h (wcsdup): New declaration.
19664         * lib/wcsdup.c: New file.
19665         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
19666         * m4/wcsdup.m4: New file.
19667         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
19668         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
19669         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
19670         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
19671         * doc/posix-functions/wcsdup.texi: Mention the new module.
19672
19673 2011-02-06  Bruno Haible  <bruno@clisp.org>
19674
19675         New module 'wcsxfrm'.
19676         * modules/wcsxfrm: New file.
19677         * lib/wchar.in.h (wcsxfrm): New declaration.
19678         * lib/wcsxfrm.c: New file.
19679         * lib/wcsxfrm-impl.h: New file.
19680         * m4/wcsxfrm.m4: New file.
19681         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
19682         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
19683         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
19684         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
19685         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
19686
19687 2011-02-06  Bruno Haible  <bruno@clisp.org>
19688
19689         New module 'wcscoll'.
19690         * modules/wcscoll: New file.
19691         * lib/wchar.in.h (wcscoll): New declaration.
19692         * lib/wcscoll.c: New file.
19693         * lib/wcscoll-impl.h: New file.
19694         * m4/wcscoll.m4: New file.
19695         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
19696         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
19697         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
19698         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
19699         * doc/posix-functions/wcscoll.texi: Mention the new module.
19700
19701 2011-02-06  Bruno Haible  <bruno@clisp.org>
19702
19703         New module 'wcsncasecmp'.
19704         * modules/wcsncasecmp: New file.
19705         * lib/wchar.in.h (wcsncasecmp): New declaration.
19706         * lib/wcsncasecmp.c: New file.
19707         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
19708         * m4/wcsncasecmp.m4: New file.
19709         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
19710         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
19711         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
19712         HAVE_WCSNCASECMP.
19713         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
19714         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
19715
19716 2011-02-06  Bruno Haible  <bruno@clisp.org>
19717
19718         New module 'wcscasecmp'.
19719         * modules/wcscasecmp: New file.
19720         * lib/wchar.in.h (wcscasecmp): New declaration.
19721         * lib/wcscasecmp.c: New file.
19722         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
19723         * m4/wcscasecmp.m4: New file.
19724         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
19725         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
19726         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
19727         HAVE_WCSCASECMP.
19728         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
19729         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
19730
19731 2011-02-05  Bruno Haible  <bruno@clisp.org>
19732
19733         New module 'wcsncmp'.
19734         * modules/wcsncmp: New file.
19735         * lib/wchar.in.h (wcsncmp): New declaration.
19736         * lib/wcsncmp.c: New file.
19737         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
19738         * m4/wcsncmp.m4: New file.
19739         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
19740         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
19741         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
19742         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
19743         * doc/posix-functions/wcsncmp.texi: Mention the new module.
19744
19745 2011-02-05  Bruno Haible  <bruno@clisp.org>
19746
19747         New module 'wcscmp'.
19748         * modules/wcscmp: New file.
19749         * lib/wchar.in.h (wcscmp): New declaration.
19750         * lib/wcscmp.c: New file.
19751         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
19752         * m4/wcscmp.m4: New file.
19753         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
19754         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
19755         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
19756         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
19757         * doc/posix-functions/wcscmp.texi: Mention the new module.
19758
19759 2011-02-05  Bruno Haible  <bruno@clisp.org>
19760
19761         New module 'wcsncat'.
19762         * modules/wcsncat: New file.
19763         * lib/wchar.in.h (wcsncat): New declaration.
19764         * lib/wcsncat.c: New file.
19765         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
19766         * m4/wcsncat.m4: New file.
19767         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
19768         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
19769         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
19770         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
19771         * doc/posix-functions/wcsncat.texi: Mention the new module.
19772
19773 2011-02-05  Bruno Haible  <bruno@clisp.org>
19774
19775         New module 'wcscat'.
19776         * modules/wcscat: New file.
19777         * lib/wchar.in.h (wcscat): New declaration.
19778         * lib/wcscat.c: New file.
19779         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
19780         * m4/wcscat.m4: New file.
19781         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
19782         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
19783         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
19784         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
19785         * doc/posix-functions/wcscat.texi: Mention the new module.
19786
19787 2011-02-05  Bruno Haible  <bruno@clisp.org>
19788
19789         New module 'wcpncpy'.
19790         * modules/wcpncpy: New file.
19791         * lib/wchar.in.h (wcpncpy): New declaration.
19792         * lib/wcpncpy.c: New file.
19793         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
19794         * m4/wcpncpy.m4: New file.
19795         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
19796         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
19797         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
19798         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
19799         * doc/posix-functions/wcpncpy.texi: Mention the new module.
19800
19801 2011-02-05  Bruno Haible  <bruno@clisp.org>
19802
19803         New module 'wcsncpy'.
19804         * modules/wcsncpy: New file.
19805         * lib/wchar.in.h (wcsncpy): New declaration.
19806         * lib/wcsncpy.c: New file.
19807         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
19808         * m4/wcsncpy.m4: New file.
19809         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
19810         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
19811         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
19812         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
19813         * doc/posix-functions/wcsncpy.texi: Mention the new module.
19814
19815 2011-02-05  Bruno Haible  <bruno@clisp.org>
19816
19817         New module 'wcpcpy'.
19818         * modules/wcpcpy: New file.
19819         * lib/wchar.in.h (wcpcpy): New declaration.
19820         * lib/wcpcpy.c: New file.
19821         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
19822         * m4/wcpcpy.m4: New file.
19823         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
19824         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
19825         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
19826         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
19827         * doc/posix-functions/wcpcpy.texi: Mention the new module.
19828
19829 2011-02-05  Bruno Haible  <bruno@clisp.org>
19830
19831         New module 'wcscpy'.
19832         * modules/wcscpy: New file.
19833         * lib/wchar.in.h (wcscpy): New declaration.
19834         * lib/wcscpy.c: New file.
19835         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
19836         * m4/wcscpy.m4: New file.
19837         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
19838         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
19839         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
19840         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
19841         * doc/posix-functions/wcscpy.texi: Mention the new module.
19842
19843 2011-02-05  Bruno Haible  <bruno@clisp.org>
19844
19845         New module 'wcsnlen'.
19846         * modules/wcsnlen: New file.
19847         * lib/wchar.in.h (wcsnlen): New declaration.
19848         * lib/wcsnlen.c: New file.
19849         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
19850         * m4/wcsnlen.m4: New file.
19851         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
19852         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
19853         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
19854         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
19855         * doc/posix-functions/wcsnlen.texi: Mention the new module.
19856
19857 2011-02-05  Bruno Haible  <bruno@clisp.org>
19858
19859         New module 'wcslen'.
19860         * modules/wcslen: New file.
19861         * lib/wchar.in.h (wcslen): New declaration.
19862         * lib/wcslen.c: New file.
19863         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
19864         * m4/wcslen.m4: New file.
19865         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
19866         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
19867         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
19868         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
19869         * doc/posix-functions/wcslen.texi: Mention the new module.
19870
19871 2011-02-05  Bruno Haible  <bruno@clisp.org>
19872
19873         New module 'wmemset'.
19874         * modules/wmemset: New file.
19875         * lib/wchar.in.h (wmemset): New declaration.
19876         * lib/wmemset.c: New file.
19877         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
19878         * m4/wmemset.m4: New file.
19879         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
19880         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
19881         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
19882         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
19883         * doc/posix-functions/wmemset.texi: Mention the new module.
19884
19885 2011-02-05  Bruno Haible  <bruno@clisp.org>
19886
19887         New module 'wmemmove'.
19888         * modules/wmemmove: New file.
19889         * lib/wchar.in.h (wmemmove): New declaration.
19890         * lib/wmemmove.c: New file.
19891         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
19892         * m4/wmemmove.m4: New file.
19893         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
19894         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
19895         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
19896         HAVE_WMEMMOVE.
19897         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
19898         * doc/posix-functions/wmemmove.texi: Mention the new module.
19899
19900 2011-02-05  Bruno Haible  <bruno@clisp.org>
19901
19902         New module 'wmemcpy'.
19903         * modules/wmemcpy: New file.
19904         * lib/wchar.in.h (wmemcpy): New declaration.
19905         * lib/wmemcpy.c: New file.
19906         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
19907         * m4/wmemcpy.m4: New file.
19908         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
19909         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
19910         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
19911         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
19912         * doc/posix-functions/wmemcpy.texi: Mention the new module.
19913
19914 2011-02-05  Bruno Haible  <bruno@clisp.org>
19915
19916         New module 'wmemcmp'.
19917         * modules/wmemcmp: New file.
19918         * lib/wchar.in.h (wmemcmp): New declaration.
19919         * lib/wmemcmp.c: New file.
19920         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
19921         * m4/wmemcmp.m4: New file.
19922         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
19923         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
19924         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
19925         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
19926         * doc/posix-functions/wmemcmp.texi: Mention the new module.
19927
19928 2011-02-07  Jim Meyering  <meyering@redhat.com>
19929
19930         di-set, ino-map: new modules, from coreutils
19931         * lib/di-set.c: New file.
19932         * lib/di-set.h: Likewise.
19933         * lib/ino-map.c: Likewise.
19934         * lib/ino-map.h: Likewise.
19935         * modules/di-set: Likewise.
19936         * modules/di-set-tests: Likewise.
19937         * modules/ino-map: Likewise.
19938         * modules/ino-map-tests: Likewise.
19939         * tests/test-di-set.c: Likewise.
19940         * tests/test-ino-map.c: Likewise.
19941
19942 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
19943
19944         getloadavg: merge minor changes from Emacs
19945
19946         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
19947         (getloadavg): Use memset, not bzero.
19948
19949         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
19950         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
19951         clash (bug#86).
19952
19953 2010-11-14  Bruno Haible  <bruno@clisp.org>
19954
19955         Allow multiple gnulib generated replacements to coexist.
19956         * lib/getopt.in.h (struct option): Avoid identical redefinition.
19957         * lib/inttypes.in.h (imaxdiv_t): Likewise.
19958         * lib/langinfo.in.h (nl_item): Likewise.
19959         * lib/math.in.h (_NaN, NAN): Likewise.
19960         * lib/netdb.in.h (struct addrinfo): Likewise.
19961         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
19962         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
19963         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
19964         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
19965         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
19966         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
19967         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
19968         pthread_mutexattr_init, pthread_mutexattr_settype,
19969         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
19970         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
19971         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
19972         pthread_spin_trylock, pthread_spin_unlock): Likewise.
19973         * lib/sched.in.h (struct sched_param): Likewise.
19974         * lib/se-selinux.in.h (security_class_t, security_context_t,
19975         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
19976         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
19977         lsetfilecon, fsetfilecon, security_check_context,
19978         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
19979         Likewise.
19980         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
19981         Likewise.
19982         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
19983         _gl_function_taking_int_returning_void_t, union sigval,
19984         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
19985         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
19986         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19987         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
19988         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
19989         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
19990         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
19991         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
19992         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
19993         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
19994         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
19995         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
19996         socklen_t, rpl_fd_isset): Likewise.
19997         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
19998         * lib/sys_time.in.h (struct timeval): Likewise.
19999         * lib/sys_times.in.h (struct tms): Likewise.
20000         * lib/sys_utsname.in.h (struct utsname):
20001         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
20002         * lib/unistd.in.h (getpagesize): Likewise.
20003         * lib/wchar.in.h (mbstate_t): Likewise.
20004         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
20005         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
20006         towlower, towupper): Likewise.
20007         Reported by Sam Steingold <sds@gnu.org>.
20008
20009 2011-02-05  Eric Blake  <eblake@redhat.com>
20010
20011         unsetenv: work around Haiku issues
20012         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
20013         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
20014
20015 2010-12-30  Bruce Korb  <bkorb@gnu.org>
20016
20017         libposix: avoid calling error() within libposix
20018         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
20019         is defined.
20020
20021 2011-02-05  Eric Blake  <eblake@redhat.com>
20022
20023         strerror_r-posix: port to cygwin
20024         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
20025         implementation.
20026         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
20027         * tests/test-strerror_r.c (main): Fix test.
20028         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
20029         issue.
20030
20031 2011-02-05  Bruno Haible  <bruno@clisp.org>
20032
20033         New module 'wmemchr'.
20034         * modules/wmemchr: New file.
20035         * lib/wchar.in.h (wmemchr): New declaration.
20036         * lib/wmemchr.c: New file.
20037         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
20038         * m4/wmemchr.m4: New file.
20039         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
20040         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
20041         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
20042         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
20043         * doc/posix-functions/wmemchr.texi: Mention the new module.
20044
20045 2011-02-04  Eric Blake  <eblake@redhat.com>
20046
20047         fdopendir: detect FreeBSD bug
20048         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
20049         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
20050
20051 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
20052
20053         stdbool: do not define HAVE_STDBOOL_H
20054         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
20055         AC_HEADER_STDBOOL.  All uses changed.  Do not define
20056         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
20057         imported from the latest Autoconf git.  It was motivated by Emacs,
20058         which uses gnulib but does not need HAVE_STDBOOL_H.
20059
20060 2011-02-04  Bruno Haible  <bruno@clisp.org>
20061
20062         wcsnrtombs: Prepare for new module wwcsnrtombs.
20063         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
20064         * lib/wcsnrtombs.c: Include it.
20065         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
20066
20067         wcsrtombs: Prepare for new module wwcsrtombs.
20068         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
20069         * lib/wcsrtombs.c: Include it.
20070         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
20071
20072         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
20073         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
20074         * lib/mbsnrtowcs.c: Include it.
20075         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
20076
20077         mbsrtowcs: Prepare for new module mbsrtowwcs.
20078         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
20079         * lib/mbsrtowcs.c: Include it.
20080         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
20081
20082 2011-02-04  Bruno Haible  <bruno@clisp.org>
20083
20084         vasnprintf: Reduce use of malloc for small format strings.
20085         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
20086         (arguments): Add room for the first 7 arguments.
20087         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
20088         (char_directives, u8_directives, u16_directives, u32_directives): Add
20089         room for the first 7 directives.
20090         * lib/printf-parse.c: Include <string.h>.
20091         (PRINTF_PARSE): Change memory handling code so that it uses the first
20092         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
20093         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
20094         Reported by Pádraig Brady <P@draigbrady.com>.
20095
20096 2011-01-31  Eric Blake  <eblake@redhat.com>
20097
20098         dup2: work around Haiku bug
20099         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
20100         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
20101         * doc/posix-functions/dup2.texi (dup2): Document the bug.
20102         * tests/test-dup2.c (main): Enhance test.
20103
20104 2011-01-31  Simon Josefsson  <simon@josefsson.org>
20105
20106         doc: off_t is not available in eglibc 2.11.2 stdio.h.
20107         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
20108         declared by eglibc 2.11.2.
20109         * lib/stdio.in.h: Likewise.
20110
20111 2011-01-31  Eric Blake  <eblake@redhat.com>
20112
20113         ignore-value: add missing test dependency
20114         * tests/test-ignore-value.c: Revert previous change; stdio.h
20115         provides off_t.
20116         * modules/ignore-value-tests (Depends-on): Add missing dependency.
20117
20118 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
20119
20120         mktime: clarify long_int width checking
20121         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
20122         the top level, to make it clearer that the assumption about
20123         long_int width is being checked.  See
20124         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
20125
20126 2011-01-30  Simon Josefsson  <simon@josefsson.org>
20127
20128         ignore-value: Fix self-test.
20129         * tests/test-ignore-value.c: Include sys/types.h for off_t.
20130
20131 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
20132
20133         TYPE_MAXIMUM: avoid theoretically undefined behavior
20134         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
20135         negative number, which the C Standard says has undefined behavior.
20136         In practice this is not a problem, but might as well do it by the book.
20137         Reported by Rich Felker and Eric Blake; see
20138         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
20139         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
20140         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20141         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20142         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
20143         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20144         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
20145
20146         mktime: #undef mktime before #defining it
20147         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
20148
20149         mktime: systematically normalize tm_isdst comparisons
20150         * lib/mktime.c (isdst_differ): New function.
20151         (__mktime_internal): Use it systematically for all isdst comparisons.
20152         This completes the fix for libc BZ #6723, and removes the need for
20153         normalizing tm_isdst.  See
20154         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
20155         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
20156
20157         mktime: fix some integer overflow issues and sidestep the rest
20158
20159         This was prompted by a bug report by Benjamin Lindner for MinGW
20160         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
20161         His bug is due to signed integer overflow (0 - INT_MIN), and I
20162         I scanned through mktime.c looking for other integer overflow
20163         problems, fixing all the bugs I found.
20164
20165         Although the C Standard says the resulting code is still not safe
20166         in the presence of integer overflow, in practice it should be good
20167         enough for all real-world two's-complement implementations, except
20168         for debugging environments that deliberately trap on integer
20169         overflow (e.g., gcc -ftrapv).
20170
20171         * lib/mktime.c (WRAPV): New macro.
20172         (SHR): Also check that long_int and time_t shift right in the
20173         usual way, before using the fast-but-unportable method.
20174         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
20175         used.  The code already assumed two's complement, so there's
20176         no need to test for alternatives.  All uses removed.
20177         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
20178         the C standard.  Problem reported by Rich Felker in
20179         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
20180         (twos_complement_arithmetic): Also check long_int and time_t.
20181         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
20182         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
20183         (__mktime_internal): Avoid integer overflow with unary subtraction
20184         in two instances where -1 - X is an adequate replacement for -X,
20185         since the calculations are approximate.
20186
20187 2011-01-29  Eric Blake  <eblake@redhat.com>
20188
20189         mktime: avoid infinite loop
20190         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
20191         type; behavior is still undefined but portable to all known targets.
20192         Reported by Rich Felker.
20193
20194 2011-01-29  Simon Josefsson  <simon@josefsson.org>
20195
20196         rename, unlink, same-inode: Relicense.
20197         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
20198         * modules/unlink (License): Likewise.
20199         * modules/same-inode (License): Likewise.
20200
20201 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
20202
20203         mktime: avoid problems on NetBSD 5 / i386
20204         * lib/mktime.c (long_int): New type.  This works around a problem
20205         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
20206         but time_t is 64 bits, and where I expect the existing code is
20207         wrong in some cases.
20208         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
20209         (ydhms_diff): Bring back the compile-time check for wide-enough
20210         year and yday.
20211
20212         mktime: fix misspelling in comment
20213         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
20214         This merges all recent glibc changes of importance.
20215
20216 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20217
20218         move-if-change: cope with concurrent mv of identical file.
20219         * build-aux/move-if-change (CMPPROG): Accept environment
20220         variable as an override for `cmp'.
20221         (usage): Document CMPPROG.
20222         Adjust comparison to drop stdout.  Cope with failure of mv if
20223         the target file exists and is identical to the source, for
20224         parallel builds.
20225         Report from H.J. Lu against binutils in PR binutils/12283.
20226
20227 2011-01-28  Bruce Korb  <bkorb@gnu.org>
20228
20229         * users.txt: Mention sharutils.
20230
20231 2011-01-28  Simon Josefsson  <simon@josefsson.org>
20232
20233         * users.txt: Mention OATH Toolkit.
20234
20235 2011-01-27  Bruno Haible  <bruno@clisp.org>
20236
20237         Prepare for supporting FreeBSD 10.
20238         * build-aux/config.libpath: Remove handling of freebsd1*.
20239
20240 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
20241
20242         Prepare for supporting FreeBSD 10.
20243         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
20244         match FreeBSD 10.0.
20245
20246 2011-01-27  Bruno Haible  <bruno@clisp.org>
20247
20248         vma-iter, get-rusage-as: Add OpenBSD support.
20249         * modules/vma-iter (configure.ac): Test for mquery.
20250         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
20251         * lib/vma-iter.c: Include <sys/mman.h>.
20252         (vma_iterate): Add an implementation based on mquery().
20253         * lib/resource-ext.h (get_rusage_as): Update comments.
20254         * lib/get-rusage-as.c: Likewise.
20255         * lib/get-rusage-data.c: Likewise.
20256
20257 2011-01-26  Karl Berry  <karl@gnu.org>
20258
20259         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
20260         variables to make it easier to override the makeinfo program used.
20261
20262 2011-01-26  Eric Blake  <eblake@redhat.com>
20263
20264         fcntl: work around Haiku F_DUPFD bugs
20265         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20266         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20267         cloexec bit on duplication.
20268         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20269
20270 2011-01-26  Bruno Haible  <bruno@clisp.org>
20271
20272         Enable memory leak tests on AIX.
20273         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20274         * tests/test-fprintf-posix3.c (main): Likewise.
20275
20276 2011-01-26  Bruno Haible  <bruno@clisp.org>
20277
20278         Tests for module 'get-rusage-data'.
20279         * modules/get-rusage-data-tests: New file.
20280         * tests/test-get-rusage-data.c: New file.
20281
20282         New module 'get-rusage-data'.
20283         * lib/resource-ext.h (get_rusage_data): New declaration.
20284         * lib/get-rusage-data.c: New file.
20285         * modules/get-rusage-data: New file.
20286
20287 2011-01-25  Bruno Haible  <bruno@clisp.org>
20288
20289         get-rusage-as: Allow for easier testing.
20290         * lib/resource-ext.h (get_rusage_as): Add comment.
20291         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
20292         (main): New function for interactive testing.
20293
20294 2011-01-25  Bruno Haible  <bruno@clisp.org>
20295
20296         vma-iter: Treat Haiku like BeOS.
20297         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
20298         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
20299
20300 2011-01-25  Eric Blake  <eblake@redhat.com>
20301
20302         c-stack: fix regression on cygwin when libsigsegv is present
20303         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
20304
20305 2011-01-24  Bruno Haible  <bruno@clisp.org>
20306
20307         vma-iter: Avoid empty intervals.
20308         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
20309         on an empty interval.
20310
20311 2011-01-24  Jim Meyering  <meyering@redhat.com>
20312
20313         u64: remove unnecessary #include
20314         * lib/u64.h: Don't include <stddef.h>.  It was not used.
20315
20316 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20317
20318         Allow the user to avoid the HAVE_RAW_DECL_* macros.
20319         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
20320
20321 2011-01-23  Bruno Haible  <bruno@clisp.org>
20322
20323         New module 'vma-iter'.
20324         * lib/vma-iter.h: New file.
20325         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
20326         * modules/vma-iter: New file.
20327         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
20328         for get_rusage_as_via_iterator.
20329         (vma_iterate_callback): New function.
20330         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
20331         * modules/get-rusage-as (Depends-on): Add vma-iter.
20332
20333 2011-01-23  Bruno Haible  <bruno@clisp.org>
20334
20335         uninorm: Tweak includes.
20336         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
20337         Reported by Jim Meyering.
20338
20339 2011-01-23  Bruno Haible  <bruno@clisp.org>
20340
20341         get-rusage-as: Improve on NetBSD.
20342         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
20343         /proc, like on FreeBSD.
20344
20345 2011-01-23  Jim Meyering  <meyering@redhat.com>
20346
20347         xreadlink.h: remove unnecessary #include
20348         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
20349
20350         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
20351         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
20352
20353 2011-01-23  Bruno Haible  <bruno@clisp.org>
20354
20355         get-rusage-as: Fix bug.
20356         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
20357         original limit when aborting the first loop.
20358
20359 2011-01-23  Bruno Haible  <bruno@clisp.org>
20360
20361         wctype: Ensure valid C syntax.
20362         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
20363         unconditionally, instead of gl_NEXT_HEADERS conditionally.
20364
20365 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20366
20367         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
20368         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
20369         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
20370         as they are needed only for configure's test case.
20371         This removes two unnecessary symbols from config.h.
20372
20373         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
20374         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
20375         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
20376         AC_CHECK_HEADERS_ONCE on a header that we also invoke
20377         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
20378         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
20379         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
20380         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
20381         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20382         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20383         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20384         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20385         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20386         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20387         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
20388         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20389         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20390         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
20391
20392 2011-01-21  Eric Blake  <eblake@redhat.com>
20393
20394         maintainer-makefile: work with older git for submodule check
20395         * top/maint.mk (public-submodule-commit): Rewrite to avoid
20396         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
20397         Reported by Matthias Bolte.
20398
20399         bootstrap: minor portability fixes
20400         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
20401         (usage): Omit leading capital and trailing . on help phrases, per
20402         GNU Coding Standards.
20403         (check_versions, top level): Prefix messages with script name.
20404
20405 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
20406
20407         bootstrap: support --no-git option
20408         * build-aux/bootstrap: Add --no-git option, to be used when
20409         --gnulib-srcdir points to the exact desired checkout.
20410
20411 2011-01-21  Eric Blake  <eblake@redhat.com>
20412
20413         strerror_r-posix: work with glibc 2.13
20414         * lib/strerror_r.c (strerror_r): Fix return type.
20415
20416 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20417             Bruno Haible  <bruno@clisp.org>
20418
20419         uN_strstr: New unit tests.
20420         * modules/unistr/u8-strstr-tests: New file.
20421         * modules/unistr/u16-strstr-tests: New file.
20422         * modules/unistr/u32-strstr-tests: New file.
20423         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
20424         * tests/unistr/test-u8-strstr.c: New file.
20425         * tests/unistr/test-u16-strstr.c: New file.
20426         * tests/unistr/test-u32-strstr.c: New file.
20427
20428 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20429             Bruno Haible  <bruno@clisp.org>
20430
20431         Make uN_strstr functions O(n) worst-case.
20432         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
20433         16-bit and 32-bit unit cases, use the unibyte algorithm from
20434         lib/mbsstr.c.
20435         * lib/unistr/u8-strstr.c: Include <string.h>.
20436         (UNIT_IS_UINT8_T): New macro.
20437         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
20438         (U_STRLEN, U_STRNLEN): New macros.
20439         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
20440         (U_STRLEN, U_STRNLEN): New macros.
20441         * modules/unistr/u8-strstr (Depends-on): Add strstr.
20442         (configure.ac): Update required libunistring version.
20443         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
20444         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
20445         malloca.
20446         (configure.ac): Update required libunistring version.
20447         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
20448         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
20449         malloca.
20450         (configure.ac): Update required libunistring version.
20451
20452 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20453             Bruno Haible  <bruno@clisp.org>
20454
20455         Prepare for faster uN_strstr functions.
20456         * lib/str-kmp.h: Support definable UNITs.
20457         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
20458         needle_len argument.
20459         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
20460         * lib/mbscasestr.c (mbscasestr): Likewise.
20461
20462 2011-01-21  Pádraig Brady <P@draigBrady.com>
20463
20464         malloca-tests: make faster by unsetting MALLOC_PERTURB_
20465         * tests/test-malloca.c (main): Unset the environment variable
20466         to greatly speed up the test.
20467         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
20468         * modules/malloca-tests: Depend on unsetenv.
20469
20470 2011-01-21  Pádraig Brady <P@draigBrady.com>
20471
20472         ignore-value: remove stdint dependency
20473         * lib/ignore-value.h: Remove <stdint.h>
20474         * modules/ignore-value: Remove stdint dependency.
20475
20476 2011-01-21  Jim Meyering  <meyering@redhat.com>
20477
20478         maint.mk: adjust variable name to be consistent with other gl_ vars
20479         * top/maint.mk (gl_public_submodule_commit): Rename the variable
20480         to be lower case.
20481
20482 2011-01-20  Jim Meyering  <meyering@redhat.com>
20483
20484         maint.mk: make "check" depend on public-submodule-commit by default
20485         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
20486
20487 2011-01-20  Bruno Haible  <bruno@clisp.org>
20488
20489         mbfile, mbiter: Complete change from 2008-12-21.
20490         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
20491         * m4/mbiter.m4 (gl_MBITER): Likewise.
20492
20493 2011-01-20  Jim Meyering  <meyering@redhat.com>
20494
20495         init.sh: insert space between each function name and "()"
20496         * tests/init.sh: Make it a little easier to see that a function's
20497         name is "warn_", and not "warn" when looking at the first part of
20498         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
20499
20500 2011-01-20  Jim Meyering  <meyering@redhat.com>
20501
20502         mountlist: clean up code formatting
20503         * lib/mountlist.c (read_file_system_list): Split a long line,
20504         correct bracing style, use NULL in place of "(struct statfs *)0",
20505         don't parenthesize return value, add spaces around "=" and after
20506         ";-in-for-stmt".
20507
20508 2011-01-14  Markus Duft <mduft@gentoo.org>
20509
20510         mountlist: add support for Interix
20511         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
20512         Apply statvfs to all entries of /dev/fs.
20513         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
20514         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
20515
20516 2011-01-20  Jim Meyering  <meyering@redhat.com>
20517
20518         maint.mk: improve the public-submodule-commit rule
20519         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
20520         to suppress printing of its commands... unless V=1.
20521         Add git submodule's --quiet option to suppress printing of e.g.,
20522         "Entering gnulib" output.
20523         "cd" into $(srcdir) before running git submodule.
20524
20525 2011-01-20  Bruno Haible  <bruno@clisp.org>
20526
20527         include_next: Fix bug introduced on 2011-01-18.
20528         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
20529         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
20530         ac_cv_header_... variable if the second argument is not 'check'.
20531         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
20532         gl_NEXT_HEADERS_INTERNAL.
20533
20534 2011-01-20  Bruno Haible  <bruno@clisp.org>
20535
20536         Allow the user to avoid the GNULIB_TEST_* macros.
20537         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
20538         Suggested by Paul Eggert.
20539
20540 2011-01-14  Jim Meyering  <meyering@redhat.com>
20541
20542         bootstrap: avoid failure when there is no .gitmodules file
20543         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
20544         has been assigned to, even when its value is the empty string.
20545         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
20546         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
20547         Reported by John W. Eaton <jwe@gnu.org>.
20548
20549 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20550
20551         assume <ctype.h>, ..., <time.h> exist
20552         For years gnulib has been assuming the existence of the headers
20553         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
20554         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
20555         them, since they don't appear to be needed.
20556         * README (Portability guidelines): Document this.
20557         * lib/flock.c: Assume <fcntl.h> exists.
20558         * lib/regex_internal.h: Assume <locale.h> exists.
20559         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
20560         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
20561         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
20562         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
20563         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
20564         * m4/regex.m4 (gl_REGEX): Likewise.
20565         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
20566         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
20567         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
20568         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
20569         * tests/test-argp.c: Likewise.
20570         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
20571
20572         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
20573         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
20574         AA_APPLE_UNIVERSAL_BUILD.  See
20575         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
20576         * NEWS: Document this.
20577
20578 2011-01-19  Eric Blake  <eblake@redhat.com>
20579
20580         c-stack: assume stack overflow if SA_SIGINFO unsupported
20581         * lib/c-stack.c (SIGACTION_WORKS): Rename...
20582         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
20583         sigaction will work.
20584         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
20585         behavior match Linux.
20586         * tests/test-c-stack.c (main): Prefer NULL for pointers.
20587
20588         stdbool-tests: accomodate Haiku
20589         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
20590
20591         binary-io: fix O_TEXT on Haiku
20592         * modules/binary-io (Depends-on): Add fcntl-h.
20593         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
20594         than blindly undefining O_TEXT.
20595         Reported by Scott McCreary.
20596
20597 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20598
20599         include_next: do not check for standard headers like stddef.h
20600
20601         I found this problem when modifying Emacs to use gnulib.
20602         I noticed that it added HAVE_STDDEF_H to config.h, even though
20603         gnulib always assumes <stddef.h> exists as per README and this
20604         symbol is unnecessary.
20605         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
20606         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
20607         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
20608         faster for headers like stddef.h that are known to exist.
20609         (gl_CHECK_NEXT_HEADERS): Use it.
20610         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
20611         rather than gl_CHECK_NEXT_HEADERS.
20612         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
20613         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
20614
20615 2011-01-18  Eric Blake  <eblake@redhat.com>
20616
20617         ansi-c++-opt: skip C++ dependency style if C++ is unused
20618         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
20619         tests when we know C++ compilation is not desired.
20620         Reported by Scott McCreary.
20621
20622 2011-01-18  Bruno Haible  <bruno@clisp.org>
20623
20624         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
20625         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
20626         (main): Perform test also when getrlimit and setrlimit don't exist or
20627         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
20628         limiting the address space size using setrlimit, compare the address
20629         space size before and after the the test.
20630         * tests/test-dprintf-posix2.c: Likewise.
20631         * tests/test-fprintf-posix3.sh: Update skip messages.
20632         * tests/test-dprintf-posix2.sh: Likewise.
20633         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
20634         * modules/dprintf-posix-tests (Depends-on): Likewise.
20635         Reported by Bruce Korb <bkorb@gnu.org> and
20636         Gary V. Vaughan <gary@gnu.org>.
20637
20638 2011-01-18  Bruno Haible  <bruno@clisp.org>
20639
20640         get-rusage-as: Improvement for Cygwin.
20641         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
20642         areas that are merely reserved.
20643
20644 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20645
20646         strftime: remove dependencies on multibyte modules
20647
20648         strftime depended on mbrlen, mbsinit, and wchar, but these modules
20649         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
20650         only if __osf__ is defined, and I suspect OSF doesn't need these
20651         other modules.  If my guess is wrong, we'll need to come up with a
20652         variant of strftime that doesn't need the multibyte modules.
20653
20654         I discovered this problem when attempting modify Emacs to use the
20655         strftime module.  With the previous gnulib, this caused Emacs to
20656         need 31 new files, ranging from lib/config.charset to
20657         m4/wint_t.m4.  This was overkill and I expect would be offputting
20658         to the Emacs maintainers.  After this change, only 6 new files are
20659         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
20660         stdbool.m4, and tm_gmtoff.m4.
20661
20662         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
20663         Suggested by Bruno Haible in
20664         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
20665         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
20666         and do not check for wchar.h.
20667         * modules/strftime (Files): Remove m4/mbstate_t.m4.
20668         (Depends-on): Remove mbrlen, mbsinit, wchar.
20669
20670 2011-01-18  Bruno Haible  <bruno@clisp.org>
20671
20672         Tests for module 'get-rusage-as'.
20673         * modules/get-rusage-as-tests: New file.
20674         * tests/test-get-rusage-as.c: New file.
20675
20676         New module 'get-rusage-as'.
20677         * modules/get-rusage-as: New file.
20678         * lib/resource-ext.h: New file.
20679         * lib/get-rusage-as.c: New file.
20680
20681 2011-01-17  Eric Blake  <eblake@redhat.com>
20682
20683         sigaction: relax license from LGPLv3+ to LGPLv2+
20684         * modules/sigaction (License): Relax to LGPLv2+.
20685
20686 2011-01-14  Bruno Haible  <bruno@clisp.org>
20687
20688         filemode: Make function declarations usable in C++ mode.
20689         * lib/filemode.h: Enclose function declarations in extern "C" block.
20690         Reported by John W. Eaton <jwe@gnu.org>.
20691
20692 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
20693
20694         save-cwd: no longer include "xgetcwd.h"
20695         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
20696         This avoids a compilation failure in projects that use save-cwd
20697         without also using the xgetcwd module.
20698
20699 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20700
20701         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
20702         This is so that a program like Emacs, which needs only dtoastr,
20703         does not have to bother with distributing and compiling ftoastr
20704         and ldtoastr.
20705         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
20706         * modules/dtoastr, modules/ldtoastr: New files.
20707         * modules/ftoastr: Now works just for 'float'.
20708         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
20709         (Makefile.am): Remove ftoastr.h (not needed and no effect),
20710         dtoastr.c, ldtoastr.c.
20711
20712 2011-01-11  Jim Meyering  <meyering@redhat.com>
20713
20714         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
20715         There is no need to work around the lack of the fchdir function,
20716         since gnulib can now provide a replacement when required.
20717         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
20718         * modules/save-cwd (Depends-on): Add fchdir.
20719
20720 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20721
20722         openat, save-cwd: avoid xmalloc
20723
20724         This removes a direct (but undocumented) dependency of openat on
20725         xalloc, along with an indirect dependency via save-cwd.  It also
20726         removes a dependency of save-cwd on xgetcwd, and thereby
20727         indirectly on xalloc.  This change causes the openat substitute
20728         to fall back on save_cwd when memory is tight, and for save_cwd to
20729         fail instead of dying when memory is tight, but that's good enough.
20730         Problem and initial idea for fix reported by Bastien Roucaries in
20731         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
20732
20733         * lib/openat-proc.c: Include stdlib.h (for malloc), not
20734         xalloc.h (for xmalloc).
20735         (openat_proc_name): Use malloc, not xmalloc.
20736         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
20737         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
20738
20739         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
20740         This avoids heap allocation for file names whose lengths are in
20741         the range 512..1023, with the upper bound increasing to at most
20742         4031 depending on the platform's PATH_MAX.  (We do not want
20743         pathmax.h here as it might supply a non-constant PATH_MAX.)
20744         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
20745         Perhaps they should be moved to malloca.h?
20746         (OPENAT_BUFFER_SIZE): Use them.
20747
20748 2011-01-10  Bruno Haible  <bruno@clisp.org>
20749
20750         doc: Update users.txt.
20751         * users.txt: Add recutils.
20752
20753 2011-01-09  Karl Berry  <karl@gnu.org>
20754
20755         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
20756
20757         * doc/configmake.texi: New file.
20758         * doc/gnulib.texi: Include it.
20759         * modules/configmake: Move documentation from here.
20760
20761 2011-01-09  Bruno Haible  <bruno@clisp.org>
20762
20763         Update to Unicode 6.0.0.
20764         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
20765         (get_lbp): Update for Unicode 6.0.0.
20766         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
20767         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
20768         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
20769         U+11001, U+11038..U+11046. Remove U+06DE.
20770         (uc_width): Fix bounds of planes.
20771         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20772         lib/uniwidth/width.c.
20773         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
20774         trailing whitespace removed.
20775         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
20776         without comments, but with the original copyright notice.
20777         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
20778         * lib/unicase/ignorable.h: Likewise.
20779         * lib/unicase/tocasefold.h: Likewise.
20780         * lib/unicase/tolower.h: Likewise.
20781         * lib/unicase/totitle.h: Likewise.
20782         * lib/unicase/toupper.h: Likewise.
20783         * lib/unictype/bidi_of.h: Likewise.
20784         * lib/unictype/blocks.h: Likewise.
20785         * lib/unictype/categ_C.h: Likewise.
20786         * lib/unictype/categ_Cn.h: Likewise.
20787         * lib/unictype/categ_L.h: Likewise.
20788         * lib/unictype/categ_Ll.h: Likewise.
20789         * lib/unictype/categ_Lm.h: Likewise.
20790         * lib/unictype/categ_Lo.h: Likewise.
20791         * lib/unictype/categ_Lu.h: Likewise.
20792         * lib/unictype/categ_M.h: Likewise.
20793         * lib/unictype/categ_Mc.h: Likewise.
20794         * lib/unictype/categ_Me.h: Likewise.
20795         * lib/unictype/categ_Mn.h: Likewise.
20796         * lib/unictype/categ_N.h: Likewise.
20797         * lib/unictype/categ_Nd.h: Likewise.
20798         * lib/unictype/categ_No.h: Likewise.
20799         * lib/unictype/categ_P.h: Likewise.
20800         * lib/unictype/categ_Po.h: Likewise.
20801         * lib/unictype/categ_S.h: Likewise.
20802         * lib/unictype/categ_Sc.h: Likewise.
20803         * lib/unictype/categ_Sk.h: Likewise.
20804         * lib/unictype/categ_Sm.h: Likewise.
20805         * lib/unictype/categ_So.h: Likewise.
20806         * lib/unictype/categ_of.h: Likewise.
20807         * lib/unictype/combining.h: Likewise.
20808         * lib/unictype/ctype_alnum.h: Likewise.
20809         * lib/unictype/ctype_alpha.h: Likewise.
20810         * lib/unictype/ctype_graph.h: Likewise.
20811         * lib/unictype/ctype_lower.h: Likewise.
20812         * lib/unictype/ctype_print.h: Likewise.
20813         * lib/unictype/ctype_punct.h: Likewise.
20814         * lib/unictype/ctype_upper.h: Likewise.
20815         * lib/unictype/decdigit.h: Likewise.
20816         * lib/unictype/digit.h: Likewise.
20817         * lib/unictype/numeric.h: Likewise.
20818         * lib/unictype/pr_alphabetic.h: Likewise.
20819         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20820         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20821         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20822         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20823         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20824         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20825         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20826         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20827         * lib/unictype/pr_case_ignorable.h: Likewise.
20828         * lib/unictype/pr_cased.h: Likewise.
20829         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
20830         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
20831         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
20832         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
20833         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
20834         * lib/unictype/pr_combining.h: Likewise.
20835         * lib/unictype/pr_composite.h: Likewise.
20836         * lib/unictype/pr_currency_symbol.h: Likewise.
20837         * lib/unictype/pr_decimal_digit.h: Likewise.
20838         * lib/unictype/pr_deprecated.h: Likewise.
20839         * lib/unictype/pr_format_control.h: Likewise.
20840         * lib/unictype/pr_grapheme_base.h: Likewise.
20841         * lib/unictype/pr_grapheme_extend.h: Likewise.
20842         * lib/unictype/pr_grapheme_link.h: Likewise.
20843         * lib/unictype/pr_id_continue.h: Likewise.
20844         * lib/unictype/pr_id_start.h: Likewise.
20845         * lib/unictype/pr_ideographic.h: Likewise.
20846         * lib/unictype/pr_lowercase.h: Likewise.
20847         * lib/unictype/pr_math.h: Likewise.
20848         * lib/unictype/pr_numeric.h: Likewise.
20849         * lib/unictype/pr_other_alphabetic.h: Likewise.
20850         * lib/unictype/pr_other_id_continue.h: Likewise.
20851         * lib/unictype/pr_other_math.h: Likewise.
20852         * lib/unictype/pr_punctuation.h: Likewise.
20853         * lib/unictype/pr_sentence_terminal.h: Likewise.
20854         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20855         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20856         * lib/unictype/pr_unified_ideograph.h: Likewise.
20857         * lib/unictype/pr_uppercase.h: Likewise.
20858         * lib/unictype/pr_xid_continue.h: Likewise.
20859         * lib/unictype/pr_xid_start.h: Likewise.
20860         * lib/unictype/scripts.h: Likewise.
20861         * lib/unictype/scripts_byname.gperf: Likewise.
20862         * lib/unictype/sy_java_ident.h: Likewise.
20863         * lib/unigbrk/gbrkprop.h: Likewise.
20864         * lib/unilbrk/lbrkprop1.h: Likewise.
20865         * lib/unilbrk/lbrkprop2.h: Likewise.
20866         * lib/uninorm/decomposition-table2.h: Likewise.
20867         * lib/uniwbrk/wbrkprop.h: Likewise.
20868         * tests/unicase/test-cased.c: Likewise.
20869         * tests/unicase/test-ignorable.c: Likewise.
20870         * tests/unicase/test-uc_tolower.c: Likewise.
20871         * tests/unicase/test-uc_totitle.c: Likewise.
20872         * tests/unicase/test-uc_toupper.c: Likewise.
20873         * tests/unictype/test-categ_C.c: Likewise.
20874         * tests/unictype/test-categ_Cn.c: Likewise.
20875         * tests/unictype/test-categ_L.c: Likewise.
20876         * tests/unictype/test-categ_Ll.c: Likewise.
20877         * tests/unictype/test-categ_Lm.c: Likewise.
20878         * tests/unictype/test-categ_Lo.c: Likewise.
20879         * tests/unictype/test-categ_Lu.c: Likewise.
20880         * tests/unictype/test-categ_M.c: Likewise.
20881         * tests/unictype/test-categ_Mc.c: Likewise.
20882         * tests/unictype/test-categ_Me.c: Likewise.
20883         * tests/unictype/test-categ_Mn.c: Likewise.
20884         * tests/unictype/test-categ_N.c: Likewise.
20885         * tests/unictype/test-categ_Nd.c: Likewise.
20886         * tests/unictype/test-categ_No.c: Likewise.
20887         * tests/unictype/test-categ_P.c: Likewise.
20888         * tests/unictype/test-categ_Po.c: Likewise.
20889         * tests/unictype/test-categ_S.c: Likewise.
20890         * tests/unictype/test-categ_Sc.c: Likewise.
20891         * tests/unictype/test-categ_Sk.c: Likewise.
20892         * tests/unictype/test-categ_Sm.c: Likewise.
20893         * tests/unictype/test-categ_So.c: Likewise.
20894         * tests/unictype/test-ctype_alnum.c: Likewise.
20895         * tests/unictype/test-ctype_alpha.c: Likewise.
20896         * tests/unictype/test-ctype_graph.c: Likewise.
20897         * tests/unictype/test-ctype_lower.c: Likewise.
20898         * tests/unictype/test-ctype_print.c: Likewise.
20899         * tests/unictype/test-ctype_punct.c: Likewise.
20900         * tests/unictype/test-ctype_upper.c: Likewise.
20901         * tests/unictype/test-decdigit.h: Likewise.
20902         * tests/unictype/test-digit.h: Likewise.
20903         * tests/unictype/test-numeric.h: Likewise.
20904         * tests/unictype/test-pr_alphabetic.c: Likewise.
20905         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
20906         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
20907         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
20908         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
20909         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
20910         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
20911         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
20912         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
20913         * tests/unictype/test-pr_case_ignorable.c: Likewise.
20914         * tests/unictype/test-pr_cased.c: Likewise.
20915         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
20916         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
20917         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
20918         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
20919         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
20920         * tests/unictype/test-pr_combining.c: Likewise.
20921         * tests/unictype/test-pr_composite.c: Likewise.
20922         * tests/unictype/test-pr_currency_symbol.c: Likewise.
20923         * tests/unictype/test-pr_decimal_digit.c: Likewise.
20924         * tests/unictype/test-pr_deprecated.c: Likewise.
20925         * tests/unictype/test-pr_format_control.c: Likewise.
20926         * tests/unictype/test-pr_grapheme_base.c: Likewise.
20927         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
20928         * tests/unictype/test-pr_grapheme_link.c: Likewise.
20929         * tests/unictype/test-pr_id_continue.c: Likewise.
20930         * tests/unictype/test-pr_id_start.c: Likewise.
20931         * tests/unictype/test-pr_ideographic.c: Likewise.
20932         * tests/unictype/test-pr_lowercase.c: Likewise.
20933         * tests/unictype/test-pr_math.c: Likewise.
20934         * tests/unictype/test-pr_numeric.c: Likewise.
20935         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
20936         * tests/unictype/test-pr_other_id_continue.c: Likewise.
20937         * tests/unictype/test-pr_other_math.c: Likewise.
20938         * tests/unictype/test-pr_punctuation.c: Likewise.
20939         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
20940         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
20941         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
20942         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
20943         * tests/unictype/test-pr_uppercase.c: Likewise.
20944         * tests/unictype/test-pr_xid_continue.c: Likewise.
20945         * tests/unictype/test-pr_xid_start.c: Likewise.
20946         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
20947         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
20948         changes.
20949         * lib/unictype/categ_Cc.h: Likewise.
20950         * lib/unictype/categ_Cf.h: Likewise.
20951         * lib/unictype/categ_Co.h: Likewise.
20952         * lib/unictype/categ_Cs.h: Likewise.
20953         * lib/unictype/categ_Lt.h: Likewise.
20954         * lib/unictype/categ_Nl.h: Likewise.
20955         * lib/unictype/categ_Pc.h: Likewise.
20956         * lib/unictype/categ_Pd.h: Likewise.
20957         * lib/unictype/categ_Pe.h: Likewise.
20958         * lib/unictype/categ_Pf.h: Likewise.
20959         * lib/unictype/categ_Pi.h: Likewise.
20960         * lib/unictype/categ_Ps.h: Likewise.
20961         * lib/unictype/categ_Z.h: Likewise.
20962         * lib/unictype/categ_Zl.h: Likewise.
20963         * lib/unictype/categ_Zp.h: Likewise.
20964         * lib/unictype/categ_Zs.h: Likewise.
20965         * lib/unictype/ctype_blank.h: Likewise.
20966         * lib/unictype/ctype_cntrl.h: Likewise.
20967         * lib/unictype/ctype_digit.h: Likewise.
20968         * lib/unictype/ctype_space.h: Likewise.
20969         * lib/unictype/ctype_xdigit.h: Likewise.
20970         * lib/unictype/mirror.h: Likewise.
20971         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
20972         * lib/unictype/pr_bidi_block_separator.h: Likewise.
20973         * lib/unictype/pr_bidi_common_separator.h: Likewise.
20974         * lib/unictype/pr_bidi_control.h: Likewise.
20975         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
20976         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
20977         * lib/unictype/pr_bidi_european_digit.h: Likewise.
20978         * lib/unictype/pr_bidi_pdf.h: Likewise.
20979         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
20980         * lib/unictype/pr_bidi_whitespace.h: Likewise.
20981         * lib/unictype/pr_dash.h: Likewise.
20982         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
20983         * lib/unictype/pr_diacritic.h: Likewise.
20984         * lib/unictype/pr_extender.h: Likewise.
20985         * lib/unictype/pr_hex_digit.h: Likewise.
20986         * lib/unictype/pr_hyphen.h: Likewise.
20987         * lib/unictype/pr_ids_binary_operator.h: Likewise.
20988         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
20989         * lib/unictype/pr_ignorable_control.h: Likewise.
20990         * lib/unictype/pr_iso_control.h: Likewise.
20991         * lib/unictype/pr_join_control.h: Likewise.
20992         * lib/unictype/pr_left_of_pair.h: Likewise.
20993         * lib/unictype/pr_line_separator.h: Likewise.
20994         * lib/unictype/pr_logical_order_exception.h: Likewise.
20995         * lib/unictype/pr_non_break.h: Likewise.
20996         * lib/unictype/pr_not_a_character.h: Likewise.
20997         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
20998         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
20999         * lib/unictype/pr_other_id_start.h: Likewise.
21000         * lib/unictype/pr_other_lowercase.h: Likewise.
21001         * lib/unictype/pr_other_uppercase.h: Likewise.
21002         * lib/unictype/pr_paired_punctuation.h: Likewise.
21003         * lib/unictype/pr_paragraph_separator.h: Likewise.
21004         * lib/unictype/pr_pattern_syntax.h: Likewise.
21005         * lib/unictype/pr_pattern_white_space.h: Likewise.
21006         * lib/unictype/pr_private_use.h: Likewise.
21007         * lib/unictype/pr_quotation_mark.h: Likewise.
21008         * lib/unictype/pr_radical.h: Likewise.
21009         * lib/unictype/pr_soft_dotted.h: Likewise.
21010         * lib/unictype/pr_space.h: Likewise.
21011         * lib/unictype/pr_titlecase.h: Likewise.
21012         * lib/unictype/pr_variation_selector.h: Likewise.
21013         * lib/unictype/pr_white_space.h: Likewise.
21014         * lib/unictype/pr_zero_width.h: Likewise.
21015         * lib/unictype/sy_c_ident.h: Likewise.
21016         * lib/unictype/sy_c_whitespace.h: Likewise.
21017         * lib/unictype/sy_java_whitespace.h: Likewise.
21018         * lib/uninorm/composition-table.gperf: Likewise.
21019         * lib/uninorm/decomposition-table1.h: Likewise.
21020         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
21021         LB8.
21022         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21023         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21024         * modules/unictype/*: Bump version number of expected libunistring
21025         version.
21026
21027 2011-01-09  Bruno Haible  <bruno@clisp.org>
21028
21029         Update to Unicode 5.2.0.
21030         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
21031         trailing whitespace removed.
21032
21033 2011-01-09  Bruno Haible  <bruno@clisp.org>
21034
21035         New Unicode character properties, from Unicode 5.2.0.
21036         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
21037         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
21038         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
21039         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
21040         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
21041         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
21042         uc_is_property_cased, uc_is_property_case_ignorable,
21043         uc_is_property_changes_when_lowercased,
21044         uc_is_property_changes_when_uppercased,
21045         uc_is_property_changes_when_titlecased,
21046         uc_is_property_changes_when_casefolded,
21047         uc_is_property_changes_when_casemapped): New declarations.
21048         * lib/unictype/pr_byname.gperf: Add the new properties.
21049         * modules/unictype/property-byname (Depends-on): Depend on the new
21050         properties modules.
21051         * modules/unictype/property-all (Depends-on): Likewise.
21052         * MODULES.html.sh (Unicode string functions): Add
21053         unictype/property-case-ignorable, unictype/property-cased,
21054         unictype/property-changes-when-casefolded,
21055         unictype/property-changes-when-casemapped,
21056         unictype/property-changes-when-lowercased,
21057         unictype/property-changes-when-titlecased,
21058         unictype/property-changes-when-uppercased.
21059
21060         New module 'unictype/property-changes-when-casemapped'.
21061         * modules/unictype/property-changes-when-casemapped: New file.
21062         * lib/unictype/pr_changes_when_casemapped.c: New file.
21063         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
21064         generated by gen-uni-tables.
21065         * modules/unictype/property-changes-when-casemapped-tests: New file.
21066         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
21067         automatically generated by gen-uni-tables.
21068
21069         New module 'unictype/property-changes-when-casefolded'.
21070         * modules/unictype/property-changes-when-casefolded: New file.
21071         * lib/unictype/pr_changes_when_casefolded.c: New file.
21072         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
21073         generated by gen-uni-tables.
21074         * modules/unictype/property-changes-when-casefolded-tests: New file.
21075         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
21076         automatically generated by gen-uni-tables.
21077
21078         New module 'unictype/property-changes-when-titlecased'.
21079         * modules/unictype/property-changes-when-titlecased: New file.
21080         * lib/unictype/pr_changes_when_titlecased.c: New file.
21081         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
21082         generated by gen-uni-tables.
21083         * modules/unictype/property-changes-when-titlecased-tests: New file.
21084         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
21085         automatically generated by gen-uni-tables.
21086
21087         New module 'unictype/property-changes-when-uppercased'.
21088         * modules/unictype/property-changes-when-uppercased: New file.
21089         * lib/unictype/pr_changes_when_uppercased.c: New file.
21090         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
21091         generated by gen-uni-tables.
21092         * modules/unictype/property-changes-when-uppercased-tests: New file.
21093         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
21094         automatically generated by gen-uni-tables.
21095
21096         New module 'unictype/property-changes-when-lowercased'.
21097         * modules/unictype/property-changes-when-lowercased: New file.
21098         * lib/unictype/pr_changes_when_lowercased.c: New file.
21099         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
21100         generated by gen-uni-tables.
21101         * modules/unictype/property-changes-when-lowercased-tests: New file.
21102         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
21103         automatically generated by gen-uni-tables.
21104
21105         New module 'unictype/property-case-ignorable'.
21106         * modules/unictype/property-case-ignorable: New file.
21107         * lib/unictype/pr_case_ignorable.c: New file.
21108         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
21109         by gen-uni-tables.
21110         * modules/unictype/property-case-ignorable-tests: New file.
21111         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
21112         generated by gen-uni-tables.
21113
21114         New module 'unictype/property-cased'.
21115         * modules/unictype/property-cased: New file.
21116         * lib/unictype/pr_cased.c: New file.
21117         * lib/unictype/pr_cased.h: New file, automatically generated by
21118         gen-uni-tables.
21119         * modules/unictype/property-cased-tests: New file.
21120         * tests/unictype/test-pr_cased.c: New file, automatically generated by
21121         gen-uni-tables.
21122
21123 2011-01-09  Bruno Haible  <bruno@clisp.org>
21124
21125         Update to Unicode 5.2.0.
21126         * lib/gen-uni-tables.c (output_predicate, output_category,
21127         output_combclass, output_bidi_category, output_decimal_digit_test,
21128         output_decimal_digit, output_digit_test, output_digit,
21129         output_numeric_test, output_numeric, output_mirror, output_scripts,
21130         output_scripts_byname, output_blocks, output_ident_category): Fix
21131         comment header.
21132         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
21133         get_wbp.
21134         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
21135         items.
21136         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
21137         Changes_When_Lowercased, Changes_When_Uppercased,
21138         Changes_When_Titlecased, Changes_When_Casefolded,
21139         Changes_When_Casemapped.
21140         (is_property_alphabetic, is_property_default_ignorable_code_point):
21141         Update for Unicode 5.2.0.
21142         (is_property_cased, is_property_case_ignorable,
21143         is_property_changes_when_lowercased,
21144         is_property_changes_when_uppercased,
21145         is_property_changes_when_titlecased,
21146         is_property_changes_when_casefolded,
21147         is_property_changes_when_casemapped): New functions.
21148         (output_properties): Output also the properties cased, case_ignorable,
21149         changes_when_lowercased, changes_when_uppercased,
21150         changes_when_titlecased, changes_when_casefolded,
21151         changes_when_casemapped.
21152         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
21153         Unicode TR#11 revision 17 -> 19.
21154         (LBP_CP): New enumeration value.
21155         (LBP_*): Adjust values accordingly.
21156         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21157         TR#14 revision 22 -> 24.
21158         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
21159         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
21160         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
21161         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
21162         is_WBP_MIDLETTER.
21163         (output_composition_tables): Allow for 24 bits instead of 16 bits in
21164         the code1 and code2 of each composition rule.
21165         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
21166         * lib/unicase/ignorable.h: Likewise.
21167         * lib/unicase/tocasefold.h: Likewise.
21168         * lib/unicase/tolower.h: Likewise.
21169         * lib/unicase/totitle.h: Likewise.
21170         * lib/unicase/toupper.h: Likewise.
21171         * lib/unictype/bidi_of.h: Likewise.
21172         * lib/unictype/blocks.h: Likewise.
21173         * lib/unictype/categ_C.h: Likewise.
21174         * lib/unictype/categ_Cf.h: Likewise.
21175         * lib/unictype/categ_Cn.h: Likewise.
21176         * lib/unictype/categ_L.h: Likewise.
21177         * lib/unictype/categ_Ll.h: Likewise.
21178         * lib/unictype/categ_Lm.h: Likewise.
21179         * lib/unictype/categ_Lo.h: Likewise.
21180         * lib/unictype/categ_Lu.h: Likewise.
21181         * lib/unictype/categ_M.h: Likewise.
21182         * lib/unictype/categ_Mc.h: Likewise.
21183         * lib/unictype/categ_Mn.h: Likewise.
21184         * lib/unictype/categ_N.h: Likewise.
21185         * lib/unictype/categ_Nd.h: Likewise.
21186         * lib/unictype/categ_Nl.h: Likewise.
21187         * lib/unictype/categ_No.h: Likewise.
21188         * lib/unictype/categ_P.h: Likewise.
21189         * lib/unictype/categ_Pd.h: Likewise.
21190         * lib/unictype/categ_Po.h: Likewise.
21191         * lib/unictype/categ_S.h: Likewise.
21192         * lib/unictype/categ_Sc.h: Likewise.
21193         * lib/unictype/categ_So.h: Likewise.
21194         * lib/unictype/categ_of.h: Likewise.
21195         * lib/unictype/combining.h: Likewise.
21196         * lib/unictype/ctype_alnum.h: Likewise.
21197         * lib/unictype/ctype_alpha.h: Likewise.
21198         * lib/unictype/ctype_graph.h: Likewise.
21199         * lib/unictype/ctype_lower.h: Likewise.
21200         * lib/unictype/ctype_print.h: Likewise.
21201         * lib/unictype/ctype_punct.h: Likewise.
21202         * lib/unictype/ctype_upper.h: Likewise.
21203         * lib/unictype/decdigit.h: Likewise.
21204         * lib/unictype/digit.h: Likewise.
21205         * lib/unictype/numeric.h: Likewise.
21206         * lib/unictype/pr_alphabetic.h: Likewise.
21207         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
21208         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
21209         * lib/unictype/pr_bidi_european_digit.h: Likewise.
21210         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
21211         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
21212         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
21213         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
21214         * lib/unictype/pr_combining.h: Likewise.
21215         * lib/unictype/pr_composite.h: Likewise.
21216         * lib/unictype/pr_currency_symbol.h: Likewise.
21217         * lib/unictype/pr_dash.h: Likewise.
21218         * lib/unictype/pr_decimal_digit.h: Likewise.
21219         * lib/unictype/pr_deprecated.h: Likewise.
21220         * lib/unictype/pr_diacritic.h: Likewise.
21221         * lib/unictype/pr_extender.h: Likewise.
21222         * lib/unictype/pr_grapheme_base.h: Likewise.
21223         * lib/unictype/pr_grapheme_extend.h: Likewise.
21224         * lib/unictype/pr_grapheme_link.h: Likewise.
21225         * lib/unictype/pr_id_continue.h: Likewise.
21226         * lib/unictype/pr_id_start.h: Likewise.
21227         * lib/unictype/pr_ideographic.h: Likewise.
21228         * lib/unictype/pr_ignorable_control.h: Likewise.
21229         * lib/unictype/pr_logical_order_exception.h: Likewise.
21230         * lib/unictype/pr_lowercase.h: Likewise.
21231         * lib/unictype/pr_numeric.h: Likewise.
21232         * lib/unictype/pr_other_alphabetic.h: Likewise.
21233         * lib/unictype/pr_punctuation.h: Likewise.
21234         * lib/unictype/pr_sentence_terminal.h: Likewise.
21235         * lib/unictype/pr_terminal_punctuation.h: Likewise.
21236         * lib/unictype/pr_unassigned_code_value.h: Likewise.
21237         * lib/unictype/pr_unified_ideograph.h: Likewise.
21238         * lib/unictype/pr_uppercase.h: Likewise.
21239         * lib/unictype/pr_xid_continue.h: Likewise.
21240         * lib/unictype/pr_xid_start.h: Likewise.
21241         * lib/unictype/pr_zero_width.h: Likewise.
21242         * lib/unictype/scripts.h: Likewise.
21243         * lib/unictype/scripts_byname.gperf: Likewise.
21244         * lib/unictype/sy_java_ident.h: Likewise.
21245         * lib/unigbrk/gbrkprop.h: Likewise.
21246         * lib/unilbrk/lbrkprop1.h: Likewise.
21247         * lib/unilbrk/lbrkprop2.h: Likewise.
21248         * lib/unilbrk/lbrktables.h: Likewise.
21249         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
21250         LBP_CP. Implement rule LB30.
21251         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
21252         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
21253         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
21254         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
21255         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
21256         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
21257         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
21258         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
21259         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
21260         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
21261         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
21262         bits instead of 16 bits in the code1 and code2 of each composition
21263         rule.
21264         (uc_composition): Update for Unicode 5.2.0.
21265         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21266         * lib/uninorm/decomposition-table2.h: Likewise.
21267         * lib/uniwbrk/wbrkprop.h: Likewise.
21268         * tests/unicase/test-cased.c: Likewise.
21269         * tests/unicase/test-ignorable.c: Likewise.
21270         * tests/unicase/test-uc_tolower.c: Likewise.
21271         * tests/unicase/test-uc_totitle.c: Likewise.
21272         * tests/unicase/test-uc_toupper.c: Likewise.
21273         * tests/unictype/test-categ_C.c: Likewise.
21274         * tests/unictype/test-categ_Cf.c: Likewise.
21275         * tests/unictype/test-categ_Cn.c: Likewise.
21276         * tests/unictype/test-categ_L.c: Likewise.
21277         * tests/unictype/test-categ_Ll.c: Likewise.
21278         * tests/unictype/test-categ_Lm.c: Likewise.
21279         * tests/unictype/test-categ_Lo.c: Likewise.
21280         * tests/unictype/test-categ_Lu.c: Likewise.
21281         * tests/unictype/test-categ_M.c: Likewise.
21282         * tests/unictype/test-categ_Mc.c: Likewise.
21283         * tests/unictype/test-categ_Mn.c: Likewise.
21284         * tests/unictype/test-categ_N.c: Likewise.
21285         * tests/unictype/test-categ_Nd.c: Likewise.
21286         * tests/unictype/test-categ_Nl.c: Likewise.
21287         * tests/unictype/test-categ_No.c: Likewise.
21288         * tests/unictype/test-categ_P.c: Likewise.
21289         * tests/unictype/test-categ_Pd.c: Likewise.
21290         * tests/unictype/test-categ_Po.c: Likewise.
21291         * tests/unictype/test-categ_S.c: Likewise.
21292         * tests/unictype/test-categ_Sc.c: Likewise.
21293         * tests/unictype/test-categ_So.c: Likewise.
21294         * tests/unictype/test-ctype_alnum.c: Likewise.
21295         * tests/unictype/test-ctype_alpha.c: Likewise.
21296         * tests/unictype/test-ctype_graph.c: Likewise.
21297         * tests/unictype/test-ctype_lower.c: Likewise.
21298         * tests/unictype/test-ctype_print.c: Likewise.
21299         * tests/unictype/test-ctype_punct.c: Likewise.
21300         * tests/unictype/test-ctype_upper.c: Likewise.
21301         * tests/unictype/test-decdigit.h: Likewise.
21302         * tests/unictype/test-digit.h: Likewise.
21303         * tests/unictype/test-numeric.h: Likewise.
21304         * tests/unictype/test-pr_alphabetic.c: Likewise.
21305         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21306         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21307         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21308         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21309         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21310         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21311         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21312         * tests/unictype/test-pr_combining.c: Likewise.
21313         * tests/unictype/test-pr_composite.c: Likewise.
21314         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21315         * tests/unictype/test-pr_dash.c: Likewise.
21316         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21317         * tests/unictype/test-pr_deprecated.c: Likewise.
21318         * tests/unictype/test-pr_diacritic.c: Likewise.
21319         * tests/unictype/test-pr_extender.c: Likewise.
21320         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21321         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21322         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21323         * tests/unictype/test-pr_id_continue.c: Likewise.
21324         * tests/unictype/test-pr_id_start.c: Likewise.
21325         * tests/unictype/test-pr_ideographic.c: Likewise.
21326         * tests/unictype/test-pr_ignorable_control.c: Likewise.
21327         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
21328         * tests/unictype/test-pr_lowercase.c: Likewise.
21329         * tests/unictype/test-pr_numeric.c: Likewise.
21330         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21331         * tests/unictype/test-pr_punctuation.c: Likewise.
21332         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21333         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21334         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21335         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21336         * tests/unictype/test-pr_uppercase.c: Likewise.
21337         * tests/unictype/test-pr_xid_continue.c: Likewise.
21338         * tests/unictype/test-pr_xid_start.c: Likewise.
21339         * tests/unictype/test-pr_zero_width.c: Likewise.
21340         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21341         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
21342         changed behaviour: line breaking is now disallowed between a letter
21343         or '=' and '('.
21344         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21345         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21346         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21347         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
21348         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21349         lib/uniwidth/width.c.
21350         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
21351         without comments, but with the original copyright notice.
21352         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21353         changes.
21354         * lib/unictype/categ_Cc.h: Likewise.
21355         * lib/unictype/categ_Co.h: Likewise.
21356         * lib/unictype/categ_Cs.h: Likewise.
21357         * lib/unictype/categ_Lt.h: Likewise.
21358         * lib/unictype/categ_Me.h: Likewise.
21359         * lib/unictype/categ_Pc.h: Likewise.
21360         * lib/unictype/categ_Pe.h: Likewise.
21361         * lib/unictype/categ_Pf.h: Likewise.
21362         * lib/unictype/categ_Pi.h: Likewise.
21363         * lib/unictype/categ_Ps.h: Likewise.
21364         * lib/unictype/categ_Sk.h: Likewise.
21365         * lib/unictype/categ_Sm.h: Likewise.
21366         * lib/unictype/categ_Z.h: Likewise.
21367         * lib/unictype/categ_Zl.h: Likewise.
21368         * lib/unictype/categ_Zp.h: Likewise.
21369         * lib/unictype/categ_Zs.h: Likewise.
21370         * lib/unictype/ctype_blank.h: Likewise.
21371         * lib/unictype/ctype_cntrl.h: Likewise.
21372         * lib/unictype/ctype_digit.h: Likewise.
21373         * lib/unictype/ctype_space.h: Likewise.
21374         * lib/unictype/ctype_xdigit.h: Likewise.
21375         * lib/unictype/mirror.h: Likewise.
21376         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21377         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21378         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21379         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21380         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21381         * lib/unictype/pr_bidi_control.h: Likewise.
21382         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21383         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21384         * lib/unictype/pr_bidi_pdf.h: Likewise.
21385         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21386         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21387         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21388         * lib/unictype/pr_format_control.h: Likewise.
21389         * lib/unictype/pr_hex_digit.h: Likewise.
21390         * lib/unictype/pr_hyphen.h: Likewise.
21391         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21392         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21393         * lib/unictype/pr_iso_control.h: Likewise.
21394         * lib/unictype/pr_join_control.h: Likewise.
21395         * lib/unictype/pr_left_of_pair.h: Likewise.
21396         * lib/unictype/pr_line_separator.h: Likewise.
21397         * lib/unictype/pr_math.h: Likewise.
21398         * lib/unictype/pr_non_break.h: Likewise.
21399         * lib/unictype/pr_not_a_character.h: Likewise.
21400         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21401         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21402         * lib/unictype/pr_other_id_continue.h: Likewise.
21403         * lib/unictype/pr_other_id_start.h: Likewise.
21404         * lib/unictype/pr_other_lowercase.h: Likewise.
21405         * lib/unictype/pr_other_math.h: Likewise.
21406         * lib/unictype/pr_other_uppercase.h: Likewise.
21407         * lib/unictype/pr_paired_punctuation.h: Likewise.
21408         * lib/unictype/pr_paragraph_separator.h: Likewise.
21409         * lib/unictype/pr_pattern_syntax.h: Likewise.
21410         * lib/unictype/pr_pattern_white_space.h: Likewise.
21411         * lib/unictype/pr_private_use.h: Likewise.
21412         * lib/unictype/pr_quotation_mark.h: Likewise.
21413         * lib/unictype/pr_radical.h: Likewise.
21414         * lib/unictype/pr_soft_dotted.h: Likewise.
21415         * lib/unictype/pr_space.h: Likewise.
21416         * lib/unictype/pr_titlecase.h: Likewise.
21417         * lib/unictype/pr_variation_selector.h: Likewise.
21418         * lib/unictype/pr_white_space.h: Likewise.
21419         * lib/unictype/sy_c_ident.h: Likewise.
21420         * lib/unictype/sy_c_whitespace.h: Likewise.
21421         * lib/unictype/sy_java_whitespace.h: Likewise.
21422         * modules/uni*/*: Bump version number of expected libunistring version.
21423         Reported by Simon Josefsson.
21424
21425 2011-01-09  Karl Heuer  <kwzh@gnu.org>
21426
21427         useless-if-before-free: fix typo in --help and make the internal,
21428         automatic version date update process work once again.
21429         --help output contained a NUL character instead of the
21430         backslash-zero that was intended.  Also, the "must lie within
21431         the first 8 lines" line is on line 9, and hence not getting
21432         automatically updated.
21433         * build-aux/useless-if-before-free: Fix the former by adding a
21434         backslash, and the latter by condensing the three lines of what-it-does
21435         to a single line, leaving one line of slack for the future.
21436
21437 2011-01-09  Bruno Haible  <bruno@clisp.org>
21438
21439         uniwidth/width: Fix width of U+1D173..U+1D17A.
21440         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
21441         symbolic_width, output_width_property_test): New functions.
21442         (main): Invoke output_nonspacing_property, output_width_property_test.
21443         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
21444         U+1D173..U+1D17A.
21445         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
21446         1.
21447         * modules/uniwidth/*: Bump version number of expected libunistring
21448         version.
21449         * modules/unilbrk/*: Likewise.
21450
21451 2011-01-08  Bruno Haible  <bruno@clisp.org>
21452
21453         uninorm tests: Preserve copyright of Unicode data file.
21454         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
21455         Mention modifications.
21456
21457 2011-01-08  Bruno Haible  <bruno@clisp.org>
21458
21459         gen-uni-tables: Prepare for Unicode 5.2.0.
21460         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
21461         (debug_output_lbp, output_lbp): Update.
21462
21463 2011-01-08  Bruno Haible  <bruno@clisp.org>
21464
21465         unilbrk: Clarify gen-uni-tables.c code.
21466         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
21467         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
21468         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
21469
21470 2011-01-07  Bruno Haible  <bruno@clisp.org>
21471
21472         strtod: Restore errno when successfully parsing Infinity or NaN.
21473         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
21474         restore the original errno.
21475
21476 2011-01-07  Bruno Haible  <bruno@clisp.org>
21477
21478         remove test: Avoid failure on HP-UX 11.
21479         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
21480
21481 2011-01-07  Bruno Haible  <bruno@clisp.org>
21482
21483         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
21484         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
21485         error code.
21486
21487 2011-01-07  Pádraig Brady <P@draigBrady.com>
21488
21489         ignore-value: fixup comments, and add Eric Blake
21490         as an author since he rewrote the macros.
21491         * lib/ignore-value.h (ignore_value):  State that
21492         we now support aggregates.  Also specify exactly
21493         when the GCC warn_unused_result feature was added.
21494
21495 2011-01-06  Eric Blake  <eblake@redhat.com>
21496
21497         ignore-value: support aggregate types
21498         * lib/ignore-value.h (ignore_value): Provide separate gcc
21499         definition.
21500         * modules/ignore-value-tests: New test module.
21501         * tests/test-ignore-value.c: New test.
21502
21503         maint.mk: improve sc_prohibit_strcmp regex
21504         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
21505         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
21506         definition of STRNEQ.
21507
21508         signal: work around Haiku issue with SIGBUS
21509         * lib/siglist.h: Add comment.
21510         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
21511         strsignal's favoring of SIGSEGV.
21512         * tests/test-signal.c (main): Avoid test failure.
21513         * doc/posix-headers/signal.texi (signal.h): Document the issue.
21514         Reported by Scott McCreary.
21515
21516         maint.mk: add pre-release check to ensure submodule commits are public
21517         * top/maint.mk (public-submodule-commit): New rule.
21518         (submodule-checks): New variable.
21519         (alpha beta stable): Depend on the variable.
21520
21521 2011-01-05  Pádraig Brady <P@draigBrady.com>
21522         and Jim Meyering  <meyering@redhat.com>
21523
21524         ignore-value: make ignore_value more generic; deprecate ignore_ptr
21525         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
21526         (ATTRIBUTE_DEPRECATED): Define.
21527         (_ignore_case): New function.
21528         (ignore_value): New macro, to replace the old function.
21529         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
21530         * modules/ignore-value (Depends-on): Add stdint.
21531
21532 2011-01-04  Eric Blake  <eblake@redhat.com>
21533
21534         doc: regenerate INSTALL
21535         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
21536         @firstparagraphindent support, now that autoconf dropped it.
21537         (INSTALL_PRELUDE): Reinstate old macro.
21538         * doc/install.texi: Resync from autoconf.
21539         * doc/INSTALL: Reflect recent autoconf update.
21540         * doc/INSTALL.ISO: Likewise.
21541         * doc/INSTALL.UTF-8: Likewise.
21542         Reported by Karl Berry.
21543
21544 2011-01-04  Bruce Korb  <address@hidden>
21545
21546         git-version-gen: avoid a sub-shell
21547         * build-aux/git-version-gen: Redirect stderr in `...` via
21548         "exec 2>...", rather than via an added sub-shell.
21549
21550 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
21551
21552         git-version-gen: use (...) rather than sh -c '...'
21553         * build-aux/git-version-gen: Rather than hard-coding a shell's name
21554         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
21555
21556 2011-01-03  Jim Meyering  <meyering@redhat.com>
21557
21558         git-version-gen: convert leading TABs to spaces
21559         * build-aux/git-version-gen: Expand leading TABs.
21560
21561         git-version-gen: handle failed "git rev-list"
21562         * build-aux/git-version-gen: Rather than leaking a "fatal" error
21563         from git and proceeding as if it had succeeded but printed no SHA1
21564         checksums, suppress the diagnostic and handle the failure.
21565         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
21566
21567         git-version-gen: include command name in one more diagnostic
21568         * build-aux/git-version-gen: When the required .tarball-version file
21569         was missing or unreadable, you might see the diagnostic from "cat",
21570         but no trace of the name of the invoking script.  Now, you still see
21571         the diagnostic from cat, but also get one from "git-version-gen: ".
21572         Inspired by a patch from Bruce Korb.
21573
21574         update-copyright: adjust test to match changed code
21575         * tests/test-update-copyright.sh: Change test's expected output
21576         to match new actual output.
21577
21578 2011-01-02  Bruno Haible  <bruno@clisp.org>
21579
21580         getlogin_r: Avoid test failure on HP-UX 11.
21581         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
21582         ERANGE when the second argument is zero.
21583         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
21584         portability problem.
21585
21586 2011-01-02  Bruce Korb  <bkorb@gnu.org>
21587
21588         * build-aux/update-copyright: doc Simon's changes
21589
21590 2011-01-02  Simon Josefsson  <simon@josefsson.org>
21591
21592         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
21593         environment variable.
21594
21595 2011-01-02  Bruno Haible  <bruno@clisp.org>
21596
21597         unigbrk: Avoid gcc warnings.
21598         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
21599         unused variable.
21600         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
21601         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
21602         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
21603         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
21604         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
21605         Change type of first argument to 'const char *'.
21606         (main): Remove unused variable.
21607         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
21608         type of first argument to 'const char *'.
21609         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
21610         Likewise.
21611         (main): Change type of variable 's'.
21612         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
21613         to 'int'.
21614
21615 2011-01-02  Bruno Haible  <bruno@clisp.org>
21616
21617         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
21618         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
21619         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
21620         bug.
21621         * lib/pwrite.c: Undo 2010-12-31 patch.
21622         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
21623
21624 2011-01-02  Bruno Haible  <bruno@clisp.org>
21625
21626         pread: Fix test whether it works.
21627         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
21628
21629 2011-01-02  Bruno Haible  <bruno@clisp.org>
21630
21631         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
21632         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
21633         ends in "6". Don't require a specific month name. Try also the locale
21634         names found on HP-UX 11 and Solaris 7.
21635
21636 2011-01-02  Bruno Haible  <bruno@clisp.org>
21637
21638         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
21639         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
21640         C linkage.
21641         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
21642
21643 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21644
21645         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
21646         for consistency, since the "cluster" term is not used elsewhere.
21647         * lib/unigbrk.in.h: Update name.
21648         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
21649         * lib/unigbrk/u16-grapheme-next.c: Update name.
21650         * lib/unigbrk/u16-grapheme-prev.c: Update name.
21651         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
21652         * lib/unigbrk/u32-grapheme-next.c: Update name.
21653         * lib/unigbrk/u32-grapheme-prev.c: Update name.
21654         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
21655         * lib/unigbrk/u8-grapheme-next.c: Update name.
21656         * lib/unigbrk/u8-grapheme-prev.c: Update name.
21657         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
21658         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
21659         Suggested by Bruno Haible.
21660
21661 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21662
21663         Remove module 'u8-grapheme-len' as too redundant with
21664         'u8-grapheme-next'.
21665         * modules/unigbrk/u8-grapheme-len: Delete file.
21666         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
21667         * lib/unigbrk.in.h: Remove prototype for deleted function.
21668         * lib/unigbrk/u8-grapheme-len.c: Delete file.
21669         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
21670
21671         Remove module 'u16-grapheme-len' as too redundant with
21672         'u16-grapheme-next'.
21673         * modules/unigbrk/u16-grapheme-len: Delete file.
21674         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
21675         * lib/unigbrk.in.h: Remove prototype for deleted function.
21676         * lib/unigbrk/u16-grapheme-len.c: Delete file.
21677         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
21678
21679         Remove module 'u32-grapheme-len' as too redundant with
21680         'u32-grapheme-next'.
21681         * modules/unigbrk/u32-grapheme-len: Delete file.
21682         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
21683         * lib/unigbrk.in.h: Remove prototype for deleted function.
21684         * lib/unigbrk/u32-grapheme-len.c: Delete file.
21685         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
21686
21687         Suggested by Bruno Haible.
21688
21689 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21690
21691         * unigbrk.in.h: Fix typo: "ben" => "been".
21692         Reported by Bruno Haible.
21693
21694 2011-01-01  Jim Meyering  <meyering@redhat.com>
21695
21696         maint: update almost all copyright ranges to include 2011
21697         Run the new "make update-copyright" rule.
21698
21699 2011-01-01  Jim Meyering  <meyering@redhat.com>
21700
21701         maint: update-copyright: exempt doc/INSTALL*
21702         * Makefile (update-copyright): Also exclude doc/INSTALL*,
21703         since they are generated.  Suggested by Bruno Haible.
21704
21705 2011-01-01  Jim Meyering  <meyering@redhat.com>
21706
21707         maint: refine the update-copyright rule
21708         * Makefile (update-copyright): Also exclude any file that includes
21709         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
21710         code that merely generates the comment.
21711
21712 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21713
21714         New module 'u8-grapheme-len'.
21715         * modules/unigbrk/u8-grapheme-len: New file.
21716         * modules/unigbrk/u8-grapheme-len-tests: New file.
21717         * lib/unigbrk.in.h: Add prototype for new function.
21718         * lib/unigbrk/u8-grapheme-len.c: New file.
21719         * tests/unigbrk/test-u8-grapheme-len.c: New file.
21720
21721         New module 'u16-grapheme-len'.
21722         * modules/unigbrk/u16-grapheme-len: New file.
21723         * modules/unigbrk/u16-grapheme-len-tests: New file.
21724         * lib/unigbrk.in.h: Add prototype for new function.
21725         * lib/unigbrk/u16-grapheme-len.c: New file.
21726         * tests/unigbrk/test-u16-grapheme-len.c: New file.
21727
21728         New module 'u32-grapheme-len'.
21729         * modules/unigbrk/u32-grapheme-len: New file.
21730         * modules/unigbrk/u32-grapheme-len-tests: New file.
21731         * lib/unigbrk.in.h: Add prototype for new function.
21732         * lib/unigbrk/u32-grapheme-len.c: New file.
21733         * tests/unigbrk/test-u32-grapheme-len.c: New file.
21734
21735         New module 'u8-grapheme-next'.
21736         * modules/unigbrk/u8-grapheme-next: New file.
21737         * modules/unigbrk/u8-grapheme-next-tests: New file.
21738         * lib/unigbrk.in.h: Add prototype for new function.
21739         * lib/unigbrk/u8-grapheme-next.c: New file.
21740         * tests/unigbrk/test-u8-grapheme-next.c: New file.
21741
21742         New module 'u16-grapheme-next'.
21743         * modules/unigbrk/u16-grapheme-next: New file.
21744         * modules/unigbrk/u16-grapheme-next-tests: New file.
21745         * lib/unigbrk.in.h: Add prototype for new function.
21746         * lib/unigbrk/u16-grapheme-next.c: New file.
21747         * tests/unigbrk/test-u16-grapheme-next.c: New file.
21748
21749         New module 'u32-grapheme-next'.
21750         * modules/unigbrk/u32-grapheme-next: New file.
21751         * modules/unigbrk/u32-grapheme-next-tests: New file.
21752         * lib/unigbrk.in.h: Add prototype for new function.
21753         * lib/unigbrk/u32-grapheme-next.c: New file.
21754         * tests/unigbrk/test-u32-grapheme-next.c: New file.
21755
21756         New module 'u8-grapheme-prev'.
21757         * modules/unigbrk/u8-grapheme-prev: New file.
21758         * modules/unigbrk/u8-grapheme-prev-tests: New file.
21759         * lib/unigbrk.in.h: Add prototype for new function.
21760         * lib/unigbrk/u8-grapheme-prev.c: New file.
21761         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
21762
21763         New module 'u16-grapheme-prev'.
21764         * modules/unigbrk/u16-grapheme-prev: New file.
21765         * modules/unigbrk/u16-grapheme-prev-tests: New file.
21766         * lib/unigbrk.in.h: Add prototype for new function.
21767         * lib/unigbrk/u16-grapheme-prev.c: New file.
21768         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
21769
21770         New module 'u32-grapheme-prev'.
21771         * modules/unigbrk/u32-grapheme-prev: New file.
21772         * modules/unigbrk/u32-grapheme-prev-tests: New file.
21773         * lib/unigbrk.in.h: Add prototype for new function.
21774         * lib/unigbrk/u32-grapheme-prev.c: New file.
21775         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
21776
21777         New module 'u8-grapheme-breaks'.
21778         * modules/unigbrk/u8-grapheme-breaks: New file.
21779         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
21780         * lib/unigbrk.in.h: Add prototype for new function.
21781         * lib/unigbrk/u8-grapheme-breaks.c: New file.
21782         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
21783
21784         New module 'u16-grapheme-breaks'.
21785         * modules/unigbrk/u16-grapheme-breaks: New file.
21786         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
21787         * lib/unigbrk.in.h: Add prototype for new function.
21788         * lib/unigbrk/u16-grapheme-breaks.c: New file.
21789         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
21790
21791         New module 'u32-grapheme-breaks'.
21792         * modules/unigbrk/u32-grapheme-breaks: New file.
21793         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
21794         * lib/unigbrk.in.h: Add prototype for new function.
21795         * lib/unigbrk/u32-grapheme-breaks.c: New file.
21796         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
21797
21798         New module 'ulc-grapheme-breaks'.
21799         * modules/unigbrk/ulc-grapheme-breaks: New file.
21800         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
21801         * m4/locale-ar.m4: New file.
21802         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
21803         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
21804         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
21805
21806 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21807
21808         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
21809         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
21810         modified how this file was generated before I initially submitted
21811         the module, but failed to regenerate it.  This meant that several
21812         of the level2 entries were wrong.
21813         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
21814         Remove the division-by-2 that is folded into the table now that
21815         gbrkprop.h has been regenerated properly.  Now -1 entries are
21816         handled correctly.
21817
21818         New module 'unigbrk/uc-gbrk-prop-tests'.
21819         * modules/unigbrk/uc-gbrk-prop-tests: New file.
21820         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
21821         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
21822         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
21823
21824 2011-01-01  Bruno Haible  <bruno@clisp.org>
21825
21826         Avoid use of hexadecimal escapes.
21827         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
21828         instead of hexadecimal escapes.
21829
21830 2011-01-01  Jim Meyering  <meyering@redhat.com>
21831
21832         maint: new rule to update copyright year ranges
21833         * Makefile (update-copyright): New rule.
21834
21835         maint: indent with TABs in Makefile
21836         * Makefile: Expand leading sequences of spaces to TABs
21837
21838         version-etc: update the copyright year it reports
21839         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
21840
21841 2010-12-31  Bruno Haible  <bruno@clisp.org>
21842
21843         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
21844         * lib/isfinite.c (zerof, zerod, zerol): New variables.
21845         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
21846         zero.
21847
21848 2010-12-31  Bruno Haible  <bruno@clisp.org>
21849
21850         pwrite: Work around HP-UX 11.11 bug.
21851         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
21852         works and set REPLACE_PWRITE if not.
21853         * lib/pwrite.c (pwrite): Add an implementation that uses the system
21854         function.
21855         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
21856
21857 2010-12-31  Bruno Haible  <bruno@clisp.org>
21858
21859         pread: Work around HP-UX 11 bugs.
21860         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
21861         and set REPLACE_PREAD if not.
21862         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
21863
21864 2010-12-31  Eric Blake  <eblake@redhat.com>
21865
21866         nl_langinfo: fix YESEXPR on Irix 6.5
21867         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
21868         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
21869         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
21870         it.
21871
21872 2010-12-31  Bruno Haible  <bruno@clisp.org>
21873
21874         iconv: Document HP-UX 11 bug.
21875         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
21876
21877 2010-12-31  Bruno Haible  <bruno@clisp.org>
21878
21879         ldexpl: Fix link error on HP-UX 11.
21880         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
21881         LDEXPL_LIBM, using $ISNANL_LIBM.
21882
21883 2010-12-31  Eric Blake  <eblake@redhat.com>
21884
21885         ftello: avoid compilation failure with SunStudio c89
21886         * lib/ftello.c (ftello): Use lseek, not llseek.
21887
21888         tests: avoid failing coreutils tests on cygwin
21889         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
21890         (create_exe_shims_): Return 0 when skipping.
21891
21892 2010-12-31  Bruno Haible  <bruno@clisp.org>
21893
21894         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
21895         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
21896
21897 2010-12-31  Bruno Haible  <bruno@clisp.org>
21898
21899         waitpid: Fix link error in C++ mode.
21900         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
21901
21902 2010-12-31  Bruno Haible  <bruno@clisp.org>
21903
21904         isnan: Use GCC built-ins when possible.
21905         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
21906         __builtin_isnan.
21907         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
21908         (isnan): Define using GCC built-ins for GCC >= 4.0.
21909
21910 2010-12-31  Bruno Haible  <bruno@clisp.org>
21911
21912         isnand: Fix mistake.
21913         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
21914         __builtin_isnand.
21915
21916 2010-12-31  Bruno Haible  <bruno@clisp.org>
21917
21918         open: Avoid C++ error on HP-UX 11.
21919         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
21920
21921 2010-12-31  Bruno Haible  <bruno@clisp.org>
21922
21923         time_r: Add missing declarations on HP-UX 11.
21924         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
21925         instead of HAVE_LOCALTIME_R.
21926         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
21927         HAVE_LOCALTIME_R always.
21928         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
21929         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
21930         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
21931         HAVE_LOCALTIME_R.
21932         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
21933         * doc/posix-functions/localtime_r.texi: Likewise.
21934
21935 2010-12-29  Eric Blake  <eblake@redhat.com>
21936
21937         mountlist: tweak previous commit
21938         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
21939         Reported by Paul Eggert.
21940
21941         mountlist: fix local drive detection on cygwin
21942         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
21943         that works for cygwin.
21944
21945 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21946
21947         ftoastr, snprintf: ftoastr + snprintf module
21948         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
21949         since the snprintf module now should be good enough here.
21950         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
21951         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
21952         and gl_MODULE_INDICATOR([snprintf]), but the former enables
21953         GNULIB_SNPRINTF only for the test directory, and the latter
21954         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
21955         seems to suffice by itself.
21956
21957 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
21958
21959         alloca: one step towards thread-safety
21960         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
21961         need for a static variable.  All callers changed.  This does not
21962         make the alloca replacement thread-safe, but it's one step.
21963
21964         tests: minor indenting change
21965         * tests/init.sh: Sync from coreutils housekeeping patch
21966         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
21967         to keep lines within 80 columns.
21968
21969 2010-12-28  Jim Meyering  <meyering@redhat.com>
21970
21971         regex: don't infloop on persistent failing calloc
21972         * lib/regexec.c (build_trtable): Return failure indication upon
21973         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
21974         In glibc, this was fixed for version 2.13:
21975         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
21976
21977 2010-12-28  Bruno Haible  <bruno@clisp.org>
21978             Paul Eggert <eggert@cs.ucla.edu>
21979
21980         linkat: Make implementation robust against system behaviour variations.
21981         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
21982         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
21983         way, and to -2 if it needs a generic runtime test.
21984         * lib/linkat.c (solaris_optimized_link_immediate,
21985         solaris_optimized_link_follow): New functions.
21986         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
21987         (check_same_link): Use it.
21988
21989 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
21990
21991         New module 'unigbrk/base'.
21992         * modules/unigbrk/base: New file.
21993         * lib/unigbrk.in.h: New file.
21994
21995         New module 'unigbrk/uc-gbrk-prop'.
21996         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
21997         * modules/unigbrk/uc-gbrk-prop: New file.
21998         * lib/unigbrk/gbrkprop.h: New file.
21999         * lib/unigbrk/uc-gbrk-prop.c: New file.
22000
22001         New module 'unigbrk/uc-is-grapheme-break'.
22002         * modules/unigbrk/uc-is-grapheme-break: New file.
22003         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
22004         * lib/unigbrk/uc-is-grapheme-break.c: New file.
22005         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
22006         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
22007         * tests/unigbrk/GraphemeBreakTest.txt: New file.
22008
22009         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
22010
22011 2010-12-27  Bruno Haible  <bruno@clisp.org>
22012
22013         linkat test: Avoid failure on Solaris 11 2010-11.
22014         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
22015
22016 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22017
22018         utimens: work around glibc rounding bug on more platforms
22019         * lib/utimens.c (fdutimens): Work around rounding bug even if
22020         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
22021         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
22022
22023 2010-12-27  Bruno Haible  <bruno@clisp.org>
22024
22025         select tests: Improve comments.
22026         * tests/test-select.c (do_select): Add comments.
22027
22028 2010-12-27  Bruno Haible  <bruno@clisp.org>
22029
22030         select tests: Safer way of handling timeout.
22031         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
22032         at every invocation.
22033
22034 2010-12-27  Bruno Haible  <bruno@clisp.org>
22035
22036         select tests: Use 'bool' where appropriate.
22037         * tests/test-select.c (connect_to_socket): Change argument type to
22038         'bool'.
22039
22040 2010-12-27  Bruno Haible  <bruno@clisp.org>
22041
22042         select tests: Use existing modules.
22043         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
22044         (configure.ac): Don't test for unistd.h.
22045         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
22046         declared in <unistd.h>.
22047
22048 2010-12-27  Bruno Haible  <bruno@clisp.org>
22049
22050         mbrtowc: Work around a Solaris 7 bug.
22051         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
22052         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
22053         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
22054         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
22055         MBRTOWC_NULL_ARG1_BUG.
22056         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
22057         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
22058         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
22059         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
22060
22061 2010-12-27  Jim Meyering  <meyering@redhat.com>
22062
22063         read-file.c: tweak syntax
22064         * lib/read-file.c (fread_file): Remove space after "*" in function
22065         definitions.
22066
22067 2010-12-27  Bruno Haible  <bruno@clisp.org>
22068
22069         times test: Avoid gcc warnings on OSF/1.
22070         * tests/test-times.c (main): Cast printf arguments from clock_t to
22071         'long int'.
22072
22073 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
22074
22075         utimens: work around glibc rounding bug on older Linux kernels
22076         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
22077         on Linux with a glibc whose utimes might not work, then work
22078         around a longstanding glibc bug involving rounding rather than
22079         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
22080         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22081
22082 2010-12-26  Bruno Haible  <bruno@clisp.org>
22083
22084         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
22085         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
22086         _GL_CXXALIAS_SYS.
22087         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22088
22089 2010-12-26  Bruno Haible  <bruno@clisp.org>
22090
22091         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
22092         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
22093         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
22094         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
22095         looking for the declaration.
22096         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
22097         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
22098         problem.
22099         * doc/posix-functions/inet_pton.texi: Likewise.
22100
22101 2010-12-26  Bruno Haible  <bruno@clisp.org>
22102
22103         arpa_inet: Use the common idioms with C++ support.
22104         * lib/arpa_inet.in.h: Include c++defs.h.
22105         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
22106         support.
22107         * modules/arpa_inet (Depends-on): Add c++defs.
22108         (Makefile.am): Substitute the contents of c++defs.h.
22109         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
22110         * modules/arpa_inet-c++-tests: New file.
22111         * tests/test-arpa_inet-c++.cc: New file.
22112
22113 2010-12-25  Bruno Haible  <bruno@clisp.org>
22114
22115         Fix more C++ link errors on Solaris 8.
22116         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
22117         $(LIB_EACCESS).
22118         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
22119         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
22120         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
22121         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
22122         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
22123
22124 2010-12-25  Bruno Haible  <bruno@clisp.org>
22125
22126         printf-posix: Fix link error when a non-GCC compiler is used.
22127         * lib/stdio.in.h (printf): When not using GCC, override printf
22128         correctly.
22129         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22130
22131 2010-12-25  Bruno Haible  <bruno@clisp.org>
22132
22133         strerror_r-posix: Update doc.
22134         * doc/posix-functions/strerror_r.texi: Update doc about the return
22135         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
22136
22137 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
22138
22139         utimens: simplify the logic of the previous change
22140         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
22141         This should not affect whether the test succeeds or fails.
22142
22143         utimens: configure better on hosts with NFS clock skew
22144         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
22145         uses the clock of the local host.  It might use the clock of the
22146         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
22147         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
22148
22149 2010-12-25  Bruno Haible  <bruno@clisp.org>
22150
22151         ptsname test: Avoid failure on Solaris.
22152         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
22153         open a pseudo-terminal; don't use BSD-style ptys.
22154         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
22155
22156 2010-12-25  Bruno Haible  <bruno@clisp.org>
22157
22158         ptsname: Avoid ERANGE failure on some systems.
22159         * lib/ptsname.c (buffer): Increase size.
22160
22161 2010-12-25  Bruno Haible  <bruno@clisp.org>
22162
22163         rename, renameat: Avoid test failures at NFS mounted locations.
22164         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
22165         so that subsequent mkdir calls succeed.
22166
22167 2010-12-25  Bruno Haible  <bruno@clisp.org>
22168
22169         iswblank: Fix C++ link error on Solaris 8.
22170         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
22171         _GL_FUNCDECL_SYS.
22172
22173 2010-12-25  Bruno Haible  <bruno@clisp.org>
22174
22175         unistd: Fix C++ link error on Solaris 8.
22176         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
22177
22178 2010-12-25  Bruno Haible  <bruno@clisp.org>
22179
22180         readlink doc: Mention an old glibc bug.
22181         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
22182
22183 2010-12-25  Bruno Haible  <bruno@clisp.org>
22184
22185         fcntl-h: Fix for use of C++ on glibc systems.
22186         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
22187         also on glibc systems in C++ mode.
22188         Reported by Gary V. Vaughan <gary@gnu.org>.
22189
22190 2010-12-25  Bruno Haible  <bruno@clisp.org>
22191
22192         roundl-ieee: Make it work on OSF/1 5.1 with cc.
22193         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
22194
22195 2010-12-25  Bruno Haible  <bruno@clisp.org>
22196
22197         truncl-ieee: Make it work on OSF/1 5.1 with cc.
22198         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
22199         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
22200         test whether truncl works according to ISO C 99 with IEC 60559.
22201         * m4/truncl-ieee.m4: New file.
22202         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
22203         m4/signbit.m4.
22204         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
22205
22206 2010-12-25  Bruno Haible  <bruno@clisp.org>
22207
22208         ceill-ieee: Make it work on OSF/1 5.1 with cc.
22209         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
22210         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
22211         test whether ceill works according to ISO C 99 with IEC 60559.
22212         * m4/ceill-ieee.m4: New file.
22213         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
22214         m4/signbit.m4.
22215         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
22216
22217 2010-12-25  Bruno Haible  <bruno@clisp.org>
22218
22219         Ensure all prerequisites of <wchar.h> are included.
22220         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
22221         before <wchar.h>.
22222         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22223         gl_MBRLEN_NUL_RETVAL): Likewise.
22224         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22225         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
22226         AC_FUNC_MBRTOWC): Likewise.
22227         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22228         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
22229         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22230         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22231         Likewise.
22232         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22233         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
22234         (gl_WCHAR_H): Improve comments.
22235         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22236
22237 2010-12-25  Bruno Haible  <bruno@clisp.org>
22238
22239         strtok_r: Fix C syntax error in autoconf macro.
22240         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
22241         characters in test program.
22242
22243 2010-12-24  Bruno Haible  <bruno@clisp.org>
22244
22245         ceil, trunc, round: Fix gcc warnings.
22246         * lib/ceil.c (MIN): Undefine before redefining.
22247         * lib/trunc.c (MIN): Likewise.
22248         * lib/round.c (MIN): Likewise.
22249         Include <math.h> first.
22250
22251 2010-12-24  Bruno Haible  <bruno@clisp.org>
22252
22253         select tests: Avoid failures on OSF/1 5.1.
22254         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
22255         failure of closing the last socket; it may fail with ECONNRESET.
22256
22257 2010-12-24  Eric Blake  <eblake@redhat.com>
22258
22259         stdint: avoid HP-UX 10.20 preprocessor bug
22260         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
22261         than #if.
22262         * tests/test-floor2.c (main): Likewise.
22263         Reported by Peter O'Gorman.
22264
22265         pipe: make obsoletion transition easier
22266         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22267         * modules/pipe (Files): Include revived file.
22268         (Include): Drop reference, to mirror getdate's behavior.
22269
22270 2010-12-24  Bruno Haible  <bruno@clisp.org>
22271
22272         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22273         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22274         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22275         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22276
22277 2010-12-24  Bruno Haible  <bruno@clisp.org>
22278
22279         gethostname: Ensure declaration on NonStop Kernel.
22280         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22281         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22282
22283 2010-12-24  Bruno Haible  <bruno@clisp.org>
22284
22285         sys_select: Ensure all necessary types on NonStop Kernel.
22286         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
22287         include <sys/time.h>.
22288         * doc/posix-headers/sys_select.texi: Mention that it's missing on
22289         NonStop Kernel.
22290         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22291
22292 2010-12-24  Bruno Haible  <bruno@clisp.org>
22293
22294         sys_select: Remove unneeded include.
22295         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
22296         have <sys/select.h>.
22297
22298 2010-12-24  Bruno Haible  <bruno@clisp.org>
22299
22300         gethostname: Provide a fallback for HOST_NAME_MAX.
22301         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
22302         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
22303         instead.
22304         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22305
22306 2010-12-24  Bruno Haible  <bruno@clisp.org>
22307
22308         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
22309         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
22310         (SA_RESTART): Likewise.
22311         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22312
22313 2010-12-24  Bruno Haible  <bruno@clisp.org>
22314
22315         signal: Define NSIG.
22316         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
22317         * tests/test-signal.c (nsig): New variable.
22318         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22319
22320 2010-12-24  Bruno Haible  <bruno@clisp.org>
22321
22322         rename, renameat: Avoid test failures on OSF/1 5.1.
22323         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
22324         alternative error codes.
22325         * tests/test-renameat.c (main): Likewise.
22326
22327 2010-12-24  Bruno Haible  <bruno@clisp.org>
22328
22329         *printf: Detect large precisions bug on Solaris 10/SPARC.
22330         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
22331         by Paul Eggert.
22332         * tests/test-snprintf-posix.h (test_function): Add this test code here
22333         too.
22334         * tests/test-sprintf-posix.h (test_function): Likewise.
22335         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22336         * tests/test-vasprintf-posix.c (test_function): Likewise.
22337         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
22338         around by gnulib.
22339         * doc/posix-functions/printf.texi: Likewise.
22340         * doc/posix-functions/snprintf.texi: Likewise.
22341         * doc/posix-functions/sprintf.texi: Likewise.
22342         * doc/posix-functions/vfprintf.texi: Likewise.
22343         * doc/posix-functions/vprintf.texi: Likewise.
22344         * doc/posix-functions/vsnprintf.texi: Likewise.
22345         * doc/posix-functions/vsprintf.texi: Likewise.
22346         * doc/posix-functions/dprintf.texi: Undo last commit.
22347         * doc/posix-functions/vdprintf.texi: Likewise.
22348
22349 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22350
22351         tests: port test-fdutimensat.c to Solaris 8
22352         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
22353         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
22354         On Solaris 8, it fails with errno == ENOSYS, because there is no
22355         futimens (so it can't use the fd), and there is no lutimens (so it
22356         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
22357
22358         vsnprintf: make more consistent with snprintf; doc fixes
22359
22360         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
22361         the byte count return problem was promoted from the snprintf-posix
22362         to the snprintf module.
22363         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22364         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
22365         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
22366         * tests/test-snprintf.c (main): Check the byte count returned.
22367         * tests/test-vsnprintf.c (main): Likewise.
22368
22369 2010-12-23  Eric Blake  <eblake@redhat.com>
22370
22371         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
22372         * modules/sigpipe (License): Relax license.
22373
22374 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22375
22376         doc: document Solaris printf bug with large float precisions
22377         * doc/posix-functions/dprintf.texi (dprintf):
22378         * doc/posix-functions/fprintf.texi (fprintf):
22379         * doc/posix-functions/printf.texi (printf):
22380         * doc/posix-functions/snprintf.texi (snprintf):
22381         * doc/posix-functions/sprintf.texi (sprintf):
22382         * doc/posix-functions/vdprintf.texi (vdprintf):
22383         * doc/posix-functions/vfprintf.texi (vfprintf):
22384         * doc/posix-functions/vprintf.texi (vprintf):
22385         * doc/posix-functions/vsnprintf.texi (vsnprintf):
22386         * doc/posix-functions/vsprintf.texi (vsprintf):
22387         Mention that these functions mishandle large floating point
22388         precisions on Solaris 10.  The same bug is also present in Solaris
22389         8, and I assume earlier.  This causes "cd gnulib-tests; make
22390         check" to fail on Solaris 8 (and I assume, later) when building
22391         the latest coreutils, in test-vasprintf-posix's call to
22392         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
22393         the wide flavors (e.g., wprintf) so this patch just updates the
22394         documentation for the narrow ones.
22395
22396         test-posixtm.c: add two tests
22397         * tests/test-posixtm.c: Add two tests, to highlight the
22398         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
22399         around this bug; this is merely to document it.
22400
22401 2010-12-22  Bruno Haible  <bruno@clisp.org>
22402
22403         getlogin_r: Work around portability problem on OSF/1.
22404         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
22405         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
22406         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
22407         test for a truncated result.
22408         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
22409         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
22410         * modules/getlogin_r (Depends-on): Add memchr.
22411         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
22412
22413 2010-12-22  Bruno Haible  <bruno@clisp.org>
22414
22415         ptsname: Avoid test failure on OSF/1 5.1.
22416         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
22417         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
22418         (same_slave): New function.
22419         (main): Use it to compare ptsname's result with the expected file name.
22420
22421 2010-12-22  Bruno Haible  <bruno@clisp.org>
22422
22423         Port extended stdio modules to HP NonStop Kernel.
22424         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
22425         macros.
22426         * lib/fbufmode.c: Update comments.
22427         * lib/fflush.c: Likewise.
22428         * lib/fpurge.c: Likewise.
22429         * lib/freadable.c: Likewise.
22430         * lib/freadahead.c: Likewise.
22431         * lib/freading.c: Likewise.
22432         * lib/freadptr.c: Likewise.
22433         * lib/freadseek.c: Likewise.
22434         * lib/fseeko.c: Likewise.
22435         * lib/fseterr.c: Likewise.
22436         * lib/fwritable.c: Likewise.
22437         * lib/fwriting.c: Likewise.
22438         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22439
22440 2010-12-22  Bruno Haible  <bruno@clisp.org>
22441
22442         ttyname_r: Work around bug on OSF/1 5.1.
22443         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
22444         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
22445         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
22446         present.
22447         * lib/ttyname_r.c (ttyname_r): Update comments.
22448
22449 2010-12-22  Bruno Haible  <bruno@clisp.org>
22450
22451         round: Implement result sign according to IEEE 754.
22452         * lib/round.c (MIN, MINUS_ZERO): New macros.
22453         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
22454         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
22455         * tests/test-round-ieee.c (main): Likewise.
22456         * tests/test-roundl-ieee.c (main): Likewise.
22457
22458         trunc: Implement result sign according to IEEE 754.
22459         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
22460         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
22461         * tests/test-trunc2.c: Include minus-zero.h.
22462         (MINUS_ZERO): New macro.
22463         (trunc_reference): Keep in sync with lib/trunc.c.
22464         * tests/test-truncf2.c: Include minus-zero.h.
22465         (MINUS_ZERO): New macro.
22466         (truncf_reference): Keep in sync with lib/trunc.c.
22467         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
22468         * tests/test-trunc-ieee.c (main): Likewise.
22469         * tests/test-truncl-ieee.c (main): Likewise.
22470
22471         ceil: Implement result sign according to IEEE 754.
22472         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
22473         (FUNC): Return -0.0 for -1 < x < 0.
22474         * tests/test-ceil2.c: Include minus-zero.h.
22475         (MINUS_ZERO): New macro.
22476         (ceil_reference): Keep in sync with lib/ceil.c.
22477         * tests/test-ceilf2.c: Include minus-zero.h.
22478         (MINUS_ZERO): New macro.
22479         (ceilf_reference): Keep in sync with lib/ceil.c.
22480         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
22481         * tests/test-ceil-ieee.c (main): Likewise.
22482         * tests/test-ceill-ieee.c (main): Likewise.
22483
22484         floor: Implement result sign according to IEEE 754.
22485         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
22486         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
22487         * tests/test-floorf2.c (floorf_reference): Likewise.
22488         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
22489         * tests/test-floor-ieee.c (main): Likewise.
22490         * tests/test-floorl-ieee.c (main): Likewise.
22491
22492 2010-12-22  Bruno Haible  <bruno@clisp.org>
22493
22494         getaddrinfo: Update doc.
22495         * doc/posix-functions/gai_strerror.texi: Return type is also different
22496         on AIX and HP-UX.
22497
22498 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22499
22500         getaddrinfo, inet_ntop: Update doc for Solaris.
22501         * doc/posix-functions/gai_strerror.texi: Return type is also an
22502         issue on Solaris 9 and earlier.
22503         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
22504         on Solaris 10 and earlier.
22505
22506 2010-12-21  Bruno Haible  <bruno@clisp.org>
22507
22508         New module 'roundl-ieee'.
22509         * modules/roundl-ieee: New file.
22510         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
22511         test whether roundl works according to ISO C 99 with IEC 60559.
22512         * m4/roundl-ieee.m4: New file.
22513         * modules/roundl-ieee-tests: New file.
22514         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
22515         * tests/test-roundl.c (main): Remove signbit tests.
22516         * modules/roundl-tests (Depends-on): Remove signbit.
22517         * doc/posix-functions/roundl.texi: Mention the new module.
22518
22519 2010-12-21  Bruno Haible  <bruno@clisp.org>
22520
22521         New module 'truncl-ieee'.
22522         * modules/truncl-ieee: New file.
22523         * modules/truncl-ieee-tests: New file.
22524         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
22525         * tests/test-truncl.c (main): Remove signbit tests.
22526         * modules/truncl-tests (Depends-on): Remove signbit.
22527         * doc/posix-functions/truncl.texi: Mention the new module.
22528
22529 2010-12-21  Bruno Haible  <bruno@clisp.org>
22530
22531         New module 'ceill-ieee'.
22532         * modules/ceill-ieee: New file.
22533         * modules/ceill-ieee-tests: New file.
22534         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
22535         * tests/test-ceill.c (main): Remove signbit tests.
22536         * modules/ceill-tests (Depends-on): Remove signbit.
22537         * doc/posix-functions/ceill.texi: Mention the new module.
22538
22539 2010-12-21  Bruno Haible  <bruno@clisp.org>
22540
22541         New module 'floorl-ieee'.
22542         * modules/floorl-ieee: New file.
22543         * modules/floorl-ieee-tests: New file.
22544         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
22545         * tests/test-floorl.c (main): Remove signbit tests.
22546         * modules/floorl-tests (Depends-on): Remove signbit.
22547         * doc/posix-functions/floorl.texi: Mention the new module.
22548
22549 2010-12-21  Bruno Haible  <bruno@clisp.org>
22550
22551         New module 'round-ieee'.
22552         * modules/round-ieee: New file.
22553         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
22554         whether round works according to ISO C 99 with IEC 60559.
22555         * m4/round-ieee.m4: New file.
22556         * modules/round-ieee-tests: New file.
22557         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
22558         * tests/test-round1.c (main): Remove signbit tests.
22559         * modules/round-tests (Depends-on): Remove 'signbit'.
22560         * doc/posix-functions/round.texi: Mention the new module.
22561
22562 2010-12-21  Bruno Haible  <bruno@clisp.org>
22563
22564         New module 'trunc-ieee'.
22565         * modules/trunc-ieee: New file.
22566         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
22567         whether trunc works according to ISO C 99 with IEC 60559.
22568         * m4/trunc-ieee.m4: New file.
22569         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
22570         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
22571         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
22572         * modules/trunc-ieee-tests: New file.
22573         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
22574         * tests/test-trunc1.c (main): Remove signbit tests.
22575         * modules/trunc-tests (Depends-on): Remove 'signbit'.
22576         * doc/posix-functions/trunc.texi: Mention the new module.
22577
22578 2010-12-21  Bruno Haible  <bruno@clisp.org>
22579
22580         New module 'ceil-ieee'.
22581         * modules/ceil-ieee: New file.
22582         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
22583         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
22584         ISO C 99 with IEC 60559.
22585         * m4/ceil-ieee.m4: New file.
22586         * modules/ceil (Files): Add lib/ceil.c.
22587         (Depends-on): Add 'float'.
22588         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22589         * lib/math.in.h (ceil): New declaration.
22590         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
22591         REPLACE_CEIL.
22592         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
22593         * modules/ceil-ieee-tests: New file.
22594         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
22595         * tests/test-math-c++.cc: Check the signature of 'ceil'.
22596         * doc/posix-functions/ceil.texi: Mention the new module.
22597
22598 2010-12-21  Bruno Haible  <bruno@clisp.org>
22599
22600         New module 'floor-ieee'.
22601         * modules/floor-ieee: New file.
22602         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
22603         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
22604         ISO C 99 with IEC 60559.
22605         * m4/floor-ieee.m4: New file.
22606         * modules/floor (Files): Add lib/floor.c.
22607         (Depends-on): Add 'float'.
22608         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22609         * lib/math.in.h (floor): New declaration.
22610         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
22611         REPLACE_FLOOR.
22612         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
22613         * modules/floor-ieee-tests: New file.
22614         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
22615         * tests/test-math-c++.cc: Check the signature of 'floor'.
22616         * doc/posix-functions/floor.texi: Mention the new module.
22617
22618 2010-12-21  Bruno Haible  <bruno@clisp.org>
22619
22620         New module 'roundf-ieee'.
22621         * modules/roundf-ieee: New file.
22622         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
22623         test whether roundf works according to ISO C 99 with IEC 60559.
22624         * m4/roundf-ieee.m4: New file.
22625         * modules/roundf-ieee-tests: New file.
22626         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
22627         * tests/test-roundf1.c (main): Remove signbit tests.
22628         * modules/roundf-tests (Depends-on): Remove 'signbit'.
22629         * doc/posix-functions/roundf.texi: Mention the new module.
22630
22631 2010-12-21  Bruno Haible  <bruno@clisp.org>
22632
22633         New module 'truncf-ieee'.
22634         * modules/truncf-ieee: New file.
22635         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
22636         test whether truncf works according to ISO C 99 with IEC 60559.
22637         * m4/truncf-ieee.m4: New file.
22638         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
22639         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
22640         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
22641         * modules/truncf-ieee-tests: New file.
22642         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
22643         * tests/test-truncf1.c (main): Remove signbit tests.
22644         * modules/truncf-tests (Depends-on): Remove 'signbit'.
22645         * doc/posix-functions/truncf.texi: Mention the new module.
22646
22647 2010-12-21  Bruno Haible  <bruno@clisp.org>
22648
22649         New module 'ceilf-ieee'.
22650         * modules/ceilf-ieee: New file.
22651         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
22652         test whether ceilf works according to ISO C 99 with IEC 60559.
22653         * m4/ceilf-ieee.m4: New file.
22654         * modules/ceilf-ieee-tests: New file.
22655         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
22656         * tests/test-ceilf1.c (main): Remove signbit tests.
22657         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
22658         * doc/posix-functions/ceilf.texi: Mention the new module.
22659
22660 2010-12-21  Bruno Haible  <bruno@clisp.org>
22661
22662         New module 'floorf-ieee'.
22663         * modules/floorf-ieee: New file.
22664         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
22665         test whether floorf works according to ISO C 99 with IEC 60559.
22666         * m4/floorf-ieee.m4: New file.
22667         * modules/floorf-ieee-tests: New file.
22668         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
22669         * tests/test-floorf1.c (main): Remove signbit tests.
22670         * modules/floorf-tests (Depends-on): Remove 'signbit'.
22671         * doc/posix-functions/floorf.texi: Mention the new module.
22672
22673 2010-12-21  Bruno Haible  <bruno@clisp.org>
22674
22675         Support for minus zero in autoconf macros.
22676         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
22677         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
22678         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
22679         * tests/minus-zero.h: Update comments.
22680
22681 2010-12-21  Bruno Haible  <bruno@clisp.org>
22682
22683         Tests for module 'ceil'.
22684         * modules/ceil-tests: New file.
22685         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
22686         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
22687
22688 2010-12-21  Bruno Haible  <bruno@clisp.org>
22689
22690         Tests for module 'floor'.
22691         * modules/floor-tests: New file.
22692         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
22693         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
22694
22695 2010-12-21  Bruno Haible  <bruno@clisp.org>
22696
22697         math: Fix indentation.
22698         * lib/math.in.h (floorf): Fix indentation.
22699
22700 2010-12-21  Bruno Haible  <bruno@clisp.org>
22701
22702         Fix cross-compilation guesses on Solaris.
22703         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
22704         not match "solaris2.10".
22705         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22706         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
22707         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
22708
22709 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
22710
22711         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
22712         This fixes a problem observed with the latest coreutils snapshot
22713         that caused a test to fail on Solaris 8.  src/csplit.c's call
22714         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
22715         earlier, instead of returning the number of bytes that would have
22716         been generated; this causes csplit to incorrectly report memory
22717         exhaustion.
22718         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
22719         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
22720         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
22721         comments to match.
22722         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
22723         Fix typo in matching older versions of Solaris: "solaris2.10"
22724         is matched by the shell pattern "solaris2.[0-9]*".  This matters
22725         only for guessing while cross-compiling.
22726         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
22727
22728 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
22729
22730         ftoastr: fix comment again
22731         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22732         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
22733         Also, simplify example a bit by using flags = 0.
22734
22735 2010-12-20  Bruno Haible  <bruno@clisp.org>
22736
22737         round*, trunc*: Update documentation regarding glibc.
22738         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
22739         * doc/posix-functions/round.texi: Likewise.
22740         * doc/posix-functions/roundl.texi: Likewise.
22741         * doc/posix-functions/truncf.texi: Likewise.
22742         * doc/posix-functions/trunc.texi: Likewise.
22743         * doc/posix-functions/truncl.texi: Likewise.
22744
22745 2010-12-20  Bruno Haible  <bruno@clisp.org>
22746
22747         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
22748         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
22749         * doc/posix-functions/round.texi: Likewise.
22750         * doc/posix-functions/roundl.texi: Likewise.
22751
22752 2010-12-20  Bruno Haible  <bruno@clisp.org>
22753
22754         ttyname_r: Add missing declaration on HP-UX 11.
22755         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
22756         HAVE_TTYNAME_R.
22757         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
22758         declared. Set HAVE_TTYNAME_R always.
22759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22760         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
22761         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
22762         HAVE_TTYNAME_R.
22763         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
22764
22765 2010-12-20  Bruno Haible  <bruno@clisp.org>
22766
22767         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
22768         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
22769         * doc/posix-functions/getlogin_r.texi: Likewise.
22770         * tests/test-getlogin.c: Include <errno.h>.
22771         (main): Avoid test failure on HP-UX 11.11.
22772         * tests/test-getlogin_r.c (main): Likewise.
22773
22774 2010-12-20  Bruno Haible  <bruno@clisp.org>
22775
22776         getlogin_r: Add missing declaration on HP-UX 11.
22777         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
22778         declared also when it exists as a function.
22779         * doc/posix-functions/getlogin_r.texi: Document this workaround.
22780
22781 2010-12-20  Bruno Haible  <bruno@clisp.org>
22782
22783         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
22784         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
22785         through wcrtomb.
22786
22787 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22788
22789         ftoastr: fix comment
22790         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22791         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
22792
22793 2010-12-19  Bruno Haible  <bruno@clisp.org>
22794
22795         isnan: Ensure it is a macro.
22796         * lib/math.in.h (isnan): Define as a macro if not already a macro.
22797         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
22798         Solaris.
22799
22800 2010-12-19  Bruno Haible  <bruno@clisp.org>
22801
22802         ldexpl test: Fix link error on OSF/1 5.1.
22803         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
22804
22805 2010-12-19  Bruno Haible  <bruno@clisp.org>
22806
22807         wctype: Make it work in C++ mode on OSF/1 5.1.
22808         * lib/wctype.in.h (iswblank): Declare but not define here.
22809         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
22810         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
22811         * modules/wctype (Files): Add lib/iswblank.c.
22812
22813 2010-12-19  Bruno Haible  <bruno@clisp.org>
22814
22815         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
22816         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
22817         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
22818
22819 2010-12-19  Bruno Haible  <bruno@clisp.org>
22820
22821         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
22822         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
22823         _POSIX_PII_SOCKET.
22824         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
22825         * doc/posix-functions/recvfrom.texi: Likewise.
22826         * doc/posix-functions/send.texi: Likewise.
22827         * doc/posix-functions/sendto.texi: Likewise.
22828
22829 2010-12-19  Bruno Haible  <bruno@clisp.org>
22830
22831         tcgetsid: Add missing declaration on OSF/1 5.1.
22832         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
22833         HAVE_TCGETSID.
22834         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
22835         Don't set HAVE_TCGETSID.
22836         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
22837         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
22838         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
22839         HAVE_TCGETSID.
22840         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
22841
22842 2010-12-19  Bruno Haible  <bruno@clisp.org>
22843
22844         stdio: Fix problem with popen() declaration on OSF/1 5.1.
22845         * lib/stdio.in.h: During the include_next statement, let recursive
22846         includes of this file include only the system header file.
22847
22848 2010-12-19  Bruno Haible  <bruno@clisp.org>
22849
22850         iconv_open: Fix regression from 2010-12-04.
22851         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
22852         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
22853
22854 2010-12-19  Bruno Haible  <bruno@clisp.org>
22855
22856         stdbool test: Avoid a gcc warning.
22857         * tests/test-stdbool.c (main): Fail if e1 is false.
22858         Reported by Jim Meyering.
22859
22860 2010-12-19  Jim Meyering  <meyering@redhat.com>
22861
22862         setenv: restore to working order
22863         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
22864         mistakenly removed.
22865         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
22866         HAVE_SETENV.
22867         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
22868         HAVE_SETENV.
22869
22870 2010-12-19  Bruno Haible  <bruno@clisp.org>
22871
22872         Document some different function declarations on OSF/1 5.1.
22873         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
22874         * doc/posix-functions/inet_ntop.texi: Likewise.
22875         * doc/posix-functions/gethostname.texi: Likewise.
22876         * lib/unistd.in.h (gethostname): Update comment.
22877
22878 2010-12-19  Bruno Haible  <bruno@clisp.org>
22879
22880         doc: Mention vasprintf-posix module.
22881         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
22882         the 'vasprintf-posix' module.
22883         * doc/glibc-functions/vasprintf.texi: Likewise.
22884
22885 2010-12-19  Bruno Haible  <bruno@clisp.org>
22886
22887         unsetenv: Add missing declaration on OSF/1 5.1.
22888         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
22889         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
22890         Don't set HAVE_UNSETENV. In the test program, set _BSD.
22891         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
22892         not HAVE_UNSETENV.
22893         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
22894         HAVE_UNSETENV.
22895         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
22896
22897 2010-12-19  Bruno Haible  <bruno@clisp.org>
22898
22899         setenv: Add missing declaration on OSF/1 5.1.
22900         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
22901         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
22902         declared. Don't set HAVE_SETENV.
22903         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
22904         not HAVE_SETENV.
22905         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
22906         HAVE_SETENV.
22907         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
22908
22909 2010-12-19  Bruno Haible  <bruno@clisp.org>
22910
22911         nl_langinfo tests: Avoid gcc warning.
22912         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
22913
22914 2010-12-19  Bruno Haible  <bruno@clisp.org>
22915
22916         mknod: Avoid error in C++ mode on OSF/1 with GCC.
22917         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
22918         _GL_CXXALIAS_SYS.
22919
22920 2010-12-19  Bruno Haible  <bruno@clisp.org>
22921
22922         stdbool: Relax test.
22923         * tests/test-stdbool.c (e): Don't require that casts from a variable's
22924         address to 'bool' work in static initializer, for compilers other than
22925         GCC.
22926
22927 2010-12-19  Bruno Haible  <bruno@clisp.org>
22928
22929         ftello: Add missing declaration on OSF/1 5.1.
22930         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
22931         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
22932         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
22933         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
22934         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
22935
22936 2010-12-19  Bruno Haible  <bruno@clisp.org>
22937
22938         fseeko: Add missing declaration on OSF/1 5.1.
22939         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
22940         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
22941         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
22942         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
22943         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
22944
22945 2010-12-19  Bruno Haible  <bruno@clisp.org>
22946
22947         fchdir: Add missing declaration on OSF/1 5.1.
22948         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
22949         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
22950         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
22951         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
22952         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
22953
22954 2010-12-19  Bruno Haible  <bruno@clisp.org>
22955
22956         relocatable-prog-wrapper: Separate from relocatable-prog.
22957         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
22958         uninstall-relocwrapper rule here.
22959         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
22960         Reported by Ian Beckwith <ianb@erislabs.net>.
22961
22962 2010-12-19  Bruno Haible  <bruno@clisp.org>
22963
22964         unistr/u8-mbsnlen: Add missing dependency.
22965         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
22966         Reported by Ian Beckwith <ianb@erislabs.net>.
22967
22968 2010-12-19  Bruno Haible  <bruno@clisp.org>
22969
22970         iconv: Make it possible again to use this module without 'iconv-h'.
22971         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
22972         if it is not defined.
22973         Reported by Ian Beckwith <ianb@erislabs.net>.
22974
22975 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
22976
22977         acl: port to Solaris 8 when copying from tmpfs to ufs
22978         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
22979         error number.  Problem observed on Solaris 8 with latest
22980         coreutils, with "mv A B", where A is on a tmpfs file system and B
22981         is on a ufs file system.  This caused coreutils' mv/part-symlink
22982         test to fail.
22983
22984         tests: set fail=0 at start
22985         * tests/init.sh (setup_): Move fail=0 initialization here ...
22986         (mktempd_): ... from here, so that tests can rely on fail being
22987         set to 0 initially.  This fixes a problem in coreutils; see:
22988         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
22989
22990 2010-12-18  Bruno Haible  <bruno@clisp.org>
22991
22992         memmem-simple: Stylistic changes.
22993         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
22994         Fix preprocessor directive indentation.
22995
22996 2010-12-15  Pádraig Brady <P@draigBrady.com>
22997
22998         memmem, memmem-simple: reorganize and expand empty needle check
22999         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
23000         functional checks to memmem-simple so that one has a fully functional
23001         memmem by using just this module.
23002         Restrict the performance only check to the memmem module.
23003         Also expand the empty needle check to ensure the correct
23004         pointer is returned, not just a non NULL pointer.
23005         * doc/glibc-functions/memmem.texi: Rearrange the portability
23006         documentation to correlate with the rearranged checks.
23007         Clarify exactly how the memmem and memmem-simple modules
23008         relate to each other.
23009
23010 2010-12-15  Pádraig Brady <P@draigBrady.com>
23011             Bruno Haible  <bruno@clisp.org>
23012
23013         Improve cross-compilation guesses for uClibc.
23014         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
23015         that uClibc does not have the glibc bug.
23016         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
23017         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
23018
23019 2010-12-14  Eric Blake  <eblake@redhat.com>
23020
23021         configmake: provide fallbacks for oldest supported autotools
23022         * m4/configmake.m4: New file.
23023         * modules/configmake (Files): Ship it.
23024         (configure.ac): Use it to guarantee fallbacks.
23025
23026 2010-12-13  Pádraig Brady <P@draigBrady.com>
23027
23028         read-file: Improve handling of large files
23029         * lib/read-file.c (fread_file): Minimize realloc()s
23030         for regular files, and better manage sizes around SIZE_MAX.
23031
23032 2010-12-13  Eric Blake  <eblake@redhat.com>
23033
23034         cloexec, fcntl: relax license
23035         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
23036         consent from all contributors.
23037         * modules/fcntl (License): Likewise.
23038
23039 2010-12-10  Bruno Haible  <bruno@clisp.org>
23040
23041         Tests for module 'pipe-posix'.
23042         * modules/pipe-posix-tests: New file.
23043         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
23044
23045 2010-12-10  Bruno Haible  <bruno@clisp.org>
23046
23047         pipe-posix: Make it work in C++ mode.
23048         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
23049         (pipe): Use common idiom, not a macro definition.
23050         * lib/pipe.c: New file.
23051         * m4/pipe.m4: New file.
23052         * modules/pipe-posix (Description): Enhance.
23053         (Files): Add lib/pipe.c, m4/pipe.m4.
23054         (configure.ac): Invoke gl_FUNC_PIPE.
23055         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
23056         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
23057         * tests/test-unistd-c++.cc: Check the signature of pipe.
23058
23059 2010-12-10  Bruno Haible  <bruno@clisp.org>
23060
23061         Rename module 'pipe' to 'spawn-pipe'.
23062         * modules/spawn-pipe: New file, renamed from modules/pipe.
23063         (Files, configure.ac, Makefile.am): Update.
23064         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
23065         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
23066         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
23067         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
23068         "spawn-pipe.h" instead of "pipe.h".
23069         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
23070         to gl_SPAWN_PIPE.
23071         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
23072         (Files, Makefile.am): Update.
23073         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
23074         Update.
23075         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
23076         Include "spawn-pipe.h" instead of "pipe.h".
23077         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
23078         * lib/javacomp.c: Likewise.
23079         * lib/javaversion.c: Likewise.
23080         * lib/pipe-filter-gi.c: Likewise.
23081         * lib/pipe-filter-ii.c: Likewise.
23082         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
23083         * modules/javacomp (Depends-on): Likewise.
23084         * modules/javaversion (Depends-on): Likewise.
23085         * modules/pipe-filter-gi (Depends-on): Likewise.
23086         * modules/pipe-filter-ii (Depends-on): Likewise.
23087         * MODULES.html.sh (Executing programs): Update.
23088         * NEWS: Mention the change.
23089
23090 2010-12-10  Eric Blake  <eblake@redhat.com>
23091
23092         pipe-posix: new module
23093         * modules/pipe-posix: New file.
23094         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
23095         (gl_UNISTD_H): Check for declaration.
23096         * modules/unistd (Makefile.am): Substitute it.
23097         * lib/unistd.in.h (pipe): Provide it for mingw.
23098         * doc/posix-functions/pipe.texi (pipe): Update documentation.
23099         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
23100
23101 2010-12-07  Bruno Haible  <bruno@clisp.org>
23102
23103         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
23104         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
23105         u8_strcmp_gnu.
23106         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
23107
23108 2010-12-06  Bruno Haible  <bruno@clisp.org>
23109
23110         Update internal documentation.
23111         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
23112
23113 2010-12-04  Bruno Haible  <bruno@clisp.org>
23114
23115         Put more information about failed tests into the test return codes.
23116         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
23117         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
23118         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
23119         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
23120         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23121         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23122         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23123         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23124         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
23125         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23126         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
23127         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23128         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
23129         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23130         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
23131         returns a bit mask.
23132         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
23133         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
23134         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
23135         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
23136         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
23137         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
23138         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23139         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23140         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
23141         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
23142         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
23143         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
23144         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
23145         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
23146         * m4/link.m4 (gl_FUNC_LINK): Likewise.
23147         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
23148         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
23149         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
23150         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
23151         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
23152         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23153         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
23154         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
23155         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23156         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
23157         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23158         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
23159         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
23160         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
23161         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
23162         gl_PRINTF_PRECISION): Likewise.
23163         * m4/regex.m4 (gl_REGEX): Likewise.
23164         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
23165         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
23166         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
23167         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
23168         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23169         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23170         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
23171         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
23172         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23173         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23174         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
23175         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
23176         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
23177         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
23178         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
23179         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
23180         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
23181         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
23182         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23183         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
23184         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
23185         enumerated value.
23186         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
23187
23188 2010-12-04  Bruno Haible  <bruno@clisp.org>
23189
23190         Update for Solaris 11 2010-11.
23191         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
23192         Express, released in November 2010.
23193
23194 2010-12-04  Bruno Haible  <bruno@clisp.org>
23195
23196         nproc: Relax license.
23197         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
23198         and Paul Eggert.
23199         Requested by Ludovic Courtès <ludo@gnu.org>.
23200
23201 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
23202
23203         utimecmp: fine-grained src to nearby coarse-grained dest
23204
23205         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
23206         and the source is on a file system with higher-resolution time
23207         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
23208         not work, and the time stamps are close together, the algorithm to
23209         determine the exact resolution from the read-back mtime was buggy:
23210         it had a "!=" where it should have had an "==".  This bug has been
23211         in the code ever since it was introduced to gnulib.
23212         Problem reported by Dan Jacobson in
23213         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
23214
23215 2010-11-30  Bruno Haible  <bruno@clisp.org>
23216
23217         strerror_r-posix: Fix autoconf test.
23218         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
23219
23220 2010-11-28  Bruno Haible  <bruno@clisp.org>
23221             Paul Eggert  <eggert@cs.ucla.edu>
23222
23223         Tests for module 'getdomainname'.
23224         * modules/getdomainname-tests: New file.
23225         * tests/test-getdomainname.c: New file, based on
23226         tests/test-gethostname.c.
23227
23228 2010-11-28  Bruno Haible  <bruno@clisp.org>
23229             Paul Eggert  <eggert@cs.ucla.edu>
23230
23231         getdomainname: Use the system function when possible.
23232         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
23233         (getdomainname): Replace if needed. Provide the declaration if it is
23234         missing. Don't use _GL_CXXALIAS_SYS_CAST.
23235         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
23236         (getdomainname): When the system has getdomainname, call the system
23237         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
23238         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
23239         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
23240         found in libnsl. Look for the declaration also in <netdb.h>. Replace
23241         the function if its second argument is of type 'int' or if it is found
23242         in libnsl.
23243         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
23244         <sys/systeminfo.h> and sysinfo().
23245         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
23246         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
23247         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
23248         HAVE_GETDOMAINNAME.
23249         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
23250         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
23251         * doc/glibc-functions/getdomainname.texi: Document the problems with
23252         the getdomainname declaration.
23253
23254 2010-11-28  Bruno Haible  <bruno@clisp.org>
23255
23256         sys_socket: Ensure ss_family field on AIX.
23257         * lib/sys_socket.in.h (ss_family): New macro definition.
23258         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
23259         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
23260         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
23261         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23262         * modules/sys_socket (Makefile.am): Substitute
23263         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
23264         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
23265
23266 2010-11-27  Bruno Haible  <bruno@clisp.org>
23267
23268         readline: Improve configure output.
23269         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23270         "checking for readline..." result understandable.
23271
23272 2010-11-27  Bruno Haible  <bruno@clisp.org>
23273
23274         *printf-posix: Detect a bug on Solaris 10/x86.
23275         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23276         for floating-point output.
23277         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23278         directive.
23279         * tests/test-snprintf-posix.h (test_function): Likewise.
23280         * tests/test-sprintf-posix.h (test_function): Likewise.
23281         * tests/test-vasprintf-posix.c (test_function): Likewise.
23282         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23283         * doc/posix-functions/printf.texi: Likewise.
23284         * doc/posix-functions/snprintf.texi: Likewise.
23285         * doc/posix-functions/sprintf.texi: Likewise.
23286         * doc/posix-functions/vfprintf.texi: Likewise.
23287         * doc/posix-functions/vprintf.texi: Likewise.
23288         * doc/posix-functions/vsnprintf.texi: Likewise.
23289         * doc/posix-functions/vsprintf.texi: Likewise.
23290         * doc/glibc-functions/obstack_printf.texi: Likewise.
23291         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23292
23293 2010-11-27  Bruno Haible  <bruno@clisp.org>
23294
23295         Fix link error when module libunistring-optional is in use.
23296         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
23297         * modules/striconveha-tests (Makefile.am): Likewise.
23298
23299 2010-11-27  Bruno Haible  <bruno@clisp.org>
23300
23301         regex: Mention link dependencies.
23302         * modules/regex (Link): New section.
23303         * modules/rpmatch (Link): Likewise.
23304         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
23305
23306 2010-11-27  Bruno Haible  <bruno@clisp.org>
23307
23308         ftoastr: Fix compilation error on Solaris.
23309         * lib/ftoastr.c: Include <config.h>.
23310
23311 2010-11-27  Bruno Haible  <bruno@clisp.org>
23312
23313         getloadavg: Update documentation.
23314         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
23315
23316 2010-11-27  Bruno Haible  <bruno@clisp.org>
23317
23318         sys_socket: Fix test whether the functions are declared.
23319         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
23320         not <sys/select.h>.
23321
23322 2010-11-27  Bruno Haible  <bruno@clisp.org>
23323
23324         getpass: Make sure to get system declaration on some platforms.
23325         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
23326         gl_USE_SYSTEM_EXTENSIONS.
23327         * modules/getpass (Depends-on): Add extensions.
23328
23329 2010-11-26  Bruno Haible  <bruno@clisp.org>
23330
23331         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
23332         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
23333         'iconv' module is present.
23334         (ICONV_CONST): New macro.
23335         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
23336         ICONV_CONST.
23337         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
23338         set ICONV_CONST.
23339         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
23340         here.
23341         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
23342         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
23343         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
23344         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
23345         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
23346         present.
23347
23348 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23349
23350         ftoastr: comment fix
23351         * lib/ftoastr.c: "little" -> "little or no" in comment
23352
23353 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
23354
23355         stdint: port to GCC 4.3 + OSX + Octave
23356         On this platform, stdint.h is buggy and defines int64_t to long
23357         long int.  The replacement defined it to long int, causing
23358         problems with C++ style name mangling.  Instead, trust the system
23359         definition if INT64_MAX is defined, and likewise for the unsigned
23360         variant.   Problem reported by Jarno Rajahalme in
23361         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
23362         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
23363         and don't mess with int64_t and INT64_MAX in this case.
23364         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
23365
23366 2010-11-24  Bruno Haible  <bruno@clisp.org>
23367
23368         doc: Corrections regarding MacOS X 10.4 and 10.5.
23369         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
23370         MacOS X.
23371         Reported by Simon Josefsson.
23372
23373 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
23374
23375         Uninstall ".bin" files installed by relocwrapper.
23376         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
23377         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
23378         unless it is already there.
23379
23380 2010-11-21  Bruno Haible  <bruno@clisp.org>
23381
23382         Update for NetBSD 5.0.
23383         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23384         NetBSD; the test fails on NetBSD 5.0.
23385         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23386         about NetBSD.
23387
23388 2010-11-21  Bruno Haible  <bruno@clisp.org>
23389
23390         Update for HP-UX 11.23 and HP-UX 11.31.
23391         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
23392         HP-UX.
23393
23394 2010-11-21  Bruno Haible  <bruno@clisp.org>
23395
23396         Update for MacOS X 10.5.
23397         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23398         MacOS X; the test fails on MacOS X 10.5.8.
23399         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23400         about MacOS X.
23401
23402 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
23403
23404         bootstrap: add bootstrap_sync option.
23405         See discussion at
23406         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
23407         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
23408         * build-aux/bootstrap: Accept --bootstrap-sync to update
23409         bootstrap if it is not identical to the local gnulib's
23410         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
23411         enable this by default.  Accept --no-bootstrap-sync to disable
23412         it.
23413
23414 2010-11-20  Bruno Haible  <bruno@clisp.org>
23415
23416         Ensure that <features.h> is included before __GLIBC__ is tested.
23417         * lib/printf-parse.h: Include <features.h>.
23418         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
23419         Reported by Mike Frysinger <vapier@gentoo.org>.
23420
23421         Ensure that <features.h> is included before __GLIBC__ is tested.
23422         * lib/wchar.in.h: Include <features.h>.
23423         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
23424         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
23425         Reported by Mike Frysinger <vapier@gentoo.org>.
23426
23427         Ensure that <features.h> is included before __GLIBC__ is tested.
23428         * lib/arpa_inet.in.h: Include <features.h>.
23429         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
23430         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
23431         Reported by Mike Frysinger <vapier@gentoo.org>.
23432
23433         Ensure that <features.h> is included before __GLIBC__ is tested.
23434         * build-aux/link-warning.h: Include <features.h>.
23435         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
23436         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
23437         Reported by Mike Frysinger <vapier@gentoo.org>.
23438
23439         Ensure that <features.h> is included before __GLIBC__ is tested.
23440         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
23441         Reported by Mike Frysinger <vapier@gentoo.org>.
23442
23443 2010-11-20  Bruno Haible  <bruno@clisp.org>
23444
23445         memmem: Fix autoconf test.
23446         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
23447
23448 2010-11-20  Bruno Haible  <bruno@clisp.org>
23449
23450         Port to uClibc.
23451         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
23452         * lib/fcntl.in.h: Likewise.
23453         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
23454         * lib/mbrtowc.c (mbrtowc): Likewise.
23455         * lib/relocatable.c (find_shared_library_fullname): Likewise.
23456         * lib/strerror_r.c: Likewise.
23457         * lib/unistr/u8-strnlen.c: Likewise.
23458         * lib/vasnprintf.c (decimal_point_char): Likewise.
23459         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23460         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23461         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23462         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
23463         * tests/test-sigaction.c (handler, main): Likewise.
23464         * lib/freading.h: Treat uClibc like a non-glibc platform.
23465         * lib/freading.c: Likewise.
23466         * lib/gettext.h: Likewise.
23467         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
23468         Likewise.
23469         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
23470         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
23471         * lib/propername.c (proper_name_utf8): Likewise.
23472         * lib/spawn.in.h: Likewise.
23473         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
23474         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
23475         mem_cd_iconveh_internal): Likewise.
23476         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
23477         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23478         strstr, strcasestr): Likewise.
23479         * lib/unicodeio.c (unicode_to_mb): Likewise.
23480         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
23481         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
23482         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
23483         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
23484         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
23485         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
23486         * lib/unistr/u8-stpncpy.c: Likewise.
23487         * lib/vasnprintf.c (VASNPRINTF): Likewise.
23488         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
23489         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23490         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23491         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
23492         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
23493         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
23494         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
23495         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
23496         Likewise.
23497         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23498         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23499         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23500         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23501         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23502         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23503         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23504         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23505         * tests/test-getopt.h (OPTIND_MIN): Likewise.
23506         * tests/test-striconveha.c (main): Likewise.
23507         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23508         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
23509         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
23510         * doc/posix-functions/getline.texi: Likewise.
23511         Reported by Mike Frysinger <vapier@gentoo.org>.
23512
23513 2010-11-20  Bruno Haible  <bruno@clisp.org>
23514
23515         nproc: Fix condition.
23516         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
23517         HAVE_PTHREAD_AFFINITY_NP.
23518
23519 2010-11-20  Bruno Haible  <bruno@clisp.org>
23520
23521         Fix a comment.
23522         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
23523
23524 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
23525
23526         ftoastr: don't assume snprintf
23527         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
23528         Implement a subset of snprintf here, by using sprintf safely.
23529         * modules/ftoastr (Depends-on): Remove snprintf.
23530
23531 2010-11-19  Jim Meyering  <meyering@redhat.com>
23532
23533         test-rename.h: fix compilation failure
23534         * tests/test-rename.h (test_rename): Add omitted "}".
23535
23536 2010-11-17  Jim Meyering  <meyering@redhat.com>
23537
23538         maint.mk: add a URL discussing the no-@acronym policy
23539         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
23540
23541 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
23542
23543         ftoastr: depend on snprintf, improve comments
23544         * lib/ftoastr.c: Also mention Loitsch's draft.
23545         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
23546         needed in the current implementation, but it might simplify
23547         speeding up the code later.
23548         * modules/ftoastr: Depend on snprintf; this improves portability.
23549         Suggested by Bruno Haible in the same email.
23550
23551         ftoastr: port to hosts lacking strtof and strtold
23552         Problem reported by Bruno Haible in
23553         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
23554         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
23555         environment and strtold (and presumably strtof) are not available.
23556         * modules/ftoastr (Files): Add m4/c-strtod.m4.
23557         (configure.ac): Require gl_C99_STRTOLD.
23558
23559 2010-11-18  Bruno Haible  <bruno@clisp.org>
23560
23561         c-strtold: Avoid link error on AIX 7.
23562         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
23563         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
23564         (gl_C_STRTOLD): Test whether strtold_l exists.
23565         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23566
23567 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23568
23569         intprops: new macro INT_BITS_STRLEN_BOUND
23570         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
23571         ftoastr.h.  This exposes an internal of intprops.h that was formerly
23572         not exposed.  Also, it uses a slightly tighter bound than before;
23573         though this makes no practical difference, we might as well be as
23574         tight as we easily can.
23575
23576         ftoastr: new module, for lossless conversion of floats to short strings
23577         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
23578         * modules/ftoastr: New files.
23579
23580 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
23581
23582         bootstrap: port to Solaris sed
23583         * build-aux/bootstrap (get_version): Port to Solaris sed.
23584         See Ralf Wildenhues's note in
23585         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
23586
23587 2010-11-14  Jim Meyering  <meyering@redhat.com>
23588
23589         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
23590         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
23591         and move definition closer to sole use.
23592
23593 2010-11-13  Jim Meyering  <meyering@redhat.com>
23594
23595         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
23596         Now we require at least autoconf-2.59, which means the work-around
23597         is no longer needed.
23598         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
23599         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23600         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
23601         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23602         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
23603
23604 2010-11-13  Bruno Haible  <bruno@clisp.org>
23605
23606         rename, renameat: Avoid test failures at NFS mounted locations.
23607         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
23608         functions.
23609         (test_rename): Use assert_nonexistent.
23610         * tests/test-rename.c: Include <dirent.h>.
23611         * tests/test-renameat.c: Likewise.
23612         Reported by Gary V. Vaughan <gary@gnu.org>.
23613
23614         rename, renameat: Document Linux bug with NFS
23615         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
23616         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
23617         * doc/posix-functions/renameat.texi: Likewise.
23618         Suggested by Eric Blake.
23619
23620 2010-11-13  Bruno Haible  <bruno@clisp.org>
23621
23622         rename test: Add comments.
23623         * tests/test-rename.h (test_rename): Add structure and comments.
23624
23625 2010-11-13  Eric Blake  <eblake@redhat.com>
23626
23627         maintainer-makefile: cover a few more files
23628         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
23629         scripts generated within C files, for libvirt.
23630
23631 2010-11-13  Bruno Haible  <bruno@clisp.org>
23632
23633         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
23634         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
23635         character, return the number of bytes that belong together, not always
23636         1.
23637         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23638         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23639         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23640         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
23641         number of bytes of an invalid character.
23642         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
23643         (main): Invoke it.
23644         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
23645         results.
23646         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
23647         malformed byte sequences.
23648         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
23649         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
23650         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
23651         Reported by Ben Pfaff and Paolo Bonzini.
23652
23653 2010-11-13  Bruno Haible  <bruno@clisp.org>
23654
23655         openat: Work around glibc bug with fchownat() and empty file names.
23656         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
23657         (gl_FUNC_FCHOWNAT): Invoke it.
23658         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
23659         * doc/posix-functions/fchownat.texi: Document the glibc bug.
23660         Reported by Gary V. Vaughan <gary@gnu.org>.
23661
23662 2010-11-13  Bruno Haible  <bruno@clisp.org>
23663
23664         openat: Ensure autoconf macro ordering.
23665         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
23666         gl_USE_SYSTEM_EXTENSIONS.
23667         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
23668
23669 2010-11-13  Bruno Haible  <bruno@clisp.org>
23670
23671         Update comments.
23672         * lib/unistr/u8-check.c: Update file name in comments.
23673         * lib/unistr/u8-mblen.c: Likewise.
23674         * lib/unistr/u8-prev.c: Likewise.
23675         * lib/unistr/u8-strmblen.c: Likewise.
23676         * lib/unistr/u8-strmbtouc.c: Likewise.
23677
23678 2010-11-13  Jim Meyering  <meyering@redhat.com>
23679
23680         tests: avoid test failure on Solaris 10 due to lack of PATH export
23681         * tests/test-update-copyright.sh: Don't forget to export PATH.
23682
23683         init.sh: ensure that IFS is defined, just in case...
23684         * tests/init.sh (setup_): Ensure that IFS is defined,
23685         so that saving and restoring it works as expected.  This
23686         appears to be useful at least for an old version of dash
23687         from a long time ago (RH 6).  See here for details:
23688         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
23689
23690         maint.mk: tighten "test a == b" check
23691         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
23692         test to files that contain something like #!/bin/sh.
23693         Without this, coreutils would get two false positives in
23694         the comments of C source files.
23695
23696 2010-11-12  Eric Blake  <eblake@redhat.com>
23697
23698         bootstrap: fix typo in previous attempt
23699         * build-aux/bootstrap (buildreq): Correct the grouping.
23700         Reported by Paul Eggert.
23701
23702         maintainer-makefile: prohibit test x == x
23703         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
23704         Based on a report by Matthias Bolte.
23705
23706         bootstrap: allow FreeBSD gzip
23707         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
23708         which has no '.' and goes to stderr.
23709         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
23710         Reported by Matthias Bolte.
23711
23712         maintainer-makefile: check for i18n setup
23713         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
23714         will likely work.
23715
23716 2010-11-12  Bruno Haible  <bruno@clisp.org>
23717
23718         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
23719         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
23720         * lib/nanosleep.c (nanosleep): Likewise.
23721
23722 2010-11-11  Bruno Haible  <bruno@clisp.org>
23723
23724         fcntl-h: Fix for use of C++ on glibc systems.
23725         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23726         also on glibc systems in C++ mode.
23727         Reported by Gary V. Vaughan <gary@gnu.org>.
23728
23729 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23730
23731         mknod: avoid false failure with dash
23732         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
23733
23734 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
23735
23736         unlink: Fix "is it should" typo in diagnostic.
23737         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
23738         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
23739
23740 2010-11-11  Bruno Haible  <bruno@clisp.org>
23741
23742         Tests for module 'strerror_r-posix'.
23743         * modules/strerror_r-posix-tests: New file.
23744         * tests/test-strerror_r.c: New file.
23745         * tests/test-string-c++.cc: Check the signature of strerror_r.
23746
23747         New module 'strerror_r-posix'.
23748         * lib/string.in.h (strerror_r): New declaration.
23749         * lib/strerror_r.c: New file.
23750         * m4/strerror_r.m4: New file.
23751         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
23752         of strerror_r.
23753         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
23754         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23755         * modules/strerror_r-posix: New file.
23756         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
23757         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23758         * doc/posix-functions/strerror_r.texi: Mention the new module and the
23759         portability problems.
23760
23761 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
23762
23763         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
23764         line is also considered for output. Quoted function name in shell
23765         command, so temporary files for functions like MyClass::operator()
23766         are removed correctly without errors.
23767
23768 2010-11-09  Bruno Haible  <bruno@clisp.org>
23769
23770         * doc/posix-functions/strerror.texi: List more failing platforms.
23771
23772         * doc/posix-functions/strerror.texi: Add a comment.
23773
23774 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
23775
23776         fdopendir: fix bug on MacOS X when low on file descriptors
23777
23778         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
23779         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
23780         All callers changed.
23781         (fdopendir): Invoke save_cwd at the top level, not after using
23782         multiple dup() calls to use up file descriptors.  Then retry
23783         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
23784         less than the maximum number of open file descriptors, because
23785         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
23786         on Mac OS X 10.6.4 for tar 1.24
23787         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
23788         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
23789         and for tar 1.25
23790         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
23791
23792 2010-11-07  Bruno Haible  <bruno@clisp.org>
23793
23794         vasnprintf: Support I flag on glibc systems.
23795         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
23796         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
23797         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
23798         snprintf function.
23799         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
23800         glibc systems.
23801         * tests/test-vasnprintf-posix3.c: New file.
23802         * modules/vasnprintf-posix-tests (Files): Add it.
23803         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
23804
23805 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23806
23807         [html] Fix copy/paste bug: Use unique name for compiler warnings.
23808         * MODULES.html.sh: For compiler warnings, use name
23809         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
23810
23811 2010-11-05  Eric Blake  <eblake@redhat.com>
23812
23813         ceil, floor: avoid spurious failure with icc
23814         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
23815         [denormals-as-zero] when optimizing without -mieee-fp option.
23816         * tests/test-floorf2.c (floorf_reference): Likewise.
23817         * tests/test-ceilf1.c (dummy): New function.
23818         (main): Use it to outsmart icc's optimization.
23819         * tests/test-floorf1.c (dummy, main): Likewise.
23820
23821         tests: require working signbit
23822         * modules/ceilf-tests (Depends-on): Add signbit.
23823         * modules/ceill-tests (Depends-on): Likewise.
23824         * modules/floorf-tests (Depends-on): Likewise.
23825         * modules/floorl-tests (Depends-on): Likewise.
23826         * modules/round-tests (Depends-on): Likewise.
23827         * modules/roundf-tests (Depends-on): Likewise.
23828         * modules/roundl-tests (Depends-on): Likewise.
23829         * modules/trunc-tests (Depends-on): Likewise.
23830         * modules/truncf-tests (Depends-on): Likewise.
23831         * modules/truncl-tests (Depends-on): Likewise.
23832
23833         strtod: work around icc bug
23834         * lib/strtod.c (minus_zero): Define to working value.
23835         (strtod): Use it to avoid icc bug.
23836
23837         copysign: enhance tests
23838         * modules/copysign-tests (Files): Add minus-zero.h.
23839         * tests/test-copysign.c (main): Also test zeros.
23840
23841 2010-11-04  Eric Blake  <eblake@redhat.com>
23842
23843         ceil, floor, round, trunc: enhance tests of -0
23844         * tests/test-ceilf1.c (main): Ensure correct sign of result.
23845         * tests/test-ceill.c (main): Likewise.
23846         * tests/test-floorf1.c (main): Likewise.
23847         * tests/test-floorl.c (main): Likewise.
23848         * tests/test-round1.c (main): Likewise.
23849         * tests/test-roundf1.c (main): Likewise.
23850         * tests/test-roundl.c (main): Likewise.
23851         * tests/test-trunc1.c (main): Likewise.
23852         * tests/test-truncf1.c (main): Likewise.
23853         * tests/test-truncl.c (main): Likewise.
23854
23855 2010-11-04  Eric Blake  <eblake@redhat.com>
23856
23857         frexp, tests: work around ICC bug with -zero
23858         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
23859         works with more compilers.
23860         * tests/minus-zero.h: New file.
23861         * modules/ceilf-tests (Files): Include it.
23862         * modules/ceill-tests (Files): Likewise.
23863         * modules/floorf-tests (Files): Likewise.
23864         * modules/floorl-tests (Files): Likewise.
23865         * modules/frexp-nolibm-tests (Files): Likewise.
23866         * modules/frexp-tests (Files): Likewise.
23867         * modules/frexpl-nolibm-tests (Files): Likewise.
23868         * modules/frexpl-tests (Files): Likewise.
23869         * modules/isnan-tests (Files): Likewise.
23870         * modules/isnand-nolibm-tests (Files): Likewise.
23871         * modules/isnand-tests (Files): Likewise.
23872         * modules/isnanf-nolibm-tests (Files): Likewise.
23873         * modules/isnanf-tests (Files): Likewise.
23874         * modules/isnanl-nolibm-tests (Files): Likewise.
23875         * modules/isnanl-tests (Files): Likewise.
23876         * modules/round-tests (Files): Likewise.
23877         * modules/roundf-tests (Files): Likewise.
23878         * modules/roundl-tests (Files): Likewise.
23879         * modules/ldexpl-tests (Files): Likewise.
23880         * modules/signbit-tests (Files): Likewise.
23881         * modules/snprintf-posix-tests (Files): Likewise.
23882         * modules/sprintf-posix-tests (Files): Likewise.
23883         * modules/strtod-tests (Files): Likewise.
23884         * modules/trunc-tests (Files): Likewise.
23885         * modules/truncf-tests (Files): Likewise.
23886         * modules/truncl-tests (Files): Likewise.
23887         * modules/vsnprintf-posix-tests (Files): Likewise.
23888         * modules/vsprintf-posix-tests (Files): Likewise.
23889         * modules/vasnprintf-posix-tests (Files): Likewise.
23890         * modules/vasprintf-posix-tests (Files): Likewise.
23891         * tests/test-ceilf1.c (main): Use it.
23892         * tests/test-ceill.c (main): Likewise.
23893         * tests/test-floorf1.c (main): Likewise.
23894         * tests/test-floorl.c (main): Likewise.
23895         * tests/test-frexp.c (main): Likewise.
23896         * tests/test-frexpl.c (main): Likewise.
23897         * tests/test-isnan.c (main): Likewise.
23898         * tests/test-isnand.h (main): Likewise.
23899         * tests/test-isnanf.h (main): Likewise.
23900         * tests/test-isnanl.h (main): Likewise.
23901         * tests/test-ldexpl.c (main): Likewise.
23902         * tests/test-round.c (main): Likewise.
23903         * tests/test-roundf.c (main): Likewise.
23904         * tests/test-roundl.c (main): Likewise.
23905         * tests/test-signbit.c (test_signbitf, test_signbitd)
23906         (test_signbitl): Likewise.
23907         * tests/test-snprintf-posix.h (test_function): Likewise.
23908         * tests/test-sprintf-posix.h (test_function): Likewise.
23909         * tests/test-strtod.c (main): Likewise.
23910         * tests/test-trunc1.c (main): Likewise.
23911         * tests/test-truncf1.c (main): Likewise.
23912         * tests/test-truncl.c (main): Likewise.
23913
23914         isnanl: work around icc bug
23915         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
23916
23917 2010-11-03  Eric Blake  <eblake@redhat.com>
23918
23919         tests: fix compiler warnings
23920         * tests/test-getopt.h (test_getopt): Fix condition.
23921         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23922         * tests/test-pipe2.c (main): Likewise.
23923         * tests/test-quotearg-simple.c (main): Avoid icc warning.
23924
23925         utimens: fix broken m4 test
23926         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
23927
23928 2010-10-28  Bruno Haible  <bruno@clisp.org>
23929
23930         posix_spawn*, getdtablesize: Relax license.
23931         * modules/posix_spawn (License): Change to LGPLv2+.
23932         * modules/posix_spawnp (License): Likewise.
23933         * modules/posix_spawn-internal (License): Likewise.
23934         * modules/posix_spawnattr_init (License): Likewise.
23935         * modules/posix_spawnattr_getflags (License): Likewise.
23936         * modules/posix_spawnattr_setflags (License): Likewise.
23937         * modules/posix_spawnattr_getpgroup (License): Likewise.
23938         * modules/posix_spawnattr_setpgroup (License): Likewise.
23939         * modules/posix_spawnattr_getschedparam (License): Likewise.
23940         * modules/posix_spawnattr_setschedparam (License): Likewise.
23941         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
23942         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
23943         * modules/posix_spawnattr_getsigdefault (License): Likewise.
23944         * modules/posix_spawnattr_setsigdefault (License): Likewise.
23945         * modules/posix_spawnattr_getsigmask (License): Likewise.
23946         * modules/posix_spawnattr_setsigmask (License): Likewise.
23947         * modules/posix_spawnattr_destroy (License): Likewise.
23948         * modules/posix_spawn_file_actions_init (License): Likewise.
23949         * modules/posix_spawn_file_actions_addclose (License): Likewise.
23950         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
23951         * modules/posix_spawn_file_actions_addopen (License): Likewise.
23952         * modules/posix_spawn_file_actions_destroy (License): Likewise.
23953         * modules/getdtablesize (License): Likewise.
23954         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
23955
23956 2010-10-26  Bruno Haible  <bruno@clisp.org>
23957
23958         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
23959         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
23960         Cygwin and mingw.
23961         Suggested by Eric Blake.
23962
23963 2010-10-26  Bruno Haible  <bruno@clisp.org>
23964
23965         stdio: Work around compilation error due to renameat() on Solaris 10.
23966         * lib/stdio.in.h: Include <unistd.h> on Solaris.
23967         * lib/renameat.c: Don't include <unistd.h> here.
23968         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
23969         Reported by Paul Eggert and Eric Blake.
23970
23971 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
23972
23973         renameat: port to Solaris 10, which declares renameat in unistd.h
23974
23975         * lib/renameat.c: Include unistd.h before stdio.h, because
23976         Solaris 10 declares renameat in unistd.h.  Problem encountered
23977         when building GNU tar 1.24 on Solaris 10.
23978
23979 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23980
23981         fdopendir: fix C89 compilation
23982         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
23983         compilers.
23984
23985 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
23986
23987         inttostr: simplify by removing unnecessary redundancy
23988         * lib/anytostr.c: Don't include verify.h.
23989         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
23990         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
23991         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
23992         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
23993         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
23994         Likewise.
23995         * modules/inttostr (Depends-on): Remove 'verify'.
23996
23997 2010-10-23  Bruno Haible  <bruno@clisp.org>
23998
23999         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
24000         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
24001         Reported by Eric Blake.
24002
24003 2010-10-23  Bruno Haible  <bruno@clisp.org>
24004
24005         Tests: Fix LOCALE_JA on MirBSD 10.
24006         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
24007         to an UTF-8 locale.
24008         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
24009         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
24010         Reported by Eric Blake.
24011
24012 2010-10-21  Bruno Haible  <bruno@clisp.org>
24013
24014         nl_langinfo test: Avoid test failure on NetBSD 5.
24015         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
24016         Reported by Eric Blake.
24017
24018 2010-10-21  Eric Blake  <eblake@redhat.com>
24019
24020         c-stack: work around libsigsegv 2.8 bug
24021         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
24022         overflow on at least PowerPC64.
24023
24024 2010-10-17  Bruno Haible  <bruno@clisp.org>
24025
24026         userspec: Drop redundant file.
24027         * modules/userspec (Files): Remove lib/inttostr.h.
24028
24029 2010-10-17  Bruno Haible  <bruno@clisp.org>
24030
24031         nl_langinfo tests: Silence some warnings.
24032         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
24033         Reported by Jim Meyering.
24034
24035 2010-10-17  Bruno Haible  <bruno@clisp.org>
24036
24037         Make use of GCC's attribute __alloc_size__.
24038         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
24039         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
24040         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
24041         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
24042         __alloc_size__.
24043         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
24044         Suggested by Jim Meyering.
24045
24046 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
24047
24048         bootstrap: anchor .gitignore entries.
24049         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
24050         with...
24051         (insert_vc_ignore): ... this new function, which prepends `/' to
24052         all .gitignore entries before passing them to
24053         insert_sorted_if_absent.
24054
24055 2010-10-16  Bruno Haible  <bruno@clisp.org>
24056
24057         nextafter: Fix configure check.
24058         * modules/nextafter (configure.ac): Correct expected prototype.
24059
24060 2010-10-16  Bruno Haible  <bruno@clisp.org>
24061
24062         termios: Update documentation.
24063         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
24064
24065 2010-10-16  Bruno Haible  <bruno@clisp.org>
24066
24067         tests: Make them compile with TinyCC.
24068         * tests/test-strstr.c (main): Remove parentheses around array
24069         initializer.
24070
24071 2010-10-15  Eric Blake  <eblake@redhat.com>
24072
24073         ignore-value: make header idempotent
24074         * lib/ignore-value.h: Add double-inclusion guards.
24075         Reported by Stefan Berger.
24076
24077 2010-10-15  Jim Meyering  <meyering@redhat.com>
24078
24079         GNUmakefile: handle "stable" target, not "major"
24080         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
24081         lists in maint.mk and announce-gen.  Without this, "make stable"
24082         would fail to ensure that $(VERSION) is up to date.
24083
24084 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
24085
24086         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
24087         & co.
24088
24089 2010-10-14  Bruno Haible  <bruno@clisp.org>
24090
24091         vasnprintf: Don't set errno to 0.
24092         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
24093         block that sets it to 0.
24094         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
24095
24096 2010-10-14  Bruno Haible  <bruno@clisp.org>
24097
24098         socketlib: Fix.
24099         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
24100         gl_PREREQ_SYS_H_WINSOCK2.
24101         Reported by Ian Beckwith <ianb@erislabs.net>.
24102
24103 2010-10-13  Jim Meyering  <meyering@redhat.com>
24104
24105         test-select-stdin.c: avoid warn_unused_result warnings
24106         * tests/test-select-stdin.c: Include "macros.h".
24107         ASSERT that read and fflush succeed.
24108
24109 2010-10-13  Jim Meyering  <meyering@redhat.com>
24110
24111         git-version-gen: do require git-VC'd files in cwd
24112         * build-aux/git-version-gen: Reject a git version string
24113         if there are no commits associated with the current directory.
24114         This avoids an unlikely false-positive (unrelated dir whose parent
24115         repository also contains a tag matching v*), as pointed out
24116         by Giuseppe Scrivano in
24117         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
24118
24119 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
24120
24121         argv-iter: omit nonconforming declaration
24122         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
24123         enum arg_iter_err declaration, which doesn't conform to C99.
24124         Solaris 10 cc warns about this.
24125
24126 2010-10-13  Eric Blake  <eblake@redhat.com>
24127
24128         termios: fix compilation on mingw
24129         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
24130         (gl_TERMIOS_H): Adjust it on mingw.
24131         * modules/termios (Makefile.am): Substitute new key.
24132         * lib/termios.in.h (includes): Make include_next conditional.
24133         * doc/posix-headers/termios.texi (termios.h): Update
24134         documentation.
24135         Reported by Daniel P. Berrange.
24136
24137 2010-10-13  Jim Meyering  <meyering@redhat.com>
24138
24139         git-version-gen: don't require that .git/ be in the current dir
24140         * build-aux/git-version-gen: Adjust this script so that it works
24141         when run from any working directory beneath the top-level .git/-
24142         containing directory.  Inspired by a patch from Giuseppe Scrivano,
24143         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
24144
24145         test-select: avoid warn_unused_result warnings
24146         * tests/test-select.c: Include "macros.h".
24147         ASSERT that each call to read, write, and pipe succeeds.
24148         While not technically required, also check each "close".
24149         * modules/select-tests (Files): Add tests/macros.h.
24150
24151         test-symlinkat: remove declaration of unused local
24152         * tests/test-symlinkat.c (main): Remove unused local, "buf".
24153
24154         test-inttostr: avoid shadowing warnings
24155         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
24156         and use malloc rather than the stack for the same reason as
24157         mentioned in the comment justifying the other allocation.
24158
24159 2010-10-11  Bruno Haible  <bruno@clisp.org>
24160
24161         stdlib: Allow multiple gnulib generated replacements to coexist.
24162         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
24163         Reported by Sam Steingold <sds@gnu.org>.
24164
24165 2010-10-11  Jim Meyering  <meyering@redhat.com>
24166
24167         fix a documentation typo
24168         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
24169
24170 2010-10-11  Eric Blake  <eblake@redhat.com>
24171
24172         futimens: work around Solaris 11 bug
24173         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
24174         * tests/test-futimens.h (test_futimens): Enhance, rather than
24175         weaken test.
24176         * doc/posix-functions/futimens.texi (futimens): Document the bug.
24177
24178 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
24179
24180         Indentation.
24181         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
24182         higher-level operators more to the left.
24183
24184 2010-10-11  Jim Meyering  <meyering@redhat.com>
24185
24186         test-futimens: avoid unwarranted test failure on Solaris 5.11
24187         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
24188         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
24189         because it tries to dereference the NULL name argument.
24190
24191 2010-10-11  Bruno Haible  <bruno@clisp.org>
24192
24193         Indentation.
24194         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
24195         indentation.
24196
24197 2010-10-11  Jim Meyering  <meyering@redhat.com>
24198
24199         spawn.in.h: make indentation consistent with parentheses
24200         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
24201         Make indentation consistent with parentheses.
24202
24203 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
24204
24205         Fix mismatched parens in previous commit
24206         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
24207         parens.
24208
24209 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
24210
24211         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
24212
24213         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
24214         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
24215         * lib/malloca.c: Include "verify.h".
24216         (verify1): Remove, replacing with a verify call.
24217         * lib/relocwrapper.c (verify1): Likewise.
24218         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
24219         Likewise.
24220         * modules/malloca (Depends-on): Add 'verify'.
24221         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
24222         * modules/vasnprintf (Depends-on): Add 'verify'.
24223         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
24224         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
24225         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
24226         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
24227         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
24228         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
24229         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
24230
24231         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
24232
24233         Formerly the style was sometimes 2*X - 1, because the C standard
24234         was wrongly thought to disallow ?: in integral constant expressions.
24235         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
24236         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
24237         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
24238         * lib/stdint.in.h (_verify_intmax_size): Likewise.
24239         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
24240         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
24241         verify that time_t cannot be floating.
24242
24243 2010-10-08  Eric Blake  <eblake@redhat.com>
24244
24245         time: enforce recent POSIX ruling that time_t is integral
24246         * lib/time.in.h (__time_t_must_be_integral): Detect any
24247         problematic systems, allowing the rest of gnulib to assume POSIX.
24248
24249 2010-10-08  Jim Meyering  <meyering@redhat.com>
24250
24251         fdopendir: fix a bug on systems lacking openat and /proc support
24252         OpenBSD 4.7 is one such system.  The most noticeable effect was
24253         failure of any application making nontrivial use of fts: rm, du,
24254         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
24255           ./rm: traversal failed: `a': Bad file descriptor
24256         Debugging that, you see that even though FD 6 was closed just
24257         prior to the opendir call in fd_clone_opendir, its resulting
24258         dir->dd_fd was 8, rather than the expected value of 6:
24259
24260         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
24261         93                close (fd);
24262         (gdb) n
24263         94                dir = fd_clone_opendir (dupfd);
24264         (gdb) n
24265         95                saved_errno = errno;
24266         (gdb) p dir->dd_fd
24267         $11 = 8
24268
24269         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24270         The problem is that on OpenBSD, fd_clone_opendir has to resort
24271         to using the old-style save/restore CWD mechanism, due to its
24272         lack of openat/proc support, and *that* would steal the FD (6)
24273         that opendir was supposed to use.
24274
24275         The fix is to squirrel away the desired FD so that save_cwd uses a
24276         different one, and then free the dest FD right before calling opendir.
24277         That guarantees opendir will use the required file descriptor.
24278
24279         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24280
24281 2010-10-08  Bruno Haible  <bruno@clisp.org>
24282
24283         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
24284         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
24285
24286 2010-10-08  Bruno Haible  <bruno@clisp.org>
24287
24288         nanosleep: Make replacement POSIX compliant.
24289         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
24290         is out of range.
24291         Reported by Jim Meyering.
24292
24293 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24294
24295         bootstrap: add hook for altering gnulib.mk, for Bison
24296         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
24297         the Bison bootstrapping process can rewrite file names and variables
24298         in this file before later parts of 'bootstrap' use the file.
24299         Bison wants to include lib/gnulib.mk from the top-level makefile,
24300         so it needs the file names in this file to be relative to the top
24301         level, not relative to lib; plus it needs variable names to be
24302         rewritten.
24303         (slurp): Use the new function.
24304
24305         bootstrap: reformat for readability
24306         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
24307
24308 2010-10-08  Eric Blake  <eblake@redhat.com>
24309
24310         docs: update cygwin progress
24311         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
24312         1.7.7.
24313         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
24314         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
24315         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
24316         * doc/posix-functions/carg.texi (carg): Likewise.
24317         * doc/posix-functions/cargf.texi (cargf): Likewise.
24318         * doc/posix-functions/casin.texi (casin): Likewise.
24319         * doc/posix-functions/casinf.texi (casinf): Likewise.
24320         * doc/posix-functions/casinh.texi (casinh): Likewise.
24321         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
24322         * doc/posix-functions/catan.texi (catan): Likewise.
24323         * doc/posix-functions/catanf.texi (catanf): Likewise.
24324         * doc/posix-functions/catanh.texi (catanh): Likewise.
24325         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
24326         * doc/posix-functions/ccos.texi (ccos): Likewise.
24327         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
24328         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
24329         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
24330         * doc/posix-functions/cexp.texi (cexp): Likewise.
24331         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
24332         * doc/posix-functions/cimag.texi (cimag): Likewise.
24333         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
24334         * doc/posix-functions/clog.texi (clog): Likewise.
24335         * doc/posix-functions/clogf.texi (clogf): Likewise.
24336         * doc/posix-functions/conj.texi (conj): Likewise.
24337         * doc/posix-functions/conjf.texi (conjf): Likewise.
24338         * doc/posix-functions/cpow.texi (cpow): Likewise.
24339         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
24340         * doc/posix-functions/cproj.texi (cproj): Likewise.
24341         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
24342         * doc/posix-functions/creal.texi (creal): Likewise.
24343         * doc/posix-functions/crealf.texi (crealf): Likewise.
24344         * doc/posix-functions/csin.texi (csin): Likewise.
24345         * doc/posix-functions/csinf.texi (csinf): Likewise.
24346         * doc/posix-functions/csinh.texi (csinh): Likewise.
24347         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
24348         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
24349         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
24350         * doc/posix-functions/ctan.texi (ctan): Likewise.
24351         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
24352         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
24353         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
24354         * doc/posix-headers/complex.texi (complex.h): Likewise.
24355
24356 2010-10-07  Jim Meyering  <meyering@redhat.com>
24357
24358         parse-datetime: avoid compilation failure on OpenBSD 4.7
24359         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
24360         This works around a compilation failure on OpenBSD 4.7:
24361         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
24362
24363 2010-10-07  Eric Blake  <eblake@redhat.com>
24364
24365         docs: update cygwin progress
24366         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
24367         1.7.6.
24368         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24369         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
24370         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
24371         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
24372         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
24373         Likewise.
24374         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
24375         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
24376         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
24377         Likewise.
24378         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
24379         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
24380         Likewise.
24381         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
24382         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
24383         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
24384         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
24385         Likewise.
24386         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
24387         Likewise.
24388         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
24389
24390         docs: update parse-datetime history
24391         * doc/parse-datetime.texi (Authors of parse_datetime): Better
24392         documentation of this function's history and alternatives.
24393
24394         cygwin: use more robust version check
24395         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
24396         exclude an eventual cygwin 1.9.1.
24397         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24398         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24399         (gl_FUNC_STRCASESTR): Likewise.
24400         Reported by Bruno Haible.
24401
24402 2010-10-06  Bruno Haible  <bruno@clisp.org>
24403
24404         string, sys_select: Avoid #including large headers unless necessary.
24405         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
24406         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
24407         OSF/1, BeOS, Haiku.
24408         Reported by Jim Meyering.
24409
24410 2010-10-05  Eric Blake  <eblake@redhat.com>
24411
24412         memmem, strstr, strcasestr: fix bug with long periodic needle
24413         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
24414         periodic needle having false positive.
24415         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
24416         and cygwin 1.7.7.
24417         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
24418         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24419         (gl_FUNC_STRCASESTR): Likewise.
24420         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24421         * tests/test-memmem.c (main): Expose the bug.
24422         * tests/test-strcasestr.c (main): Likewise.
24423         * tests/test-strstr.c (main): Likewise.
24424         * tests/test-c-strcasestr.c (main): Likewise.
24425         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
24426         * doc/posix-functions/strstr.texi (strstr): Likewise.
24427         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24428         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
24429
24430 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24431
24432         parse-datetime: do some more renaming
24433         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
24434         parse_datetime, not get_date.  Mention the renaming.
24435         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
24436         in comments.
24437         * m4/bison.m4: Likewise.
24438
24439 2010-10-05  Eric Blake  <eblake@redhat.com>
24440
24441         parse-datetime: better name than get_date
24442         * NEWS: Reword the deprecation notice.
24443         * modules/get_date: Rename to modules/parse-datetime.
24444         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
24445         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
24446         * lib/get_date.y: Rename to lib/parse-datetime.y.
24447         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
24448         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
24449         * doc/getdate.texi: Provide fallback wrapper.
24450         * lib/getdate.h: Move guts, and wrap...
24451         * lib/parse-datetime.h: ...new file.
24452         * lib/parse-datetime.y (get_date): Rename...
24453         (parse_datetime): ...to this.
24454         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
24455         (gl_PARSE_DATETIME): ...to this.
24456         * doc/posix-functions/getdate.texi (get_date): Provide fallback
24457         documentation.
24458         * modules/getdate (Files): Provide fallback docs and header.
24459         (Notice, Depends-on): Update references.
24460         * tests/test-parse-datetime.c: Likewise.
24461         * DEPENDENCIES: Likewise.
24462         * MODULES.html.sh (Date and time <time.h>): Likewise.
24463         * doc/parse-datetime.texi (Date input formats)
24464         (Authors of parse_datetime): Likewise.
24465         * modules/parse-datetime (Files, configure.ac, Makefile.am)
24466         (Include): Likewise.
24467         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
24468         * gnulib-tool: Likewise.
24469         * m4/bison.m4 (gl_BISON): Likewise.
24470         Suggested by Bruno Haible.
24471
24472 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24473
24474         more ports to Solaris tr, which needs [] around ranges
24475         * gnulib-tool: Solaris tr needs [] around ranges.
24476         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24477         * tests/test-pipe-filter-gi1.c (main): Likewise.
24478         * tests/test-pipe-filter-ii1.c (main): Likewise.
24479
24480 2010-10-05  Eric Blake  <eblake@redhat.com>
24481
24482         bootstrap: fix Solaris regression
24483         * build-aux/bootstrap (check_versions): Solaris tr still needs []
24484         around ranges.
24485         Reported by Pádraig Brady.
24486
24487         bootstrap: work with pkg-config
24488         * build-aux/bootstrap (check_versions): Also transliterate - in
24489         prerequisite name.
24490         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
24491         prerequisites that were already found, to avoid confusion.
24492         Reported by Justin Clift.
24493
24494         faccessat: remove unused wrappers
24495         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
24496         presence of these wrappers dragged in -lgen on Solaris.
24497         Reported by Clemens Brogi; fix suggested by Paul Eggert.
24498
24499 2010-10-05  Jim Meyering  <meyering@redhat.com>
24500
24501         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
24502         * Makefile (sc_pragma_columns): New syntax-check rule.
24503
24504 2010-10-04  Bruno Haible  <bruno@clisp.org>
24505
24506         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
24507         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
24508         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
24509         Reported by Bruce Korb and Eric Blake.
24510
24511 2010-10-04  Bruno Haible  <bruno@clisp.org>
24512
24513         threadlib: Make option --with-libpth-prefix work.
24514         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
24515         use $LIBPTH, not just -lpth.
24516
24517 2010-10-04  Bruno Haible  <bruno@clisp.org>
24518
24519         Avoid line length limitation from HP NonStop system header files.
24520         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
24521         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
24522         * lib/ctype.in.h: Likewise.
24523         * lib/dirent.in.h: Likewise.
24524         * lib/errno.in.h: Likewise.
24525         * lib/fcntl.in.h: Likewise.
24526         * lib/float.in.h: Likewise.
24527         * lib/getopt.in.h: Likewise.
24528         * lib/iconv.in.h: Likewise.
24529         * lib/inttypes.in.h: Likewise.
24530         * lib/langinfo.in.h: Likewise.
24531         * lib/locale.in.h: Likewise.
24532         * lib/math.in.h: Likewise.
24533         * lib/netdb.in.h: Likewise.
24534         * lib/netinet_in.in.h: Likewise.
24535         * lib/poll.in.h: Likewise.
24536         * lib/pthread.in.h: Likewise.
24537         * lib/pty.in.h: Likewise.
24538         * lib/sched.in.h: Likewise.
24539         * lib/se-selinux.in.h: Likewise.
24540         * lib/search.in.h: Likewise.
24541         * lib/signal.in.h: Likewise.
24542         * lib/spawn.in.h: Likewise.
24543         * lib/stdarg.in.h: Likewise.
24544         * lib/stddef.in.h: Likewise.
24545         * lib/stdint.in.h: Likewise.
24546         * lib/stdio.in.h: Likewise.
24547         * lib/stdlib.in.h: Likewise.
24548         * lib/string.in.h: Likewise.
24549         * lib/strings.in.h: Likewise.
24550         * lib/sys_file.in.h: Likewise.
24551         * lib/sys_ioctl.in.h: Likewise.
24552         * lib/sys_select.in.h: Likewise.
24553         * lib/sys_socket.in.h: Likewise.
24554         * lib/sys_stat.in.h: Likewise.
24555         * lib/sys_time.in.h: Likewise.
24556         * lib/sys_times.in.h: Likewise.
24557         * lib/sys_utsname.in.h: Likewise.
24558         * lib/sys_wait.in.h: Likewise.
24559         * lib/sysexits.in.h: Likewise.
24560         * lib/termios.in.h: Likewise.
24561         * lib/time.in.h: Likewise.
24562         * lib/unistd.in.h: Likewise.
24563         * lib/wchar.in.h: Likewise.
24564         * lib/wctype.in.h: Likewise.
24565         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
24566         * modules/ctype (Makefile.am): Likewise.
24567         * modules/dirent (Makefile.am): Likewise.
24568         * modules/errno (Makefile.am): Likewise.
24569         * modules/fcntl-h (Makefile.am): Likewise.
24570         * modules/float (Makefile.am): Likewise.
24571         * modules/getopt-posix (Makefile.am): Likewise.
24572         * modules/iconv-h (Makefile.am): Likewise.
24573         * modules/inttypes (Makefile.am): Likewise.
24574         * modules/langinfo (Makefile.am): Likewise.
24575         * modules/locale (Makefile.am): Likewise.
24576         * modules/math (Makefile.am): Likewise.
24577         * modules/netdb (Makefile.am): Likewise.
24578         * modules/netinet_in (Makefile.am): Likewise.
24579         * modules/poll-h (Makefile.am): Likewise.
24580         * modules/pthread (Makefile.am): Likewise.
24581         * modules/pty (Makefile.am): Likewise.
24582         * modules/sched (Makefile.am): Likewise.
24583         * modules/search (Makefile.am): Likewise.
24584         * modules/selinux-h (Makefile.am): Likewise.
24585         * modules/signal (Makefile.am): Likewise.
24586         * modules/spawn (Makefile.am): Likewise.
24587         * modules/stdarg (Makefile.am): Likewise.
24588         * modules/stddef (Makefile.am): Likewise.
24589         * modules/stdint (Makefile.am): Likewise.
24590         * modules/stdio (Makefile.am): Likewise.
24591         * modules/stdlib (Makefile.am): Likewise.
24592         * modules/string (Makefile.am): Likewise.
24593         * modules/strings (Makefile.am): Likewise.
24594         * modules/sys_file (Makefile.am): Likewise.
24595         * modules/sys_ioctl (Makefile.am): Likewise.
24596         * modules/sys_select (Makefile.am): Likewise.
24597         * modules/sys_socket (Makefile.am): Likewise.
24598         * modules/sys_stat (Makefile.am): Likewise.
24599         * modules/sys_time (Makefile.am): Likewise.
24600         * modules/sys_times (Makefile.am): Likewise.
24601         * modules/sys_utsname (Makefile.am): Likewise.
24602         * modules/sys_wait (Makefile.am): Likewise.
24603         * modules/sysexits (Makefile.am): Likewise.
24604         * modules/termios (Makefile.am): Likewise.
24605         * modules/time (Makefile.am): Likewise.
24606         * modules/unistd (Makefile.am): Likewise.
24607         * modules/wchar (Makefile.am): Likewise.
24608         * modules/wctype (Makefile.am): Likewise.
24609
24610 2010-10-04  Bruno Haible  <bruno@clisp.org>
24611
24612         read-file tests: Avoid a test failure on NonStop Kernel.
24613         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
24614         a regular file.
24615         Reported by Joachim Schmitz <schmitz@hp.com>.
24616
24617 2010-10-03  Bruno Haible  <bruno@clisp.org>
24618
24619         gnulib-tool: Fixes for --create-testdir with --libtool.
24620         * gnulib-tool (func_get_automake_snippet): Don't augment
24621         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
24622         an executable.
24623         (func_create_testdir): Handle module 'alloca' like func_import.
24624         Reported by Bruce Korb <bruce.korb@gmail.com>.
24625
24626 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
24627
24628         Avoid some lines longer than 80 characters.
24629         * lib/stdint.in.h: Break long comment lines.
24630         * lib/math.in.h: Likewise.
24631         (_GL_NUM_UINT_WORDS): New macro, for readability.
24632         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
24633         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
24634         * lib/stdlib.in.h: Likewise.
24635         * lib/spawn.in.h: Likewise.
24636         * lib/sys_socket.in.h: Update an URL.
24637         * lib/sys_stat.in.h: Break long line.
24638
24639 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
24640
24641         Improve pmccabe2html.
24642         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
24643         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
24644         when the sources change. Remove the line in the HTML about "Used
24645         ranges" (which implied that there might be other unused ranges),
24646         rename "Resume" to "Summary" (easier to understand for more users).
24647         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
24648         styles, and some unnecessary blank lines.
24649
24650 2010-10-03  Bruno Haible  <bruno@clisp.org>
24651             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
24652
24653         acl: Add support for ACLs on NonStop Kernel.
24654         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
24655         Check whether the function aclsort() exists.
24656         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
24657         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
24658         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24659         (acl_nontrivial [HAVE_ACLSORT]: New function.
24660         (file_has_acl): Implement for NonStop Kernel.
24661         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24662         (qset_acl): Implement for NonStop Kernel.
24663         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
24664         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24665         (main): Implement for NonStop Kernel.
24666         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
24667         Kernel. Handle this flavor.
24668         * tests/test-set-mode-acl.sh: Likewise.
24669         * tests/test-copy-acl.sh: Likewise.
24670         * tests/test-copy-file.sh: Likewise.
24671
24672 2010-10-03  Bruno Haible  <bruno@clisp.org>
24673
24674         Info about ACLs on NonStop Kernel.
24675         * doc/acl-resources.txt: Add info about NonStop Kernel.
24676         References by Joachim Schmitz <schmitz@hp.com>.
24677
24678 2010-10-02  Bruno Haible  <bruno@clisp.org>
24679
24680         Define missing EDQUOT on NonStop Kernel.
24681         * lib/errno.in.h (EDQUOT): Assign a value if missing.
24682         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
24683         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
24684         missing.
24685         * doc/posix-headers/errno.texi: Mention the NSK bug.
24686         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
24687         Reported by Joachim Schmitz <schmitz@hp.com>.
24688
24689 2010-10-02  Bruno Haible  <bruno@clisp.org>
24690
24691         Update doc for POSIX:2008.
24692         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
24693         Update URL of POSIX specification.
24694
24695 2010-10-02  Bruno Haible  <bruno@clisp.org>
24696
24697         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
24698         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
24699         from gnulib, not from Automake.
24700
24701 2010-10-02  Bruno Haible  <bruno@clisp.org>
24702
24703         New module 'system-posix'.
24704         * modules/system-posix: New file.
24705         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
24706         module is present.
24707         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
24708         GNULIB_SYSTEM_POSIX.
24709         * modules/stdlib (Depends-on): Remove sys_wait.
24710         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
24711         * doc/posix-functions/system.texi: Mention the new module.
24712         * doc/posix-headers/stdlib.texi: Likewise.
24713         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
24714         define test_sys_wait_macros to a no-op.
24715         Reported by Sam Steingold <sds@gnu.org>.
24716
24717 2010-09-30  Bruno Haible  <bruno@clisp.org>
24718
24719         More renaming from 'getdate' to 'get_date'.
24720         * doc/get_date.texi: Renamed from doc/getdate.texi.
24721         * modules/get_date (Files): Update.
24722         * MODULES.html.sh (Date and time <time.h>): Update.
24723         * DEPENDENCIES: Update.
24724         * gnulib-tool: Update comment.
24725         * m4/bison.m4 (gl_BISON): Likewise.
24726         * m4/get_date.m4 (gl_GET_DATE): Likewise.
24727
24728 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
24729
24730         bootstrap: support ACLOCAL_FLAGS during aclocal
24731         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
24732         can add additional -I dir for third-party .m4 files.
24733
24734 2010-09-30  Eric Blake  <eblake@redhat.com>
24735
24736         bootstrap: use glibtoolize on MacOS
24737         * build-aux/bootstrap (check_versions): Convert libtool into
24738         libtoolize.
24739         (tool search): Move libtool check earlier, and look for
24740         glibtoolize for MacOS.
24741         (gnulib_tool_options): Auto-add --libtool when appropriate.
24742         Reported by Justin Clift.
24743
24744         poll: fix typo that broke test on MacOS
24745         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
24746         Reported by Justin Clift.
24747
24748         getdate: rename to get_date
24749         Note: getdate.h is not renamed, to minimize client impact.
24750         * modules/getdate: Mark obsolete.  Move old contents...
24751         * modules/get_date: ...to new module name.
24752         * modules/getdate-tests: Move...
24753         * modules/get_date-tests: ...here.
24754         * m4/getdate.m4: Move...
24755         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
24756         * lib/getdate.y: Move...
24757         * lib/get_date.y: ...here.
24758         * tests/test-getdate.c: Move...
24759         * tests/test-get_date.c: ...here.
24760         * doc/posix-functions/getdate.texi (getdate): Update name.
24761         * NEWS: Mention the change.
24762
24763 2010-09-29  Bruno Haible  <bruno@clisp.org>
24764
24765         Separate the module 'waitpid' from the module 'sys_wait'.
24766         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
24767         present.
24768         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
24769         gl_MODULE_INDICATOR_FOR_TESTS.
24770         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
24771         * modules/sys_wait (Depends-on): Remove waitpid.
24772         (Makefile.am): Substitute GNULIB_WAITPID.
24773         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
24774         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
24775         signature only if the 'waitpid' module is present.
24776         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
24777         * NEWS: Mention the change.
24778         * modules/grantpt (Depends-on): Add waitpid.
24779         * modules/wait-process (Depends-on): Likewise.
24780
24781 2010-09-29  Bruno Haible  <bruno@clisp.org>
24782
24783         More tests for module 'sys_wait'.
24784         * modules/sys_wait-c++-tests: New file.
24785         * tests/test-sys_wait-c++.cc: New file.
24786         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
24787         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24788
24789 2010-09-29  Bruno Haible  <bruno@clisp.org>
24790
24791         New module 'waitpid'.
24792         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
24793         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
24794         Don't include <process.h>.
24795         (waitpid): Declare only, using modern idiom.
24796         * m4/waitpid.m4: New file.
24797         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
24798         * modules/waitpid: New file.
24799         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
24800         (Makefile.am): Update.
24801         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24802
24803 2010-09-28  Bruno Haible  <bruno@clisp.org>
24804
24805         poll: Assume ANSI C.
24806         * lib/poll.c (poll): Use an ANSI C declaration.
24807
24808 2010-09-28  Bruno Haible  <bruno@clisp.org>
24809
24810         poll-h: Create poll.h on all platforms.
24811         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
24812         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
24813         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
24814         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
24815         (gl_REPLACE_POLL_H): Don't set POLL_H.
24816         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
24817         * modules/poll-h (Depends-on): Add include_next.
24818         (Makefile.am): Create poll.h unconditionally. Substitute also
24819         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
24820
24821 2010-09-28  Bruno Haible  <bruno@clisp.org>
24822
24823         Tests for module 'poll-h'.
24824         * modules/poll-h-c++-tests: New file.
24825         * tests/test-poll-h-c++.cc: New file.
24826
24827         Tests for module 'poll-h'.
24828         * modules/poll-h-tests: New file.
24829         * tests/test-poll-h.c: New file.
24830
24831 2010-09-28  Bruno Haible  <bruno@clisp.org>
24832
24833         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
24834         * modules/poll-h (Depends-on): Add 'extensions'.
24835
24836 2010-09-28  Bruno Haible  <bruno@clisp.org>
24837
24838         New module 'poll-h'.
24839         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
24840         (poll): Use modern idiom.
24841         * modules/poll-h: New file.
24842         * modules/poll (Files): Remove lib/poll.in.h.
24843         (Depends-on): Add poll-h.
24844         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
24845         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
24846         * m4/poll_h.m4: New file.
24847         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
24848         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
24849         and invoke gl_REPLACE_POLL_H.
24850         * lib/poll.c: Use common idiom.
24851         * tests/test-poll.c: Likewise.
24852         * doc/posix-headers/poll.texi: Mention the poll-h module.
24853         Suggested by Eric Blake.
24854
24855 2010-09-26  Bruno Haible  <bruno@clisp.org>
24856
24857         sys_wait: Implement WSTOPSIG.
24858         * lib/sys_wait.in.h (WSTOPSIG): New macro.
24859         Reported by Simon Josefsson.
24860
24861 2010-09-26  Simon Josefsson  <simon@josefsson.org>
24862
24863         stdlib, sys_wait: Avoid compilation error on mingw.
24864         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
24865
24866 2010-09-26  Bruno Haible  <bruno@clisp.org>
24867
24868         stdlib tests: Avoid code duplication.
24869         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
24870         * modules/sys_wait-tests (Files): Likewise.
24871         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
24872         * tests/test-stdlib.c: Include test-sys_wait.h.
24873         (main): Invoke test_sys_wait_macros.
24874         * tests/test-sys_wait.c: Include test-sys_wait.h.
24875         (main): Invoke test_sys_wait_macros.
24876
24877 2010-09-25  Simon Josefsson  <simon@josefsson.org>
24878
24879         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
24880         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
24881         sure Windows sockets are working before calling getaddrinfo.
24882         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
24883         * doc/gnulib.texi (Windows sockets): Fix typo.
24884
24885 2010-09-25  Bruno Haible  <bruno@clisp.org>
24886
24887         Tests for module 'regex-quote'.
24888         * modules/regex-quote-tests: New file.
24889         * tests/test-regex-quote.c: New file.
24890
24891         New module 'regex-quote'.
24892         * lib/regex-quote.h: New file.
24893         * lib/regex-quote.c: New file.
24894         * modules/regex-quote: New file.
24895         Suggested by Reuben Thomas <rrt@sc3d.org>.
24896
24897 2010-09-24  Bruno Haible  <bruno@clisp.org>
24898
24899         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
24900         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
24901
24902 2010-09-23  Bruno Haible  <bruno@clisp.org>
24903
24904         setenv: Relax license.
24905         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
24906         Blake.
24907         Requested by Eric Blake.
24908
24909 2010-09-22  Bruno Haible  <bruno@clisp.org>
24910
24911         termios: Relax license.
24912         * modules/termios (License): Change to LGPLv2+.
24913         Requested by Eric Blake.
24914
24915 2010-09-22  Bruno Haible  <bruno@clisp.org>
24916
24917         threadlib: Allow the package to change the default to 'no'.
24918         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
24919         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
24920         Reported by Paul Eggert.
24921
24922 2010-09-22  Pádraig Brady  <P@draigbrady.com>
24923             Bruno Haible  <bruno@clisp.org>
24924
24925         Fix endless loop in mbmemcasecoll.
24926         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
24927         byte.
24928         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
24929
24930 2010-09-22  Bruno Haible  <bruno@clisp.org>
24931
24932         Tests for module 'memcoll'.
24933         * modules/memcoll-tests: New file.
24934         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
24935
24936         memcoll, xmemcoll: Clarify size vs. length.
24937         * modules/memcoll.c (memcoll0): Clarify specification.
24938         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
24939         passed to collate_error.
24940
24941 2010-09-22  Bruno Haible  <bruno@clisp.org>
24942
24943         Tests for module 'memcasecmp'.
24944         * modules/memcasecmp-tests: New file.
24945         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
24946
24947 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24948
24949         * lib/pthread.in.h: Add split double-inclusion guard, and include
24950         system <pthread.h> if there is one.  Use @@-style as in other
24951         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
24952         pthread.h doesn't.
24953         (pthread_mutexattr_destroy, pthread_mutexattr_init):
24954         (pthread_mutexattr_settype, pthread_mutex_trylock):
24955         New static inline functions, if there's no system <pthread.h>.
24956         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
24957         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
24958         Approximate with mutexes if the system lacks spinlocks, as in
24959         MacOS.
24960         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
24961         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
24962         @@-style.  Check for spinlocks separately.
24963         (gl_PTHREAD_DEFAULTS): New macro.
24964         * modules/pthread: Redo to use a more typical style for in.h files.
24965
24966 2010-09-21  Eric Blake  <eblake@redhat.com>
24967
24968         net_if: enhance tests
24969         * tests/test-net_if.c (main): Move signature checks earlier.
24970         Print failures to stderr.
24971         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
24972         Document the bug that we do not yet fix.
24973
24974 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24975
24976         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
24977         about gnulib, not GSS.
24978
24979 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24980
24981         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
24982         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
24983         for Emacs.
24984         * build-aux/pmccabe2html: Make Makefile.am example code more
24985         cut-and-paste friendly.
24986
24987 2010-09-21  Simon Josefsson  <simon@josefsson.org>
24988
24989         * tests/test-net_if.c: New file.
24990         * modules/net_if-tests: New file.
24991
24992 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
24993
24994         pthread: add pthread_spin_destroy
24995         * lib/pthread.in.h (pthread_spin_destroy): New function.
24996
24997 2010-09-19  Bruno Haible  <bruno@clisp.org>
24998
24999         gnulib-tool: Fix --help output.
25000         * gnulib-tool (func_usage): Fix help message.
25001         Reported by Reuben Thomas <rrt@sc3d.org>.
25002
25003 2010-09-18  Jim Meyering  <meyering@redhat.com>
25004
25005         maint.mk: avoid unexpanded \n in two diagnostics
25006         * top/maint.mk (sc_prohibit_always_true_header_tests):
25007         Don't use a literal \n in a halt=... assignment.  It would not be
25008         expanded, and the two \n bytes would appear in the diagnostic output
25009         rather than the desired newline.  Use halt=$$(printf ... instead.
25010         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
25011
25012 2010-09-18  Bruno Haible  <bruno@clisp.org>
25013
25014         netinet_in: Doc tweak.
25015         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
25016         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25017
25018 2010-09-18  Jim Meyering  <meyering@redhat.com>
25019
25020         init.sh: correct an outdated comment
25021         * tests/init.sh (create_exe_shims_):  s/function/alias/
25022
25023         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
25024         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
25025         a file named "*.exe" is removed between the glob expansion and the
25026         processing of that oddly named file.
25027
25028 2010-09-17  Eric Blake  <eblake@redhat.com>
25029
25030         mirbsd: add some more support
25031         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
25032         in BSD family.
25033         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
25034         devices as OpenBSD.
25035         * m4/host-os.m4 (mirbsd): Add MirBSD.
25036
25037         tests: fix unportable assumption on sys/wait.h
25038         * tests/test-sys_wait.c (main): Relax test.
25039         * tests/test-stdlib.c (main): Likewise.
25040
25041         init.sh: accomodate directory with no .exes
25042         * tests/init.sh: Accomodate directory containing only scripts.
25043
25044         tests: avoid compiler warning
25045         * tests/test-stdlib.c (main): Use the variable.
25046
25047         fdutimens, fdutimensat: update signature, again
25048         * lib/utimens.h (gl_futimens): Delete, and move signature...
25049         (fdutimens): ...here.
25050         (fdutimensat): Rearrange signature.
25051         (lutimensat): Rename variable for clarity.
25052         * lib/fdutimensat.c (fdutimensat): Update signature.
25053         * lib/utimens.c (fdutimens): Likewise.
25054         (gl_futimens): Delete.
25055         (utimens, lutimens): Update callers.
25056         * lib/futimens.c (futimens): Likewise.
25057         * tests/test-fdutimensat.c: Likewise.
25058         * tests/test-utimens.c: Likewise.
25059         * tests/test-futimens.h: Update comment.
25060         * NEWS: Mention this.
25061         Suggested by Paul Eggert.
25062
25063 2010-09-17  Bruno Haible  <bruno@clisp.org>
25064
25065         Take over the maintenance of some older macros from Autoconf.
25066         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
25067         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
25068         GNU Autoconf.
25069         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
25070         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
25071
25072 2010-09-17  Eric Blake  <eblake@redhat.com>
25073
25074         fdutimensat: drop atflag validation
25075         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
25076         with valid fd, to close a race scenario where futimens is
25077         unsupported and FILE was replaced by a symlink.
25078         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
25079         accordingly.
25080         Suggested by Paul Eggert.
25081
25082 2010-09-16  Bruno Haible  <bruno@clisp.org>
25083
25084         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
25085         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
25086
25087 2010-09-16  Bruno Haible  <bruno@clisp.org>
25088
25089         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
25090         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
25091         login_tty exists.
25092         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25093
25094 2010-09-16  Bruno Haible  <bruno@clisp.org>
25095
25096         login_tty: Make the replacement code work on BSD systems.
25097         * lib/login_tty.c: Include <sys/ioctl.h>.
25098         (login_tty): Use ioctl TIOCSCTTY when available.
25099         * modules/login_tty (Depends-on): Add sys_ioctl.
25100         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25101
25102 2010-09-16  Bruno Haible  <bruno@clisp.org>
25103
25104         login_tty: Stricter unit test.
25105         * modules/login_tty-tests (Depends-on): Add tcgetsid.
25106         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
25107         and tcgetsid() after login_tty.
25108         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25109
25110 2010-09-16  Bruno Haible  <bruno@clisp.org>
25111
25112         New module 'tcgetsid'.
25113         * lib/tcgetsid.c: New file.
25114         * m4/tcgetsid.m4: New file.
25115         * modules/tcgetsid: New file.
25116         * modules/termios (Depends-on): Add c++defs, warn-on-use.
25117         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
25118         GNULIB_TCGETSID, HAVE_TCGETSID.
25119         * lib/termios.in.h: Include <sys/types.h>.
25120         (tcgetsid): New declaration.
25121         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
25122         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
25123         * doc/posix-functions/tcgetsid.texi: Mention the new module.
25124         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
25125
25126 2010-09-16  Bruno Haible  <bruno@clisp.org>
25127
25128         Tests for module 'termios'.
25129         * modules/termios-c++-tests: New file.
25130         * modules/termios-tests: New file.
25131         * tests/test-termios-c++.cc: New file.
25132         * tests/test-termios.c: New file.
25133
25134         New module 'termios'.
25135         * modules/termios: New file.
25136         * lib/termios.in.h: New file.
25137         * m4/termios_h.m4: New file.
25138         * doc/posix-headers/termios.texi: Mention the new module.
25139
25140 2010-09-16  Eric Blake  <eblake@redhat.com>
25141
25142         fdutimensat: add an atflag parameter
25143         * lib/fdutimensat.c (fdutimensat): Add new parameter.
25144         * lib/utimens.h (fdutimensat): Update prototype.
25145         * tests/test-fdutimensat.c: Adjust test to match.
25146         * NEWS: Document the change.
25147         Suggested by Paul Eggert.
25148
25149 2010-09-16  Bruno Haible  <bruno@clisp.org>
25150
25151         Fix typos in comments.
25152         * lib/striconveh.h: Fix typo in comment.
25153         * lib/login_tty.c (login_tty): Likewise.
25154
25155 2010-09-15  Bruno Haible  <bruno@clisp.org>
25156
25157         stdlib: clarify MirBSD WEXITSTATUS bug
25158         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
25159         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25160
25161 2010-09-15  Eric Blake  <eblake@redhat.com>
25162
25163         stdlib: work around MirBSD WEXITSTATUS bug
25164         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
25165         * modules/stdlib (Depends-on): Add sys_wait.
25166         * tests/test-sys_wait.c (main): Enhance test.
25167         * tests/test-stdlib.c (main): Likewise.
25168         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
25169
25170         docs: mention MacOS issue with WEXITSTATUS(constant)
25171         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
25172         issue.
25173         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
25174
25175         strnlen: add tests
25176         * modules/strnlen-tests: New file.
25177         * tests/test-strnlen.c: Likewise.
25178
25179 2010-09-14  Bruno Haible  <bruno@clisp.org>
25180
25181         unistr/base: Avoid link errors when module 'libunistring' is also used.
25182         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
25183         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
25184         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
25185         Declare also when HAVE_LIBUNISTRING is set.
25186         Reported by Pádraig Brady <P@draigbrady.com>.
25187
25188 2010-09-14  Eric Blake  <eblake@redhat.com>
25189
25190         test-rawmemchr: make more robust
25191         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
25192         (Depends-on, configure.ac): Add needed prerequisites to use it.
25193         * modules/memchr-tests (Files, Depends-on, configure.ac):
25194         Likewise, to avoid implicit reliance on memchr module prereqs.
25195         * tests/test-memchr.c (main): Ensure proper masking.
25196         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
25197         reads.
25198
25199         memchr: detect glibc Alpha bug
25200         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
25201         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
25202         Alpha.
25203         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
25204         * tests/test-memchr.c (main): Enhance test.
25205         Reported by Nelson H. F. Beebe.
25206
25207 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25208
25209         fts, getcwd, glob: audit for dirfd returning -1
25210         * lib/fts.c (opendir): Remove #define; no longer used.
25211         (opendirat): New arg PDIR_FD.  All callers changed.
25212         (fts_build, _opendir2): Use new opendirat to avoid the need for
25213         dirfd, or for checking whether dirfd returns a negative value.
25214         Don't use opendir; always use openat followed by fdopendir.
25215         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
25216         it.
25217         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
25218         returns -1 here.
25219         * modules/fts (Depends-on): Remove dirfd.
25220         * modules/getcwd (Depends-on): Likewise.
25221
25222 2010-09-13  Eric Blake  <eblake@redhat.com>
25223
25224         float: fix broken MirBSD header
25225         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
25226         * doc/posix-headers/float.texi (float.h): Document it.
25227
25228 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
25229
25230         fts: use O_NOFOLLOW to avoid race condition when opening a directory
25231         * lib/fts.c (opendirat): New arg extra_flags.
25232         (__opendir2): Use it to avoid following symlinks when opening
25233         a directory, if symlinks are not supposed to be followed.  See
25234         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
25235
25236         fdopendir: preserve argument fd before returning
25237         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
25238         (fdopendir_with_dup, fd_clone_opendir): New static functions.
25239         (fdopendir): Use them, arranging for FD to be open to the same
25240         directory that it was when it started.  (It might be temporarily
25241         closed while fdopendir is running, so this not thread- or
25242         signal-safe.)  Be careful to do the right thing even when file
25243         descriptors are scarce and dup fails with errno == EMFILE.  See
25244         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
25245
25246 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
25247
25248         regex: Pass the system regex if its only problem is 32-bit regoff_t.
25249         * NEWS: Document change.
25250         * m4/regex.m4: Disable test for regoff_t size.
25251
25252 2010-09-13  Jim Meyering  <meyering@redhat.com>
25253
25254         fts: don't operate on an invalid file descriptor after failed dup
25255         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
25256         negative file descriptor.
25257
25258 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
25259
25260         savedir: add streamsavedir, deprecate fdsavedir
25261         * NEWS: Mention deprecation of fdsavedir.
25262         * lib/savedir.c (streamsavedir): New extern function, whose name
25263         ends in "savedir" to be consistent with the others.  This differs
25264         from savedirstream in that it doesn't close its argument.  The
25265         next version of GNU tar will use this instead of fdsavedir, to
25266         avoid some race conditions and conserve file descriptors.
25267         (savedirstream): Reimplement as a wrapper around streamsavedir.
25268         (fdsavedir): Add a comment deprecating this function.  As far as
25269         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25270         * lib/savedir.h (streamsavedir): New decl.
25271         (fdsavedir): Add a comment deprecating this.
25272
25273 2010-09-10  Bruno Haible  <bruno@clisp.org>
25274
25275         langinfo: Fix last commit.
25276         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25277         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25278         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25279
25280 2010-09-10  Bruno Haible  <bruno@clisp.org>
25281
25282         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25283         * lib/progreloc.c (O_EXEC): Define fallback.
25284
25285 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
25286
25287         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
25288         * NEWS: Document recent changes to fcntl-h.
25289         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
25290         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
25291         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
25292         Similarly for O_SEARCH; this last was already true, but not documented.
25293         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
25294         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
25295         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
25296         Likewise.
25297         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
25298         is zero, not whether it is defined.
25299         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
25300         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
25301         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
25302
25303 2010-09-10  Bruno Haible  <bruno@clisp.org>
25304
25305         langinfo, nl_langinfo: Fix for IRIX 5.3.
25306         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
25307         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
25308         HAVE_LANGINFO_YESEXPR.
25309         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
25310         HAVE_LANGINFO_YESEXPR.
25311         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
25312         HAVE_LANGINFO_T_FMT_AMPM is 0.
25313         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
25314         HAVE_LANGINFO_YESEXPR is 0.
25315         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
25316         NOEXPR.
25317         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
25318         * doc/posix-functions/nl_langinfo.texi: Likewise.
25319         Reported by Eric Blake.
25320
25321 2010-09-10  Bruno Haible  <bruno@clisp.org>
25322
25323         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
25324         * doc/glibc-functions/login_tty.texi: Mention the include file problem
25325         on FreeBSD 8.0 and OpenBSD 4.6.
25326         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
25327         * m4/pty_h.m4 (gl_PTY_H): Likewise.
25328         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
25329         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
25330         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
25331         ac_includes_default.
25332         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25333
25334 2010-09-09  Eric Blake  <eblake@redhat.com>
25335
25336         strsignal: work around NetBSD bug
25337         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
25338         * lib/string.in.h (includes): Likewise.
25339         * doc/posix-functions/strsignal.texi (strsignal): Document the
25340         bug.
25341         Reported by Nelson H. F. Beebe.
25342
25343         gnulib-tool: work with NetBSD /bin/sh
25344         * gnulib-tool (func_cache_var, func_cache_lookup_module)
25345         (func_get_description, func_get_comment, func_get_status)
25346         (func_get_notice, func_get_applicability, func_get_filelist)
25347         (func_get_dependencies, func_get_autoconf_early_snippet)
25348         (func_get_autoconf_snippet, func_get_automake_snippet)
25349         (func_get_include_directive, func_get_link_directive)
25350         (func_get_license, func_get_maintainer, func_import): Avoid
25351         shell syntax errors from parsing syntax extensions.
25352
25353 2010-09-09  Bruno Haible  <bruno@clisp.org>
25354
25355         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25356         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
25357         a reliable way to determine whether the 'alias' command works.
25358
25359 2010-09-08  Jim Meyering  <meyering@redhat.com>
25360
25361         init.sh: penalize a set-x-impaired shell; don't disqualify it
25362         * tests/init.sh: Too many shells corrupt application stderr when
25363         you set -x, so we can't afford to disqualify them, since at least
25364         on Irix-6.5, that would disqualify all bourne shells.
25365         Instead, use a two-pass approach.
25366         On the first pass, try to find a shell that meets the stricter
25367         condition that set -x does not corrupt stderr.
25368         If no shell meets the stricter condition, retest each candidate
25369         shell, but without that extra condition.  Finally, when
25370         VERBOSE=yes is requested and set -x might cause trouble, simply
25371         issue a warning and refrain from enabling debug output.
25372
25373 2010-09-08  Eric Blake  <eblake@redhat.com>
25374
25375         unsetenv: fix OpenBSD bug
25376         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
25377         * doc/posix-functions/unsetenv.texi (unsetenv): Update
25378         documentation.
25379         Reported by Jim Meyering.
25380
25381         strtod: work around IRIX 6.5 bug
25382         * lib/strtod.c (strtod): Reparse number on shorter string if
25383         exponent parse was invalid.
25384         * tests/test-strtod.c (main): Add check for "0x1p 2".
25385         Reported by Tom G. Christensen.
25386
25387         getopt: optimize previous patch
25388         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
25389         empty variable.  Speed up awk script.
25390         Reported by Paolo Bonzini.
25391
25392 2010-09-08  Jim Meyering  <meyering@redhat.com>
25393
25394         test.sh: disqualify shells for which set -x corrupts stderr
25395         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
25396         and OpenBSD 4.7.  They make it so with "set -x", environment settings
25397         appear in stderr output.  For example, this command:
25398             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
25399         prints "P=1" on those two systems:
25400
25401 2010-09-08  Bruno Haible  <bruno@clisp.org>
25402
25403         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25404         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
25405         commands, because some shells ignore redirections when there is an
25406         error in the command lookup.
25407         Reported by Eric Blake.
25408
25409 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
25410
25411         * lib/regex.h: Fix a mention of `regex_compile' (should be
25412         `re_compile_pattern').
25413         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
25414         (re_set_registers): Correct name of parameter in comment.
25415
25416         * doc/regex.texi: Add documentation for missing syntax flags.
25417         Remove commented-out documentation of defunct syntax option
25418         RE_NO_EMPTY_ALTS.
25419         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
25420         Add documentation of re_set_registers.
25421         Document trick to re-use a pattern buffer by setting fastmap manually.
25422         Update documentation of struct re_pattern_buffer per public members.
25423         Uncomment documentation of equivalence class operators and
25424         collating symbol operators, since they are now implemented,
25425         Explain leftmost-longest matching in relation to alternatives.
25426         Tidy documentation of substring matching.
25427         Remove POSIX documentation, which is done better in
25428         glibc, and refer the reader there. Keep BSD API documentation, as
25429         that is not readily available elsewhere.
25430
25431 2010-09-07  Eric Blake  <eblake@redhat.com>
25432
25433         getopt: handle POSIXLY_CORRECT set but not exported
25434         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
25435         export state of POSIXLY_CORRECT, due to bash set -o posix.
25436         Reported by Dustin J. Mitchell.
25437
25438 2010-09-05  Bruno Haible  <bruno@clisp.org>
25439
25440         gnulib-tool: Highlight the changed options.
25441         * gnulib-tool (func_usage): Display the --import, --add-import,
25442         --remove-import explanations in bold font.
25443
25444 2010-09-06  Karl Berry  <karl@gnu.org>
25445
25446         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
25447
25448 2010-09-05  Bruno Haible  <bruno@clisp.org>
25449
25450         uniwidth/width: Update comment.
25451         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
25452         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
25453
25454 2010-09-05  Bruno Haible  <bruno@clisp.org>
25455
25456         isinf, isnan: Relax license.
25457         * modules/isinf (License): Change from GPL to LGPL, with consent from
25458         Ben Pfaff.
25459         * modules/isnan (License): Likewise.
25460         Requested by Ludovic Courtès.
25461
25462 2010-09-04  Bruno Haible  <bruno@clisp.org>
25463
25464         gnulib-tool: Help migration from --import to --add-import or --update.
25465         * gnulib-tool: Emit a verbose error message when --import is used
25466         without any module name.
25467
25468 2010-09-04  Bruno Haible  <bruno@clisp.org>
25469
25470         Update doc about gnulib-tool.
25471         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
25472         'gnulib-tool --update' in more detail.
25473         Reported by Eric Blake.
25474
25475 2010-09-04  Bruno Haible  <bruno@clisp.org>
25476
25477         gnulib-tool: Change --import. New options --add/remove-import.
25478         * gnulib-tool: New options --add-import, --remove-import.
25479         (func_usage): Document them.
25480         (have_associative): Define always.
25481         (func_import): In import mode, don't merge the specified settings with
25482         the cached settings. Implement remove-import mode.
25483         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
25484         Explain when to use them versus --import.
25485         (Simple update): Use --add-import instead of --import.
25486         * NEWS: Mention the change.
25487
25488 2010-09-04  Bruno Haible  <bruno@clisp.org>
25489
25490         * doc/gnulib-tool.texi (Initial import): Update paragraph about
25491         separate gnulib.mk.
25492
25493 2010-09-04  Bruno Haible  <bruno@clisp.org>
25494
25495         gnulib-tool: Don't talk about CVS any more.
25496         * gnulib-tool (func_usage, func_import): Write "version control"
25497         instead of CVS.
25498
25499 2010-09-04  Jim Meyering  <meyering@redhat.com>
25500
25501         maint.mk: avoid obscure sc_copyright_check failure in coreutils
25502         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
25503         false positives (whose names may be ill-chosen) when searching
25504         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
25505         would cause a false-positive.
25506
25507         avoid coreutils "make distcheck" failure
25508         Coreutils tests with an absolute build directory name that contains
25509         a space.  Not quoting this directory name caused a failure.
25510         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
25511         * tests/test-vc-list-files-cvs.sh: Likewise.
25512
25513 2010-09-04  Bruno Haible  <bruno@clisp.org>
25514
25515         gnulib-tool: Avoid error when run in a package without Makefile.am.
25516         * gnulib-tool: When collecting the m4dirs in a package that does not
25517         have a Makefile.am, eliminate those directories that contain no
25518         gnulib-cache.m4. Fix expression that counts these directories.
25519
25520 2010-09-04  Bruno Haible  <bruno@clisp.org>
25521
25522         update-copyright test: Improve output when perl is missing or too old.
25523         * tests/test-update-copyright.sh: Move test of Perl version down after
25524         the test whether Perl exists. Provide an explanation relating Perl's
25525         error message to Automake's SKIP: message.
25526
25527 2010-09-04  Bruno Haible  <bruno@clisp.org>
25528
25529         Don't augment PATH in TESTS_ENVIRONMENT.
25530         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
25531         set abs_aux_dir instead of augmenting PATH.
25532         * modules/vc-list-files-tests (Makefile.am): Likewise.
25533         * tests/test-update-copyright.sh: Augment PATH here.
25534         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
25535         path_prepend_.
25536         * tests/test-vc-list-files-git.sh: Likewise.
25537
25538 2010-09-04  Jim Meyering  <meyering@redhat.com>
25539
25540         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
25541         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
25542
25543 2010-09-04  Bruno Haible  <bruno@clisp.org>
25544
25545         strdup: Fix compilation error in C++ mode.
25546         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
25547         the macro.
25548
25549 2010-09-04  Bruno Haible  <bruno@clisp.org>
25550
25551         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
25552         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
25553         macro into a function.
25554         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25555
25556 2010-09-04  Bruno Haible  <bruno@clisp.org>
25557
25558         Set PATH_SEPARATOR the same way autoconf does.
25559         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
25560         the value of PATH_SEPARATOR the same way autoconf-generated configure
25561         scripts do.
25562         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
25563         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25564
25565 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25566
25567         Set PATH_SEPARATOR the same way autoconf does.
25568         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
25569         the same way autoconf-generated configure scripts do.
25570         * posix-modules: Likewise.
25571
25572 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
25573
25574         hash: fix safe_hasher const typo
25575         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
25576         const; otherwise, there is a type error later.
25577
25578 2010-09-02  Jim Meyering  <meyering@redhat.com>
25579
25580         test-update-copyright.sh: require perl 5.8.0
25581         * tests/test-update-copyright.sh: Require 5.8.0,
25582         which Tom G. Christensen has confirmed is adequate,
25583         while 5.6.1 is not.
25584
25585 2010-09-02  Eric Blake  <eblake@redhat.com>
25586
25587         tests: init.sh improvements for re-exec'ing with zsh
25588         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
25589         -vx through shell re-exec.
25590         Reported by Tom G. Christensen.
25591
25592         wctype: fix typo in previous commit
25593         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
25594         Reported by Ludovic Courtès.
25595
25596 2010-09-02  Jim Meyering  <meyering@redhat.com>
25597
25598         test-update-copyright.sh: skip test if Perl is too old
25599         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
25600         Reported by Tom G. Christensen.
25601
25602 2010-09-02  Bruno Haible  <bruno@clisp.org>
25603
25604         wctype: Avoid compilation error on IRIX 6.5.30.
25605         * lib/wctype.in.h (iswblank): Declare with a replacement if
25606         REPLACE_ISWBLANK is set.
25607         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
25608         declared. Set REPLACE_ISWBLANK.
25609         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
25610         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
25611         * doc/posix-headers/wctype.texi: Likewise.
25612         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25613
25614 2010-09-01  Bruno Haible  <bruno@clisp.org>
25615
25616         New module 'socketlib'.
25617         * modules/socketlib: New file.
25618         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
25619         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
25620         * modules/sockets (Depends-on): Add socketlib.
25621         Suggested by Sam Steingold <sds@gnu.org>.
25622
25623 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
25624
25625         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
25626
25627         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
25628         when one needs search access to a directory but not read access.
25629         On systems where it is available, it works in some cases where
25630         O_RDONLY does not, namely on directories that are searchable but
25631         not readable, and which need only to be searchable.  If O_SEARCH
25632         is not available, fall back to the traditional method of using
25633         O_RDONLY.
25634
25635         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
25636         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
25637         when opening a directory that needs only to be searchable.
25638         * lib/chdir-safer.c (chdir_no_follow): Likewise.
25639         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
25640         * lib/openat-proc.c (openat_proc_name): Likewise.
25641         * lib/openat.c (openat_needs_fchdir): Likewise.
25642         * lib/save-cwd.c (save_cwd): Likewise.
25643         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
25644
25645 2010-08-28  Bruno Haible  <bruno@clisp.org>
25646
25647         New module 'host-cpu-c-abi'.
25648         * modules/host-cpu-c-abi: New file.
25649         * m4/host-cpu-c-abi.m4: New file, based on part of
25650         clisp/src/m4/general.m4.
25651         Requested by Sam Steingold <sds@gnu.org>.
25652
25653 2010-08-31  Eric Blake  <eblake@redhat.com>
25654         and Jim Meyering  <meyering@redhat.com>
25655
25656         hash: factor, and guard against misbehaving hasher function
25657         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
25658         of table->hasher's return value.  Also protect against a hash value
25659         so large that adding it to table->bucket results in a NULL pointer.
25660         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
25661         Use it in place of open-coded check-and-abort.
25662
25663 2010-08-30  Bruno Haible  <bruno@clisp.org>
25664
25665         hash: silence spurious clang warning
25666         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
25667         Reported by Eric Blake.
25668
25669 2010-08-30  Eric Blake  <eblake@redhat.com>
25670
25671         strstr, memmem, strcasestr: avoid leaked shell message
25672         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
25673         FreeBSD.
25674         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25675         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25676
25677         tests: silence clang warning
25678         * tests/test-malloca.c (do_allocation): Avoid dead store.
25679
25680 2010-08-29  Bruno Haible  <bruno@clisp.org>
25681
25682         gettext: Fix recent mistake.
25683         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
25684
25685 2010-08-29  Bruno Haible  <bruno@clisp.org>
25686
25687         selinux-h: Offer a --without-selinux option.
25688         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
25689         --without-selinux was specified, skip all tests and define
25690         HAVE_SELINUX_SELINUX_H to 0.
25691         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
25692         set LIB_SELINUX to empty.
25693         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
25694         gl_LIBSELINUX. If --without-selinux was specified, replace
25695         selinux/context.h.
25696         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
25697
25698 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25699             Bruno Haible  <bruno@clisp.org>
25700
25701         Make the module 'realloc-gnu' work again on AIX and OSF/1.
25702         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
25703         of HAVE_REALLOC.
25704         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
25705         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
25706         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
25707         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25708
25709 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25710             Bruno Haible  <bruno@clisp.org>
25711
25712         Make the module 'calloc-gnu' work again on AIX and OSF/1.
25713         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
25714         HAVE_CALLOC.
25715         * lib/xmalloc.c: Update accordingly.
25716         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
25717         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
25718         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
25719
25720 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25721             Bruno Haible  <bruno@clisp.org>
25722
25723         Make the module 'malloc-gnu' work again on AIX and OSF/1.
25724         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
25725         HAVE_MALLOC.
25726         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
25727         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
25728         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25729
25730 2010-08-29  Bruno Haible  <bruno@clisp.org>
25731
25732         Update modules list.
25733         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25734         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
25735         (String handling <string.h>): Add astrxfrm.
25736         (File system functions): Add readlinkat.
25737
25738 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25739
25740         Tests for module 'realloc-gnu'.
25741         * modules/realloc-gnu-tests: New file.
25742         * tests/test-realloc-gnu.c: New file.
25743
25744         Tests for module 'calloc-gnu'.
25745         * modules/calloc-gnu-tests: New file.
25746         * tests/test-calloc-gnu.c: New file.
25747
25748         Tests for module 'malloc-gnu'.
25749         * modules/malloc-gnu-tests: New file.
25750         * tests/test-malloc-gnu.c: New file.
25751
25752 2010-08-28  Bruno Haible  <bruno@clisp.org>
25753
25754         Rename module 'realloc' -> 'realloc-gnu'.
25755         * modules/realloc-gnu: New file, copied from modules/realloc.
25756         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
25757         obsolete.
25758         * modules/mgetgroups (Depends-on): Update.
25759         * doc/posix-functions/realloc.texi: Update.
25760         * NEWS: Mention the change.
25761
25762         Rename module 'calloc' -> 'calloc-gnu'.
25763         * modules/calloc-gnu: New file, copied from modules/calloc.
25764         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
25765         obsolete.
25766         * doc/posix-functions/calloc.texi: Update.
25767         * NEWS: Mention the change.
25768
25769         Rename module 'malloc' -> 'malloc-gnu'.
25770         * modules/malloc-gnu: New file, copied from modules/malloc.
25771         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
25772         obsolete.
25773         * modules/argp (Depends-on): Update.
25774         * modules/regex (Depends-on): Update.
25775         * doc/posix-functions/malloc.texi: Update.
25776         * NEWS: Mention the change.
25777
25778 2010-08-28  Eric Blake  <eblake@redhat.com>
25779
25780         pread, pwrite: add missing dependency
25781         * modules/pread (Depends-on): Add extensions.
25782         * modules/pwrite (Depends-on): Likewise.
25783
25784 2010-08-28  Bruno Haible  <bruno@clisp.org>
25785
25786         unistr/u*-strchr: Fix tests dependencies.
25787         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
25788         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
25789         Reported by Ian Beckwith <ianb@erislabs.net>.
25790
25791 2010-08-28  Bruno Haible  <bruno@clisp.org>
25792
25793         read-file: Don't occupy too much unused memory.
25794         * lib/read-file.c (fread_file): Shrink the buffer at the end.
25795
25796 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
25797             Eric Blake  <eblake@redhat.com>
25798             Bruno Haible  <bruno@clisp.org>
25799
25800         read-file: Avoid memory reallocations with regular files.
25801         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
25802         (fread_file): With regular files, use the remaining length as the
25803         initial buffer size.  Check against overflow.
25804         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
25805         sys_stat.
25806
25807 2010-08-28  Bruno Haible  <bruno@clisp.org>
25808
25809         ftello: Relax license.
25810         * modules/ftello (License): Relax to LGPLv2+.
25811         Reported by Eric Blake.
25812
25813 2010-08-28  Bruno Haible  <bruno@clisp.org>
25814
25815         Avoid relocwrapper link errors due to gnulib replacement functions.
25816         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
25817         function.
25818         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25819
25820 2010-08-28  Bruno Haible  <bruno@clisp.org>
25821
25822         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
25823         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
25824         defined.
25825         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
25826         Suggested by Eric Blake.
25827
25828 2010-08-28  Bruno Haible  <bruno@clisp.org>
25829
25830         sys_socket, netdb: Ensure socklen_t gets defined.
25831         * modules/sys_socket (Depends-on): Add socklen.
25832         * modules/netdb (Depends-on): Likewise.
25833         * modules/getaddrinfo (Depends-on): Remove socklen.
25834         * modules/getsockopt (Depends-on): Likewise.
25835         * modules/setsockopt (Depends-on): Likewise.
25836         * tests/test-sys_socket.c: Check that socklen_t is defined.
25837         * tests/test-netdb.c: Likewise.
25838         * m4/socklen.m4: Update comments.
25839         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25840
25841 2010-08-27  Eric Blake  <eblake@redhat.com>
25842
25843         login_tty: add missing dependency
25844         * modules/login_tty (Depends-on): Add pty.
25845
25846 2010-08-26  Eric Blake  <eblake@redhat.com>
25847
25848         lib-symbol-versions: fix m4 quoting
25849         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
25850         format for AC_LINK_IFELSE.
25851
25852         glob: fix compile test
25853         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
25854
25855         btowc: fix missing file
25856         * modules/btowc (Files): Also ship locale-fr.m4.
25857
25858         lseek: fix link test
25859         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
25860         AC_LINK_IFELSE.
25861
25862         include_next: silence autoconf 2.68 warning
25863         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
25864         AC_COMPILE_IFELSE as special.
25865         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
25866         autoconf < 2.68.
25867
25868         acl: fix compilation test
25869         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
25870         AC_COMPILE_IFELSE.
25871
25872 2010-08-26  Bruno Haible  <bruno@clisp.org>
25873
25874         Modernize AC_TRY_RUN invocations.
25875         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
25876         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25877         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
25878         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
25879         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
25880         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
25881         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25882         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25883         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25884         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25885         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25886         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25887         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25888         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25889         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25890         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25891         gl_MBRLEN_NUL_RETVAL): Likewise.
25892         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25893         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
25894         Likewise.
25895         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25896         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25897         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25898         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25899         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
25900         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
25901         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
25902         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
25903         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
25904         Likewise.
25905         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25906         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
25907         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25908         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25909         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25910         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25911         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25912         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
25913         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25914         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25915
25916 2010-08-26  Bruno Haible  <bruno@clisp.org>
25917
25918         Modernize AC_TRY_LINK invocations.
25919         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
25920         AC_TRY_LINK.
25921         * m4/argp.m4 (gl_ARGP): Likewise.
25922         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
25923         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25924         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
25925         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25926         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25927         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
25928         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
25929         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
25930         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25931         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25932         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25933         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
25934         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
25935         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25936         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25937         * m4/hostent.m4 (gl_HOSTENT): Likewise.
25938         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25939         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
25940         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
25941         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
25942         Likewise.
25943         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
25944         Likewise.
25945         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
25946         Likewise.
25947         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
25948         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
25949         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
25950         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
25951         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
25952         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
25953         * m4/servent.m4 (gl_SERVENT): Likewise.
25954         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
25955         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
25956         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
25957         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
25958         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25959         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
25960         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25961         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25962         * modules/tsearch-tests (configure.ac): Likewise.
25963
25964 2010-08-26  Bruno Haible  <bruno@clisp.org>
25965
25966         Modernize AC_TRY_COMPILE invocations.
25967         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
25968         AC_TRY_COMPILE.
25969         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
25970         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
25971         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
25972         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
25973         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
25974         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
25975         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
25976         * m4/lock.m4 (gl_LOCK): Likewise.
25977         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
25978         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25979         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
25980         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25981         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
25982         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
25983         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
25984         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
25985         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
25986         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
25987         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
25988         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25989         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
25990         extraneous semicolon.
25991
25992 2010-08-26  Jim Meyering  <meyering@redhat.com>
25993
25994         stat-time: relax license LGPL
25995         * modules/stat-time (License): Change from GPL to LGPL,
25996         with consent from all contributors, for use in libguile.
25997         Requested by Ludovic Courtès.
25998
25999 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
26000
26001         poll: return immediately on POLLHUP.
26002         * lib/poll.c (poll): Always set timeout before wait_timeout is
26003         computed.
26004
26005 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26006
26007         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
26008         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
26009         rmdir ("dir/.//"), unlinkat.
26010
26011 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
26012
26013         stdbool: avoid spurious failure with modern xlc
26014         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26015
26016 2010-08-24  Bruno Haible  <bruno@clisp.org>
26017
26018         getloadavg: simplify code
26019         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
26020         gl_have_func. Update comments.
26021
26022 2010-08-24  Eric Blake  <eblake@redhat.com>
26023
26024         getloadavg: don't define SVR4 on cygwin
26025         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
26026         only define SVR4 when -lkvm is required.
26027         Reported by Yaakov Selkowitz.
26028
26029 2010-08-24  Bruno Haible  <bruno@clisp.org>
26030
26031         priv-set: fix comment
26032         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
26033
26034 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
26035
26036         priv-set: fix comments
26037         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
26038         to match code, as suggested by David Bartley in:
26039         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
26040
26041 2010-08-23  Eric Blake  <eblake@redhat.com>
26042
26043         stdbool: avoid rejecting clang
26044         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
26045         * tests/test-stdbool.c: Enable more tests if using the system
26046         <stdbool.h> instead of the gnulib replacement.
26047         (main): Move xlc bug test to a runtime test for all compilers.
26048         Reported by Anders Kaseorg.
26049
26050         argz: fix shell quoting issue
26051         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
26052         Reported by Charles Wilson.
26053
26054 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
26055             Erik Faye-Lund <kusmabite@gmail.com>
26056
26057         poll, select: handle ERROR_BROKEN_PIPE.
26058         * lib/poll.c (win32_compute_revents): Return POLLHUP when
26059         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26060         * lib/select.c (win32_compute_revents): Do not mark a pipe
26061         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
26062
26063 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
26064
26065         fts: allow compilation with C++
26066         * lib/fts_.h: Specify extern "C" linkage with C++.
26067
26068 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26069
26070         Fix gnulib-tool sed script de-commentation for AIX sed.
26071         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
26072         sed.
26073
26074 2010-08-17  Eric Blake  <eblake@redhat.com>
26075
26076         test-stddef: test for (some) offsetof bugs
26077         * tests/test-stddef.c: Enhance test to ensure correct type of
26078         offsetof.
26079         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
26080         that we are not fixing at this time.
26081
26082 2010-08-15  Bruno Haible  <bruno@clisp.org>
26083
26084         stpncpy: Allow stpncpy to be defined as a macro.
26085         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
26086         if it's already correctly declared.
26087         * lib/string.in.h (stpncpy): Undefine before redefining.
26088         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
26089
26090 2010-08-14  Bruno Haible  <bruno@clisp.org>
26091
26092         Rename module 'memxfrm' to 'amemxfrm'.
26093         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
26094         (amemxfrm): Renamed from memxfrm.
26095         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
26096         (amemxfrm): Renamed from memxfrm.
26097         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
26098         * NEWS: Mention the change.
26099         * MODULES.html.sh (String handling <string.h>): Update.
26100         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
26101         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
26102         * lib/unicase/u16-casexfrm.c: Likewise.
26103         * lib/unicase/u32-casexfrm.c: Likewise.
26104         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
26105         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
26106         * lib/uninorm/u16-normxfrm.c: Likewise.
26107         * lib/uninorm/u32-normxfrm.c: Likewise.
26108         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
26109         memxfrm.
26110         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
26111         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
26112         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
26113         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
26114         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
26115         Suggested by Paul Eggert.
26116
26117 2010-08-14  Bruno Haible  <bruno@clisp.org>
26118
26119         Tests for module 'astrxfrm'.
26120         * modules/astrxfrm-tests: New file.
26121         * tests/test-astrxfrm.c: New file.
26122
26123         New module 'astrxfrm'.
26124         * lib/astrxfrm.h: New file.
26125         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
26126         * modules/astrxfrm: New file.
26127
26128 2010-08-14  Reuben Thomas <rrt@sc3d.org>
26129
26130         regex: Tweak doc.
26131         * doc/regex.texi (Overview): Don't mention regex.c.
26132         (GNU Regular Expression Compiling): Likewise.
26133         (Match-end-of-line Operator): Mention 'not_eol'.
26134
26135 2010-08-14  Brian Gough  <bjg@gnu.org>
26136             Bruno Haible  <bruno@clisp.org>
26137
26138         git-merge-changelog: add doc relating to use with bzr and hg.
26139         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
26140
26141 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
26142
26143         pthread: fix pthread.h creation for srcdir != builddir
26144         * modules/pthread (Makefile.am): Fix the rule to work also in a
26145         non-srcdir build.
26146
26147 2010-08-13  Karl Berry  <karl@gnu.org>
26148
26149         * doc/regex.texi (Predefined Syntaxes): @smallexample.
26150         * doc/posix-*/*: force line break before @url of POSIX
26151         specifications.
26152         Suggested by Werner Lemberg.
26153
26154 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
26155
26156         strtod: fix const diagnostic
26157         * lib/strtod.c (strtod): Don't assign const char * to char *,
26158         as this elicits a warning from GCC when warnings are enabled.
26159
26160 2010-08-10  Pádraig Brady <P@draigbrady.com>
26161         and Eric Blake  <eblake@redhat.com>
26162
26163         copy-acl: ignore ENOTSUP on HP-UX
26164         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
26165         so that it is available for HP-UX.
26166         * lib/copy-acl.c (qcopy_acl): Use it.
26167         Reported by Patrick M. Callahan.
26168
26169 2010-08-10  Eric Blake  <eblake@redhat.com>
26170
26171         open, chown: relax license
26172         * modules/open (License): Change to LGPLv2+, with consent by all
26173         authors, for use in augeas.
26174         * modules/chown (License): Likewise.
26175         * modules/lchown (Likewise): Likewise.
26176         Requested by Adam Stokes.
26177
26178 2010-08-09  Karl Berry  <karl@gnu.org>
26179
26180         * build-aux/ar-lib: new file, import from Automake.
26181         * config/srclist.txt: autocheck for updates.
26182
26183 2010-08-09  Eric Blake  <eblake@redhat.com>
26184
26185         readlinkat: adjust client modules
26186         * modules/areadlinkat (Depends-on): Use readlinkat, not
26187         symlinkat.
26188         * modules/areadlinkat-with-size (Depends-on): Likewise.
26189
26190         mknod: be more vocal about danger of running tests as root
26191         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
26192         root, since that is just asking for problems.
26193         Suggested by Bruno Haible, based on a report by Rainer Tammer.
26194
26195         readlinkat: split into its own module
26196         * modules/symlinkat: Split readlinkat...
26197         * modules/readlinkat: ...into separate module.
26198         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
26199         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
26200         * lib/symlinkat.c (readlinkat): Move...
26201         * lib/readlinkat.c: ...into new file.
26202         * modules/symlinkat-tests: Split readlinkat test...
26203         * modules/readlinkat-tests: ...into separate module.
26204         * tests/test-symlinkat.c: Split...
26205         * tests/test-readlinkat.c: ...into new file.
26206         * NEWS: Document the split.
26207         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
26208         * lib/unistd.in.h (readlinkat): Likewise.
26209         Suggested by Bruno Haible.
26210
26211 2010-08-08  Bruno Haible  <bruno@clisp.org>
26212
26213         memxfrm: Speed up.
26214         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
26215         that usually only one call to strxfrm is necessary for each string
26216         part.
26217         Reported by Paul Eggert <eggert@cs.ucla.edu>.
26218
26219 2010-08-07  Karl Berry  <karl@gnu.org>
26220
26221         * doc/posix-headers/limits.texi,
26222         * doc/posix-functions/malloc.texi,
26223         * doc/posix-functions/strsignal.texi: missing @item.
26224         * doc/ld-version-script.texi: spurious leading i.
26225         * doc/regex.texi (Interval Operators): no commas inside @var.
26226
26227 2010-08-01  Bruno Haible  <bruno@clisp.org>
26228
26229         Integrate the regex documentation.
26230         * doc/gnulib.texi: Define 'cn' index.
26231         (Regular expressions): New a chapter that includes regex.texi and
26232         regexprops-generic.texi.
26233         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
26234         syntax.
26235
26236         Whitespace cleanup.
26237         * doc/regex.texi: Remove trailing spaces.
26238
26239         Add regex documentation.
26240         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
26241         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
26242         Written by Kathy A. Hargreaves and Karl Berry.
26243
26244 2010-08-01  Bruno Haible  <bruno@clisp.org>
26245
26246         link: Update documentation.
26247         * doc/posix-functions/link.texi: Update regarding Solaris.
26248
26249 2010-07-31  Bruno Haible  <bruno@clisp.org>
26250
26251         Update modules list.
26252         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
26253         (String handling <string.h>): Add memcmp2, memxfrm.
26254         (Container data structures): Add xlist, xsublist, xoset.
26255         (Core language properties): Add alignof, unused-parameter.
26256         (Process control, Numeric conversion functions <stdlib.h>): Renamed
26257         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
26258         (Unibyte characters <ctype.h>): New section.
26259         (String handling <string.h>): New section.
26260         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
26261         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
26262         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
26263         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
26264         tan, tanh, tanl, y0, y1, yn.
26265         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26266         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26267         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26268         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26269         unlockpt, vdprintf, vdprintf-posix.
26270         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26271         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26272         xconcat-filename.
26273         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26274         getdtablesize, pipe2, pipe2-safer.
26275         (Security): New section.
26276         (Networking functions): Add accept4.
26277         (Signal handling): Add sigpipe.
26278         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26279         mbmemcasecoll.
26280         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26281         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26282         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26283         pipe-filter-ii.
26284         (Misc): Add argp-version-etc, login_tty, parse-duration.
26285
26286 2010-07-31  Bruno Haible  <bruno@clisp.org>
26287
26288         Improve doc in MODULES.html.
26289         * modules/linkat (Description): Add the word "function".
26290         * modules/mkfifo (Description): Likewise.
26291         * modules/mknod (Description): Likewise.
26292         * modules/remove (Description): Likewise.
26293         * modules/renameat (Description): Likewise.
26294         * modules/stat (Description): Likewise.
26295         * modules/symlink (Description): Likewise.
26296         * modules/unlink (Description): Likewise.
26297
26298 2010-07-31  Bruno Haible  <bruno@clisp.org>
26299
26300         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
26301         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
26302         option --enable/disable-c++ instead of --enable/disable-cxx.
26303         * NEWS: Mention the change.
26304
26305 2010-07-31  Bruno Haible  <bruno@clisp.org>
26306
26307         readlink, areadlink: Relax test a bit.
26308         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
26309         alternative to ENOTDIR.
26310         * tests/test-areadlink.h (test_areadlink): Likewise.
26311         Reported by Rainer Tammer.
26312
26313 2010-07-31  Bruno Haible  <bruno@clisp.org>
26314
26315         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
26316         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
26317         character, perform the search using U_STRCHR.
26318         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
26319         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
26320         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
26321         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
26322         Suggested by Paolo Bonzini.
26323
26324 2010-07-31  Bruno Haible  <bruno@clisp.org>
26325
26326         unistr/u*-strstr: Fix dependencies.
26327         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
26328         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
26329         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
26330
26331 2010-07-31  Bruno Haible  <bruno@clisp.org>
26332
26333         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
26334         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
26335         the beginning of the loop.
26336         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
26337         cases in 'switch' statement.
26338
26339         unistr/u8-strchr: Fix several bugs.
26340         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
26341         the string. When not found, return NULL, not a pointer near the end.
26342
26343         More tests for unistr/u8-strchr.
26344         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
26345         that the function does not read past the first occurrence of the byte
26346         being searched.
26347         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
26348         * tests/unistr/test-u16-strchr.c (main): New function.
26349         * tests/unistr/test-u32-strchr.c (main): New function.
26350
26351 2010-07-31  Bruno Haible  <bruno@clisp.org>
26352
26353         posix-modules: Ignore backup files of documentation files.
26354         * posix-modules: grep only through files named *.texi.
26355
26356 2010-07-31  Bruno Haible  <bruno@clisp.org>
26357
26358         symlinkat: Fix documentation.
26359         * doc/posix-functions/readlinkat.texi: Fix module name.
26360
26361 2010-07-31  Bruno Haible  <bruno@clisp.org>
26362
26363         fchownat: Replace also when chown has the trailing slash bug.
26364         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
26365         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
26366         introduced on 2010-04-10.
26367         Reported by Rainer Tammer.
26368
26369 2010-07-31  Bruno Haible  <bruno@clisp.org>
26370
26371         linkat: Work around AIX 7.1 bug.
26372         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
26373         whether linkat handles trailing slash correctly. If not, replace linkat
26374         and define LINKAT_TRAILING_SLASH_BUG.
26375         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
26376         check whether (fd1,file1) points to a directory if file1 or file2 ends
26377         in a slash. Code taken from lib/link.c.
26378         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
26379         Reported by Rainer Tammer.
26380
26381 2010-07-31  Bruno Haible  <bruno@clisp.org>
26382
26383         Correctly determine whether pow is available in libc on AIX 7 with xlc.
26384         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
26385         This disables an xlc optimization that was causing wrong test results.
26386         Reported by Rainer Tammer.
26387
26388 2010-07-31  Bruno Haible  <bruno@clisp.org>
26389
26390         iconv: Work around AIX 6.1..7.1 bug.
26391         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
26392         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
26393         cross-compiling, guess no on all versions of AIX.
26394         Reported by Rainer Tammer.
26395
26396 2010-07-31  Bruno Haible  <bruno@clisp.org>
26397
26398         readlink: Relax test a bit.
26399         * tests/test-readlink.h (test_readlink): Allow different errno value
26400         when readlink is called with a file name that ends in / and refers to
26401         a file.
26402         Suggested by Eric Blake.
26403         Reported by Rainer Tammer.
26404
26405 2010-07-31  Bruno Haible  <bruno@clisp.org>
26406
26407         copysign: Does not require -lm on glibc systems.
26408         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
26409         gl_COMMON_DOUBLE_MATHFUNC.
26410         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
26411
26412 2010-07-31  Bruno Haible  <bruno@clisp.org>
26413
26414         duplocale: Work around AIX 7.1 bug.
26415         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
26416         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
26417         * lib/duplocale.c (rpl_duplocale): Update comment.
26418         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
26419         Reported by Rainer Tammer.
26420
26421 2010-07-30  Bruno Haible  <bruno@clisp.org>
26422
26423         dirfd: Avoid link error on AIX 7.1.
26424         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
26425         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
26426         exist, set REPLACE_DIRFD.
26427         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
26428         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
26429         * doc/posix-functions/dirfd.texi: Update.
26430         Reported by Rainer Tammer.
26431
26432 2010-07-30  Eric Blake  <eblake@redhat.com>
26433
26434         strtod: next round of AIX fixes
26435         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
26436         exponent.
26437         * tests/test-strtod.c (main): Enhance tests.
26438         * doc/posix-functions/strtod.texi (strtod): Document next bug.
26439         Reported by Rainer Tammer.
26440
26441         futimens: fix configure check
26442         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
26443         Reported by Bruno Haible.
26444
26445 2010-07-30  Bruno Haible  <bruno@clisp.org>
26446
26447         getline: Update regarding AIX.
26448         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
26449         Reported by Rainer Tammer.
26450
26451 2010-07-30  Bruno Haible  <bruno@clisp.org>
26452
26453         wcwidth: Drop replacement on AIX 7.
26454         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
26455         AIX 7.
26456         Reported by Rainer Tammer.
26457
26458 2010-07-30  Bruno Haible  <bruno@clisp.org>
26459
26460         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
26461         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
26462         a 'char *'.
26463         Reported by Rainer Tammer.
26464
26465 2010-07-30  Bruno Haible  <bruno@clisp.org>
26466
26467         unlink: Update regarding AIX.
26468         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
26469         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
26470         Reported by Rainer Tammer.
26471
26472 2010-07-30  Bruno Haible  <bruno@clisp.org>
26473
26474         symlink: Update regarding AIX.
26475         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
26476         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
26477         Reported by Rainer Tammer.
26478
26479 2010-07-30  Bruno Haible  <bruno@clisp.org>
26480
26481         strndup: Update regarding AIX.
26482         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
26483         AIX 7.
26484         Reported by Rainer Tammer.
26485
26486 2010-07-30  Bruno Haible  <bruno@clisp.org>
26487
26488         stat: Update regarding AIX.
26489         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
26490         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
26491         Reported by Rainer Tammer.
26492
26493 2010-07-30  Bruno Haible  <bruno@clisp.org>
26494
26495         truncl: Fix autoconf test.
26496         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
26497         whether truncl works.
26498         Reported by Rainer Tammer.
26499
26500 2010-07-30  Bruno Haible  <bruno@clisp.org>
26501
26502         round: Update regarding AIX.
26503         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
26504         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
26505         Reported by Rainer Tammer.
26506
26507 2010-07-30  Bruno Haible  <bruno@clisp.org>
26508
26509         rename: Update regarding AIX.
26510         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
26511         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
26512         Reported by Rainer Tammer.
26513
26514 2010-07-30  Bruno Haible  <bruno@clisp.org>
26515
26516         printf.m4: Update regarding AIX.
26517         * m4/printf.m4: Update comments regarding AIX.
26518         Reported by Rainer Tammer.
26519
26520 2010-07-30  Bruno Haible  <bruno@clisp.org>
26521
26522         iconv: Update regarding AIX.
26523         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
26524         AIX 7.
26525         Reported by Rainer Tammer.
26526
26527 2010-07-30  Bruno Haible  <bruno@clisp.org>
26528
26529         getopt: Update regarding AIX.
26530         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
26531         no on AIX.
26532         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
26533         Reported by Rainer Tammer.
26534
26535 2010-07-30  Bruno Haible  <bruno@clisp.org>
26536
26537         ldexpl; Update regarding AIX.
26538         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
26539         on AIX 7.
26540         Reported by Rainer Tammer.
26541
26542 2010-07-30  Bruno Haible  <bruno@clisp.org>
26543
26544         frexpl: Update regarding AIX.
26545         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
26546         on AIX 7.
26547         Reported by Rainer Tammer.
26548
26549 2010-07-30  Bruno Haible  <bruno@clisp.org>
26550
26551         open, fopen: Update regarding AIX.
26552         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
26553         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26554         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
26555         * doc/posix-functions/fopen.texi: Likewise.
26556         Reported by Rainer Tammer.
26557
26558 2010-07-30  Bruno Haible  <bruno@clisp.org>
26559
26560         chown: Update doc regarding AIX.
26561         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
26562         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
26563         Reported by Rainer Tammer.
26564
26565 2010-07-30  Eric Blake  <eblake@redhat.com>
26566
26567         strtod: fix bug in replacement function on AIX
26568         * lib/strtod.c (strtod): Special case broken "0x" parse in
26569         underlying strtod.
26570         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
26571         * doc/posix-functions/strtod.texi (strtod): Likewise.
26572         Reported by Rainer Tammer.
26573
26574 2010-07-30  Bruno Haible  <bruno@clisp.org>
26575
26576         mbrlen: Fix cross-compilation guess for AIX.
26577         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
26578         guess. Leftover from 2008-12-22.
26579
26580 2010-07-30  Bruno Haible  <bruno@clisp.org>
26581
26582         mbrtowc: Fix cross-compilation guess for AIX.
26583         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
26584         guess. Leftover from 2008-12-21.
26585
26586 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
26587
26588         init.sh: work around trap limitation of some shells
26589         * tests/init.sh (setup_): Move exit trap outside of shell function.
26590
26591 2010-07-29  Eric Blake  <eblake@redhat.com>
26592
26593         strtod: aid debugging
26594         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
26595         understanding why strtod is rejected.
26596
26597 2010-07-28  Bruno Haible  <bruno@clisp.org>
26598
26599         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
26600         * lib/unistr/u8-chr.c: Include <string.h>.
26601         * tests/unistr/test-u8-chr.c: Likewise.
26602         * tests/unistr/test-u16-chr.c: Likewise.
26603         * tests/unistr/test-u32-chr.c: Likewise.
26604         * tests/unistr/test-u8-strchr.c: Likewise.
26605         * tests/unistr/test-u16-strchr.c: Likewise.
26606         * tests/unistr/test-u32-strchr.c: Likewise.
26607         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
26608         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
26609         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
26610         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
26611
26612 2010-07-28  Bruno Haible  <bruno@clisp.org>
26613
26614         Use spaces for indentation, not tabs.
26615         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26616
26617 2010-07-27  Bruno Haible  <bruno@clisp.org>
26618
26619         mbspcasecmp: Fix function specification.
26620         * lib/string.in.h (mbspcasecmp): Fix specification comment.
26621         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
26622         Reported by Eric Blake <eblake@redhat.com>.
26623
26624 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
26625
26626         timespec: use cast and not conditional, as truncation isn't possible
26627         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
26628         instead of a conditional.  Comment about the situation in more detail.
26629         This undoes most of the 2009-10-29 patch.
26630
26631 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
26632
26633         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
26634         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
26635         * lib/unistr/u8-strchr.c: Likewise.
26636         * modules/unistr/u8-chr: Depend on memchr.
26637
26638         unistr/u*-strchr: add tests
26639         * modules/unistr/u8-strchr-tests: New file.
26640         * modules/unistr/u16-strchr-tests: New file.
26641         * modules/unistr/u32-strchr-tests: New file.
26642         * tests/unistr/test-strchr.h: New file.
26643         * tests/unistr/test-u8-strchr.c: New file.
26644         * tests/unistr/test-u16-strchr.c: New file.
26645         * tests/unistr/test-u32-strchr.c: New file.
26646
26647         unistr/u*-chr: test multibyte sequences more
26648         * tests/unistr/test-chr.h: Do complete testing of the characters in the
26649         test vector.
26650         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
26651         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
26652         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
26653
26654         unistr/u*-chr: test multibyte sequences
26655         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
26656
26657         unistr/u*-chr: prepare for multibyte tests
26658         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
26659         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
26660         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
26661         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
26662         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
26663         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
26664
26665 2010-07-18  Bruno Haible  <bruno@clisp.org>
26666
26667         unistr/u8-strchr: Optimize non-ASCII argument case.
26668         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
26669         because the first byte often matches anyway.
26670         Reported by Pádraig Brady <P@draigbrady.com>.
26671
26672 2010-07-15  Karl Berry  <karl@gnu.org>
26673
26674         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
26675
26676 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
26677
26678         getcwd: on Solaris, work better if ancestors are inaccessible
26679         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
26680         buffer and size, try again with a large buffer.  This works better
26681         on Solaris, since its getcwd succeeds even if the path to the root
26682         is inaccessible, and this is helpful in common cases such as .zfs
26683         hidden directories.  Problem reported by J Chapman Flack in
26684         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
26685         Use system getcwd if it's declared, not merely if it's partly
26686         working; use the partly-working test only to avoid needless effort
26687         if the system getcwd fails.
26688         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
26689         comment that was already obsolete and is now even more obsolete.
26690         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
26691         now might call strdup.
26692
26693 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
26694
26695         pthread: Add enough so that coreutils/src/sort.c compiles.
26696         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
26697         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
26698         gnulib. Include <sched.h> and <time.h>, as per POSIX.
26699         Include <sys/types.h>, in case it defines pthread_t.
26700         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
26701         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
26702         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
26703         (pthread_rwlockattr_t, pthread_spinlock_t):
26704         New typedefs, if HAVE_PTHREAD_T is not defined.
26705         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
26706         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
26707         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
26708         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
26709         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
26710         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
26711         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
26712         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
26713         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
26714         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
26715         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
26716         New macros.
26717         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
26718         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
26719         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
26720         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
26721         (pthread_spin_unlock): New dummy functions.
26722         (pthread_create): Return EAGAIN; don't set errno.
26723         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
26724         require AC_C_INLINE.
26725         * modules/pthread (Depends-on): Add sched, time.
26726         (pthread.h): Use AM_V_GEN.
26727
26728 2010-07-13  Bruno Haible  <bruno@clisp.org>
26729
26730         striconveh: Don't malloc memory if the result buffer is sufficient.
26731         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
26732         buffer if its size is sufficient.
26733         Reported by Ludovic Courtès <ludo@gnu.org>.
26734
26735 2010-07-13  Bruno Haible  <bruno@clisp.org>
26736
26737         strtod: Add safety check.
26738         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
26739
26740 2010-07-12  Bruno Haible  <bruno@clisp.org>
26741
26742         Unify tests that set gl_cv_func_ldexpl_no_libm.
26743         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
26744         gl_FUNC_LDEXPL.
26745         (gl_FUNC_LDEXPL): Invoke it.
26746         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26747
26748 2010-07-12  Bruno Haible  <bruno@clisp.org>
26749
26750         Unify tests that set gl_cv_func_ldexp_no_libm.
26751         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
26752         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
26753         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
26754         (configure.ac): Simply invoke gl_FUNC_LDEXP.
26755         * modules/strtod (Files): Add m4/ldexp.m4.
26756
26757 2010-07-12  Bruno Haible  <bruno@clisp.org>
26758
26759         Unify tests that set gl_cv_func_frexpl_no_libm.
26760         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
26761         gl_FUNC_FREXPL_NO_LIBM.
26762         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
26763         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26764
26765 2010-07-12  Bruno Haible  <bruno@clisp.org>
26766
26767         Unify tests that set gl_cv_func_frexp_no_libm.
26768         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
26769         gl_FUNC_FREXP_NO_LIBM.
26770         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
26771         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26772
26773 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26774
26775         memcoll: clarify sizes versus lengths, document better, and tweak perf
26776         * lib/memcoll.c (strcoll_loop, memcoll0):
26777         Improve quality of descriptive comments.  Name variables
26778         consistently as to whether they are lengths (which do not include
26779         terminating null) versus sizes (which do).
26780         * lib/xmemcoll.c (xmemcoll0): Likewise.
26781         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
26782         returned when s1size == 0; this is easier to compile and saves
26783         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
26784
26785 2010-07-12  Bruno Haible  <bruno@clisp.org>
26786
26787         Tests for module '_Exit'.
26788         * modules/_Exit-tests: New file.
26789         * tests/test-_Exit.sh: New file.
26790         * tests/test-_Exit.c: New file.
26791
26792         New module '_Exit'.
26793         * lib/stdlib.in.h (__attribute__): New macro.
26794         (_Exit): New declaration.
26795         * lib/_Exit.c: New file.
26796         * m4/_Exit.m4: New file.
26797         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
26798         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
26799         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
26800         * modules/_Exit: New file.
26801         * tests/test-stdlib-c++.cc (_Exit): Check signature.
26802         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
26803
26804 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26805
26806         strtod: make it more-accurate typically, and don't require libm
26807         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
26808         Include limits.h.  Don't include string.h.
26809         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
26810         (locale_isspace): New function, so that no casts are needed to
26811         check whether *s is a space.
26812         (ldexp): Provide an unused dummy if not available.
26813         (scale_radix_exp, parse_number, underlying_strtod): New functions.
26814         (strtod): Use them.  This implementation prefers to use the
26815         underlying strtod if available, falling back on our own code
26816         only to fix known bugs.  This is more likely to produce an
26817         accurate result.  Also, it avoids the use of libm functions.
26818         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
26819         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
26820         was absent, but it caused a test failure with coreutils.
26821         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
26822         with libm.
26823         * modules/strtod (Makefile.am, Link): libm is no longer needed.
26824         * modules/strtod-tests (Makefile.am): Likewise.
26825
26826 2010-07-11  Pádraig Brady  <P@draigBrady.com>
26827             Bruno Haible  <bruno@clisp.org>
26828
26829         unistr/u8-strchr: Optimize ASCII argument case.
26830         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
26831
26832 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26833
26834         (x)memcoll: minor tweaks
26835         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
26836         is after the type that it qualifies.
26837         (memcoll0): Likewise.
26838         * lib/memcoll.h (memcoll0): Likewise.
26839         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
26840         * lib/xmemcoll.h (xmemcoll0): Likewise.
26841         * lib/memcoll.c (memcoll0): Correct the comment.  This function
26842         differs from memcoll in that the NUL byte is part of the argument.
26843         Omit the abort-checks, as performance is a real issue here.  Plus,
26844         the checks were wrong anyway (an off-by-one error).  Omit local
26845         variable 'diff', as it's a bit clearer that way.
26846         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
26847         no longer needed.
26848
26849 2010-07-08  Chen Guo <chenguo4@yahoo.com>
26850
26851         (x)memcoll: speedup when input is known to be NUL delimited
26852         * lib/memcoll.c: Include stdlib.
26853         (memcoll0): New function.
26854         (strcoll_loop): New function, refactored for use in both memcoll
26855         and memcoll0.
26856         * lib/memcoll.h (memcoll0): Add prototype.
26857         * lib/xmemcoll.c (xmemcoll0): New function.
26858         (collate_error): New function, refactored for use in both xmemcoll
26859         and xmemcoll0.
26860         * lib/xmemcoll.h (xmemcoll0): Add prototype.
26861         * m4/memcoll.m4: add inline invocation.
26862
26863 2010-07-06  Pádraig Brady  <P@draigBrady.com>
26864
26865         * build-aux/bootstrap: Remove any local translations
26866         from the translation project synchronization directory,
26867         so that local only translations are not distributed.
26868
26869 2010-07-04  Bruno Haible  <bruno@clisp.org>
26870
26871         fsusage: Clarify which code applies to which platforms.
26872         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
26873         platform.
26874         * lib/fsusage.c (get_fs_usage): Likewise.
26875
26876 2010-07-04  Bruno Haible  <bruno@clisp.org>
26877
26878         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
26879         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
26880         Reported by Martin Lambers <marlam@marlam.de>.
26881
26882 2010-07-04  Jim Meyering  <meyering@redhat.com>
26883
26884         hash: once again explicitly disallow insertion of NULL
26885         * lib/hash.c (hash_insert0): Reinstate just-removed test:
26886         inserting a NULL pointer cannot work with these functions.
26887         Add a comment with details.
26888         This reverts part of the 2010-07-01 commit, 5bef1a35
26889         "hash: extend module to deal with non-pointer keys".
26890
26891 2010-07-01  Bruno Haible  <bruno@clisp.org>
26892
26893         stdbool: Update doc.
26894         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
26895         Info from Christian Weisgerber <naddy@mips.inka.de>.
26896
26897 2010-07-01  Jim Meyering  <meyering@redhat.com>
26898
26899         hash: extend module to deal with non-pointer keys
26900         * lib/hash.c (hash_insert0): New interface, much like hash_insert
26901         but that allows insertion of non-pointer entries.
26902         Do not disallow an ENTRY value of NULL.
26903         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
26904         * lib/hash.h (hash_insert0): Declare.
26905
26906 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26907
26908         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
26909         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
26910         not present (i.e. with autoconf 2.59 and when using gettextize, not
26911         gnulib), require AC_GNU_SOURCE instead.
26912
26913 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
26914
26915         idpriv-drop: Fix tests.
26916         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
26917         not to the test-idpriv-droptemp program.
26918
26919 2010-06-29  Bruno Haible  <bruno@clisp.org>
26920
26921         string: Fix syntax error with g++ 2.96.
26922         * lib/string.in.h (__pure__): Remove definition.
26923         (_GL_ATTRIBUTE_PURE): New macro.
26924         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
26925         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
26926         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26927
26928 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
26929
26930         unitypes: Fix bug introduced on 2010-05-18.
26931         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
26932
26933 2010-06-22  Eric Blake  <eblake@redhat.com>
26934
26935         memmem: slight optimization
26936         * lib/str-two-way.h (critical_factorization): Update comments.
26937         Reduce work during factorization phase.
26938         Reported by Carlos Bueno <carlos@bueno.org>.
26939
26940 2010-06-21  Bruno Haible  <bruno@clisp.org>
26941
26942         Fix HAVE_CALLOC_POSIX misnomer.
26943         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
26944         !HAVE_CALLOC_POSIX.
26945         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
26946         HAVE_CALLOC_POSIX.
26947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
26948         instead of HAVE_CALLOC_POSIX.
26949         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
26950         HAVE_CALLOC_POSIX.
26951
26952         Use modern idiom for calloc() replacement.
26953         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
26954         AC_FUNC_CALLOC.
26955         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
26956         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
26957         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26958         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
26959         (gl_REPLACE_CALLOC): New macro.
26960
26961 2010-06-21  Bruno Haible  <bruno@clisp.org>
26962
26963         Fix HAVE_REALLOC_POSIX misnomer.
26964         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
26965         !HAVE_REALLOC_POSIX.
26966         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
26967         HAVE_REALLOC_POSIX.
26968         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
26969         instead of HAVE_REALLOC_POSIX.
26970         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
26971         HAVE_REALLOC_POSIX.
26972
26973         Use modern idiom for realloc() replacement.
26974         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
26975         AC_FUNC_REALLOC.
26976         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
26977         Autoconf's AC_FUNC_REALLOC.
26978         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26979         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
26980         (gl_REPLACE_REALLOC): New macro.
26981         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
26982
26983 2010-06-21  Bruno Haible  <bruno@clisp.org>
26984
26985         Fix HAVE_MALLOC_POSIX misnomer.
26986         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
26987         !HAVE_MALLOC_POSIX.
26988         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
26989         HAVE_MALLOC_POSIX.
26990         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
26991         instead of HAVE_MALLOC_POSIX.
26992         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
26993         HAVE_MALLOC_POSIX.
26994
26995         Use modern idiom for malloc() replacement.
26996         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
26997         AC_FUNC_MALLOC.
26998         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
26999         Autoconf's AC_FUNC_MALLOC.
27000         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
27001         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
27002         (gl_REPLACE_MALLOC): New macro.
27003         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
27004
27005 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
27006
27007         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
27008         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
27009         This macro takes 3 arguments, not 4.
27010
27011 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
27012
27013         ipv6: fix detection under mingw
27014         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
27015         in6_addr.
27016
27017 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
27018
27019         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
27020         that strtod() works when cross-compiling to a glibc version known
27021         to work.
27022
27023 2010-06-15  Bruno Haible  <bruno@clisp.org>
27024
27025         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
27026
27027 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
27028
27029         select: Correct timeout.
27030         * lib/select.c (rpl_select): Compute wait_timeout correctly.
27031
27032 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27033
27034         git-version-gen: init shell var to avoid env var influence
27035         * build-aux/git-version-gen (v): Init shell var to empty.
27036
27037 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
27038
27039         priv-set: Don't assume that priv.h exists merely because getppriv does.
27040         See Jan Andersen's bug report about AIX 5L in
27041         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
27042         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
27043         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
27044         * lib/priv-set.h: Likewise.
27045         * tests/test-priv-set.c: Likewise.
27046
27047 2010-06-13  Bruno Haible  <bruno@clisp.org>
27048
27049         relocatable: Make it easier to test whether to install wrappers.
27050         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
27051         RELOCATABLE_VIA_WRAPPER.
27052
27053 2010-06-13  Bruno Haible  <bruno@clisp.org>
27054
27055         gnulib-tool: Display specified modules and dependencies differently.
27056         * gnulib-tool (func_show_module_list): New function.
27057         (func_import, func_create_testdir): Invoke it.
27058         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
27059
27060 2010-06-13  Bruno Haible  <bruno@clisp.org>
27061
27062         gnulib-tool: Align code of func_import and func_create_testdir.
27063         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
27064         specified_modules.
27065
27066 2010-06-12  Jim Meyering  <meyering@redhat.com>
27067
27068         test-inttostr: avoid spurious failure on Solaris 9
27069         * tests/test-inttostr.c (main): Skip the test when snprintf fails
27070         to accept "%ju".  Reported by Bruno Haible.
27071
27072 2010-06-11  Jim Meyering  <meyering@redhat.com>
27073
27074         test-sys_socket: mark variables as used more readably
27075         * tests/test-sys_socket.c (main): Mark otherwise unused variables
27076         as "used" explicitly via (void) statement casts.  This is more
27077         readable than using them in an artificial return expression.
27078         Suggestion from Bruno Haible.
27079
27080 2010-06-11  Bruno Haible  <bruno@clisp.org>
27081
27082         Avoid some more warnings from "gcc -Wwrite-strings".
27083         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
27084         to 'const char *'.
27085         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
27086         * tests/test-c-strcasestr.c (main): Likewise.
27087         * tests/test-mbscasestr1.c (main): Likewise.
27088         * tests/test-mbscasestr2.c (main): Likewise.
27089         * tests/test-memmem.c (main): Likewise.
27090         * tests/test-strstr.c (main): Likewise.
27091         * tests/test-strcasestr.c (main): Likewise.
27092
27093 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27094
27095         init.sh: change framework_failure_ to fail with status 99, not 1
27096         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
27097         automake's parallel-tests rule that this is an unexpected failure,
27098         even if the test is listed in XFAIL_TESTS.
27099
27100 2010-06-11  Jim Meyering  <meyering@redhat.com>
27101
27102         test-inttostr: avoid warnings about 4-6KB literal strings
27103         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
27104         Include "macros.h", for its definition of ASSERT.
27105         (CK): s/assert/ASSERT/
27106         * modules/inttostr-tests (Files): Add macros.h.
27107
27108         init.sh: don't use $ME_ or skip_ before they are defined
27109         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
27110         their first uses.  Also hoist their companions: warn_, fail_,
27111         framework_failure_, $stderr_fileno.  Prompted by a patch from
27112         Stefano Lattarini.
27113
27114         test-sys_socket: avoid set-but-not-used warnings from gcc
27115         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
27116         avoid warning about set-but-not-used variables.
27117
27118         test-xvasprintf: avoid 'const' discard warnings
27119         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
27120         "const" when assigning from literal strings.
27121         (test_xasprintf): Add "void" in function argument list to placate
27122         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
27123
27124         tests: avoid compilation warnings in argmatch and exclude tests...
27125         in packages that define ARGMATCH_DIE_DECL, like coreutils.
27126         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
27127         Since it always exits, declare with the "noreturn" attribute.
27128         * tests/test-argmatch.c: Likewise.
27129
27130         tests: avoid 'const' discard warnings in mbsstr tests
27131         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
27132         * tests/test-mbsstr2.c (main): Likewise.
27133
27134         test-verify: avoid warning from gcc's -Wmissing-declarations
27135         * tests/test-verify.c (function): Declare to be static.
27136
27137         test-inttostr.c: include <string.h> for use of strcmp
27138         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
27139
27140         test-linkat: avoid failed assertion on "other" architectures
27141         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
27142         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
27143         sparc: https://bugs.launchpad.net/bugs/591968
27144
27145 2010-06-11  Jim Meyering  <meyering@redhat.com>
27146
27147         printf.m4: avoid autoconf's "Expanded Before Required" warning
27148         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
27149         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
27150         autoconf warning.
27151
27152 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
27153
27154         Replacement header templates are now named with ".in", not "_".
27155         * doc/gnulib-intro.texi: Correct.
27156
27157 2010-06-10  Jim Meyering  <meyering@redhat.com>
27158
27159         inttostr-tests: depend on snprintf, not snprintf-posix
27160         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
27161         snprintf-posix, to avoid this aclocal failure:
27162           missing file gnulib-tests/vasnprintf.c
27163           configure.ac:45: error: expected source file, required through \
27164           AC_LIBSOURCES, not found
27165
27166 2010-06-10  Jim Meyering  <meyering@redhat.com>
27167
27168         inttostr: add a new function, inttostr, and tests
27169         The namesake function was not available.  The existence of the
27170         template file, inttostr.c makes its addition nontrivial.
27171         * lib/anytostr.c: Rename from inttostr.c.
27172         (anytostr): Rename from inttostr.
27173         * lib/inttostr.c: New file.
27174         * modules/inttostr (Files): Add anytostr.c.
27175         (Makefile.am): Set lib_SOURCES instead of ...
27176         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
27177         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
27178         * lib/offtostr.c: Likewise.
27179         * lib/uinttostr.c: Likewise.
27180         * lib/umaxtostr.c: Likewise.
27181         * modules/inttostr-tests: New file.
27182         * tests/test-inttostr.c: New file.  Test these functions.
27183
27184 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
27185             Bruno Haible  <bruno@clisp.org>
27186
27187         Add "Extending Gnulib" chapter to manual.
27188         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
27189         chapter.
27190         (Extending Gnulib): New chapter.
27191         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
27192         chapter.
27193
27194 2010-06-09  Bruno Haible  <bruno@clisp.org>
27195
27196         Avoid relocwrapper link errors due to gnulib replacement functions.
27197         * lib/areadlink.c: Use the system's malloc, realloc functions.
27198         (areadlink): Set errno to ENOMEM explicitly.
27199         * modules/areadlink (Depends-on): Remove malloc-posix.
27200         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27201
27202 2010-06-09  Bruno Haible  <bruno@clisp.org>
27203
27204         Avoid relocwrapper link errors due to gnulib replacement functions.
27205         * lib/canonicalize-lgpl.c: Use the system's malloc function.
27206         * lib/malloca.c: Likewise.
27207         * lib/relocatable.c: Likewise.
27208         * lib/progreloc.c: Use the system's malloc, sprintf functions.
27209         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
27210         * lib/setenv.c: Use the system's malloc, realloc functions.
27211         * lib/strerror.c: Use the system's sprintf function.
27212         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27213
27214 2010-06-04  Bruno Haible  <bruno@clisp.org>
27215
27216         Prefer documented low-level autoconf macro names.
27217         * m4/lib-link.m4: Use m4_translit instead of translit.
27218         * m4/environ.m4: Likewise.
27219         * m4/mathfunc.m4: Likewise.
27220         * m4/onceonly.m4: Likewise.
27221         * m4/stdint.m4: Likewise.
27222         Suggested by Eric Blake.
27223
27224 2010-06-04  Martin Lambers  <marlam@marlam.de>
27225             Bruno Haible  <bruno@clisp.org>
27226
27227         havelib: Allow library names with '+' characters.
27228         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
27229         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
27230
27231 2010-06-09  Bruno Haible  <bruno@clisp.org>
27232
27233         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
27234         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
27235         realloc failed.
27236
27237 2010-06-08  Peter Simons  <simons@cryp.to>
27238
27239         maint.mk: make the news-check rule more configurable
27240         * top/maint.mk (news-check-lines-spec): New variable.
27241         (news-check): Use "sed -n 1,10p" in place of "head".
27242
27243 2010-06-07  Jim Meyering  <meyering@redhat.com>
27244
27245         do-release-commit-and-tag: fix typo in --help
27246         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
27247
27248         regex: avoid new dead-code warning with gcc-4.6.0
27249         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
27250         if-block containing a while-loop.  It's been unused for at least
27251         5 years.
27252
27253 2010-06-05  Bruno Haible  <bruno@clisp.org>
27254
27255         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
27256         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
27257
27258 2010-06-04  Bruno Haible  <bruno@clisp.org>
27259
27260         Update to GNU gettext 0.18.1.
27261         * modules/gettext (configure.ac): Require gettext infrastructure from
27262         version 0.18.1.
27263
27264 2010-06-03  Bruno Haible  <bruno@clisp.org>
27265
27266         Don't use AC_LIBOBJ with file names in subdirectories.
27267         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27268         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27269         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27270         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27271         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27272         gl_LIBUNISTRING_LIBSOURCE.
27273         (Makefile.am): Augment lib_SOURCES here, conditionally.
27274         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27275
27276 2010-06-03  Bruno Haible  <bruno@clisp.org>
27277
27278         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27279         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27280         expansion does not end with a newline.
27281         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27282         unnecessary newline.
27283
27284 2010-06-03  Bruno Haible  <bruno@clisp.org>
27285
27286         Reduce dependencies.
27287         * tests/test-quotearg.h: New file, extracted from
27288         tests/test-quotearg.c.
27289         * tests/test-quotearg-simple.c: New file, extracted from
27290         tests/test-quotearg.c.
27291         * tests/test-quotearg.c: Don't include <ctype.h>.
27292         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
27293         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
27294         use_quote_double_quotes, use_quotearg_colon): Moved to
27295         tests/test-quotearg.h.
27296         (results_g, flag_results, custom_quotes, custom_results): Moved
27297         to tests/test-quotearg-simple.c.
27298         (main): Moved the part that does not depend on gettext to
27299         tests/test-quotearg-simple.c. Return 77 if the test cannot be
27300         performed.
27301         * modules/quotearg-simple: New file.
27302         * modules/quotearg-simple-tests: New file.
27303         * modules/quotearg (Depends-on): Add quotearg-simple.
27304         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
27305         (Files): Add tests/test-quotearg.h.
27306         Reported by Paolo Bonzini.
27307
27308 2010-06-03  Bruno Haible  <bruno@clisp.org>
27309
27310         Reduce dependencies.
27311         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
27312
27313 2010-06-03  Bruno Haible  <bruno@clisp.org>
27314
27315         time: Undefine more broken macros.
27316         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
27317         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
27318         Reported by Eric Blake.
27319
27320 2010-06-03  Bruno Haible  <bruno@clisp.org>
27321
27322         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
27323         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
27324         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
27325         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
27326         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
27327         Reported by Ludovic Courtès <ludo@gnu.org>.
27328
27329 2010-06-02  Eric Blake  <eblake@redhat.com>
27330
27331         time: work with mingw + pthreads-win32 library
27332         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
27333         if timespec is defined only in pthread.h.
27334         * modules/time (Makefile.am): Substitute it.
27335         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
27336         <pthread.h>, when needed.
27337         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
27338         from the library.
27339
27340 2010-05-31  Bruno Haible  <bruno@clisp.org>
27341
27342         Avoid expanding two macros in the wrong order.
27343         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
27344         gl_LIBUNISTRING if it is defined.
27345         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
27346         autoconf >= 2.64.
27347         Reported by Ludovic Courtès <ludo@gnu.org>.
27348
27349 2010-05-27  Jim Meyering  <meyering@redhat.com>
27350
27351         maint.mk: also prohibit "#undef" of always-defined symbols
27352         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
27353         Allow more than one space before the symbol name.
27354         (sc_prohibit_always-defined_macros): Use grep's -E, now that
27355         the regexp uses alternation.
27356
27357 2010-05-26  Eric Blake  <eblake@redhat.com>
27358
27359         maint.mk: avoid echo -e
27360         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
27361         Convert all uses of echo -* to printf.
27362         Reported by Matthias Bolte.
27363
27364 2010-05-25  Bruno Haible  <bruno@clisp.org>
27365
27366         Update to GNU gettext 0.18, part 2.
27367         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
27368         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
27369
27370 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27371
27372         Add missing include in test-pwrite.c.
27373         * tests/test-pwrite.c: Include string.h, for strcmp.
27374
27375 2010-05-24  Bruno Haible  <bruno@clisp.org>
27376
27377         * NEWS: Mention requirement for Automake option 'subdir-objects'.
27378
27379 2010-05-24  Bruno Haible  <bruno@clisp.org>
27380
27381         Don't use conversion with transliteration in u{8,16,32}_strcoll.
27382         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
27383         iconveh_error argument.
27384         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
27385         U_STRCONV_TO_LOCALE.
27386         * lib/unistr/u16-strcoll.c: Likewise.
27387         * lib/unistr/u32-strcoll.c: Likewise.
27388         * modules/unistr/u8-strcoll (Depends-on): Add
27389         uniconv/u8-strconv-to-enc, localcharset. Remove
27390         uniconv/u8-strconv-to-locale.
27391         (configure.ac): Bump version number.
27392         * modules/unistr/u16-strcoll (Depends-on): Add
27393         uniconv/u16-strconv-to-enc, localcharset. Remove
27394         uniconv/u16-strconv-to-locale.
27395         (configure.ac): Bump version number.
27396         * modules/unistr/u32-strcoll (Depends-on): Add
27397         uniconv/u32-strconv-to-enc, localcharset. Remove
27398         uniconv/u32-strconv-to-locale.
27399         (configure.ac): Bump version number.
27400
27401 2010-05-24  Bruno Haible  <bruno@clisp.org>
27402
27403         Avoid a test failure on NetBSD 5.0.
27404         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
27405         an iconv() bug.
27406
27407 2010-05-24  Bruno Haible  <bruno@clisp.org>
27408
27409         Adjust #include directive style.
27410         * modules/regex (Includes): Recommend to write <regex.h>.
27411
27412 2010-05-24  Bruno Haible  <bruno@clisp.org>
27413
27414         regex: Don't require alloca.
27415         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
27416         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
27417         only inside if (0).
27418
27419 2010-05-23  Jim Meyering  <meyering@redhat.com>
27420
27421         test-renameat.c: include <sys/stat.h>
27422         * tests/test-renameat.c: Include <sys/stat.h>; required for
27423         definition of S_IS* macros.
27424
27425 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
27426
27427         Update maintainer documentation for 'relocatable-prog' module.
27428         * doc/relocatable-maint.texi: Update.
27429         Comments by Bruno Haible.
27430
27431 2010-05-23  Bruno Haible  <bruno@clisp.org>
27432
27433         git-merge-changelog: Enable --split-merged-entry by default.
27434         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
27435         (usage): Don't mention this option any more.
27436         Reported by Ralf Wildenhues.
27437
27438 2010-05-23  Jim Meyering  <meyering@redhat.com>
27439
27440         test-pwrite: do not leave behind a test file named "out"
27441         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
27442         The trivial-looking use of init.sh is really necessary.
27443         It ensures that the temporary file, "out", is created in
27444         a temporary directory, and removed upon termination.
27445         * tests/test-pwrite.sh: Re-add file.
27446         * modules/pwrite-tests: Reference it.
27447
27448 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27449
27450         Fix output redirection buglet in init.sh.
27451         * tests/init.sh: Fix redirection of stderr.
27452
27453 2010-05-20  Simon Josefsson  <simon@josefsson.org>
27454
27455         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
27456
27457 2010-05-17  Simon Josefsson  <simon@josefsson.org>
27458
27459         * modules/valgrind-tests: New file.
27460         * m4/valgrind-tests.m4: New file.
27461         * doc/valgrind-tests.texi: New file.
27462         * doc/gnulib.texi (Running self-tests under valgrind): New
27463         section.
27464
27465 2010-05-19  Bruno Haible  <bruno@clisp.org>
27466
27467         Clean up dead code in recent commit.
27468         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
27469         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
27470         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
27471         Suggested by Paolo Bonzini.
27472
27473 2010-05-19  Bruno Haible  <bruno@clisp.org>
27474
27475         Avoid valgrind error reports from libunistring.
27476         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
27477         * modules/libunistring (Files): Add it.
27478         * modules/libunistring-optional (Files): Likewise.
27479
27480 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
27481             Bruno Haible  <bruno@clisp.org>
27482
27483         New module 'libunistring-optional'.
27484         * modules/libunistring-optional: New file.
27485         * m4/libunistring-base.m4: New file.
27486         * m4/libunistring-optional.m4: New file.
27487         * lib/unicase.in.h: Renamed from lib/unicase.h.
27488         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
27489         * lib/unictype.in.h: Renamed from lib/unictype.h.
27490         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
27491         * lib/uniname.in.h: Renamed from lib/uniname.h.
27492         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
27493         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
27494         * lib/unistr.in.h: Renamed from lib/unistr.h.
27495         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
27496         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
27497         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
27498         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
27499         gl_LIBUNISTRING. If the library was found, determine the installed
27500         version and set LIBUNISTRING_VERSION.
27501         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
27502         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
27503         handle a configuration option --with-included-libunistring.
27504         * modules/libunistring (Files): Add m4/absolute-header.m4.
27505         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
27506         Add m4/libunistring-base.m4.
27507         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27508         (Makefile.am): Build unicase.h from unicase.in.h.
27509         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
27510         Add m4/libunistring-base.m4.
27511         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27512         (Makefile.am): Build uniconv.h from uniconv.in.h.
27513         * modules/unictype/base (Files): Use unictype.in.h instead of
27514         unictype.h. Add m4/libunistring-base.m4.
27515         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27516         (Makefile.am): Build unictype.h from unictype.in.h.
27517         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
27518         Add m4/libunistring-base.m4.
27519         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27520         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
27521         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
27522         Add m4/libunistring-base.m4.
27523         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27524         (Makefile.am): Build uniname.h from uniname.in.h.
27525         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
27526         Add m4/libunistring-base.m4.
27527         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27528         (Makefile.am): Build uninorm.h from uninorm.in.h.
27529         * modules/unistdio/base (Files): Use unistdio.in.h instead of
27530         unistdio.h. Add m4/libunistring-base.m4.
27531         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27532         (Makefile.am): Build unistdio.h from unistdio.in.h.
27533         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
27534         Add m4/libunistring-base.m4.
27535         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27536         (Makefile.am): Build unistr.h from unistr.in.h.
27537         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
27538         Add m4/libunistring-base.m4.
27539         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27540         (Makefile.am): Build unitypes.h from unitypes.in.h.
27541         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
27542         Add m4/libunistring-base.m4.
27543         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27544         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
27545         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
27546         uniwidth.h. Add m4/libunistring-base.m4.
27547         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27548         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
27549         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
27550         instead of augmenting lib_SOURCES.
27551         * modules/unicase/empty-suffix-context: Likewise.
27552         * modules/unicase/locale-language: Likewise.
27553         * modules/unicase/tolower: Likewise.
27554         * modules/unicase/totitle: Likewise.
27555         * modules/unicase/toupper: Likewise.
27556         * modules/unicase/u8-casecmp: Likewise.
27557         * modules/unicase/u8-casecoll: Likewise.
27558         * modules/unicase/u8-casefold: Likewise.
27559         * modules/unicase/u8-casexfrm: Likewise.
27560         * modules/unicase/u8-ct-casefold: Likewise.
27561         * modules/unicase/u8-ct-tolower: Likewise.
27562         * modules/unicase/u8-ct-totitle: Likewise.
27563         * modules/unicase/u8-ct-toupper: Likewise.
27564         * modules/unicase/u8-is-cased: Likewise.
27565         * modules/unicase/u8-is-casefolded: Likewise.
27566         * modules/unicase/u8-is-lowercase: Likewise.
27567         * modules/unicase/u8-is-titlecase: Likewise.
27568         * modules/unicase/u8-is-uppercase: Likewise.
27569         * modules/unicase/u8-prefix-context: Likewise.
27570         * modules/unicase/u8-suffix-context: Likewise.
27571         * modules/unicase/u8-tolower: Likewise.
27572         * modules/unicase/u8-totitle: Likewise.
27573         * modules/unicase/u8-toupper: Likewise.
27574         * modules/unicase/u16-casecmp: Likewise.
27575         * modules/unicase/u16-casecoll: Likewise.
27576         * modules/unicase/u16-casefold: Likewise.
27577         * modules/unicase/u16-casexfrm: Likewise.
27578         * modules/unicase/u16-ct-casefold: Likewise.
27579         * modules/unicase/u16-ct-tolower: Likewise.
27580         * modules/unicase/u16-ct-totitle: Likewise.
27581         * modules/unicase/u16-ct-toupper: Likewise.
27582         * modules/unicase/u16-is-cased: Likewise.
27583         * modules/unicase/u16-is-casefolded: Likewise.
27584         * modules/unicase/u16-is-lowercase: Likewise.
27585         * modules/unicase/u16-is-titlecase: Likewise.
27586         * modules/unicase/u16-is-uppercase: Likewise.
27587         * modules/unicase/u16-prefix-context: Likewise.
27588         * modules/unicase/u16-suffix-context: Likewise.
27589         * modules/unicase/u16-tolower: Likewise.
27590         * modules/unicase/u16-totitle: Likewise.
27591         * modules/unicase/u16-toupper: Likewise.
27592         * modules/unicase/u32-casecmp: Likewise.
27593         * modules/unicase/u32-casecoll: Likewise.
27594         * modules/unicase/u32-casefold: Likewise.
27595         * modules/unicase/u32-casexfrm: Likewise.
27596         * modules/unicase/u32-ct-casefold: Likewise.
27597         * modules/unicase/u32-ct-tolower: Likewise.
27598         * modules/unicase/u32-ct-totitle: Likewise.
27599         * modules/unicase/u32-ct-toupper: Likewise.
27600         * modules/unicase/u32-is-cased: Likewise.
27601         * modules/unicase/u32-is-casefolded: Likewise.
27602         * modules/unicase/u32-is-lowercase: Likewise.
27603         * modules/unicase/u32-is-titlecase: Likewise.
27604         * modules/unicase/u32-is-uppercase: Likewise.
27605         * modules/unicase/u32-prefix-context: Likewise.
27606         * modules/unicase/u32-suffix-context: Likewise.
27607         * modules/unicase/u32-tolower: Likewise.
27608         * modules/unicase/u32-totitle: Likewise.
27609         * modules/unicase/u32-toupper: Likewise.
27610         * modules/unicase/ulc-casecmp: Likewise.
27611         * modules/unicase/ulc-casecoll: Likewise.
27612         * modules/unicase/ulc-casexfrm: Likewise.
27613         * modules/uniconv/u8-conv-from-enc: Likewise.
27614         * modules/uniconv/u8-conv-to-enc: Likewise.
27615         * modules/uniconv/u8-strconv-from-enc: Likewise.
27616         * modules/uniconv/u8-strconv-from-locale: Likewise.
27617         * modules/uniconv/u8-strconv-to-enc: Likewise.
27618         * modules/uniconv/u8-strconv-to-locale: Likewise.
27619         * modules/uniconv/u16-conv-from-enc: Likewise.
27620         * modules/uniconv/u16-conv-to-enc: Likewise.
27621         * modules/uniconv/u16-strconv-from-enc: Likewise.
27622         * modules/uniconv/u16-strconv-from-locale: Likewise.
27623         * modules/uniconv/u16-strconv-to-enc: Likewise.
27624         * modules/uniconv/u16-strconv-to-locale: Likewise.
27625         * modules/uniconv/u32-conv-from-enc: Likewise.
27626         * modules/uniconv/u32-conv-to-enc: Likewise.
27627         * modules/uniconv/u32-strconv-from-enc: Likewise.
27628         * modules/uniconv/u32-strconv-from-locale: Likewise.
27629         * modules/uniconv/u32-strconv-to-enc: Likewise.
27630         * modules/uniconv/u32-strconv-to-locale: Likewise.
27631         * modules/unictype/bidicategory-byname: Likewise.
27632         * modules/unictype/bidicategory-name: Likewise.
27633         * modules/unictype/bidicategory-of: Likewise.
27634         * modules/unictype/bidicategory-test: Likewise.
27635         * modules/unictype/block-list: Likewise.
27636         * modules/unictype/block-test: Likewise.
27637         * modules/unictype/category-C: Likewise.
27638         * modules/unictype/category-Cc: Likewise.
27639         * modules/unictype/category-Cf: Likewise.
27640         * modules/unictype/category-Cn: Likewise.
27641         * modules/unictype/category-Co: Likewise.
27642         * modules/unictype/category-Cs: Likewise.
27643         * modules/unictype/category-L: Likewise.
27644         * modules/unictype/category-Ll: Likewise.
27645         * modules/unictype/category-Lm: Likewise.
27646         * modules/unictype/category-Lo: Likewise.
27647         * modules/unictype/category-Lt: Likewise.
27648         * modules/unictype/category-Lu: Likewise.
27649         * modules/unictype/category-M: Likewise.
27650         * modules/unictype/category-Mc: Likewise.
27651         * modules/unictype/category-Me: Likewise.
27652         * modules/unictype/category-Mn: Likewise.
27653         * modules/unictype/category-N: Likewise.
27654         * modules/unictype/category-Nd: Likewise.
27655         * modules/unictype/category-Nl: Likewise.
27656         * modules/unictype/category-No: Likewise.
27657         * modules/unictype/category-P: Likewise.
27658         * modules/unictype/category-Pc: Likewise.
27659         * modules/unictype/category-Pd: Likewise.
27660         * modules/unictype/category-Pe: Likewise.
27661         * modules/unictype/category-Pf: Likewise.
27662         * modules/unictype/category-Pi: Likewise.
27663         * modules/unictype/category-Po: Likewise.
27664         * modules/unictype/category-Ps: Likewise.
27665         * modules/unictype/category-S: Likewise.
27666         * modules/unictype/category-Sc: Likewise.
27667         * modules/unictype/category-Sk: Likewise.
27668         * modules/unictype/category-Sm: Likewise.
27669         * modules/unictype/category-So: Likewise.
27670         * modules/unictype/category-Z: Likewise.
27671         * modules/unictype/category-Zl: Likewise.
27672         * modules/unictype/category-Zp: Likewise.
27673         * modules/unictype/category-Zs: Likewise.
27674         * modules/unictype/category-and: Likewise.
27675         * modules/unictype/category-and-not: Likewise.
27676         * modules/unictype/category-byname: Likewise.
27677         * modules/unictype/category-name: Likewise.
27678         * modules/unictype/category-none: Likewise.
27679         * modules/unictype/category-of: Likewise.
27680         * modules/unictype/category-or: Likewise.
27681         * modules/unictype/category-test: Likewise.
27682         * modules/unictype/combining-class: Likewise.
27683         * modules/unictype/ctype-alnum: Likewise.
27684         * modules/unictype/ctype-alpha: Likewise.
27685         * modules/unictype/ctype-blank: Likewise.
27686         * modules/unictype/ctype-cntrl: Likewise.
27687         * modules/unictype/ctype-digit: Likewise.
27688         * modules/unictype/ctype-graph: Likewise.
27689         * modules/unictype/ctype-lower: Likewise.
27690         * modules/unictype/ctype-print: Likewise.
27691         * modules/unictype/ctype-punct: Likewise.
27692         * modules/unictype/ctype-space: Likewise.
27693         * modules/unictype/ctype-upper: Likewise.
27694         * modules/unictype/ctype-xdigit: Likewise.
27695         * modules/unictype/decimal-digit: Likewise.
27696         * modules/unictype/digit: Likewise.
27697         * modules/unictype/mirror: Likewise.
27698         * modules/unictype/numeric: Likewise.
27699         * modules/unictype/property-alphabetic: Likewise.
27700         * modules/unictype/property-ascii-hex-digit: Likewise.
27701         * modules/unictype/property-bidi-arabic-digit: Likewise.
27702         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
27703         * modules/unictype/property-bidi-block-separator: Likewise.
27704         * modules/unictype/property-bidi-boundary-neutral: Likewise.
27705         * modules/unictype/property-bidi-common-separator: Likewise.
27706         * modules/unictype/property-bidi-control: Likewise.
27707         * modules/unictype/property-bidi-embedding-or-override: Likewise.
27708         * modules/unictype/property-bidi-eur-num-separator: Likewise.
27709         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
27710         * modules/unictype/property-bidi-european-digit: Likewise.
27711         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
27712         * modules/unictype/property-bidi-left-to-right: Likewise.
27713         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
27714         * modules/unictype/property-bidi-other-neutral: Likewise.
27715         * modules/unictype/property-bidi-pdf: Likewise.
27716         * modules/unictype/property-bidi-segment-separator: Likewise.
27717         * modules/unictype/property-bidi-whitespace: Likewise.
27718         * modules/unictype/property-byname: Likewise.
27719         * modules/unictype/property-combining: Likewise.
27720         * modules/unictype/property-composite: Likewise.
27721         * modules/unictype/property-currency-symbol: Likewise.
27722         * modules/unictype/property-dash: Likewise.
27723         * modules/unictype/property-decimal-digit: Likewise.
27724         * modules/unictype/property-default-ignorable-code-point: Likewise.
27725         * modules/unictype/property-deprecated: Likewise.
27726         * modules/unictype/property-diacritic: Likewise.
27727         * modules/unictype/property-extender: Likewise.
27728         * modules/unictype/property-format-control: Likewise.
27729         * modules/unictype/property-grapheme-base: Likewise.
27730         * modules/unictype/property-grapheme-extend: Likewise.
27731         * modules/unictype/property-grapheme-link: Likewise.
27732         * modules/unictype/property-hex-digit: Likewise.
27733         * modules/unictype/property-hyphen: Likewise.
27734         * modules/unictype/property-id-continue: Likewise.
27735         * modules/unictype/property-id-start: Likewise.
27736         * modules/unictype/property-ideographic: Likewise.
27737         * modules/unictype/property-ids-binary-operator: Likewise.
27738         * modules/unictype/property-ids-trinary-operator: Likewise.
27739         * modules/unictype/property-ignorable-control: Likewise.
27740         * modules/unictype/property-iso-control: Likewise.
27741         * modules/unictype/property-join-control: Likewise.
27742         * modules/unictype/property-left-of-pair: Likewise.
27743         * modules/unictype/property-line-separator: Likewise.
27744         * modules/unictype/property-logical-order-exception: Likewise.
27745         * modules/unictype/property-lowercase: Likewise.
27746         * modules/unictype/property-math: Likewise.
27747         * modules/unictype/property-non-break: Likewise.
27748         * modules/unictype/property-not-a-character: Likewise.
27749         * modules/unictype/property-numeric: Likewise.
27750         * modules/unictype/property-other-alphabetic: Likewise.
27751         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
27752         * modules/unictype/property-other-grapheme-extend: Likewise.
27753         * modules/unictype/property-other-id-continue: Likewise.
27754         * modules/unictype/property-other-id-start: Likewise.
27755         * modules/unictype/property-other-lowercase: Likewise.
27756         * modules/unictype/property-other-math: Likewise.
27757         * modules/unictype/property-other-uppercase: Likewise.
27758         * modules/unictype/property-paired-punctuation: Likewise.
27759         * modules/unictype/property-paragraph-separator: Likewise.
27760         * modules/unictype/property-pattern-syntax: Likewise.
27761         * modules/unictype/property-pattern-white-space: Likewise.
27762         * modules/unictype/property-private-use: Likewise.
27763         * modules/unictype/property-punctuation: Likewise.
27764         * modules/unictype/property-quotation-mark: Likewise.
27765         * modules/unictype/property-radical: Likewise.
27766         * modules/unictype/property-sentence-terminal: Likewise.
27767         * modules/unictype/property-soft-dotted: Likewise.
27768         * modules/unictype/property-space: Likewise.
27769         * modules/unictype/property-terminal-punctuation: Likewise.
27770         * modules/unictype/property-test: Likewise.
27771         * modules/unictype/property-titlecase: Likewise.
27772         * modules/unictype/property-unassigned-code-value: Likewise.
27773         * modules/unictype/property-unified-ideograph: Likewise.
27774         * modules/unictype/property-uppercase: Likewise.
27775         * modules/unictype/property-variation-selector: Likewise.
27776         * modules/unictype/property-white-space: Likewise.
27777         * modules/unictype/property-xid-continue: Likewise.
27778         * modules/unictype/property-xid-start: Likewise.
27779         * modules/unictype/property-zero-width: Likewise.
27780         * modules/unictype/scripts: Likewise.
27781         * modules/unictype/syntax-c-ident: Likewise.
27782         * modules/unictype/syntax-c-whitespace: Likewise.
27783         * modules/unictype/syntax-java-ident: Likewise.
27784         * modules/unictype/syntax-java-whitespace: Likewise.
27785         * modules/unilbrk/u8-possible-linebreaks: Likewise.
27786         * modules/unilbrk/u8-width-linebreaks: Likewise.
27787         * modules/unilbrk/u16-possible-linebreaks: Likewise.
27788         * modules/unilbrk/u16-width-linebreaks: Likewise.
27789         * modules/unilbrk/u32-possible-linebreaks: Likewise.
27790         * modules/unilbrk/u32-width-linebreaks: Likewise.
27791         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
27792         * modules/unilbrk/ulc-width-linebreaks: Likewise.
27793         * modules/uniname/uniname: Likewise.
27794         * modules/uninorm/canonical-decomposition: Likewise.
27795         * modules/uninorm/composition: Likewise.
27796         * modules/uninorm/decomposing-form: Likewise.
27797         * modules/uninorm/decomposition: Likewise.
27798         * modules/uninorm/filter: Likewise.
27799         * modules/uninorm/nfc: Likewise.
27800         * modules/uninorm/nfd: Likewise.
27801         * modules/uninorm/nfkc: Likewise.
27802         * modules/uninorm/nfkd: Likewise.
27803         * modules/uninorm/u8-normalize: Likewise.
27804         * modules/uninorm/u8-normcmp: Likewise.
27805         * modules/uninorm/u8-normcoll: Likewise.
27806         * modules/uninorm/u8-normxfrm: Likewise.
27807         * modules/uninorm/u16-normalize: Likewise.
27808         * modules/uninorm/u16-normcmp: Likewise.
27809         * modules/uninorm/u16-normcoll: Likewise.
27810         * modules/uninorm/u16-normxfrm: Likewise.
27811         * modules/uninorm/u32-normalize: Likewise.
27812         * modules/uninorm/u32-normcmp: Likewise.
27813         * modules/uninorm/u32-normcoll: Likewise.
27814         * modules/uninorm/u32-normxfrm: Likewise.
27815         * modules/unistdio/u8-asnprintf: Likewise.
27816         * modules/unistdio/u8-asprintf: Likewise.
27817         * modules/unistdio/u8-snprintf: Likewise.
27818         * modules/unistdio/u8-sprintf: Likewise.
27819         * modules/unistdio/u8-u8-asnprintf: Likewise.
27820         * modules/unistdio/u8-u8-asprintf: Likewise.
27821         * modules/unistdio/u8-u8-snprintf: Likewise.
27822         * modules/unistdio/u8-u8-sprintf: Likewise.
27823         * modules/unistdio/u8-u8-vasnprintf: Likewise.
27824         * modules/unistdio/u8-u8-vasprintf: Likewise.
27825         * modules/unistdio/u8-u8-vsnprintf: Likewise.
27826         * modules/unistdio/u8-u8-vsprintf: Likewise.
27827         * modules/unistdio/u8-vasnprintf: Likewise.
27828         * modules/unistdio/u8-vasprintf: Likewise.
27829         * modules/unistdio/u8-vsnprintf: Likewise.
27830         * modules/unistdio/u8-vsprintf: Likewise.
27831         * modules/unistdio/u16-asnprintf: Likewise.
27832         * modules/unistdio/u16-asprintf: Likewise.
27833         * modules/unistdio/u16-snprintf: Likewise.
27834         * modules/unistdio/u16-sprintf: Likewise.
27835         * modules/unistdio/u16-u16-asnprintf: Likewise.
27836         * modules/unistdio/u16-u16-asprintf: Likewise.
27837         * modules/unistdio/u16-u16-snprintf: Likewise.
27838         * modules/unistdio/u16-u16-sprintf: Likewise.
27839         * modules/unistdio/u16-u16-vasnprintf: Likewise.
27840         * modules/unistdio/u16-u16-vasprintf: Likewise.
27841         * modules/unistdio/u16-u16-vsnprintf: Likewise.
27842         * modules/unistdio/u16-u16-vsprintf: Likewise.
27843         * modules/unistdio/u16-vasnprintf: Likewise.
27844         * modules/unistdio/u16-vasprintf: Likewise.
27845         * modules/unistdio/u16-vsnprintf: Likewise.
27846         * modules/unistdio/u16-vsprintf: Likewise.
27847         * modules/unistdio/u32-asnprintf: Likewise.
27848         * modules/unistdio/u32-asprintf: Likewise.
27849         * modules/unistdio/u32-snprintf: Likewise.
27850         * modules/unistdio/u32-sprintf: Likewise.
27851         * modules/unistdio/u32-u32-asnprintf: Likewise.
27852         * modules/unistdio/u32-u32-asprintf: Likewise.
27853         * modules/unistdio/u32-u32-snprintf: Likewise.
27854         * modules/unistdio/u32-u32-sprintf: Likewise.
27855         * modules/unistdio/u32-u32-vasnprintf: Likewise.
27856         * modules/unistdio/u32-u32-vasprintf: Likewise.
27857         * modules/unistdio/u32-u32-vsnprintf: Likewise.
27858         * modules/unistdio/u32-u32-vsprintf: Likewise.
27859         * modules/unistdio/u32-vasnprintf: Likewise.
27860         * modules/unistdio/u32-vasprintf: Likewise.
27861         * modules/unistdio/u32-vsnprintf: Likewise.
27862         * modules/unistdio/u32-vsprintf: Likewise.
27863         * modules/unistdio/ulc-asnprintf: Likewise.
27864         * modules/unistdio/ulc-asprintf: Likewise.
27865         * modules/unistdio/ulc-fprintf: Likewise.
27866         * modules/unistdio/ulc-snprintf: Likewise.
27867         * modules/unistdio/ulc-sprintf: Likewise.
27868         * modules/unistdio/ulc-vasnprintf: Likewise.
27869         * modules/unistdio/ulc-vasprintf: Likewise.
27870         * modules/unistdio/ulc-vfprintf: Likewise.
27871         * modules/unistdio/ulc-vsnprintf: Likewise.
27872         * modules/unistdio/ulc-vsprintf: Likewise.
27873         * modules/unistr/u8-check: Likewise.
27874         * modules/unistr/u8-chr: Likewise.
27875         * modules/unistr/u8-cmp: Likewise.
27876         * modules/unistr/u8-cmp2: Likewise.
27877         * modules/unistr/u8-cpy: Likewise.
27878         * modules/unistr/u8-cpy-alloc: Likewise.
27879         * modules/unistr/u8-endswith: Likewise.
27880         * modules/unistr/u8-mblen: Likewise.
27881         * modules/unistr/u8-mbsnlen: Likewise.
27882         * modules/unistr/u8-mbtouc: Likewise.
27883         * modules/unistr/u8-mbtouc-unsafe: Likewise.
27884         * modules/unistr/u8-mbtoucr: Likewise.
27885         * modules/unistr/u8-move: Likewise.
27886         * modules/unistr/u8-next: Likewise.
27887         * modules/unistr/u8-prev: Likewise.
27888         * modules/unistr/u8-set: Likewise.
27889         * modules/unistr/u8-startswith: Likewise.
27890         * modules/unistr/u8-stpcpy: Likewise.
27891         * modules/unistr/u8-stpncpy: Likewise.
27892         * modules/unistr/u8-strcat: Likewise.
27893         * modules/unistr/u8-strchr: Likewise.
27894         * modules/unistr/u8-strcmp: Likewise.
27895         * modules/unistr/u8-strcoll: Likewise.
27896         * modules/unistr/u8-strcpy: Likewise.
27897         * modules/unistr/u8-strcspn: Likewise.
27898         * modules/unistr/u8-strdup: Likewise.
27899         * modules/unistr/u8-strlen: Likewise.
27900         * modules/unistr/u8-strmblen: Likewise.
27901         * modules/unistr/u8-strmbtouc: Likewise.
27902         * modules/unistr/u8-strncat: Likewise.
27903         * modules/unistr/u8-strncmp: Likewise.
27904         * modules/unistr/u8-strncpy: Likewise.
27905         * modules/unistr/u8-strnlen: Likewise.
27906         * modules/unistr/u8-strpbrk: Likewise.
27907         * modules/unistr/u8-strrchr: Likewise.
27908         * modules/unistr/u8-strspn: Likewise.
27909         * modules/unistr/u8-strstr: Likewise.
27910         * modules/unistr/u8-strtok: Likewise.
27911         * modules/unistr/u8-to-u16: Likewise.
27912         * modules/unistr/u8-to-u32: Likewise.
27913         * modules/unistr/u8-uctomb: Likewise.
27914         * modules/unistr/u16-check: Likewise.
27915         * modules/unistr/u16-chr: Likewise.
27916         * modules/unistr/u16-cmp: Likewise.
27917         * modules/unistr/u16-cmp2: Likewise.
27918         * modules/unistr/u16-cpy: Likewise.
27919         * modules/unistr/u16-cpy-alloc: Likewise.
27920         * modules/unistr/u16-endswith: Likewise.
27921         * modules/unistr/u16-mblen: Likewise.
27922         * modules/unistr/u16-mbsnlen: Likewise.
27923         * modules/unistr/u16-mbtouc: Likewise.
27924         * modules/unistr/u16-mbtouc-unsafe: Likewise.
27925         * modules/unistr/u16-mbtoucr: Likewise.
27926         * modules/unistr/u16-move: Likewise.
27927         * modules/unistr/u16-next: Likewise.
27928         * modules/unistr/u16-prev: Likewise.
27929         * modules/unistr/u16-set: Likewise.
27930         * modules/unistr/u16-startswith: Likewise.
27931         * modules/unistr/u16-stpcpy: Likewise.
27932         * modules/unistr/u16-stpncpy: Likewise.
27933         * modules/unistr/u16-strcat: Likewise.
27934         * modules/unistr/u16-strchr: Likewise.
27935         * modules/unistr/u16-strcmp: Likewise.
27936         * modules/unistr/u16-strcoll: Likewise.
27937         * modules/unistr/u16-strcpy: Likewise.
27938         * modules/unistr/u16-strcspn: Likewise.
27939         * modules/unistr/u16-strdup: Likewise.
27940         * modules/unistr/u16-strlen: Likewise.
27941         * modules/unistr/u16-strmblen: Likewise.
27942         * modules/unistr/u16-strmbtouc: Likewise.
27943         * modules/unistr/u16-strncat: Likewise.
27944         * modules/unistr/u16-strncmp: Likewise.
27945         * modules/unistr/u16-strncpy: Likewise.
27946         * modules/unistr/u16-strnlen: Likewise.
27947         * modules/unistr/u16-strpbrk: Likewise.
27948         * modules/unistr/u16-strrchr: Likewise.
27949         * modules/unistr/u16-strspn: Likewise.
27950         * modules/unistr/u16-strstr: Likewise.
27951         * modules/unistr/u16-strtok: Likewise.
27952         * modules/unistr/u16-to-u32: Likewise.
27953         * modules/unistr/u16-to-u8: Likewise.
27954         * modules/unistr/u16-uctomb: Likewise.
27955         * modules/unistr/u32-check: Likewise.
27956         * modules/unistr/u32-chr: Likewise.
27957         * modules/unistr/u32-cmp: Likewise.
27958         * modules/unistr/u32-cmp2: Likewise.
27959         * modules/unistr/u32-cpy: Likewise.
27960         * modules/unistr/u32-cpy-alloc: Likewise.
27961         * modules/unistr/u32-endswith: Likewise.
27962         * modules/unistr/u32-mblen: Likewise.
27963         * modules/unistr/u32-mbsnlen: Likewise.
27964         * modules/unistr/u32-mbtouc: Likewise.
27965         * modules/unistr/u32-mbtouc-unsafe: Likewise.
27966         * modules/unistr/u32-mbtoucr: Likewise.
27967         * modules/unistr/u32-move: Likewise.
27968         * modules/unistr/u32-next: Likewise.
27969         * modules/unistr/u32-prev: Likewise.
27970         * modules/unistr/u32-set: Likewise.
27971         * modules/unistr/u32-startswith: Likewise.
27972         * modules/unistr/u32-stpcpy: Likewise.
27973         * modules/unistr/u32-stpncpy: Likewise.
27974         * modules/unistr/u32-strcat: Likewise.
27975         * modules/unistr/u32-strchr: Likewise.
27976         * modules/unistr/u32-strcmp: Likewise.
27977         * modules/unistr/u32-strcoll: Likewise.
27978         * modules/unistr/u32-strcpy: Likewise.
27979         * modules/unistr/u32-strcspn: Likewise.
27980         * modules/unistr/u32-strdup: Likewise.
27981         * modules/unistr/u32-strlen: Likewise.
27982         * modules/unistr/u32-strmblen: Likewise.
27983         * modules/unistr/u32-strmbtouc: Likewise.
27984         * modules/unistr/u32-strncat: Likewise.
27985         * modules/unistr/u32-strncmp: Likewise.
27986         * modules/unistr/u32-strncpy: Likewise.
27987         * modules/unistr/u32-strnlen: Likewise.
27988         * modules/unistr/u32-strpbrk: Likewise.
27989         * modules/unistr/u32-strrchr: Likewise.
27990         * modules/unistr/u32-strspn: Likewise.
27991         * modules/unistr/u32-strstr: Likewise.
27992         * modules/unistr/u32-strtok: Likewise.
27993         * modules/unistr/u32-to-u16: Likewise.
27994         * modules/unistr/u32-to-u8: Likewise.
27995         * modules/unistr/u32-uctomb: Likewise.
27996         * modules/uniwbrk/u8-wordbreaks: Likewise.
27997         * modules/uniwbrk/u16-wordbreaks: Likewise.
27998         * modules/uniwbrk/u32-wordbreaks: Likewise.
27999         * modules/uniwbrk/ulc-wordbreaks: Likewise.
28000         * modules/uniwbrk/wordbreak-property: Likewise.
28001         * modules/uniwidth/u8-strwidth: Likewise.
28002         * modules/uniwidth/u8-width: Likewise.
28003         * modules/uniwidth/u16-strwidth: Likewise.
28004         * modules/uniwidth/u16-width: Likewise.
28005         * modules/uniwidth/u32-strwidth: Likewise.
28006         * modules/uniwidth/u32-width: Likewise.
28007         * modules/uniwidth/width: Likewise.
28008         * modules/unicase/cased-tests (Makefile.am): Link all test programs
28009         with $(LIBUNISTRING).
28010         * modules/unicase/ignorable-tests: Likewise.
28011         * modules/unicase/locale-language-tests: Likewise.
28012         * modules/unicase/tolower-tests: Likewise.
28013         * modules/unicase/totitle-tests: Likewise.
28014         * modules/unicase/toupper-tests: Likewise.
28015         * modules/unicase/u8-casecmp-tests: Likewise.
28016         * modules/unicase/u8-casecoll-tests: Likewise.
28017         * modules/unicase/u8-casefold-tests: Likewise.
28018         * modules/unicase/u8-is-cased-tests: Likewise.
28019         * modules/unicase/u8-is-casefolded-tests: Likewise.
28020         * modules/unicase/u8-is-lowercase-tests: Likewise.
28021         * modules/unicase/u8-is-titlecase-tests: Likewise.
28022         * modules/unicase/u8-is-uppercase-tests: Likewise.
28023         * modules/unicase/u8-tolower-tests: Likewise.
28024         * modules/unicase/u8-totitle-tests: Likewise.
28025         * modules/unicase/u8-toupper-tests: Likewise.
28026         * modules/unicase/u16-casecmp-tests: Likewise.
28027         * modules/unicase/u16-casecoll-tests: Likewise.
28028         * modules/unicase/u16-casefold-tests: Likewise.
28029         * modules/unicase/u16-is-cased-tests: Likewise.
28030         * modules/unicase/u16-is-casefolded-tests: Likewise.
28031         * modules/unicase/u16-is-lowercase-tests: Likewise.
28032         * modules/unicase/u16-is-titlecase-tests: Likewise.
28033         * modules/unicase/u16-is-uppercase-tests: Likewise.
28034         * modules/unicase/u16-tolower-tests: Likewise.
28035         * modules/unicase/u16-totitle-tests: Likewise.
28036         * modules/unicase/u16-toupper-tests: Likewise.
28037         * modules/unicase/u32-casecmp-tests: Likewise.
28038         * modules/unicase/u32-casecoll-tests: Likewise.
28039         * modules/unicase/u32-casefold-tests: Likewise.
28040         * modules/unicase/u32-is-cased-tests: Likewise.
28041         * modules/unicase/u32-is-casefolded-tests: Likewise.
28042         * modules/unicase/u32-is-lowercase-tests: Likewise.
28043         * modules/unicase/u32-is-titlecase-tests: Likewise.
28044         * modules/unicase/u32-is-uppercase-tests: Likewise.
28045         * modules/unicase/u32-tolower-tests: Likewise.
28046         * modules/unicase/u32-totitle-tests: Likewise.
28047         * modules/unicase/u32-toupper-tests: Likewise.
28048         * modules/unicase/ulc-casecmp-tests: Likewise.
28049         * modules/unicase/ulc-casecoll-tests: Likewise.
28050         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
28051         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
28052         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
28053         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
28054         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
28055         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
28056         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
28057         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
28058         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
28059         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
28060         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
28061         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
28062         * modules/unictype/bidicategory-byname-tests: Likewise.
28063         * modules/unictype/bidicategory-name-tests: Likewise.
28064         * modules/unictype/bidicategory-of-tests: Likewise.
28065         * modules/unictype/bidicategory-test-tests: Likewise.
28066         * modules/unictype/block-list-tests: Likewise.
28067         * modules/unictype/block-of-tests: Likewise.
28068         * modules/unictype/block-test-tests: Likewise.
28069         * modules/unictype/category-C-tests: Likewise.
28070         * modules/unictype/category-Cc-tests: Likewise.
28071         * modules/unictype/category-Cf-tests: Likewise.
28072         * modules/unictype/category-Cn-tests: Likewise.
28073         * modules/unictype/category-Co-tests: Likewise.
28074         * modules/unictype/category-Cs-tests: Likewise.
28075         * modules/unictype/category-L-tests: Likewise.
28076         * modules/unictype/category-Ll-tests: Likewise.
28077         * modules/unictype/category-Lm-tests: Likewise.
28078         * modules/unictype/category-Lo-tests: Likewise.
28079         * modules/unictype/category-Lt-tests: Likewise.
28080         * modules/unictype/category-Lu-tests: Likewise.
28081         * modules/unictype/category-M-tests: Likewise.
28082         * modules/unictype/category-Mc-tests: Likewise.
28083         * modules/unictype/category-Me-tests: Likewise.
28084         * modules/unictype/category-Mn-tests: Likewise.
28085         * modules/unictype/category-N-tests: Likewise.
28086         * modules/unictype/category-Nd-tests: Likewise.
28087         * modules/unictype/category-Nl-tests: Likewise.
28088         * modules/unictype/category-No-tests: Likewise.
28089         * modules/unictype/category-P-tests: Likewise.
28090         * modules/unictype/category-Pc-tests: Likewise.
28091         * modules/unictype/category-Pd-tests: Likewise.
28092         * modules/unictype/category-Pe-tests: Likewise.
28093         * modules/unictype/category-Pf-tests: Likewise.
28094         * modules/unictype/category-Pi-tests: Likewise.
28095         * modules/unictype/category-Po-tests: Likewise.
28096         * modules/unictype/category-Ps-tests: Likewise.
28097         * modules/unictype/category-S-tests: Likewise.
28098         * modules/unictype/category-Sc-tests: Likewise.
28099         * modules/unictype/category-Sk-tests: Likewise.
28100         * modules/unictype/category-Sm-tests: Likewise.
28101         * modules/unictype/category-So-tests: Likewise.
28102         * modules/unictype/category-Z-tests: Likewise.
28103         * modules/unictype/category-Zl-tests: Likewise.
28104         * modules/unictype/category-Zp-tests: Likewise.
28105         * modules/unictype/category-Zs-tests: Likewise.
28106         * modules/unictype/category-and-not-tests: Likewise.
28107         * modules/unictype/category-and-tests: Likewise.
28108         * modules/unictype/category-byname-tests: Likewise.
28109         * modules/unictype/category-name-tests: Likewise.
28110         * modules/unictype/category-none-tests: Likewise.
28111         * modules/unictype/category-of-tests: Likewise.
28112         * modules/unictype/category-or-tests: Likewise.
28113         * modules/unictype/category-test-withtable-tests: Likewise.
28114         * modules/unictype/combining-class-tests: Likewise.
28115         * modules/unictype/ctype-alnum-tests: Likewise.
28116         * modules/unictype/ctype-alpha-tests: Likewise.
28117         * modules/unictype/ctype-blank-tests: Likewise.
28118         * modules/unictype/ctype-cntrl-tests: Likewise.
28119         * modules/unictype/ctype-digit-tests: Likewise.
28120         * modules/unictype/ctype-graph-tests: Likewise.
28121         * modules/unictype/ctype-lower-tests: Likewise.
28122         * modules/unictype/ctype-print-tests: Likewise.
28123         * modules/unictype/ctype-punct-tests: Likewise.
28124         * modules/unictype/ctype-space-tests: Likewise.
28125         * modules/unictype/ctype-upper-tests: Likewise.
28126         * modules/unictype/ctype-xdigit-tests: Likewise.
28127         * modules/unictype/decimal-digit-tests: Likewise.
28128         * modules/unictype/digit-tests: Likewise.
28129         * modules/unictype/mirror-tests: Likewise.
28130         * modules/unictype/numeric-tests: Likewise.
28131         * modules/unictype/property-alphabetic-tests: Likewise.
28132         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
28133         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
28134         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
28135         * modules/unictype/property-bidi-block-separator-tests: Likewise.
28136         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
28137         * modules/unictype/property-bidi-common-separator-tests: Likewise.
28138         * modules/unictype/property-bidi-control-tests: Likewise.
28139         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
28140         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
28141         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
28142         * modules/unictype/property-bidi-european-digit-tests: Likewise.
28143         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
28144         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
28145         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
28146         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
28147         * modules/unictype/property-bidi-pdf-tests: Likewise.
28148         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
28149         * modules/unictype/property-bidi-whitespace-tests: Likewise.
28150         * modules/unictype/property-byname-tests: Likewise.
28151         * modules/unictype/property-combining-tests: Likewise.
28152         * modules/unictype/property-composite-tests: Likewise.
28153         * modules/unictype/property-currency-symbol-tests: Likewise.
28154         * modules/unictype/property-dash-tests: Likewise.
28155         * modules/unictype/property-decimal-digit-tests: Likewise.
28156         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
28157         * modules/unictype/property-deprecated-tests: Likewise.
28158         * modules/unictype/property-diacritic-tests: Likewise.
28159         * modules/unictype/property-extender-tests: Likewise.
28160         * modules/unictype/property-format-control-tests: Likewise.
28161         * modules/unictype/property-grapheme-base-tests: Likewise.
28162         * modules/unictype/property-grapheme-extend-tests: Likewise.
28163         * modules/unictype/property-grapheme-link-tests: Likewise.
28164         * modules/unictype/property-hex-digit-tests: Likewise.
28165         * modules/unictype/property-hyphen-tests: Likewise.
28166         * modules/unictype/property-id-continue-tests: Likewise.
28167         * modules/unictype/property-id-start-tests: Likewise.
28168         * modules/unictype/property-ideographic-tests: Likewise.
28169         * modules/unictype/property-ids-binary-operator-tests: Likewise.
28170         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
28171         * modules/unictype/property-ignorable-control-tests: Likewise.
28172         * modules/unictype/property-iso-control-tests: Likewise.
28173         * modules/unictype/property-join-control-tests: Likewise.
28174         * modules/unictype/property-left-of-pair-tests: Likewise.
28175         * modules/unictype/property-line-separator-tests: Likewise.
28176         * modules/unictype/property-logical-order-exception-tests: Likewise.
28177         * modules/unictype/property-lowercase-tests: Likewise.
28178         * modules/unictype/property-math-tests: Likewise.
28179         * modules/unictype/property-non-break-tests: Likewise.
28180         * modules/unictype/property-not-a-character-tests: Likewise.
28181         * modules/unictype/property-numeric-tests: Likewise.
28182         * modules/unictype/property-other-alphabetic-tests: Likewise.
28183         * modules/unictype/property-other-default-ignorable-code-point-tests:
28184         Likewise.
28185         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
28186         * modules/unictype/property-other-id-continue-tests: Likewise.
28187         * modules/unictype/property-other-id-start-tests: Likewise.
28188         * modules/unictype/property-other-lowercase-tests: Likewise.
28189         * modules/unictype/property-other-math-tests: Likewise.
28190         * modules/unictype/property-other-uppercase-tests: Likewise.
28191         * modules/unictype/property-paired-punctuation-tests: Likewise.
28192         * modules/unictype/property-paragraph-separator-tests: Likewise.
28193         * modules/unictype/property-pattern-syntax-tests: Likewise.
28194         * modules/unictype/property-pattern-white-space-tests: Likewise.
28195         * modules/unictype/property-private-use-tests: Likewise.
28196         * modules/unictype/property-punctuation-tests: Likewise.
28197         * modules/unictype/property-quotation-mark-tests: Likewise.
28198         * modules/unictype/property-radical-tests: Likewise.
28199         * modules/unictype/property-sentence-terminal-tests: Likewise.
28200         * modules/unictype/property-soft-dotted-tests: Likewise.
28201         * modules/unictype/property-space-tests: Likewise.
28202         * modules/unictype/property-terminal-punctuation-tests: Likewise.
28203         * modules/unictype/property-test-tests: Likewise.
28204         * modules/unictype/property-titlecase-tests: Likewise.
28205         * modules/unictype/property-unassigned-code-value-tests: Likewise.
28206         * modules/unictype/property-unified-ideograph-tests: Likewise.
28207         * modules/unictype/property-uppercase-tests: Likewise.
28208         * modules/unictype/property-variation-selector-tests: Likewise.
28209         * modules/unictype/property-white-space-tests: Likewise.
28210         * modules/unictype/property-xid-continue-tests: Likewise.
28211         * modules/unictype/property-xid-start-tests: Likewise.
28212         * modules/unictype/property-zero-width-tests: Likewise.
28213         * modules/unictype/scripts-tests: Likewise.
28214         * modules/unictype/syntax-c-ident-tests: Likewise.
28215         * modules/unictype/syntax-c-whitespace-tests: Likewise.
28216         * modules/unictype/syntax-java-ident-tests: Likewise.
28217         * modules/unictype/syntax-java-whitespace-tests: Likewise.
28218         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
28219         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
28220         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
28221         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
28222         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
28223         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
28224         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
28225         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
28226         * modules/uniname/uniname-tests: Likewise.
28227         * modules/uninorm/canonical-decomposition-tests: Likewise.
28228         * modules/uninorm/compat-decomposition-tests: Likewise.
28229         * modules/uninorm/composition-tests: Likewise.
28230         * modules/uninorm/decomposing-form-tests: Likewise.
28231         * modules/uninorm/decomposition-tests: Likewise.
28232         * modules/uninorm/filter-tests: Likewise.
28233         * modules/uninorm/nfc-tests: Likewise.
28234         * modules/uninorm/nfd-tests: Likewise.
28235         * modules/uninorm/nfkc-tests: Likewise.
28236         * modules/uninorm/nfkd-tests: Likewise.
28237         * modules/uninorm/u8-normcmp-tests: Likewise.
28238         * modules/uninorm/u8-normcoll-tests: Likewise.
28239         * modules/uninorm/u16-normcmp-tests: Likewise.
28240         * modules/uninorm/u16-normcoll-tests: Likewise.
28241         * modules/uninorm/u32-normcmp-tests: Likewise.
28242         * modules/uninorm/u32-normcoll-tests: Likewise.
28243         * modules/unistdio/u8-asnprintf-tests: Likewise.
28244         * modules/unistdio/u8-vasnprintf-tests: Likewise.
28245         * modules/unistdio/u8-vasprintf-tests: Likewise.
28246         * modules/unistdio/u8-vsnprintf-tests: Likewise.
28247         * modules/unistdio/u8-vsprintf-tests: Likewise.
28248         * modules/unistdio/u16-asnprintf-tests: Likewise.
28249         * modules/unistdio/u16-vasnprintf-tests: Likewise.
28250         * modules/unistdio/u16-vasprintf-tests: Likewise.
28251         * modules/unistdio/u16-vsnprintf-tests: Likewise.
28252         * modules/unistdio/u16-vsprintf-tests: Likewise.
28253         * modules/unistdio/u32-asnprintf-tests: Likewise.
28254         * modules/unistdio/u32-vasnprintf-tests: Likewise.
28255         * modules/unistdio/u32-vasprintf-tests: Likewise.
28256         * modules/unistdio/u32-vsnprintf-tests: Likewise.
28257         * modules/unistdio/u32-vsprintf-tests: Likewise.
28258         * modules/unistdio/ulc-asnprintf-tests: Likewise.
28259         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
28260         * modules/unistdio/ulc-vasprintf-tests: Likewise.
28261         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
28262         * modules/unistdio/ulc-vsprintf-tests: Likewise.
28263         * modules/unistr/u8-check-tests: Likewise.
28264         * modules/unistr/u8-chr-tests: Likewise.
28265         * modules/unistr/u8-cmp-tests: Likewise.
28266         * modules/unistr/u8-cmp2-tests: Likewise.
28267         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28268         * modules/unistr/u8-cpy-tests: Likewise.
28269         * modules/unistr/u8-mblen-tests: Likewise.
28270         * modules/unistr/u8-mbsnlen-tests: Likewise.
28271         * modules/unistr/u8-mbtouc-tests: Likewise.
28272         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28273         * modules/unistr/u8-mbtoucr-tests: Likewise.
28274         * modules/unistr/u8-move-tests: Likewise.
28275         * modules/unistr/u8-next-tests: Likewise.
28276         * modules/unistr/u8-prev-tests: Likewise.
28277         * modules/unistr/u8-set-tests: Likewise.
28278         * modules/unistr/u8-stpcpy-tests: Likewise.
28279         * modules/unistr/u8-stpncpy-tests: Likewise.
28280         * modules/unistr/u8-strcat-tests: Likewise.
28281         * modules/unistr/u8-strcmp-tests: Likewise.
28282         * modules/unistr/u8-strcoll-tests: Likewise.
28283         * modules/unistr/u8-strcpy-tests: Likewise.
28284         * modules/unistr/u8-strdup-tests: Likewise.
28285         * modules/unistr/u8-strlen-tests: Likewise.
28286         * modules/unistr/u8-strmblen-tests: Likewise.
28287         * modules/unistr/u8-strmbtouc-tests: Likewise.
28288         * modules/unistr/u8-strncat-tests: Likewise.
28289         * modules/unistr/u8-strncmp-tests: Likewise.
28290         * modules/unistr/u8-strncpy-tests: Likewise.
28291         * modules/unistr/u8-strnlen-tests: Likewise.
28292         * modules/unistr/u8-to-u16-tests: Likewise.
28293         * modules/unistr/u8-to-u32-tests: Likewise.
28294         * modules/unistr/u8-uctomb-tests: Likewise.
28295         * modules/unistr/u16-check-tests: Likewise.
28296         * modules/unistr/u16-chr-tests: Likewise.
28297         * modules/unistr/u16-cmp-tests: Likewise.
28298         * modules/unistr/u16-cmp2-tests: Likewise.
28299         * modules/unistr/u16-cpy-alloc-tests: Likewise.
28300         * modules/unistr/u16-cpy-tests: Likewise.
28301         * modules/unistr/u16-mblen-tests: Likewise.
28302         * modules/unistr/u16-mbsnlen-tests: Likewise.
28303         * modules/unistr/u16-mbtouc-tests: Likewise.
28304         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
28305         * modules/unistr/u16-mbtoucr-tests: Likewise.
28306         * modules/unistr/u16-move-tests: Likewise.
28307         * modules/unistr/u16-next-tests: Likewise.
28308         * modules/unistr/u16-prev-tests: Likewise.
28309         * modules/unistr/u16-set-tests: Likewise.
28310         * modules/unistr/u16-stpcpy-tests: Likewise.
28311         * modules/unistr/u16-stpncpy-tests: Likewise.
28312         * modules/unistr/u16-strcat-tests: Likewise.
28313         * modules/unistr/u16-strcmp-tests: Likewise.
28314         * modules/unistr/u16-strcoll-tests: Likewise.
28315         * modules/unistr/u16-strcpy-tests: Likewise.
28316         * modules/unistr/u16-strdup-tests: Likewise.
28317         * modules/unistr/u16-strlen-tests: Likewise.
28318         * modules/unistr/u16-strmblen-tests: Likewise.
28319         * modules/unistr/u16-strmbtouc-tests: Likewise.
28320         * modules/unistr/u16-strncat-tests: Likewise.
28321         * modules/unistr/u16-strncmp-tests: Likewise.
28322         * modules/unistr/u16-strncpy-tests: Likewise.
28323         * modules/unistr/u16-strnlen-tests: Likewise.
28324         * modules/unistr/u16-to-u32-tests: Likewise.
28325         * modules/unistr/u16-to-u8-tests: Likewise.
28326         * modules/unistr/u16-uctomb-tests: Likewise.
28327         * modules/unistr/u32-check-tests: Likewise.
28328         * modules/unistr/u32-chr-tests: Likewise.
28329         * modules/unistr/u32-cmp-tests: Likewise.
28330         * modules/unistr/u32-cmp2-tests: Likewise.
28331         * modules/unistr/u32-cpy-alloc-tests: Likewise.
28332         * modules/unistr/u32-cpy-tests: Likewise.
28333         * modules/unistr/u32-mblen-tests: Likewise.
28334         * modules/unistr/u32-mbsnlen-tests: Likewise.
28335         * modules/unistr/u32-mbtouc-tests: Likewise.
28336         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
28337         * modules/unistr/u32-mbtoucr-tests: Likewise.
28338         * modules/unistr/u32-move-tests: Likewise.
28339         * modules/unistr/u32-next-tests: Likewise.
28340         * modules/unistr/u32-prev-tests: Likewise.
28341         * modules/unistr/u32-set-tests: Likewise.
28342         * modules/unistr/u32-stpcpy-tests: Likewise.
28343         * modules/unistr/u32-stpncpy-tests: Likewise.
28344         * modules/unistr/u32-strcat-tests: Likewise.
28345         * modules/unistr/u32-strcmp-tests: Likewise.
28346         * modules/unistr/u32-strcoll-tests: Likewise.
28347         * modules/unistr/u32-strcpy-tests: Likewise.
28348         * modules/unistr/u32-strdup-tests: Likewise.
28349         * modules/unistr/u32-strlen-tests: Likewise.
28350         * modules/unistr/u32-strmblen-tests: Likewise.
28351         * modules/unistr/u32-strmbtouc-tests: Likewise.
28352         * modules/unistr/u32-strncat-tests: Likewise.
28353         * modules/unistr/u32-strncmp-tests: Likewise.
28354         * modules/unistr/u32-strncpy-tests: Likewise.
28355         * modules/unistr/u32-strnlen-tests: Likewise.
28356         * modules/unistr/u32-to-u16-tests: Likewise.
28357         * modules/unistr/u32-to-u8-tests: Likewise.
28358         * modules/unistr/u32-uctomb-tests: Likewise.
28359         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
28360         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
28361         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
28362         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
28363         * modules/uniwidth/u8-strwidth-tests: Likewise.
28364         * modules/uniwidth/u8-width-tests: Likewise.
28365         * modules/uniwidth/u16-strwidth-tests: Likewise.
28366         * modules/uniwidth/u16-width-tests: Likewise.
28367         * modules/uniwidth/u32-strwidth-tests: Likewise.
28368         * modules/uniwidth/u32-width-tests: Likewise.
28369         * modules/uniwidth/width-tests: Likewise.
28370
28371 2010-05-18  Richard Jones  <rjones@redhat.com>
28372
28373         doc: users.txt: list hivex
28374         * users.txt: Add hivex.
28375
28376 2010-05-18  Richard Jones  <rjones@redhat.com>
28377
28378         doc: users.txt: list febootstrap
28379         * users.txt: Add febootstrap.
28380
28381 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
28382
28383         bootstrap: fix an error when gnulib is not used as a git submodule
28384         * build-aux/bootstrap (gnulib_path): If its length is zero then
28385         assign "gnulib" to it.
28386         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
28387
28388 2010-05-16  Bruno Haible  <bruno@clisp.org>
28389
28390         Avoid autoconf warnings about AM_ICONV.
28391         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
28392         2.64.
28393
28394 2010-05-16  Bruno Haible  <bruno@clisp.org>
28395
28396         absolute-header: Make the macro usable in more situations.
28397         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
28398         from gl_ABSOLUTE_HEADER.
28399         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
28400
28401 2010-05-16  James Youngman  <jay@gnu.org>
28402
28403         doc: update users.txt
28404         * users.txt: Add CSSC.
28405
28406 2010-05-16  Jim Meyering  <meyering@redhat.com>
28407
28408         init.sh: fix an error in the previous change; add more comments
28409         * tests/init.sh: Compare exit code in loop against 9, not 2.
28410         Patch by Bruno Haible.
28411         Make the two tests more similar by adding an empty "then" clause.
28412         Add comments.
28413
28414         init.sh: avoid unnecessary shell re-exec
28415         * tests/init.sh: Improve the re-exec-required check to first test the
28416         current shell.  If it passes the test, do not search for a shell that
28417         does pass, and do not re-exec.  This test is particularly contorted to
28418         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
28419         of $(...) evokes a syntax error and causes immediate shell exit with
28420         status 2.  Bruno Haible reported that the re-exec made it impossible
28421         to single-step through any init.sh-using script.
28422
28423 2010-05-16  Bruno Haible  <bruno@clisp.org>
28424
28425         Fix collision between gnulib's and libintl's printf replacements.
28426         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
28427         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
28428         (printf): When using GNU C, map the __printf__ function to rpl_printf
28429         via __asm__. When not using GNU C, define rpl_printf instead of
28430         __printf__.
28431         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
28432         commit.
28433         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
28434         commit.
28435         * m4/asm-underscore.m4: New file.
28436         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
28437         * modules/stdio (Files): Add m4/asm-underscore.m4.
28438         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
28439         Reported by Ben Pfaff.
28440
28441 2010-05-16  Bruno Haible  <bruno@clisp.org>
28442
28443         verify: Avoid skipping the test on openSUSE 11.0.
28444         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
28445
28446 2010-05-13  Bruno Haible  <bruno@clisp.org>
28447
28448         Avoid useless warnings from G++.
28449         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
28450         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
28451         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28452
28453 2010-05-11  Jim Meyering  <meyering@redhat.com>
28454
28455         maint.mk: tweak preceding change
28456         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
28457         regexps tighter by anchoring at EOL, and make the new group "shy"
28458         for slightly decreased overhead.
28459
28460 2010-05-11  Eric Blake  <eblake@redhat.com>
28461
28462         maint.mk: gnulib doesn't guarantee NSIG
28463         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
28464
28465 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28466
28467         test-pwrite.c: Remove unused variable declaration.
28468         * tests/test-pwrite.c (main): Remove read_buf declaration.
28469
28470         Remove useless test-pwrite.sh file.
28471         * tests/test-pwrite.sh: Delete file.
28472         * modules/pwrite-tests: Remove references.
28473         Reported by Bruno Haible.
28474
28475 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28476
28477         init.sh: fix a typo
28478         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
28479
28480 2010-05-10  Jim Meyering  <meyering@redhat.com>
28481
28482         maint.mk: avoid using a temporary file in the always-defined-macros check
28483         * top/maint.mk (.re-defmac): Remove rule.
28484         (gl_trap_): Remove definition.
28485         (sc_prohibit_always-defined_macros): Rewrite not to create and
28486         depend on a temporary file.  Instead, depend on GNU grep's ability
28487         to read a list of regular expressions from stdin when given "-f -".
28488
28489 2010-05-09  Bruno Haible  <bruno@clisp.org>
28490
28491         Update to GNU gettext 0.18, part 1.
28492         * m4/gettext.m4: Update to GNU gettext 0.18.
28493         * m4/intl.m4: Likewise.
28494         * m4/po.m4: Likewise.
28495         * modules/gettext (Files): Add m4/fcntl-o.m4.
28496         (configure.ac): Require gettext infrastructure from version 0.18.
28497
28498 2010-05-09  Jim Meyering  <meyering@redhat.com>
28499
28500         init.sh: enable MALLOC_PERTURB_
28501         * tests/init.sh: Enable glibc's malloc-perturbing option.
28502
28503         maint.mk: improve sc_cross_check_PATH_usage_in_tests
28504         With my recent change in init.sh from the two-line form:
28505             -#   : ${srcdir=.}
28506             -#   . "$srcdir/init.sh"; path_prepend_ .
28507             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
28508         I noticed that using the one-line form would cause this test
28509         to fail with a false-positive, or to stop working altogether,
28510         depending on whether help-version changed or all the tests did.
28511         * top/maint.mk (_hv_regex): Remove this definition.
28512         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
28513         (_hv_regex_strong): Use a stronger regex to check for conformance.
28514         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
28515         Give a separate diagnostic for lack of conforming use.
28516
28517         maint.mk: prohibit definition of symbols defined by gnulib
28518         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
28519         definition of symbols defined by gnulib.
28520
28521 2010-05-09  Bruno Haible  <bruno@clisp.org>
28522
28523         acl: Avoid test failure on Cygwin-hosted mingw.
28524         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
28525
28526 2010-05-09  Bruno Haible  <bruno@clisp.org>
28527
28528         error: Use system's fcntl function.
28529         * lib/error.c (fcntl): Undefine.
28530
28531 2010-05-09  Jim Meyering  <meyering@redhat.com>
28532
28533         verify: adjust formatting to be more consistent
28534         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
28535         argument-list '('s, and after one comma.
28536
28537 2010-05-09  Bruno Haible  <bruno@clisp.org>
28538
28539         error: More reliable output on mingw.
28540         * lib/error.c: Include <windows.h>.
28541         (is_open): New function.
28542         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
28543         defined.
28544
28545 2010-05-09  Bruno Haible  <bruno@clisp.org>
28546
28547         vasnprintf: Fix syntax errors in libintl build on mingw.
28548         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
28549         pad_ourselves and prec_ourselves after use.
28550
28551 2010-05-08  Bruno Haible  <bruno@clisp.org>
28552
28553         * lib/config.charset: Update comments for Cygwin 1.7.
28554         * lib/localcharset.c: Likewise.
28555
28556 2010-05-07  Jim Meyering  <meyering@redhat.com>
28557
28558         init.sh: improve comments
28559         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
28560         . "${srcdir=.}/init.sh"; path_prepend_ .
28561         Add a note about path_prepend_ and the alternative of using
28562         TESTS_ENVIRONMENT.
28563
28564 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28565
28566         exclude: Unescape hashed patterns in wildcard mode.
28567         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
28568         to the hash list.
28569         * tests/test-exclude8.sh: New test case.
28570         * modules/exclude-tests: Add new test.
28571
28572 2010-05-05  Eric Blake  <eblake@redhat.com>
28573
28574         verify: automate tests
28575         * modules/verify-tests: New module.
28576         * tests/test-verify.sh: New file.
28577         * tests/test-verify.c: Guard each negative test with a unique id.
28578         Also avoid warning about unused left hand of comma expressions.
28579
28580 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28581
28582         Further improvements to verify.h, suggested by Eric Blake.
28583         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
28584         the GL_* versions, to avoid collision with OpenGL.
28585         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
28586         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
28587         than testing merely whether it's defined.
28588
28589         Modify verify.h to pacify gcc -Wredundant_decls.
28590         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
28591         These use the prefix "GL_" since they're likely to be useful elsewhere.
28592         We may need to break them out into a different .h file.
28593         (__COUNTER__): Define to 0 if the compiler doesn't support it.
28594         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
28595         of verify_function__.
28596
28597 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28598
28599         Tests for module pwrite.
28600         * modules/pwrite-tests: New file.
28601         * tests/test-pwrite.sh: New file.
28602         * tests/test-pwrite.c: New file.
28603
28604         New module pwrite.
28605         * lib/unistd.in.h (pwrite): New declaration.
28606         * lib/pwrite.c: New file, from glibc with modifications.
28607         * m4/pwrite.m4: New file.
28608         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
28609         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
28610         REPLACE_PWRITE.
28611         * modules/pwrite: New file.
28612         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
28613         REPLACE_PWRITE.
28614         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
28615         * doc/posix-functions/pwrite.texi: Mention the new module.
28616
28617 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28618
28619         pread: Update documentation.
28620         * doc/posix-functions/pread.texi: Mention the 'pread' module.
28621
28622 2010-05-04  Eric Blake  <eblake@redhat.com>
28623
28624         docs: update cygwin progress
28625         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
28626         this bug.
28627         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
28628         Added in cygwin 1.7.2.
28629         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
28630         Likewise.
28631         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
28632         Likewise.
28633         * doc/glibc-functions/dup3.texi (dup3): Likewise.
28634         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
28635         * doc/glibc-functions/accept4.texi (accept4): Likewise.
28636         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
28637         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
28638         Mention nproc module.
28639         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
28640         bug in cygwin 1.7.5 addition.
28641         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
28642         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
28643         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
28644         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
28645         1.7.5.
28646         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
28647         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
28648         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
28649         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
28650         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
28651         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
28652         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
28653         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
28654         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
28655         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
28656         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
28657         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
28658         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
28659         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
28660         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
28661         Likewise.
28662         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
28663         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
28664         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
28665         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
28666         Likewise.
28667         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
28668         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
28669         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
28670         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
28671         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
28672         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
28673         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
28674         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
28675         Likewise.
28676         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
28677         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
28678         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
28679         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
28680         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
28681         Likewise.
28682         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
28683         Likewise.
28684         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
28685         Likewise.
28686         * doc/glibc-functions/xdrrec_endofrecord.texi
28687         (xdrrec_endofrecord): Likewise.
28688         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
28689         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
28690         Likewise.
28691         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
28692         Likewise.
28693
28694 2010-05-04  Jim Meyering  <meyering@redhat.com>
28695
28696         gendocs.sh: make its "-s FILE" option more useful
28697         * build-aux/gendocs.sh: When honoring the -s FILE option, update
28698         $PACKAGE to reflect the probably-different basename of "FILE".
28699
28700 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28701
28702         bootstrap: don't ignore download_po_files failure
28703         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
28704         failure.
28705
28706 2010-05-03  Jim Meyering  <meyering@redhat.com>
28707
28708         maint.mk: allow to pass options to gendocs.sh
28709         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
28710         (gendocs_options_): New overridable variable.
28711
28712         gnu-web-doc-update: don't ignore configure or build failure
28713         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
28714
28715         announce-gen: backslash-escape '@'s in --help output
28716         * build-aux/announce-gen: Fix syntax errors.
28717
28718         maint.mk, announce-gen: allow project-specific announcement mail headers
28719         * top/maint.mk (translation_project_): Define default.
28720         (announcement_Cc_, announcement_mail_headers_): Likewise.
28721         (announcement): Invoke announce-gen with new --mail-headers option.
28722         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
28723
28724         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
28725         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
28726         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
28727         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
28728         line in the "err2" output file when running "make check" in verbose
28729         mode (i.e., with set -x enabled).
28730
28731 2010-05-03  Bruno Haible  <bruno@clisp.org>
28732
28733         wctob: Fix for weird platforms.
28734         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
28735         argument value.
28736
28737 2010-05-03  Jim Meyering  <meyering@redhat.com>
28738
28739         maint.mk: prohibit unwarranted use of <strings.h>
28740         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
28741         strings.h in a file that does not also use strcasecmp, strncasecmp,
28742         ffs or ffsll.
28743
28744         maint.mk: remove obsolete comments
28745         * top/maint.mk: Remove stale, commented-out rules.
28746
28747 2010-05-02  Bruno Haible  <bruno@clisp.org>
28748
28749         wcwidth: Declare also when it's aliased.
28750         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
28751         macro.
28752
28753 2010-05-02  Bruno Haible  <bruno@clisp.org>
28754
28755         Fix regression from 2010-04-25.
28756         * gnulib-tool (func_modules_transitive_closure): Check the status of
28757         all modules, not only of the tests that are of the form foo-tests where
28758         foo is a module.
28759
28760 2010-05-02  Bruno Haible  <bruno@clisp.org>
28761
28762         wctob: Work around nasty Cygwin 1.7.2 bug.
28763         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
28764         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
28765
28766 2010-05-01  Bruno Haible  <bruno@clisp.org>
28767
28768         fpurge: Sharper test.
28769         * tests/test-fpurge.c (main): Add one more ftell check.
28770         * modules/fpurge-tests (Depends-on): Add ftell.
28771         Suggested by Eric Blake.
28772
28773 2010-05-01  Bruno Haible  <bruno@clisp.org>
28774
28775         ftello: Another test.
28776         * tests/test-ftello3.c: New file.
28777         * modules/ftello-tests (Files): Add it.
28778         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28779         MOSTLYCLEANFILES.
28780
28781         ftell: Another test.
28782         * tests/test-ftell3.c: New file.
28783         * modules/ftell-tests (Files): Add it.
28784         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28785         MOSTLYCLEANFILES.
28786
28787 2010-05-01  Bruno Haible  <bruno@clisp.org>
28788
28789         ftell, ftello: Work around Solaris bug.
28790         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
28791         * lib/ftello.c: Include stdio-impl.h.
28792         (ftello): On Solaris, when _IOWRT is set, compute the result without
28793         looking at _IOREAD.
28794         * modules/ftello (Files): Add lib/stdio-impl.h.
28795         * doc/posix-functions/ftell.texi: Mention Solaris bug.
28796         * doc/posix-functions/ftello.texi: Likewise.
28797         Reported by Eric Blake.
28798
28799 2010-05-01  Bruno Haible  <bruno@clisp.org>
28800
28801         freading: Adapt to special meaning of _IOREAD flag on Solaris.
28802         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
28803         the _IOWRT flag is also set.
28804
28805 2010-05-01  Bruno Haible  <bruno@clisp.org>
28806
28807         Fix doc about a HP-UX stdio bug.
28808         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
28809         * doc/posix-functions/ftello.texi: Likewise.
28810
28811 2010-05-01  Bruno Haible  <bruno@clisp.org>
28812
28813         lseek test: Fix failure on Solaris.
28814         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
28815         output.
28816
28817 2010-04-30  Jim Meyering  <meyering@redhat.com>
28818
28819         bootstrap: don't ignore failure to generate po*/Makevars
28820         * build-aux/bootstrap (with_gettext): Don't ignore failure
28821         to create po/Makevars or runtime-po/Makevars.
28822
28823 2010-04-29  Eric Blake  <eblake@redhat.com>
28824
28825         headers: relax license to LGPLv2+
28826         * modules/fcntl-h (License): Relax license.
28827         * modules/getopt-posix (License): Likewise.
28828         * modules/locale (License): Likewise.
28829         * modules/math (License): Likewise.
28830         * modules/pty (License): Likewise.
28831         * modules/sched (License): Likewise.
28832         * modules/search (License): Likewise.
28833         * modules/spawn (License): Likewise.
28834         * modules/stdarg (License): Likewise.
28835         * modules/sysexits (License): Likewise.
28836
28837 2010-04-29  Jim Meyering  <meyering@redhat.com>
28838
28839         inttypes: relax license to LGPLv2+
28840         * modules/inttypes (License): Relax license.
28841
28842 2010-04-29  Simon Josefsson  <simon@josefsson.org>
28843
28844         * top/maint.mk (indent): Run twice to produce idempotent results.
28845
28846 2010-04-28  Bruno Haible  <bruno@clisp.org>
28847
28848         getdate: Generate getdate.c in the source directory.
28849         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
28850         MOSTLYCLEANFILES.
28851         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
28852
28853 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
28854
28855         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
28856         is not declared as a const *; avoid warnings in that case.
28857
28858 2010-04-28  Eric Blake  <eblake@redhat.com>
28859
28860         canonicalize-lgpl: avoid compiler warning
28861         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
28862         declaration' / 'extraneous semicolon' warning with some compilers.
28863         Reported by Andreas Gruenbacher.
28864
28865 2010-04-28  Jim Meyering  <meyering@redhat.com>
28866
28867         init.sh: ensure a more reliable exit status when exiting via trap
28868         * tests/init.sh (setup_): Don't rely on $? in signal handler.
28869         Inspired by patches from Dmitry V. Levin.
28870         Also trap on signal 3 (SIGQUIT).
28871
28872 2010-04-27  Bruno Haible  <bruno@clisp.org>
28873
28874         Update doc about utimes().
28875         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
28876         'utimens' module.
28877         Reported by Andreas Gruenbacher <agruen@suse.de>.
28878
28879 2010-04-27  Eric Blake  <eblake@redhat.com>
28880
28881         full-read, full-write: relax license
28882         * modules/full-read (License): Drop to LGPLv2+.
28883         * modules/full-write (License): Likewise.
28884         * modules/safe-read (License): Likewise.
28885         * modules/safe-write (License): Likewise.
28886
28887         pthread: mention library for linking
28888         * modules/pthread (Link): Mention $(LIB_PTHREAD).
28889
28890 2010-04-27  Jim Meyering  <meyering@redhat.com>
28891
28892         maint.mk: fix a bug introduced in last change
28893         * top/maint.mk (gl_assured_headers_): Now that all names are on
28894         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
28895         is not anchored to end of word, it should be adequate.
28896
28897         maint.mk: avoid side-effect in latest syntax-check
28898         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
28899         to run commands via $(shell...), and hence to incur cost only when
28900         the new rule is actually run.
28901
28902         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
28903         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
28904         and use that to create a regexp used to detect all #if HAVE_..._H uses.
28905         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
28906         (gl_assured_headers_, az_, AZ_): Define.
28907         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
28908
28909 2010-04-26  Jim Meyering  <jim@meyering.net>
28910             Bruno Haible  <bruno@clisp.org>
28911
28912         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
28913         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
28914         Prompted by an exchange with Gilles Espinasse.
28915
28916 2010-04-26  Jim Meyering  <meyering@redhat.com>
28917
28918         git-version-gen: aesthetic tweak
28919         * build-aux/git-version-gen: Use "$nl" rather than a literal,
28920         so that the command remains on a single line.
28921
28922 2010-04-26  Eric Blake  <eblake@redhat.com>
28923
28924         git-version-gen: allow use on EBCDIC hosts
28925         * build-aux/git-version-gen (dirty): Use literal rather than tying
28926         ourselves to ascii.
28927         Reported by Steve Goetze.
28928
28929 2010-04-25  Bruno Haible  <bruno@clisp.org>
28930
28931         netdb: Add support for GNULIB_POSIXCHECK.
28932         * lib/netdb.in.h: Include warn-on-use.h.
28933         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
28934         functions are used when GNULIB_POSIXCHECK is defined and the
28935         getaddrinfo module is not in use.
28936         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
28937         freeaddrinfo, gai_strerror, getnameinfo are declared.
28938         * modules/netdb (Depends-on): Add warn-on-use.
28939         (Makefile.am): Include warn-on-use.h in netdb.h.
28940
28941 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
28942
28943         build: avoid "make check" failure without .git/ directory
28944         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
28945         there is no .git/ directory.
28946
28947 2010-04-25  Bruno Haible  <bruno@clisp.org>
28948
28949         ptsname: Fix misuse of ttyname_r.
28950         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
28951         of errno.
28952
28953 2010-04-25  Bruno Haible  <bruno@clisp.org>
28954
28955         ttyname_r: Make it work on Solaris 10.
28956         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
28957         if the system function has the POSIX declaration. Test whether the
28958         function fails if the buffer is less than 128 bytes large.
28959         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
28960         system's ttyname_r function. Provide a reasonably large buffer.
28961         * modules/ttyname_r (Depends-on): Add extensions.
28962         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
28963
28964 2010-04-25  Bruno Haible  <bruno@clisp.org>
28965
28966         Use the 'extensions' module for some more functions on Solaris.
28967         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
28968         module.
28969         * doc/posix-functions/ctime_r.texi: Likewise.
28970         * doc/posix-functions/getgrgid_r.texi: Likewise.
28971         * doc/posix-functions/getgrnam_r.texi: Likewise.
28972         * doc/posix-functions/getpwnam_r.texi: Likewise.
28973         * doc/posix-functions/getpwuid_r.texi: Likewise.
28974         * doc/posix-functions/readdir_r.texi: Likewise.
28975         * doc/posix-functions/sigwait.texi: Likewise.
28976         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
28977         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
28978
28979 2010-04-25  Bruno Haible  <bruno@clisp.org>
28980
28981         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
28982         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
28983         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
28984         * lib/ttyname_r.c: Include <limits.h>.
28985         (ttyname_r): Define using the system's ttyname_r function, if it exists
28986         and not on Solaris.
28987         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
28988         set.
28989         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
28990         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
28991         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
28992         Reported by Simon Josefsson.
28993
28994 2010-04-25  Bruno Haible  <bruno@clisp.org>
28995
28996         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
28997         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
28998         * doc/posix-functions/ctime_r.texi: Likewise.
28999         * doc/posix-functions/getgrgid_r.texi: Likewise.
29000         * doc/posix-functions/getgrnam_r.texi: Likewise.
29001         * doc/posix-functions/getlogin_r.texi: Likewise.
29002         * doc/posix-functions/getpwnam_r.texi: Likewise.
29003         * doc/posix-functions/getpwuid_r.texi: Likewise.
29004         * doc/posix-functions/readdir_r.texi: Likewise.
29005         * doc/posix-functions/sigwait.texi: Likewise.
29006         * doc/posix-functions/ttyname_r.texi: Likewise.
29007         Reported by Simon Josefsson.
29008
29009 2010-04-25  Bruno Haible  <bruno@clisp.org>
29010
29011         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
29012         * gnulib-tool (func_usage): Document that --with-*-tests options apply
29013         also to --create-testdir.
29014         (func_acceptable): Don't consider the status of *-tests modules here.
29015         (func_modules_transitive_closure): Consider it here, before including a
29016         test module.
29017         (func_import, func_create_testdir): Set inc_all_direct_tests,
29018         inc_all_indirect_tests.
29019         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
29020         --create-testdir and --create-megatestdir.
29021
29022 2010-04-25  Bruno Haible  <bruno@clisp.org>
29023
29024         gnulib-tool: Add --without-*-tests options.
29025         * gnulib-tool (func_usage): Document the --without-*-tests options.
29026         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
29027         excl_unportable_tests): New variables.
29028         Fail if they are specified with --import or --update.
29029         (func_acceptable): Respect the excl_*_tests variables.
29030         (func_import): Set the excl_*_tests variables to empty.
29031
29032 2010-04-25  Simon Josefsson  <simon@josefsson.org>
29033             Bruno Haible  <bruno@clisp.org>
29034
29035         Work around a MacOS X 10.4 bug with openpty.
29036         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
29037         * tests/test-openpty.c (main): Close the master side explicitly.
29038
29039 2010-04-25  Bruno Haible  <bruno@clisp.org>
29040
29041         strnlen: Fix a C++ test error on MacOS X and Solaris.
29042         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
29043         the function is not declared.
29044         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
29045         Simon Josefsson.
29046
29047 2010-04-24  Bruno Haible  <bruno@clisp.org>
29048
29049         Avoid a gcc warning.
29050         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
29051         of correct type for %08lx directive.
29052         Reported by Eric Blake.
29053
29054 2010-04-24  Bruno Haible  <bruno@clisp.org>
29055
29056         vasnprintf: Correct errno value in case of out-of-memory.
29057         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
29058         or sprintf. Use the errno value from SNPRINTF or sprintf.
29059         Reported by Ian Beckwith <ianb@erislabs.net>.
29060
29061 2010-04-24  Bruno Haible  <bruno@clisp.org>
29062
29063         ansi-c++-opt: Find correct compiler when cross-compiling.
29064         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
29065         AC_CHECK_PROGS.
29066         Reported by Simon Josefsson.
29067
29068 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
29069
29070         vc-list-files: Add support for subversion
29071         * build-aux/vc-list-files: Use "svn list" to generate the list of
29072         files controlled by subversion.
29073
29074 2010-04-23  Jim Meyering  <meyering@redhat.com>
29075
29076         vc-list-files tests: convert to use init.sh
29077         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
29078         path_prepend_.
29079         Use Exit, not exit.
29080         Use skip_ rather than open coding it.
29081         Remove trap set-up and compare definitions.
29082         * tests/test-vc-list-files-git.sh: Likewise.
29083         * modules/vc-list-files-tests (Files): Add tests/init.sh.
29084
29085 2010-04-22  Simon Josefsson  <simon@josefsson.org>
29086
29087         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
29088         backup files.
29089
29090 2010-04-21  Simon Josefsson  <simon@josefsson.org>
29091
29092         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
29093
29094 2010-04-20  Eric Blake  <eblake@redhat.com>
29095
29096         tests: be robust to ignored SIGPIPE
29097         * tests/test-select-in.sh: Consume all output.
29098         * tests/test-lseek.sh: Check correct exit status, while avoiding
29099         EPIPE.
29100
29101 2010-04-20  Simon Josefsson  <simon@josefsson.org>
29102             Bruno Haible  <bruno@clisp.org>
29103
29104         visibility: Don't use -fvisibility if it leads to a warning.
29105         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
29106         yes, don't pretend that visibility works if it leads to a warning.
29107         Reported by Mike Gran <spk121@yahoo.com>.
29108
29109 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
29110
29111         * build-aux/bootstrap: Use "git -h" for testing for supported options
29112         instead of "git --help".  The short-form option only shows a summary,
29113         and doesn't layout the full man page.  Grep for the full option name
29114         in the summary, too.
29115
29116 2010-04-19  Bruno Haible  <bruno@clisp.org>
29117
29118         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
29119         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
29120         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
29121         mention of RELOCATABLE_STRIP.
29122         Reported by Sylvain Beucler <beuc@beuc.net>.
29123
29124 2010-04-19  Bruno Haible  <bruno@clisp.org>
29125
29126         * lib/diffseq.h: Fix typo in comment.
29127         Reported by Eric Blake.
29128
29129 2010-04-19  Bruno Haible  <bruno@clisp.org>
29130
29131         ioctl: Move autoconf macro to a .m4 file.
29132         * m4/ioctl.m4: New file, extracted from modules/ioctl.
29133         * modules/ioctl (Files): Add it.
29134         (configure.ac): Simply invoke gl_FUNC_IOCTL.
29135         Reported by Ian Beckwith <ianb@erislabs.net>.
29136
29137 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
29138             Bruno Haible  <bruno@clisp.org>
29139
29140         diffseq: Accommodate use-case with abstract arrays.
29141         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
29142         is not defined.
29143         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
29144         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
29145
29146 2010-04-18  Bruno Haible  <bruno@clisp.org>
29147
29148         * doc/posix-headers/stdbool.texi: More precise wording.
29149
29150 2010-04-17  Jim Meyering  <meyering@redhat.com>
29151
29152         maint.mk: use gnu-style indentation in an embedded perl script
29153         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
29154         Rename variable: s/two/last_two_bytes/
29155
29156 2010-04-16  Eric Blake  <eblake@redhat.com>
29157
29158         test-stdbool: skip test that fails with Solaris CC
29159         * tests/test-stdbool.c (f): Skip test that causes compilation
29160         error under buggy C++ compiler.
29161         * lib/stdbool.in.h: Document the limitation.
29162         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
29163
29164         setenv: allow compilation with C++
29165         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
29166         register keyword.
29167
29168         stdint: allow test to pass with C++
29169         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
29170
29171         getopt: allow compilation with C++
29172         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
29173         struct.
29174         * lib/getopt.c (_getopt_internal_r): Use correct type.
29175         Reported by Dagobert Michelson, via Joel E. Denny.
29176
29177 2010-04-16  Bruno Haible  <bruno@clisp.org>
29178
29179         Override netdb.h always.
29180         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
29181         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
29182         Reported by Ludovic Courtès <ludo@gnu.org>.
29183
29184 2010-04-15  Bruno Haible  <bruno@clisp.org>
29185
29186         openpty: Fix mistake from 2010-03-21.
29187         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
29188         Reported by Simon Josefsson.
29189
29190 2010-04-15  Eric Blake  <eblake@redhat.com>
29191
29192         test-forkpty: fix expected signature
29193         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
29194         Reported by Simon Josefsson.
29195
29196 2010-04-15  Jim Meyering  <meyering@redhat.com>
29197
29198         maint.mk: texinfo_suffix_re_: correct the default regexp
29199         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
29200
29201         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
29202         make it configurable via texinfo_suffix_re_.
29203
29204 2010-04-14  Eric Blake  <eblake@redhat.com>
29205
29206         strtok_r: relax license to LGPLv2+
29207         * modules/strtok_r (License): Relax license.
29208         Reported by Matthias Bolte.
29209
29210 2010-04-14  Simon Josefsson  <simon@josefsson.org>
29211
29212         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
29213         version 1.4.4 by default instead of requiring the libgcrypt
29214         version used during build.  This makes it possible to use the
29215         application with older but still binary compatible libgcrypt
29216         versions.
29217
29218 2010-04-13  Eric Blake  <eblake@redhat.com>
29219
29220         getopt-gnu: match recent glibc fixes and posix ruling
29221         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
29222         '+' handling, when requesting extensions.
29223         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
29224         'W;' handling.
29225         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
29226         * doc/posix-functions/getopt.texi (getopt): Document this.
29227         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29228         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29229         Likewise.
29230
29231         getopt: merge bug fixes from glibc
29232         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
29233         diagnostics.  Honor '+:' correctly.  Reject ';'.
29234
29235         getopt-posix: detect MacOS bug
29236         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
29237         optind when missing a required argument.
29238         * doc/posix-functions/getopt.texi (getopt): Document the bug.
29239         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
29240         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29241         Likewise.
29242
29243         getopt-posix: avoid spurious failure on Solaris
29244         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
29245         an indicator that setting optind=1 is sufficient for reset.
29246
29247         getopt-posix: avoid spurious failure on FreeBSD
29248         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
29249         in POSIX mode, since the m4 test uses it.
29250
29251         gnulib-tool: silence warning on BSD sh
29252         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
29253
29254 2010-04-13  Jim Meyering  <meyering@redhat.com>
29255
29256         doc: users.txt: GNU patch now uses gnulib
29257         * users.txt: Add patch.
29258
29259 2010-04-12  Jim Meyering  <meyering@redhat.com>
29260
29261         maint.mk: generate more concise timing data for syntax-check rules
29262         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
29263         " done" from each line that reports a syntax-check test duration.
29264
29265 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29266
29267         git-version-gen: use "git update-index..." rather than "git status"
29268         * build-aux/git-version-gen: Use git update-index --refresh, not
29269         "git status".  With some versions of git, "git status" would fail
29270         to update the index and result in an unwarranted "-dirty" suffix.
29271
29272 2010-04-11  Jim Meyering  <meyering@redhat.com>
29273
29274         openat: correct formatting (no semantic change)
29275         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29276         Suggested by Bruno Haible.
29277
29278 2010-04-11  Bruno Haible  <bruno@clisp.org>
29279
29280         Stricter declaration checking in testdirs.
29281         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29282         If for_tests is true, augment AM_CPPFLAGS to define
29283         GNULIB_STRICT_CHECKING.
29284         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
29285         GNULIB_STRICT_CHECKING is defined, verify that the function is
29286         declared.
29287
29288 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
29289             Bruno Haible  <bruno@clisp.org>
29290
29291         libunistring: Improve configure output.
29292         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
29293         Don't say "consider installing GNU libunistring" when checking again
29294         with libiconv.
29295
29296 2010-04-11  Bruno Haible  <bruno@clisp.org>
29297
29298         libunistring: Correct value of $LTLIBUNISTRING.
29299         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
29300         correct the value of $LTLIBUNISTRING.
29301
29302 2010-04-11  Bruno Haible  <bruno@clisp.org>
29303
29304         havelib: Add static libraries to LIBS in the right order.
29305         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29306         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
29307
29308 2010-04-11  Bruno Haible  <bruno@clisp.org>
29309
29310         libunistring: Detect libunistring also when it depends on libiconv.
29311         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
29312         the second AC_LIB_HAVE_LINKFLAGS invocation.
29313
29314 2010-04-11  James Youngman  <jay@gnu.org>
29315
29316         close-stream: declare local scalars to be "const"
29317         * lib/close-stream.c (close_stream): Make boolean variables const
29318         to document the fact that we set but do not change them.
29319
29320 2010-04-11  Bruno Haible  <bruno@clisp.org>
29321
29322         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
29323
29324 2010-04-11  Jim Meyering  <meyering@redhat.com>
29325
29326         maint.mk: don't include dist-check.mk
29327         * top/maint.mk: Remove bogus include directive.
29328
29329         maint.mk: improve empty-line-at-EOF check
29330         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
29331         solution, rather than tail+Perl-based one.  The latter would read
29332         a few kilobytes from the end of each file, and did not handle empty
29333         files properly.
29334
29335         maint.mk: print the elapsed time for each syntax-check rule
29336         * top/maint.mk (sc_m_rules_): Save start time in a file.
29337         (sc_z_rules_): New rules: remove temp file and print elapsed time.
29338         (local-check): Interpose the .z rules
29339
29340 2010-04-11  Jim Meyering  <meyering@redhat.com>
29341
29342         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
29343         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
29344         empty file with one that ends in an empty line.
29345
29346 2010-04-10  Bruno Haible  <bruno@clisp.org>
29347
29348         mkdir: Make it work on mingw64.
29349         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
29350         * lib/mkdir.c: Update comment.
29351         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
29352
29353 2010-04-10  Bruno Haible  <bruno@clisp.org>
29354
29355         Don't override improved macro from newer autoconf.
29356         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
29357         autoconf >= 2.62.
29358         Reported by Joel E. Denny <jdenny@clemson.edu>.
29359
29360 2010-04-10  Jim Meyering  <meyering@redhat.com>
29361
29362         maint.mk: new syntax-check rule: prohibit empty lines at end of file
29363         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
29364
29365         maint.mk: correct a diagnostic
29366         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
29367         in diagnostic; now use $prohibit.
29368
29369 2010-04-10  Bruno Haible  <address@hidden>
29370
29371         fchownat: Fix a C++ test error on Solaris 8.
29372         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
29373         the function does not exist.
29374
29375 2010-04-10  Bruno Haible  <bruno@clisp.org>
29376
29377         vasnprintf: Add more tests.
29378         * tests/test-vasnprintf-posix.c: Include <errno.h>.
29379         (test_function): Test converting an invalid wide string.
29380
29381         vasnprintf: Correct handling of unconvertible wide string arguments.
29382         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
29383         VASNPRINTF.
29384         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
29385         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
29386         smaller than the expected maximum need for the directive. Set errno to
29387         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
29388         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
29389         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
29390         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
29391         * modules/vasnprintf (Files): Add m4/printf.m4.
29392         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29393
29394 2010-04-10  Bruno Haible  <bruno@clisp.org>
29395
29396         vasnprintf: Fix crash in %ls directive.
29397         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
29398         string is passed as argument to %ls, with no precision and no width.
29399         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29400
29401 2010-04-10  Bruno Haible  <bruno@clisp.org>
29402
29403         vasnprintf: Fix multiple test failures on mingw.
29404         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
29405         _snprintf, or snwprintf, not _snwprintf.
29406
29407 2010-04-10  Bruno Haible  <bruno@clisp.org>
29408
29409         write: Fix a C++ test error on mingw.
29410         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
29411
29412 2010-04-10  Bruno Haible  <bruno@clisp.org>
29413
29414         vasnprintf test: Reduce code duplication.
29415         * tests/test-vasnprintf.c (test_function): New function, extracted from
29416         test_vasnprintf.
29417         (test_vasnprintf, test_asnprintf): Invoke it.
29418
29419 2010-04-10  Bruno Haible  <bruno@clisp.org>
29420
29421         strnlen: Fix warning in C++ mode on MacOS X.
29422         * lib/string.in.h (strnlen): Use the modern idiom.
29423         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
29424         defining strnlen as a macro already in <config.h>.
29425         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29426         REPLACE_STRNLEN.
29427         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
29428         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29429
29430 2010-04-08  James Youngman  <jay@gnu.org>
29431
29432         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
29433         the example.
29434
29435 2010-04-09  Jim Meyering  <meyering@redhat.com>
29436
29437         maint.mk: print better diagnostic when there is no $(_hv_file)
29438         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
29439         announce that when $(_hv_file) (aka help-version) does not exist.
29440
29441         init.sh: run tr in the "C" locale to avoid multibyte interpretation
29442         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
29443         not try to interpret its random input bytes.  Jarno Rajahalme reported
29444         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
29445         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
29446         (mktempd_): Likewise, just in case.
29447
29448         ftruncate: add two years to projected module removal date: 2012
29449         * m4/ftruncate.m4: Adjust comments.
29450
29451         ftruncate: mark module as obsolete; even MinGW provides it, now
29452         * modules/ftruncate (Status): Obsolete.
29453         (Notice): Say that.
29454         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
29455         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
29456
29457 2010-04-08  Bruno Haible  <bruno@clisp.org>
29458
29459         Fix side effects from tests-related modules.
29460         * modules/dprintf-posix (Comment): New section.
29461         * modules/fprintf-posix (Comment): Likewise.
29462         * modules/obstack-printf-posix (Comment): Likewise.
29463         * modules/printf-posix (Comment): Likewise.
29464         * modules/snprintf-posix (Comment): Likewise.
29465         * modules/sprintf-posix (Comment): Likewise.
29466         * modules/vasnprintf-posix (Comment): Likewise.
29467         * modules/vasprintf-posix (Comment): Likewise.
29468         * modules/vdprintf-posix (Comment): Likewise.
29469         * modules/vfprintf-posix (Comment): Likewise.
29470         * modules/vprintf-posix (Comment): Likewise.
29471         * modules/vsnprintf-posix (Comment): Likewise.
29472         * modules/vsprintf-posix (Comment): Likewise.
29473         * modules/xprintf-posix (Comment): Likewise.
29474         * modules/xvasprintf-posix (Comment): Likewise.
29475         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
29476         * modules/floorf-tests (Depends-on): Likewise.
29477         * modules/round-tests (Depends-on): Likewise.
29478         * modules/roundf-tests (Depends-on): Likewise.
29479         * modules/trunc-tests (Depends-on): Likewise.
29480         * modules/truncf-tests (Depends-on): Likewise.
29481         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
29482         'fprintf-posix' module is not present.
29483         * tests/test-floorf2.c (check): Likewise.
29484         * tests/test-trunc2.c (check): Likewise.
29485         * tests/test-truncf2.c (check): Likewise.
29486         * tests/test-round2.c (equal): Likewise.
29487         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29488
29489 2010-04-07  Karl Berry  <karl@gnu.org>
29490
29491         * config/srclist.txt,
29492         * config/srclistvars.sh,
29493         * config/srclist-update: doc fixes.
29494
29495 2010-04-07  Jim Meyering  <meyering@redhat.com>
29496
29497         maint.mk: add a PATH crosschecking syntax-check rule
29498         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
29499         Useful if you use a test like the one in help-version (coreutils,
29500         diffutils, grep, gzip) that ensures $(VERSION) matches what is
29501         printed by prog --version.
29502
29503 2010-04-06  Bruno Haible  <bruno@clisp.org>
29504
29505         Fix link error on mingw.
29506         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
29507         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
29508
29509 2010-04-06  Bruno Haible  <bruno@clisp.org>
29510
29511         Assume rmdir exists.
29512         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
29513
29514 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
29515
29516         doc: update users.txt
29517         * users.txt: Add gcal.
29518
29519 2010-04-06  Jim Meyering  <meyering@redhat.com>
29520
29521         init.sh: simply unset TMPDIR rather than risking env -i
29522         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
29523         although it probably works fine on all Unix-based systems, some
29524         systems (Cygwin?) cannot tolerate a totally cleared environment.
29525         Suggestion from Eric Blake.
29526
29527 2010-04-06  Jim Meyering  <meyering@redhat.com>
29528
29529         init.sh: portability fix: use env's POSIX-specified -i option not -u
29530         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
29531         than unportable env -u.  Solaris 5.11's env lacks support for -u.
29532
29533 2010-04-05  Bruno Haible  <bruno@clisp.org>
29534
29535         btowc: Work around Cygwin 1.7.2 bug.
29536         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
29537         does not map NUL to 0.
29538         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
29539
29540 2010-04-05  Bruno Haible  <bruno@clisp.org>
29541
29542         Make the multithread modules work on Cygwin 1.7.2.
29543         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
29544         imported symbols can be declared weak, so that it returns "no" on
29545         Cygwin 1.7.2.
29546
29547 2010-04-05  Bruno Haible  <bruno@clisp.org>
29548
29549         Use the module 'strncat'.
29550         * modules/unistr/u8-strncat (Depends-on): Add strncat.
29551
29552         Tests for module 'strncat'.
29553         * modules/strncat-tests: New file.
29554         * tests/test-strncat.c: New file.
29555
29556         New module 'strncat'.
29557         * lib/string.in.h (strncat): New declaration.
29558         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
29559         * m4/strncat.m4: New file, based on m4/memchr.m4.
29560         * modules/strncat: New file.
29561         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
29562         is declared.
29563         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
29564         REPLACE_STRNCAT.
29565         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
29566         REPLACE_STRNCAT.
29567         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
29568         module.
29569         * tests/test-string-c++.cc: Check signature of strncat.
29570
29571 2010-04-05  Jim Meyering  <meyering@redhat.com>
29572
29573         xstrtoumax-tests: convert to use init.sh
29574         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
29575         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29576         Use Exit, not exit.
29577         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29578
29579         xstrtoimax-tests: convert to use init.sh
29580         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
29581         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29582         Use Exit, not exit.
29583         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29584
29585 2010-04-05  Bruno Haible  <bruno@clisp.org>
29586
29587         sys_socket: Avoid #define replacements in C++ mode.
29588         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
29589         warning to the function if possible, rather than #defining the symbol
29590         to a dysfunctional alias.
29591
29592 2010-04-05  Bruno Haible  <bruno@clisp.org>
29593
29594         fseeko: Fix C++ test error on mingw.
29595         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
29596         gl_FUNC_FSEEKO.
29597         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
29598         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
29599         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
29600         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
29601
29602 2010-04-05  Bruno Haible  <bruno@clisp.org>
29603
29604         duplocale: Improve test output.
29605         * tests/test-duplocale.c (main): Print reason for skipped test.
29606
29607 2010-04-05  Bruno Haible  <bruno@clisp.org>
29608
29609         Assume rmdir exists.
29610         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
29611         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
29612
29613 2010-04-05  Bruno Haible  <bruno@clisp.org>
29614
29615         Fix link error on Solaris 8 with cc.
29616         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
29617
29618 2010-04-05  Bruno Haible  <bruno@clisp.org>
29619
29620         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29621         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
29622
29623 2010-04-05  Bruno Haible  <bruno@clisp.org>
29624
29625         vasprintf: Update documentation.
29626         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
29627
29628 2010-04-05  Bruno Haible  <bruno@clisp.org>
29629
29630         ptsname: Improve test.
29631         * tests/test-ptsname.c (main): Also try the various master names of BSD
29632         systems.
29633
29634 2010-04-05  Bruno Haible  <bruno@clisp.org>
29635
29636         memchr: Avoid a possible C++ test error.
29637         * lib/string.in.h (memchr): Provide declaration if function is missing.
29638         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
29639         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
29640         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
29641         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
29642
29643 2010-04-05  Bruno Haible  <bruno@clisp.org>
29644
29645         strtok_r: Improve idiom.
29646         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
29647         AC_LIBOBJ is used.
29648
29649 2010-04-05  Bruno Haible  <bruno@clisp.org>
29650
29651         strdup: Improve idiom.
29652         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
29653         AC_LIBOBJ is used.
29654         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
29655         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
29656         when AC_LIBOBJ is used.
29657
29658 2010-04-05  Bruno Haible  <bruno@clisp.org>
29659
29660         mbsinit, mbrtowc, wcrtomb: Improve idioms.
29661         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
29662         don't set REPLACE_MBSINIT to 1.
29663         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
29664         don't set REPLACE_MBRTOWC to 1.
29665         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
29666         exist, don't set REPLACE_MBSRTOWCS to 1.
29667         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
29668         exist, don't set REPLACE_MBSNRTOWCS to 1.
29669         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
29670         don't set REPLACE_WCRTOMB to 1.
29671         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
29672         exist, don't set REPLACE_WCSRTOMBS to 1.
29673         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
29674         exist, don't set REPLACE_WCSNRTOMBS to 1.
29675
29676 2010-04-05  Bruno Haible  <bruno@clisp.org>
29677
29678         ldexpl: Improve idiom.
29679         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
29680         make sure to set HAVE_DECL_LDEXPL to 0.
29681
29682 2010-04-05  Jim Meyering  <meyering@redhat.com>
29683
29684         xstrtol-tests: convert to use init.sh
29685         * modules/xstrtol-tests (Files): Add tests/init.sh.
29686         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29687         Use Exit, not exit.
29688         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29689
29690         atexit-tests: convert to use init.sh
29691         * modules/atexit-tests (Files): Add tests/init.sh.
29692         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29693         Use Exit, not exit.
29694         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29695
29696         init.sh: fix typo
29697         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
29698
29699         init.sh: make it easier for a test script to write to the tty, ...
29700         when using automake's parallel-tests mode.
29701         * tests/init.sh (stderr_fileno_): Define overridable variable.
29702         (warn_): New function, to use it.
29703         (fail_, skip_, framework_failure_): Use warn_.
29704
29705 2010-04-04  Bruno Haible  <bruno@clisp.org>
29706
29707         btowc: Avoid warning.
29708         * lib/btowc.c: Include <stdlib.h>.
29709         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
29710
29711 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29712             Bruno Haible  <bruno@clisp.org>
29713
29714         wchar: Port to NetBSD 1.5.
29715         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
29716         * lib/wctype.in.h (WEOF): Likewise.
29717
29718 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29719             Bruno Haible  <bruno@clisp.org>
29720
29721         Port extended stdio to NetBSD 1.5.
29722         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
29723         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
29724         older.
29725
29726 2010-04-04  Bruno Haible  <bruno@clisp.org>
29727
29728         string: Remove unused substitution.
29729         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
29730         HAVE_DECL_STRERROR.
29731         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
29732
29733 2010-04-04  Bruno Haible  <bruno@clisp.org>
29734
29735         strtod: Avoid a possible C++ test error.
29736         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
29737         set REPLACE_STRTOD.
29738
29739 2010-04-04  Bruno Haible  <bruno@clisp.org>
29740
29741         strerror: Update documentation.
29742         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
29743
29744 2010-04-04  Bruno Haible  <bruno@clisp.org>
29745
29746         stdio: Fix some C++ test errors on Solaris 8 with GCC.
29747         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
29748         _GL_CXXALIAS_SYS_CAST.
29749
29750 2010-04-04  Bruno Haible  <bruno@clisp.org>
29751
29752         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29753         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
29754         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
29755         REPLACE_FREXPL to 1.
29756         * doc/posix-functions/frexpl.texi: Update documentation.
29757
29758 2010-04-04  Bruno Haible  <bruno@clisp.org>
29759
29760         math: Fix some C++ test errors on Solaris 8 and Cygwin.
29761         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
29762
29763 2010-04-04  Bruno Haible  <bruno@clisp.org>
29764
29765         Implement nanosleep for native Windows.
29766         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
29767
29768 2010-04-04  Bruno Haible  <bruno@clisp.org>
29769
29770         math: Fix some C++ test errors on Solaris 8.
29771         * lib/math.in.h (truncf, trunc): Use simpler idiom.
29772
29773 2010-04-04  Bruno Haible  <bruno@clisp.org>
29774
29775         math: Fix some C++ test errors on Cygwin.
29776         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
29777         truncl): Provide declaration if the system does not have it.
29778         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
29779         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
29780         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
29781         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
29782         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
29783         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
29784         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
29785         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
29786         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
29787         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
29788         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
29789         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
29790         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
29791         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
29792         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
29793         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
29794         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
29795         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29796         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29797         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
29798         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29799         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29800
29801 2010-04-04  Bruno Haible  <bruno@clisp.org>
29802
29803         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
29804         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
29805         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
29806         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29807         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29808         * m4/isinf.m4 (gl_ISINF): Likewise.
29809         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29810
29811 2010-04-04  Bruno Haible  <bruno@clisp.org>
29812
29813         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
29814         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29815
29816 2010-04-04  Bruno Haible  <bruno@clisp.org>
29817
29818         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
29819         * modules/tmpfile (configure.ac): Update.
29820
29821         tmpfile: Fix C++ test error on mingw.
29822         * lib/stdio.in.h (tmpfile): New declaration.
29823         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
29824         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
29825         * modules/tmpfile (Depends-on): Add stdio.
29826         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
29827         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
29828         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
29829         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
29830         REPLACE_TMPFILE.
29831         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
29832
29833 2010-04-04  Bruno Haible  <bruno@clisp.org>
29834
29835         ioctl: Fix C++ test error on mingw.
29836         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
29837         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
29838         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
29839
29840 2010-04-03  Bruno Haible  <bruno@clisp.org>
29841
29842         wcwidth: Fix C++ test error on mingw.
29843         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
29844         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
29845         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
29846
29847 2010-04-03  Bruno Haible  <bruno@clisp.org>
29848
29849         nanosleep: Fix C++ test error on mingw.
29850         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
29851         * lib/time.in.h (nanosleep): Use modern idiom.
29852         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
29853         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
29854         REPLACE_NANOSLEEP to 1.
29855         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
29856         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
29857
29858 2010-04-03  Bruno Haible  <bruno@clisp.org>
29859
29860         strptime: Fix C++ test error on mingw.
29861         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
29862         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
29863         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
29864         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
29865         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
29866         not REPLACE_STRPTIME.
29867         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
29868         REPLACE_STRPTIME.
29869
29870 2010-04-03  Bruno Haible  <bruno@clisp.org>
29871
29872         timegm: Fix C++ test error on mingw.
29873         * lib/time.in.h (timegm): Use modern idiom.
29874         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
29875         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
29876         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
29877         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
29878
29879 2010-04-03  Bruno Haible  <bruno@clisp.org>
29880
29881         timegm: Assume declaration if function exists.
29882         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
29883         if it exists. Don't clobber ac_cv_func_timegm.
29884
29885 2010-04-03  Bruno Haible  <bruno@clisp.org>
29886
29887         time_r: Fix C++ test error on mingw.
29888         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
29889         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
29890         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
29891         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
29892         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
29893
29894 2010-04-03  Bruno Haible  <bruno@clisp.org>
29895
29896         time_r: Minor updates.
29897         * modules/time_r (Description): Mention the provided functions.
29898         * lib/time_r.c: Don't include <string.h>.
29899         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
29900         * doc/posix-functions/localtime_r.texi: Likewise.
29901
29902 2010-04-03  Bruno Haible  <bruno@clisp.org>
29903
29904         time: Fix regression introduced on 2010-03-08.
29905         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
29906         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
29907
29908 2010-04-03  Jim Meyering  <meyering@redhat.com>
29909
29910         maint.mk: don't silently disable project-specific syntax-check rules
29911         * top/maint.mk (_prohibit_regexp): Define, to help people realize
29912         that they need to convert their project-specific syntax-check rules
29913         to use the new _sc_search_regexp.
29914
29915 2010-04-03  Bruno Haible  <bruno@clisp.org>
29916
29917         fchdir: Fix regression introduced on 2010-03-08.
29918         * lib/unistd.in.h (fchdir): Fix declaration.
29919         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
29920         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
29921         REPLACE_FCHDIR.
29922         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
29923         REPLACE_FCHDIR.
29924
29925 2010-04-03  Bruno Haible  <bruno@clisp.org>
29926
29927         getpagesize: Fix C++ test error on mingw.
29928         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
29929         system does not declare the function.
29930         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
29931         declared.
29932         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29933         HAVE_DECL_GETPAGESIZE.
29934         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
29935
29936 2010-04-03  Bruno Haible  <bruno@clisp.org>
29937
29938         stdio: Make C++ tests work on mingw.
29939         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
29940         does not declare the function.
29941
29942 2010-04-03  Bruno Haible  <bruno@clisp.org>
29943
29944         ftello: Fix C++ test error on mingw.
29945         * lib/stdio.in.h (ftello): Use modern idiom.
29946         * lib/ftello.c (ftello): Renamed from rpl_ftello.
29947         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
29948         is missing and that it needs to be replaced.
29949         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
29950         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
29951         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
29952
29953 2010-04-03  Bruno Haible  <bruno@clisp.org>
29954
29955         fseeko: Fix C++ test error on mingw.
29956         * lib/stdio.in.h (fseeko): Use modern idiom.
29957         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
29958         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
29959         is missing and that it needs to be replaced.
29960         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
29961         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
29962         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
29963
29964 2010-04-03  Bruno Haible  <bruno@clisp.org>
29965
29966         mkstemp: Fix C++ test error on mingw.
29967         * lib/stdlib.in.h (mkstemp): Use modern idiom.
29968         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
29969         function is missing and that it needs to be replaced.
29970         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
29971         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
29972
29973 2010-04-03  Bruno Haible  <bruno@clisp.org>
29974
29975         stpncpy: Fix C++ test error on mingw.
29976         * lib/string.in.h (stpncpy): Use modern idiom.
29977         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
29978         function is missing and that it needs to be replaced.
29979         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29980         REPLACE_STPNCPY.
29981         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
29982
29983 2010-04-03  Bruno Haible  <bruno@clisp.org>
29984
29985         sys_stat: Fix C++ test error on mingw.
29986         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
29987         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
29988
29989 2010-04-03  Bruno Haible  <bruno@clisp.org>
29990
29991         pty: Update doc.
29992         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
29993
29994 2010-04-03  Bruno Haible  <bruno@clisp.org>
29995
29996         unistd: Fix C++ test error on mingw.
29997         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
29998
29999 2010-04-03  Bruno Haible  <bruno@clisp.org>
30000
30001         Update doc regarding mingw.
30002         * doc/glibc-functions/openpty.texi: Update regarding mingw.
30003         * doc/glibc-functions/login_tty.texi: Likewise.
30004         * doc/glibc-functions/forkpty.texi: Likewise.
30005
30006 2010-04-03  Bruno Haible  <bruno@clisp.org>
30007
30008         stdlib: Avoid compilation failure of c-strtold on mingw.
30009         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
30010
30011 2010-04-03  Bruno Haible  <bruno@clisp.org>
30012
30013         locale: Make C++ tests work on Cygwin and mingw.
30014         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
30015         cannot provide the function.
30016         Reported by Simon Josefsson.
30017
30018 2010-04-03  Bruno Haible  <bruno@clisp.org>
30019
30020         localename: Port to MacOS X 10.6.
30021         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
30022         memory layout of the locales in MacOS X 10.6 as well.
30023         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
30024
30025 2010-04-02  Bruno Haible  <bruno@clisp.org>
30026
30027         gnulib-tool: Ensure that long-running tests are executed last.
30028         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
30029         running tests after the one for the other tests.
30030
30031 2010-04-02  Bruno Haible  <bruno@clisp.org>
30032
30033         gnulib-tool: Ensure the tests in the main directory are executed first.
30034         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
30035         start with the current directory.
30036
30037 2010-04-02  Bruno Haible  <bruno@clisp.org>
30038
30039         Tests for module 'havelib', moved here from GNU gettext.
30040         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
30041         modifications.
30042         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
30043         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
30044         with modifications.
30045         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
30046         modifications.
30047         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
30048         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
30049         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
30050         with modifications.
30051         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
30052         with modifications.
30053         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
30054         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
30055         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
30056         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
30057         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
30058         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
30059         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
30060         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
30061         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
30062         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
30063         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
30064         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
30065         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
30066         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
30067         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
30068         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
30069         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
30070         with modifications.
30071         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
30072         with modifications.
30073         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
30074         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
30075         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
30076         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
30077         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
30078         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
30079         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
30080         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
30081         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
30082         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
30083         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
30084         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
30085         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
30086         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
30087         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
30088         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
30089         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
30090         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
30091         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
30092         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
30093         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
30094         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
30095         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
30096         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
30097         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
30098         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
30099         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
30100         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
30101         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
30102         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
30103         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
30104         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
30105         * tests/havelib/rpathx/rpathx.c: New file, from
30106         gettext/autoconf-lib-link.
30107         * tests/havelib/rpathx/Makefile.am: New file, from
30108         gettext/autoconf-lib-link.
30109         * tests/havelib/rpathx/configure.ac: New file, from
30110         gettext/autoconf-lib-link with modifications.
30111         * tests/havelib/rpathy/rpathy.c: New file, from
30112         gettext/autoconf-lib-link.
30113         * tests/havelib/rpathy/Makefile.am: New file, from
30114         gettext/autoconf-lib-link.
30115         * tests/havelib/rpathy/configure.ac: New file, from
30116         gettext/autoconf-lib-link with modifications.
30117         * tests/havelib/rpathz/rpathz.c: New file, from
30118         gettext/autoconf-lib-link.
30119         * tests/havelib/rpathz/Makefile.am: New file, from
30120         gettext/autoconf-lib-link.
30121         * tests/havelib/rpathz/configure.ac: New file, from
30122         gettext/autoconf-lib-link with modifications.
30123         * tests/havelib/rpathlx/usex.c: New file, from
30124         gettext/autoconf-lib-link.
30125         * tests/havelib/rpathlx/Makefile.am: New file, from
30126         gettext/autoconf-lib-link.
30127         * tests/havelib/rpathlx/configure.ac: New file, from
30128         gettext/autoconf-lib-link with modifications.
30129         * tests/havelib/rpathly/usey.c: New file, from
30130         gettext/autoconf-lib-link.
30131         * tests/havelib/rpathly/Makefile.am: New file, from
30132         gettext/autoconf-lib-link.
30133         * tests/havelib/rpathly/configure.ac: New file, from
30134         gettext/autoconf-lib-link with modifications.
30135         * tests/havelib/rpathlz/usez.c: New file, from
30136         gettext/autoconf-lib-link.
30137         * tests/havelib/rpathlz/Makefile.am: New file, from
30138         gettext/autoconf-lib-link.
30139         * tests/havelib/rpathlz/configure.ac: New file, from
30140         gettext/autoconf-lib-link with modifications.
30141         * tests/havelib/rpathlyx/usey.c: New file, from
30142         gettext/autoconf-lib-link.
30143         * tests/havelib/rpathlyx/Makefile.am: New file, from
30144         gettext/autoconf-lib-link.
30145         * tests/havelib/rpathlyx/configure.ac: New file, from
30146         gettext/autoconf-lib-link with modifications.
30147         * tests/havelib/rpathlzyx/usez.c: New file, from
30148         gettext/autoconf-lib-link.
30149         * tests/havelib/rpathlzyx/Makefile.am: New file, from
30150         gettext/autoconf-lib-link.
30151         * tests/havelib/rpathlzyx/configure.ac: New file, from
30152         gettext/autoconf-lib-link with modifications.
30153         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
30154         with modifications.
30155
30156 2010-04-02  Bruno Haible  <bruno@clisp.org>
30157
30158         gnulib-tool: Create distributed built sources also for the tests.
30159         * gnulib-tool (func_create_testdir): Also generate distributed built
30160         sources in the tests directory.
30161
30162 2010-04-02  Bruno Haible  <bruno@clisp.org>
30163
30164         gnulib-tool: Obey user's environment variables.
30165         * gnulib-tool (func_create_testdir): When creating built sources,
30166         respect the environment variables for autoconf, automake, etc. given by
30167         the user.
30168
30169 2010-04-02  Bruno Haible  <bruno@clisp.org>
30170
30171         gnulib-tool: Provide the value of --m4-base to modules.
30172         * gnulib-tool (func_import, func_create_testdir): Emit a definition
30173         of gl_m4_base.
30174
30175 2010-04-02  Eric Blake  <eblake@redhat.com>
30176
30177         maint.mk: fix some fallout
30178         * NEWS: Document the incompatible change, and its effect on cfg.mk.
30179         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
30180
30181 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30182
30183         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
30184         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
30185         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
30186         (sc_cast_of_x_alloc_return_value): Likewise.
30187         (sc_cast_of_alloca_return_value): Likewise.
30188         (sc_space_tab): Likewise.
30189         (sc_prohibit_atoi_atof): Likewise.
30190         (sc_prohibit_magic_number_exit): Likewise.
30191         (sc_error_exit_success): Likewise.
30192         (sc_file_system): Likewise.
30193         (sc_prohibit_have_config_h): Likewise.
30194         (sc_require_config_h): Likewise.
30195         (sc_prohibit_HAVE_MBRTOWC): Likewise.
30196         (sc_obsolete_symbols): Likewise.
30197         (sc_changelog): Likewise.
30198         (sc_program_name): Likewise.
30199         (sc_the_the): Likewise.
30200         (sc_trailing_blank): Likewise.
30201         (sc_two_space_separator_in_usage): Likewise.
30202         (sc_useless_cpp_parens): Likewise.
30203         (sc_GPL_version): Likewise.
30204         (sc_GFDL_version): Likewise.
30205         (sc_texinfo_acronym): Likewise.
30206         (sc_prohibit_cvs_keyword): Likewise.
30207         (sc_prohibit_stat_st_blocks): Likewise.
30208         (sc_prohibit_S_IS_definition): Likewise.
30209         (sc_redundant_const): Likewise.
30210         (sc_makefile_TAB_only_indentation): Likewise.
30211         (sc_m4_quote_check): Likewise.
30212         (sc_makefile_path_separator_check): Likewise.
30213         (sc_copyright_check): Likewise.
30214         (sc_Wundef_boolean): Likewise.
30215         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
30216
30217         maint.mk: match 0 or more whitespace-before-function-call '('
30218         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
30219         that have zero or two-and-more spaces between the function name
30220         and the open parenthesis.
30221         (sc_error_message_warn_fatal): Likewise.
30222         (sc_error_message_uppercase): Likewise.
30223         (sc_error_message_period): Likewise.
30224
30225 2010-03-31  Eric Blake  <eblake@redhat.com>
30226
30227         maint.mk: check for [ as well as test
30228         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
30229         Based on a libvirt report by Matthias Bolte.
30230
30231         gnumakefile: don't squelch _version output
30232         * top/GNUmakefile (_version): Create one-shot dependency rather
30233         than using $(shell) when version must be regenerated.
30234         (_autoreconf): Run verbosely, by default.
30235
30236         sys_time: avoid compiler warnings
30237         * lib/sys_time.in.h (includes): Ensure gcc pragma is
30238         unconditional, fixing regression from 2010-03-29.
30239         Reported by Simon Josefsson.
30240
30241 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
30242
30243         maint.mk: s/_header_without_use/_sc_header_without_use/
30244         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
30245         (sc_prohibit_assert_without_use): Use the new name.
30246         (sc_prohibit_close_stream_without_use): Likewise.
30247         (sc_prohibit_getopt_without_use): Likewise.
30248         (sc_prohibit_quotearg_without_use): Likewise.
30249         (sc_prohibit_quote_without_use): Likewise.
30250         (sc_prohibit_long_options_without_use): Likewise.
30251         (sc_prohibit_inttostr_without_use): Likewise.
30252         (sc_prohibit_ignore_value_without_use): Likewise.
30253         (sc_prohibit_error_without_use): Likewise.
30254         (sc_prohibit_xalloc_without_use): Likewise.
30255         (sc_prohibit_hash_without_use): Likewise.
30256         (sc_prohibit_hash_pjw_without_use): Likewise.
30257         (sc_prohibit_safe_read_without_use): Likewise.
30258         (sc_prohibit_argmatch_without_use): Likewise.
30259         (sc_prohibit_canonicalize_without_use): Likewise.
30260         (sc_prohibit_root_dev_ino_without_use): Likewise.
30261         (sc_prohibit_openat_without_use): Likewise.
30262         (sc_prohibit_c_ctype_without_use): Likewise.
30263         (sc_prohibit_signal_without_use): Likewise.
30264         (sc_prohibit_intprops_without_use): Likewise.
30265
30266 2010-03-30  Eric Blake  <eblake@redhat.com>
30267
30268         maint: improve module indicators
30269         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30270         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30271         columns, and avoid extra macro expansion.
30272
30273         fdopendir: work around FreeBSD bug
30274         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30275         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30276         * modules/dirent (Makefile.am): Substitute it.
30277         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30278         declaration.
30279         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30280         fix.
30281         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30282
30283 2010-03-29  Bruno Haible  <bruno@clisp.org>
30284
30285         Emit #pragma system_header after the inclusion guard, not before.
30286         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
30287         guard that spans the entire file, not before. This enables an
30288         optimization in GCC's preprocessor.
30289         * lib/ctype.in.h: Likewise.
30290         * lib/dirent.in.h: Likewise.
30291         * lib/errno.in.h: Likewise.
30292         * lib/float.in.h: Likewise.
30293         * lib/getopt.in.h: Likewise.
30294         * lib/iconv.in.h: Likewise.
30295         * lib/langinfo.in.h: Likewise.
30296         * lib/locale.in.h: Likewise.
30297         * lib/math.in.h: Likewise.
30298         * lib/netdb.in.h: Likewise.
30299         * lib/netinet_in.in.h: Likewise.
30300         * lib/pty.in.h: Likewise.
30301         * lib/sched.in.h: Likewise.
30302         * lib/se-selinux.in.h: Likewise.
30303         * lib/search.in.h: Likewise.
30304         * lib/spawn.in.h: Likewise.
30305         * lib/stdarg.in.h: Likewise.
30306         * lib/stdint.in.h: Likewise.
30307         * lib/string.in.h: Likewise.
30308         * lib/strings.in.h: Likewise.
30309         * lib/sys_file.in.h: Likewise.
30310         * lib/sys_ioctl.in.h: Likewise.
30311         * lib/sys_time.in.h: Likewise.
30312         * lib/sys_times.in.h: Likewise.
30313         * lib/sys_utsname.in.h: Likewise.
30314         * lib/sys_wait.in.h: Likewise.
30315         * lib/sysexits.in.h: Likewise.
30316         * lib/wctype.in.h: Likewise.
30317
30318 2010-03-28  James Youngman  <jay@gnu.org>
30319
30320         save-cwd: don't leak a file descriptor when the caller execs.
30321         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
30322         saved file descriptor.
30323         * modules/save-cwd (Depends-on): Depend on cloexec.
30324
30325 2010-03-29  Bruno Haible  <bruno@clisp.org>
30326
30327         Remove vestiges of fts-lgpl module.
30328         * lib/fts_.h: Assume GNULIB_FTS is 1.
30329         * lib/fts.c: Likewise.
30330         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30331
30332 2010-03-28  Bruno Haible  <bruno@clisp.org>
30333
30334         Fix definition of tests witness macro.
30335         * gnulib-tool (func_import): Fix definition of witness macro.
30336
30337 2010-03-28  Bruno Haible  <bruno@clisp.org>
30338
30339         Fix ioctl's protoype on glibc systems.
30340         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
30341         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
30342         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
30343         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
30344         signature. If not, arrange to replace the ioctl function.
30345         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30346         REPLACE_IOCTL.
30347         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
30348         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
30349         Reported by Ludovic Courtès <ludo@gnu.org>.
30350
30351 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
30352
30353         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
30354         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
30355         made it so grep -r --include=GLOB* ... did not work.
30356
30357 2010-03-26  Jim Meyering  <meyering@redhat.com>
30358             Eric Blake  <eblake@redhat.com>
30359
30360         maint.mk: prohibit use of test's -o and -a operators
30361         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
30362
30363 2010-03-28  Bruno Haible  <bruno@clisp.org>
30364
30365         Remove unused GNULIB_XYZ macro definitions.
30366         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
30367         invocation.
30368
30369 2010-03-28  Bruno Haible  <bruno@clisp.org>
30370
30371         Mark privileged tests modules.
30372         * modules/idpriv-drop-tests (Status): New section.
30373         * modules/idpriv-droptemp-tests (Status): New section.
30374
30375 2010-03-28  Bruno Haible  <bruno@clisp.org>
30376
30377         Split C++ tests into separate tests modules.
30378         * modules/dirent-c++-tests: New file, extracted from
30379         modules/dirent-tests.
30380         * modules/dirent-tests: Depend on it.
30381         * modules/fcntl-h-c++-tests: New file, extracted from
30382         modules/fcntl-h-tests.
30383         * modules/fcntl-h-tests: Depend on it.
30384         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
30385         * modules/glob-tests: Depend on it.
30386         * modules/iconv-h-c++-tests: New file, extracted from
30387         modules/iconv-h-tests.
30388         * modules/iconv-h-tests: Depend on it.
30389         * modules/langinfo-c++-tests: New file, extracted from
30390         modules/langinfo-tests.
30391         * modules/langinfo-tests: Depend on it.
30392         * modules/locale-c++-tests: New file, extracted from
30393         modules/locale-tests.
30394         * modules/locale-tests: Depend on it.
30395         * modules/math-c++-tests: New file, extracted from modules/math-tests.
30396         * modules/math-tests: Depend on it.
30397         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
30398         * modules/pty-tests: Depend on it.
30399         * modules/search-c++-tests: New file, extracted from
30400         modules/search-tests.
30401         * modules/search-tests: Depend on it.
30402         * modules/signal-c++-tests: New file, extracted from
30403         modules/signal-tests.
30404         * modules/signal-tests: Depend on it.
30405         * modules/spawn-c++-tests: New file, extracted from
30406         modules/spawn-tests.
30407         * modules/spawn-tests: Depend on it.
30408         * modules/stdio-c++-tests: New file, extracted from
30409         modules/stdio-tests.
30410         * modules/stdio-tests: Depend on it.
30411         * modules/stdlib-c++-tests: New file, extracted from
30412         modules/stdlib-tests.
30413         * modules/stdlib-tests: Depend on it.
30414         * modules/string-c++-tests: New file, extracted from
30415         modules/string-tests.
30416         * modules/string-tests: Depend on it.
30417         * modules/sys_ioctl-c++-tests: New file, extracted from
30418         modules/sys_ioctl-tests.
30419         * modules/sys_ioctl-tests: Depend on it.
30420         * modules/sys_select-c++-tests: New file, extracted from
30421         modules/sys_select-tests.
30422         * modules/sys_select-tests: Depend on it.
30423         * modules/sys_socket-c++-tests: New file, extracted from
30424         modules/sys_socket-tests.
30425         * modules/sys_socket-tests: Depend on it.
30426         * modules/sys_stat-c++-tests: New file, extracted from
30427         modules/sys_stat-tests.
30428         * modules/sys_stat-tests: Depend on it.
30429         * modules/sys_time-c++-tests: New file, extracted from
30430         modules/sys_time-tests.
30431         * modules/sys_time-tests: Depend on it.
30432         * modules/time-c++-tests: New file, extracted from modules/time-tests.
30433         * modules/time-tests: Depend on it.
30434         * modules/unistd-c++-tests: New file, extracted from
30435         modules/unistd-tests.
30436         * modules/unistd-tests: Depend on it.
30437         * modules/wchar-c++-tests: New file, extracted from
30438         modules/wchar-tests.
30439         * modules/wchar-tests: Depend on it.
30440         * modules/wctype-c++-tests: New file, extracted from
30441         modules/wctype-tests.
30442         * modules/wctype-tests: Depend on it.
30443         Reported by Simon Josefsson.
30444
30445 2010-03-28  Bruno Haible  <bruno@clisp.org>
30446
30447         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
30448         * gnulib-tool (func_exists_module): New function, extracted from
30449         func_verify_module.
30450         (func_verify_module): Use it.
30451         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
30452         'foo' only if 'foo' exists.
30453         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
30454         module.
30455
30456 2010-03-28  Bruno Haible  <bruno@clisp.org>
30457
30458         gnulib-tool: Add support for special categories of tests.
30459         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
30460         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
30461         (func_usage): Document them.
30462         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
30463         inc_unportable_tests, inc_all_tests): New variables.
30464         (func_acceptable): Consider these variables.
30465         (func_modules_transitive_closure): Make it work when the 'Status' field
30466         consists of multiple words.
30467         (func_import): Store and restore the values of inc_cxx_tests,
30468         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
30469         inc_all_tests in gnulib-comp.m4.
30470         (func_create_testdir): Set inc_all_tests to true.
30471         * doc/gnulib.texi (Extra tests modules): New section.
30472         Suggested by Jim Meyering.
30473
30474 2010-03-28  Bruno Haible  <bruno@clisp.org>
30475
30476         ansi-c++-opt: Allow turning off the C++ build by default.
30477         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
30478         gl_CXX_CHOICE_DEFAULT_NO is defined.
30479         Requested by Eric Blake.
30480
30481 2010-03-28  Bruno Haible  <bruno@clisp.org>
30482
30483         unistd: Avoid #define replacements in C++ mode.
30484         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
30485         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
30486         setsockopt, shutdown, select): In C++, attach a warning to the function
30487         if possible, rather than #defining the symbol to a dysfunctional alias.
30488         Reported by John W. Eaton <jwe@gnu.org>.
30489
30490 2010-03-28  Bruno Haible  <bruno@clisp.org>
30491
30492         Fix link errors on mingw.
30493         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
30494         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
30495         $(LIBSOCKET).
30496         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
30497         $(LIBSOCKET).
30498
30499 2010-03-28  Bruno Haible  <bruno@clisp.org>
30500             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30501
30502         lib-ignore: Determine different options for different compilers.
30503         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
30504         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
30505         Add comments.
30506         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
30507         * NEWS: Mention the change.
30508
30509 2010-03-27  Bruno Haible  <bruno@clisp.org>
30510
30511         Remove unused GNULIB_XYZ macro definitions.
30512         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30513         * modules/fseek (configure.ac): Likewise.
30514         * modules/ioctl (configure.ac): Likewise.
30515         * modules/open (configure.ac): Likewise.
30516         * modules/stdlib-safer (configure.ac): Likewise.
30517
30518 2010-03-27  Bruno Haible  <bruno@clisp.org>
30519
30520         Add a remark about certain modules.
30521         * modules/malloc (Comment): New section.
30522         * modules/realloc (Comment): Likewise.
30523         * modules/sigpipe (Comment): Likewise.
30524
30525 2010-03-27  Bruno Haible  <bruno@clisp.org>
30526
30527         Resolve conflict between the two kinds of module indicators.
30528         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
30529         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
30530         * modules/canonicalize (configure.ac): Invoke
30531         gl_MODULE_INDICATOR_FOR_TESTS.
30532         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
30533         GNULIB_XYZ.
30534         * tests/test-dirent-c++.cc: Likewise.
30535         * tests/test-dirent-safer.c: Likewise.
30536         * tests/test-dup2.c: Likewise.
30537         * tests/test-fchdir.c: Likewise.
30538         * tests/test-fcntl-h-c++.cc: Likewise.
30539         * tests/test-getopt.c: Likewise.
30540         * tests/test-getopt.h: Likewise.
30541         * tests/test-langinfo-c++.cc: Likewise.
30542         * tests/test-locale-c++.cc: Likewise.
30543         * tests/test-math-c++.cc: Likewise.
30544         * tests/test-pty-c++.cc: Likewise.
30545         * tests/test-search-c++.cc: Likewise.
30546         * tests/test-signal-c++.cc: Likewise.
30547         * tests/test-spawn-c++.cc: Likewise.
30548         * tests/test-stdio-c++.cc: Likewise.
30549         * tests/test-stdlib-c++.cc: Likewise.
30550         * tests/test-string-c++.cc: Likewise.
30551         * tests/test-sys_ioctl-c++.cc: Likewise.
30552         * tests/test-sys_select-c++.cc: Likewise.
30553         * tests/test-sys_socket-c++.cc: Likewise.
30554         * tests/test-sys_stat-c++.cc: Likewise.
30555         * tests/test-sys_time-c++.cc: Likewise.
30556         * tests/test-time-c++.cc: Likewise.
30557         * tests/test-unistd-c++.cc: Likewise.
30558         * tests/test-wchar-c++.cc: Likewise.
30559         * tests/uninorm/test-u8-nfc.c: Likewise.
30560         * tests/uninorm/test-u8-nfd.c: Likewise.
30561         * tests/uninorm/test-u8-nfkc.c: Likewise.
30562         * tests/uninorm/test-u8-nfkd.c: Likewise.
30563         * tests/uninorm/test-u16-nfc.c: Likewise.
30564         * tests/uninorm/test-u16-nfd.c: Likewise.
30565         * tests/uninorm/test-u16-nfkc.c: Likewise.
30566         * tests/uninorm/test-u16-nfkd.c: Likewise.
30567         * tests/uninorm/test-u32-nfc.c: Likewise.
30568         * tests/uninorm/test-u32-nfc-big.c: Likewise.
30569         * tests/uninorm/test-u32-nfd.c: Likewise.
30570         * tests/uninorm/test-u32-nfd-big.c: Likewise.
30571         * tests/uninorm/test-u32-nfkc.c: Likewise.
30572         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
30573         * tests/uninorm/test-u32-nfkd.c: Likewise.
30574         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
30575         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30576
30577 2010-03-27  Bruno Haible  <bruno@clisp.org>
30578
30579         Distinguish two kinds of module indicators.
30580         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
30581         gl_MODULE_INDICATOR.
30582         (gl_MODULE_INDICATOR): New macro.
30583         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30584         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
30585         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30586         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30587         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30588         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30589         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30590         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30591         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30592         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30593         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30594         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30595         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30596         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30597         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30598         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30599         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30600         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30601         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30602         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30603         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30604         * modules/cloexec (configure.ac): Likewise.
30605         * modules/getopt-gnu (configure.ac): Likewise.
30606         * modules/uninorm/u8-normalize (configure.ac): Likewise.
30607         * modules/uninorm/u16-normalize (configure.ac): Likewise.
30608         * modules/uninorm/u32-normalize (configure.ac): Likewise.
30609         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
30610
30611 2010-03-27  Bruno Haible  <bruno@clisp.org>
30612
30613         New module description field 'Comment'.
30614         * gnulib-tool: New option --extract-comment.
30615         (func_usage): Document it.
30616         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
30617         (func_get_comment): New function.
30618         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
30619
30620 2010-03-27  Bruno Haible  <bruno@clisp.org>
30621
30622         Addendum to 2010-02-07 commit.
30623         * gnulib-tool (func_usage): Document --extract-applicability option.
30624
30625 2010-03-27  Bruno Haible  <bruno@clisp.org>
30626
30627         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
30628         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
30629         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
30630         rather than link errors.
30631
30632 2010-03-27  Bruno Haible  <bruno@clisp.org>
30633
30634         Avoid side effects from tests-related modules on the compilation of lib.
30635         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
30636         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
30637         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
30638         parameter. Emit into AM_CPPFLAGS a definition of the designated C
30639         macro.
30640         (func_import): Define a witness macro. Assign it a value that depends
30641         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
30642         tests-related modules.
30643         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
30644         Reported by Jim Meyering.
30645
30646 2010-03-27  Bruno Haible  <bruno@clisp.org>
30647
30648         Factorize common .m4 code.
30649         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
30650         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
30651         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
30652         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
30653         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30654         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
30655         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
30656         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30657         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30658         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30659         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
30660         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30661         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30662         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30663         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30664         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
30665         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30666         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30667         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30668         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
30669         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
30670         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30671         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30672         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30673         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30674         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30675         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
30676         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
30677         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
30678         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30679         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30680         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30681
30682 2010-03-27  Bruno Haible  <bruno@clisp.org>
30683
30684         Fix a compilation error on Cygwin with g++ >= 4.3.
30685         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
30686         if it is undefined or if we alias it to chmod.
30687         (lstat): Don't warn about the use of this function if it is undefined
30688         or if we alias it to stat.
30689         Reported by Simon Josefsson.
30690
30691 2010-03-27  Bruno Haible  <bruno@clisp.org>
30692
30693         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
30694         * modules/getlogin (configure.ac): Update.
30695
30696         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
30697         * modules/getlogin_r (configure.ac): Update.
30698
30699         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
30700         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
30701         * modules/inet_ntop (configure.ac): Update.
30702
30703         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
30704         * modules/inet_pton (configure.ac): Update.
30705
30706         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
30707         * modules/mbslen (configure.ac): Update.
30708
30709         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
30710         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
30711         * modules/forkpty (configure.ac): Update.
30712         * modules/openpty (configure.ac): Update.
30713
30714 2010-03-26  Simon Josefsson  <simon@josefsson.org>
30715
30716         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
30717         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
30718
30719 2010-03-25  Eric Blake  <eblake@redhat.com>
30720
30721         maint: use pragma consistently across replacement headers
30722         * lib/ctype.in.h (system_header): Hoist for consistent placement.
30723         * lib/dirent.in.h (system_header): Likewise.
30724         * lib/errno.in.h (system_header): Likewise.
30725         * lib/float.in.h (system_header): Likewise.
30726         * lib/getopt.in.h (system_header): Likewise.
30727         * lib/iconv.in.h (system_header): Likewise.
30728         * lib/inttypes.in.h (system_header): Likewise.
30729         * lib/langinfo.in.h (system_header): Likewise.
30730         * lib/locale.in.h (system_header): Likewise.
30731         * lib/math.in.h (system_header): Likewise.
30732         * lib/netdb.in.h (system_header): Likewise.
30733         * lib/netinet_in.in.h (system_header): Likewise.
30734         * lib/pty.in.h (system_header): Likewise.
30735         * lib/sched.in.h (system_header): Likewise.
30736         * lib/se-selinux.in.h (system_header): Likewise.
30737         * lib/search.in.h (system_header): Likewise.
30738         * lib/spawn.in.h (system_header): Likewise.
30739         * lib/stdarg.in.h (system_header): Likewise.
30740         * lib/stdint.in.h (system_header): Likewise.
30741         * lib/string.in.h (system_header): Likewise.
30742         * lib/strings.in.h (system_header): Likewise.
30743         * lib/sys_file.in.h (system_header): Likewise.
30744         * lib/sys_ioctl.in.h (system_header): Likewise.
30745         * lib/sys_socket.in.h (system_header): Likewise.
30746         * lib/sys_times.in.h (system_header): Likewise.
30747         * lib/sys_utsname.in.h (system_header): Likewise.
30748         * lib/sys_wait.in.h (system_header): Likewise.
30749         * lib/sysexits.in.h (system_header): Likewise.
30750         * lib/unistd.in.h (system_header): Likewise.
30751         * lib/wctype.in.h (system_header): Likewise.
30752
30753         arpa/inet: fix mingw compilation warning
30754         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
30755         Reported by Matthew Bolte.
30756
30757 2010-03-25  Bruno Haible  <bruno@clisp.org>
30758
30759         Avoid collision between gnulib wrapper and libintl wrapper.
30760         * lib/printf.c (printf): Don't define if a printf wrapper is already
30761         defined in intl/printf.c.
30762         Reported by Michel Boaventura <michel@michelboaventura.com>.
30763
30764 2010-03-25  Bruno Haible  <bruno@clisp.org>
30765
30766         Use ANSI C.
30767         * lib/readutmp.h (getutent): Provide ANSI C prototype.
30768
30769 2010-03-25  Bruno Haible  <bruno@clisp.org>
30770
30771         Minor formatting changes.
30772         * lib/acosl.c: Insert space before function argument list.
30773         * lib/argz.c: Likewise.
30774         * lib/asinl.c: Likewise.
30775         * lib/expl.c: Likewise.
30776         * lib/gen-uni-tables.c: Likewise.
30777         * lib/gettext.h: Likewise.
30778         * lib/glthread/lock.h: Likewise.
30779         * lib/tanl.c: Likewise.
30780         * lib/uniname/uniname.c: Likewise.
30781         * tests/test-idpriv-drop.c: Likewise.
30782         * tests/test-idpriv-droptemp.c: Likewise.
30783         * tests/test-lock.c: Likewise.
30784         * tests/test-tls.c: Likewise.
30785         * lib/argp-help.c: Insert space before function-like macro argument
30786         list.
30787         * lib/memcmp.c: Likewise.
30788         * tests/test-base64.c: Likewise.
30789         * lib/localename.c: Insert space before sizeof's argument list.
30790         * lib/safe-alloc.h: Likewise.
30791         * lib/file-set.h: Insert space before macro argument list.
30792         * tests/test-argp.c: Likewise.
30793         * lib/argp-namefrob.h: Insert space before function parameter list.
30794         * lib/getaddrinfo.c: Likewise.
30795         * lib/netdb.in.h: Likewise.
30796         * lib/parse-duration.h: Likewise.
30797         * lib/parse-duration.c: Likewise.
30798         * lib/poll.c: Likewise.
30799         * lib/select.c: Likewise.
30800         * lib/trim.h: Likewise.
30801         * tests/test-usleep.c: Likewise.
30802         * lib/ldexpl.c: Insert space before function parameter list and before
30803         function argument list.
30804         * lib/logl.c: Likewise.
30805         * lib/sqrtl.c: Likewise.
30806         * lib/trim.c: Likewise.
30807         * lib/cosl.c: Use GNU style indentation. Insert space before function
30808         argument list.
30809         * lib/sinl.c: Likewise.
30810         * lib/tsearch.c: Insert space after 'for'.
30811         Reported by Jim Meyering.
30812
30813 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
30814
30815         * maint.mk (sc_Wundef_boolean): Check for the presence of the
30816         config header before grepping, as it's not present before
30817         autoreconf/configure are run.  Reported by Simon Josefsson.
30818
30819 2010-03-23  Bruno Haible  <bruno@clisp.org>
30820
30821         pt_chown: Make it work with automake < 1.11.
30822         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
30823         Reported by Simon Josefsson.
30824
30825 2010-03-23  Bruno Haible  <bruno@clisp.org>
30826
30827         pt_chown: Don't depend on GPLed modules.
30828         * lib/pt_chown.c: Don't include idpriv.h.
30829         (main): Don't drop privileges.
30830         * modules/pt_chown (Depends-on): Remove idpriv-drop.
30831         Reported by Simon Josefsson.
30832
30833 2010-03-24  Simon Josefsson  <simon@josefsson.org>
30834
30835         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
30836         suggestions from karl@freefriends.org (Karl Berry).
30837
30838 2010-03-22  Eric Blake  <eblake@redhat.com>
30839
30840         gethostname: further tweaks
30841         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
30842         are overriding gethostname.
30843         Suggested by Bruno Haible.
30844
30845 2010-03-21  Bruno Haible  <bruno@clisp.org>
30846
30847         Fix comments.
30848         * lib/forkpty.c (rpl_forkpty): Fix comment.
30849         * lib/openpty.c (rpl_openpty): Likewise.
30850         Reported by Eric Blake.
30851
30852 2010-03-22  Eric Blake  <eblake@redhat.com>
30853
30854         gethostname: fix build on mingw
30855         * lib/unistd.in.h (includes): Work around fact that mingw
30856         <winsock2.h> re-includes <unistd.h>, by avoiding any
30857         redeclarations if we are being included by <winsock2.h>.
30858         Reported by Matthias Bolte.
30859
30860 2010-03-21  Bruno Haible  <bruno@clisp.org>
30861
30862         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30863         * lib/forkpty.c (forkpty): New replacement function, from glibc with
30864         modifications.
30865         * lib/pty.in.h (forkpty): Update declaration. Add comments.
30866         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
30867         provide the replacement.
30868         * modules/forkpty (Depends-on): Add openpty, login_tty.
30869         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
30870         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
30871         * doc/glibc-functions/forkpty.texi: More supported platforms.
30872         * config/srclist.txt: Add forkpty.c (commented).
30873
30874 2010-03-21  Bruno Haible  <bruno@clisp.org>
30875
30876         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
30877         (Makefile.am): Verify that PTY_LIB is defined.
30878
30879         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
30880
30881 2010-03-21  Bruno Haible  <bruno@clisp.org>
30882
30883         Tests for module 'login_tty'.
30884         * modules/login_tty-tests: New file.
30885         * tests/test-login_tty.c: New file.
30886
30887         New module 'login_tty'.
30888         * lib/login_tty.c: New file.
30889         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
30890         * modules/login_tty: New file.
30891         * doc/glibc-functions/login_tty.texi: Mention the new module.
30892
30893 2010-03-21  Bruno Haible  <bruno@clisp.org>
30894
30895         login_tty: Documentation.
30896         * doc/glibc-functions/login_tty.texi: New file.
30897         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
30898
30899 2010-03-21  Bruno Haible  <bruno@clisp.org>
30900
30901         pty: Consistent macro naming.
30902         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
30903         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
30904         * modules/pty (configure.ac): Update.
30905
30906 2010-03-21  Bruno Haible  <bruno@clisp.org>
30907
30908         Tests for openpty: Make stricter.
30909         * tests/test-openpty.c (main): Add test of canonical processing and
30910         erase.
30911         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
30912
30913         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30914         * lib/openpty.c (openpty): New replacement function.
30915         * lib/pty.in.h: Include <termios.h>.
30916         (openpty): Update declaration. Add comments.
30917         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
30918         is not declared, arrange to provide the replacement. Check for _getpty
30919         and posix_openpt.
30920         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
30921         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
30922         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
30923         * modules/pty-tests (test_pty_c___LDADD): New variable.
30924         * doc/glibc-functions/openpty.texi: More supported platforms.
30925
30926 2010-03-21  Bruno Haible  <bruno@clisp.org>
30927
30928         setenv: Tweaks.
30929         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
30930         the test program.
30931         * doc/posix-functions/setenv.texi: Update platforms list.
30932
30933 2010-03-21  Bruno Haible  <bruno@clisp.org>
30934
30935         New module 'unlockpt'.
30936         * lib/unlockpt.c: New file, from glibc with modifications.
30937         * m4/unlockpt.m4: New file.
30938         * modules/unlockpt: New file.
30939         * lib/stdlib.in.h (unlockpt): New declaration.
30940         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
30941         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
30942         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
30943         HAVE_UNLOCKPT.
30944         * doc/posix-functions/unlockpt.texi: Mention the new module.
30945         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
30946         * config/srclist.txt: Add unlockpt.c (commented).
30947
30948 2010-03-21  Jim Meyering  <meyering@redhat.com>
30949
30950         maint.mk: prohibit inclusion of "intprops.h" without use
30951         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
30952
30953 2010-03-21  Bruno Haible  <bruno@clisp.org>
30954
30955         New module 'grantpt'.
30956         * lib/grantpt.c: New file, from glibc with modifications.
30957         * m4/grantpt.m4: New file.
30958         * modules/grantpt: New file.
30959         * lib/stdlib.in.h (grantpt): New declaration.
30960         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
30961         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
30962         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
30963         HAVE_GRANTPT.
30964         * doc/posix-functions/grantpt.texi: Mention the new module.
30965         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
30966         * config/srclist.txt: Add grantpt.c (commented).
30967
30968 2010-03-21  Bruno Haible  <bruno@clisp.org>
30969
30970         New module 'pt_chown'.
30971         * lib/pt_chown.c: New file, from glibc with modifications.
30972         * lib/pty-private.h: New file, from glibc with modifications.
30973         * modules/pt_chown: New file.
30974         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
30975
30976 2010-03-21  Bruno Haible  <bruno@clisp.org>
30977
30978         Tests for module 'ptsname'.
30979         * modules/ptsname-tests: New file.
30980         * tests/test-ptsname.c: New file.
30981
30982         New module 'ptsname'.
30983         * lib/ptsname.c: New file, from glibc with modifications.
30984         * m4/ptsname.m4: New file.
30985         * modules/ptsname: New file.
30986         * lib/stdlib.in.h (ptsname): New declaration.
30987         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
30988         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
30989         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
30990         HAVE_PTSNAME.
30991         * doc/posix-functions/ptsname.texi: Mention the new module.
30992         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
30993         * config/srclist.txt: Add ptsname.c (commented).
30994
30995 2010-03-21  Bruno Haible  <bruno@clisp.org>
30996
30997         Tests for module 'ttyname_r'.
30998         * modules/ttyname_r-tests: New file.
30999         * tests/test-ttyname_r.c: New file.
31000
31001         New module 'ttyname_r'.
31002         * lib/ttyname_r.c: New file.
31003         * m4/ttyname_r.m4: New file.
31004         * modules/ttyname_r: New file.
31005         * lib/unistd.in.h (ttyname_r): New declaration.
31006         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
31007         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
31008         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
31009         HAVE_TTYNAME_R.
31010         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
31011         * doc/posix-functions/ttyname_r.texi: Mention the new module.
31012
31013 2010-03-20  Bruno Haible  <bruno@clisp.org>
31014
31015         signal: Undefine macro definitions in C++ mode.
31016         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
31017         sigfillset): Undefine macro definitions from the system header in C++
31018         mode.
31019         Reported by John W. Eaton <jwe@gnu.org>.
31020
31021 2010-03-20  Bruno Haible  <bruno@clisp.org>
31022
31023         Ensure no #include statements inside extern "C" { ... }.
31024         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
31025         contain #include statements.
31026         * lib/time.in.h: Likewise.
31027
31028 2010-03-20  Bruno Haible  <bruno@clisp.org>
31029
31030         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
31031         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
31032         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
31033         Reported by John W. Eaton <jwe@gnu.org>.
31034
31035 2010-03-20  Bruno Haible  <bruno@clisp.org>
31036
31037         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
31038         Reported by Jim Meyering.
31039
31040 2010-03-20  Bruno Haible  <bruno@clisp.org>
31041
31042         pipe: Set errno upon failure.
31043         * lib/pipe.h: Specify that when -1 is returned, errno is set.
31044         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
31045         errno value in error message.
31046
31047 2010-03-20  Bruno Haible  <bruno@clisp.org>
31048             Jim Meyering  <meyering@redhat.com>
31049
31050         lchown: Avoid "unused variable" warning.
31051         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
31052
31053 2010-03-20  Bruno Haible  <bruno@clisp.org>
31054
31055         Work around unlink() bug on MacOS X 10.5.6.
31056         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
31057         attempting to unlink a parent directory.
31058         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
31059         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
31060         activate for the replacement function.
31061         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
31062
31063 2010-03-20  Bruno Haible  <bruno@clisp.org>
31064
31065         Fix link errors on Solaris 8.
31066         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
31067         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
31068
31069 2010-03-19  Jim Meyering  <meyering@redhat.com>
31070
31071         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
31072         The _LIBC implementation of build_range_exp correctly honors the
31073         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
31074         However, the non-_LIBC implementation would ignore that syntax-bit
31075         flag and return REG_ERANGE unconditionally.
31076         This change makes it honor that flag.
31077         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
31078         Make two pointer parameters "const".
31079         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
31080         (parse_bracket_exp): Update caller.
31081
31082         regex.m4: correct the reversed range endpoint ([b-a]) test
31083         * m4/regex.m4: When requiring that [b-a] evoke failure,
31084         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
31085         test pass once again for x86-based systems.
31086
31087 2010-03-19  Bruno Haible  <bruno@clisp.org>
31088
31089         scandir: Fix link error on Solaris 8.
31090         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
31091         macros.
31092
31093 2010-03-19  Bruno Haible  <bruno@clisp.org>
31094
31095         getusershell: Fix documentation.
31096         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
31097         module.
31098         * doc/glibc-functions/setusershell.texi: Likewise.
31099
31100         getusershell: Provide declaration, missing on Solaris 9.
31101         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
31102         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
31103         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
31104         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
31105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
31106         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
31107         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
31108         HAVE_GETUSERSHELL.
31109         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
31110
31111 2010-03-19  Bruno Haible  <bruno@clisp.org>
31112
31113         wctype: Provide iswblank function.
31114         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
31115         exists and is fine.
31116         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
31117         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
31118         * tests/test-wctype.c (main): Re-enable the iswblank tests.
31119         * doc/posix-functions/iswblank.texi: Update.
31120
31121 2010-03-19  Bruno Haible  <bruno@clisp.org>
31122
31123         Tests of module 'pty' in C++ mode.
31124         * modules/pty-tests: New file.
31125         * tests/test-pty-c++.cc: New file.
31126         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31127
31128 2010-03-19  Eric Blake  <eblake@redhat.com>
31129
31130         logb: fix documentation
31131         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
31132         1.5 declaration bug.
31133
31134         forkpty, openpty: prefer glibc's const-safe prototype
31135         * lib/forkpty.c (rpl_forkpty): New file.
31136         * lib/openpty.c (rpl_openpty): Likewise.
31137         * modules/forkpty (Files): Distribute it.
31138         * modules/openpty (Files): Likewise.
31139         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
31140         check...
31141         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
31142         replacement for for non-const BSD signature.
31143         * modules/pty (Makefile.am): Substitute witnesses.
31144         * lib/pty.in.h (forkpty, openpty): Declare replacements.
31145         * tests/test-forkpty.c: Update signature check.
31146         * tests/test-openpty.c: Likewise.
31147         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
31148         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31149
31150         forkpty, openpty: split functions into new modules
31151         * modules/pty (Makefile.am): Substitute new witnesses.
31152         (Libraries): Move library detection...
31153         * modules/forkpty: ...into new module.
31154         * modules/openpty: Another new module.
31155         * modules/pty-tests: Rename and split...
31156         * modules/forkpty-tests: ...to this...
31157         * modules/openpty-tests: ...and this.
31158         * tests/test-pty.c: Rename and split...
31159         * tests/test-forkpty.c: ...to this...
31160         * tests/test-openpty.c: ...and this.
31161         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
31162         (gl_PTY): Split library searching...
31163         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
31164         (gl_FORKPTY, gl_OPENPTY): New macros.
31165         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
31166         * NEWS: Mention the split.
31167         * MODULES.html.sh (Misc): Document the modules.
31168         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
31169         * doc/glibc-functions/openpty.texi (openpty): Likewise.
31170
31171         pty: improve replacement header
31172         * lib/pty.in.h: New file.
31173         * modules/pty (Files): Ship it.
31174         (Makefile.am): Always build replacement.
31175         * m4/pty.m4: Rename...
31176         * m4/pty_h.m4: ...to this.
31177         (gl_PTY): Modernize setting of witness macros; update check of
31178         forkpty to take proper advantage of cache.
31179         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
31180
31181         getopt: avoid compiler warning
31182         * lib/getopt.c (attribute_hidden): Remove unused macro.
31183
31184 2010-03-18  Bruno Haible  <bruno@clisp.org>
31185
31186         Fix link errors on Solaris 8.
31187         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
31188         * modules/search-tests (test_search_c___LDADD): Likewise.
31189         * modules/signal-tests (test_signal_c___LDADD): Likewise.
31190         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
31191         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
31192         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
31193         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
31194         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
31195         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
31196
31197 2010-03-18  Bruno Haible  <bruno@clisp.org>
31198
31199         Fix bug introduced on 2010-03-14.
31200         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
31201         (gl_SPAWN_H): Require it.
31202         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
31203         Reported by Simon Josefsson.
31204
31205 2010-03-18  Bruno Haible  <bruno@clisp.org>
31206
31207         Fix typo introduced on 2009-12-31.
31208         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
31209         posix_spawn_file_actions_adddup2.
31210
31211 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
31212         and Eric Blake  <eblake@redhat.com>
31213
31214         test-vc-list-files-git: make more robust
31215         * tests/test-vc-list-files-git.sh: Unset problematic environment
31216         variables.  Chain commands together.
31217
31218 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
31219
31220         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
31221         `AC_CHECK_DECL' invocation.
31222
31223 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
31224
31225         * lib/inttostr.c (inttostr): Make sure the invocation of verify
31226         appears before executable statements. Suggested by Petr Sumbera
31227         <Petr.Sumbera@Sun.COM>.
31228
31229 2010-03-14  Bruno Haible  <bruno@clisp.org>
31230
31231         * tests/test-flock.c (test_exclusive): Comment out a test that causes
31232         portability problems. Instead use a simpler test.
31233         (main): Check that invalid arguments are rejected only on Linux.
31234
31235 2010-03-14  Bruno Haible  <bruno@clisp.org>
31236
31237         Fix bug introduced on 2009-12-31.
31238         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31239         gl_PREREQ_SYS_H_WINSOCK2 always.
31240         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
31241         SYS_SOCKET_H variable.
31242         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
31243         Update comments.
31244         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
31245         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31246         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31247         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
31248         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
31249
31250 2010-03-14  Bruno Haible  <bruno@clisp.org>
31251
31252         Fix values returned by sinl, cosl.
31253         * lib/trigl.h: Add specification comments.
31254         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
31255         that combines the values from the precomputed table with the values of
31256         the Chebyshev polynomials.
31257
31258 2010-03-14  Bruno Haible  <bruno@clisp.org>
31259
31260         Fix compilation error when modules 'posix_spawn[p]' are not used.
31261         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
31262         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
31263
31264 2010-03-14  Bruno Haible  <bruno@clisp.org>
31265
31266         Fix compilation error on mingw when module 'time_r' is not used.
31267         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31268         is 1.
31269         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31270         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31271         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31272         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31273
31274 2010-03-14  Bruno Haible  <bruno@clisp.org>
31275
31276         Fix compilation error with Sun C.
31277         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31278         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31279         instead of GCC specific ULONG_LONG_MAX.
31280         * lib/xstrtoll.c: Likewise.
31281         * lib/xstrtoull.c: Likewise.
31282
31283 2010-03-13  Bruno Haible  <bruno@clisp.org>
31284
31285         Allow the user to disable C++ code and tests.
31286         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
31287         (gl_PROG_ANSI_CXX): Require it.
31288
31289 2010-03-13  Bruno Haible  <bruno@clisp.org>
31290
31291         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
31292         cases.
31293
31294 2010-03-13  Bruno Haible  <bruno@clisp.org>
31295
31296         Test that gnulib does not break the standard C++ headers.
31297         * tests/test-locale-c++2.cc: New file.
31298         * modules/locale-tests (Files): Add it.
31299         (Makefile.am): Compile it for test-locale-c++.
31300         * tests/test-math-c++2.cc: New file.
31301         * modules/math-tests (Files): Add it.
31302         (Makefile.am): Compile it for test-math-c++.
31303         * tests/test-signal-c++2.cc: New file.
31304         * modules/signal-tests (Files): Add it.
31305         (Makefile.am): Compile it for test-signal-c++.
31306         * tests/test-stdio-c++2.cc: New file.
31307         * modules/stdio-tests (Files): Add it.
31308         (Makefile.am): Compile it for test-stdio-c++.
31309         * tests/test-stdlib-c++2.cc: New file.
31310         * modules/stdlib-tests (Files): Add it.
31311         (Makefile.am): Compile it for test-stdlib-c++.
31312         * tests/test-string-c++2.cc: New file.
31313         * modules/string-tests (Files): Add it.
31314         (Makefile.am): Compile it for test-string-c++.
31315         * tests/test-time-c++2.cc: New file.
31316         * modules/time-tests (Files): Add it.
31317         (Makefile.am): Compile it for test-time-c++.
31318         Reported by John W. Eaton <jwe@gnu.org>.
31319
31320 2010-03-13  Bruno Haible  <bruno@clisp.org>
31321
31322         * gnulib-tool (func_usage): Clarify which options are available for
31323         --create-testdir and --create-megatestdir.
31324
31325 2010-03-13  Bruno Haible  <bruno@clisp.org>
31326
31327         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
31328         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
31329         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
31330         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
31331         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
31332         when appropriate.
31333         Reported by Jim Meyering.
31334
31335 2010-03-12  Simon Josefsson  <simon@josefsson.org>
31336
31337         * gnulib-tool (func_import): Explain origin of code.
31338
31339 2010-03-12  Bruno Haible  <bruno@clisp.org>
31340
31341         Fix problem with automake's definition of CXXLINK.
31342         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
31343         Reported by Simon Josefsson and Ludovic Courtès.
31344
31345 2010-03-12  Bruno Haible  <bruno@clisp.org>
31346
31347         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
31348         stable releases.
31349
31350 2010-03-11  Bruno Haible  <bruno@clisp.org>
31351
31352         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
31353         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
31354         whether the system provides one variant or multiple variants of the
31355         function.
31356         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
31357         C++ compilers.
31358         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
31359         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
31360         Reported by Jim Meyering.
31361
31362 2010-03-09  Simon Josefsson  <simon@josefsson.org>
31363
31364         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
31365
31366 2010-03-08  Bruno Haible  <bruno@clisp.org>
31367
31368         gnulib-tool: Add support for --libtool in --create-testdir.
31369         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
31370         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
31371
31372 2010-03-08  Eric Blake  <eblake@redhat.com>
31373
31374         gnulib-tool.texi: mention possibility of git submodule
31375         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
31376         submodules.
31377         * doc/.gitignore: Ignore another generated file.
31378
31379 2010-03-08  Karl Berry  <karl@gnu.org>
31380
31381         * doc/gnulib-tool.texi (VCS Issues): Mention third option
31382         of committing gnulib files while skipping others.
31383
31384 2010-03-07  Bruno Haible  <bruno@clisp.org>
31385
31386         Tests of module 'wctype' in C++ mode.
31387         * tests/test-wctype-c++.cc: New file.
31388         * modules/wctype-tests (Files): Add it and tests/signature.h.
31389         (Depends-on): Add ansi-c++-opt.
31390         (Makefile.am): Arrange to compile and run test-wctype-c++.
31391
31392         Tests of module 'wchar' in C++ mode.
31393         * tests/test-wchar-c++.cc: New file.
31394         * modules/wchar-tests (Files): Add it and tests/signature.h.
31395         (Depends-on): Add ansi-c++-opt.
31396         (Makefile.am): Arrange to compile and run test-wchar-c++.
31397         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
31398         gl_MODULE_INDICATOR.
31399
31400         Tests of module 'unistd' in C++ mode.
31401         * tests/test-unistd-c++.cc: New file.
31402         * modules/unistd-tests (Files): Add it and tests/signature.h.
31403         (Depends-on): Add ansi-c++-opt.
31404         (Makefile.am): Arrange to compile and run test-unistd-c++.
31405         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
31406         gl_MODULE_INDICATOR.
31407
31408         Tests of module 'time' in C++ mode.
31409         * tests/test-time-c++.cc: New file.
31410         * modules/time-tests (Files): Add it and tests/signature.h.
31411         (Depends-on): Add ansi-c++-opt.
31412         (Makefile.am): Arrange to compile and run test-time-c++.
31413         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31414
31415         Tests of module 'sys_time' in C++ mode.
31416         * tests/test-sys_time-c++.cc: New file.
31417         * modules/sys_time-tests (Files): Add it and tests/signature.h.
31418         (Depends-on): Add ansi-c++-opt.
31419         (Makefile.am): Arrange to compile and run test-sys_time-c++.
31420         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
31421         gl_MODULE_INDICATOR.
31422
31423         Tests of module 'sys_stat' in C++ mode.
31424         * tests/test-sys_stat-c++.cc: New file.
31425         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
31426         (Depends-on): Add ansi-c++-opt.
31427         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
31428         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
31429         gl_MODULE_INDICATOR.
31430
31431         Tests of module 'sys_socket' in C++ mode.
31432         * tests/test-sys_socket-c++.cc: New file.
31433         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
31434         (Depends-on): Add ansi-c++-opt.
31435         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
31436         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
31437         gl_MODULE_INDICATOR.
31438
31439         Tests of module 'sys_select' in C++ mode.
31440         * tests/test-sys_select-c++.cc: New file.
31441         * modules/sys_select-tests (Files): Add it and tests/signature.h.
31442         (Depends-on): Add ansi-c++-opt.
31443         (Makefile.am): Arrange to compile and run test-sys_select-c++.
31444         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
31445         gl_MODULE_INDICATOR.
31446
31447         Tests of module 'sys_ioctl' in C++ mode.
31448         * tests/test-sys_ioctl-c++.cc: New file.
31449         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
31450         (Depends-on): Add ansi-c++-opt.
31451         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
31452         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
31453         gl_MODULE_INDICATOR.
31454
31455         Tests of module 'string' in C++ mode.
31456         * tests/test-string-c++.cc: New file.
31457         * modules/string-tests (Files): Add it and tests/signature.h.
31458         (Depends-on): Add ansi-c++-opt.
31459         (Makefile.am): Arrange to compile and run test-string-c++.
31460         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
31461         gl_MODULE_INDICATOR.
31462
31463         Tests of module 'stdlib' in C++ mode.
31464         * tests/test-stdlib-c++.cc: New file.
31465         * modules/stdlib-tests (Files): Add it and tests/signature.h.
31466         (Depends-on): Add ansi-c++-opt.
31467         (Makefile.am): Arrange to compile and run test-stdlib-c++.
31468         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
31469         gl_MODULE_INDICATOR.
31470
31471         Tests of module 'stdio' in C++ mode.
31472         * tests/test-stdio-c++.cc: New file.
31473         * modules/stdio-tests (Files): Add it and tests/signature.h.
31474         (Depends-on): Add ansi-c++-opt.
31475         (Makefile.am): Arrange to compile and run test-stdio-c++.
31476         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
31477         gl_MODULE_INDICATOR.
31478
31479         Tests of module 'spawn' in C++ mode.
31480         * tests/test-spawn-c++.cc: New file.
31481         * modules/spawn-tests (Files): Add it and tests/signature.h.
31482         (Depends-on): Add ansi-c++-opt.
31483         (Makefile.am): Arrange to compile and run test-spawn-c++.
31484         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
31485         gl_MODULE_INDICATOR.
31486
31487         Tests of module 'signal' in C++ mode.
31488         * tests/test-signal-c++.cc: New file.
31489         * modules/signal-tests (Files): Add it and tests/signature.h.
31490         (Depends-on): Add ansi-c++-opt.
31491         (Makefile.am): Arrange to compile and run test-signal-c++.
31492         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
31493         gl_MODULE_INDICATOR.
31494
31495         Tests of module 'search' in C++ mode.
31496         * tests/test-search-c++.cc: New file.
31497         * modules/search-tests (Files): Add it and tests/signature.h.
31498         (Depends-on): Add ansi-c++-opt.
31499         (Makefile.am): Arrange to compile and run test-search-c++.
31500         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
31501         gl_MODULE_INDICATOR.
31502
31503         Tests of module 'math' in C++ mode.
31504         * tests/test-math-c++.cc: New file.
31505         * modules/math-tests (Files): Add it and tests/signature.h.
31506         (Depends-on): Add ansi-c++-opt.
31507         (Makefile.am): Arrange to compile and run test-math-c++.
31508         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31509
31510         Tests of module 'locale' in C++ mode.
31511         * tests/test-locale-c++.cc: New file.
31512         * modules/locale-tests (Files): Add it and tests/signature.h.
31513         (Depends-on): Add ansi-c++-opt.
31514         (Makefile.am): Arrange to compile and run test-locale-c++.
31515         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
31516         gl_MODULE_INDICATOR.
31517
31518         Tests of module 'langinfo' in C++ mode.
31519         * tests/test-langinfo-c++.cc: New file.
31520         * modules/langinfo-tests (Files): Add it and tests/signature.h.
31521         (Depends-on): Add ansi-c++-opt.
31522         (Makefile.am): Arrange to compile and run test-langinfo-c++.
31523         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
31524         gl_MODULE_INDICATOR.
31525
31526         Tests of module 'iconv-h' in C++ mode.
31527         * tests/test-iconv-h-c++.cc: New file.
31528         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
31529         (Depends-on): Add ansi-c++-opt.
31530         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
31531
31532         Tests of module 'glob' in C++ mode.
31533         * tests/test-glob-c++.cc: New file.
31534         * modules/glob-tests (Files): Add it.
31535         (Depends-on): Add ansi-c++-opt.
31536         (Makefile.am): Arrange to compile and run test-glob-c++.
31537
31538         Tests of module 'fcntl-h' in C++ mode.
31539         * tests/test-fcntl-h-c++.cc: New file.
31540         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
31541         (Depends-on): Add ansi-c++-opt.
31542         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
31543         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
31544         gl_MODULE_INDICATOR.
31545
31546         Tests of module 'dirent' in C++ mode.
31547         * tests/test-dirent-c++.cc: New file.
31548         * modules/dirent-tests (Files): Add it and tests/signature.h.
31549         (Depends-on): Add ansi-c++-opt.
31550         (Makefile.am): Arrange to compile and run test-dirent-c++.
31551         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31552         gl_MODULE_INDICATOR.
31553
31554         New module 'ansi-c++-opt'.
31555         * modules/ansi-c++-opt: New file.
31556         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
31557
31558         Document C++ namespace mode.
31559         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
31560
31561         wctype: Avoid #define replacements in C++ mode.
31562         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
31563         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
31564         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
31565         In C++, define a namespaced alias symbol.
31566         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
31567         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
31568         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
31569         rule.
31570
31571         wchar: Avoid #define replacements in C++ mode.
31572         * lib/wchar.in.h: Include c++defs.h.
31573         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
31574         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
31575         symbol.
31576         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
31577         * modules/wchar (Depends-on): Add c++defs.
31578         (Makefile.am): Update wchar.h rule.
31579
31580         unistd: Avoid #define replacements in C++ mode.
31581         * lib/unistd.in.h: Include c++defs.h.
31582         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
31583         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
31584         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
31585         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
31586         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
31587         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
31588         symbol.
31589         (environ): Update.
31590         * modules/unistd (Depends-on): Add c++defs.
31591         (Makefile.am): Update unistd.h rule.
31592
31593         time: Avoid #define replacements in C++ mode.
31594         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
31595         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
31596         define a namespaced alias symbol.
31597         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
31598         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
31599         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
31600         * modules/time (Depends-on): Add c++defs, warn-on-use.
31601         (Makefile.am): Update time.h rule.
31602         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31603         * modules/nanosleep (configure.ac): Likewise.
31604         * modules/strptime (configure.ac): Likewise.
31605         * modules/timegm (configure.ac): Likewise.
31606
31607         sys_time: Avoid #define replacements in C++ mode.
31608         * lib/sys_time.in.h: Include c++defs.h.
31609         (gettimeofday): In C++, define a namespaced alias symbol.
31610         * modules/sys_time (Depends-on): Add c++defs.
31611         (Makefile.am): Update sys/time.h rule.
31612
31613         sys_stat: Avoid #define replacements in C++ mode.
31614         * lib/sys_stat.in.h: Include c++defs.h.
31615         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
31616         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
31617         namespaced alias symbol.
31618         In C++, define a namespaced alias symbol.
31619         * modules/sys_stat (Depends-on): Add c++defs.
31620         (Makefile.am): Update sys/stat.h rule.
31621
31622         sys_socket: Avoid #define replacements in C++ mode.
31623         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
31624         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
31625         definitions also when the system has a <sys/socket.h>.
31626         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31627         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
31628         In C++, define a namespaced alias symbol.
31629         * modules/sys_socket (Depends-on): Add c++defs.
31630         (Makefile.am): Update sys/socket.h rule.
31631
31632         sys_select: Avoid #define replacements in C++ mode.
31633         * lib/sys_select.in.h: Include c++defs.h. Enable the function
31634         definitions also when the system has a <sys/select.h>.
31635         (select): In C++, define a namespaced alias symbol.
31636         * modules/sys_select (Depends-on): Add c++defs.
31637         (Makefile.am): Update sys/select.h rule.
31638
31639         sys_ioctl: Avoid #define replacements in C++ mode.
31640         * lib/sys_ioctl.in.h: Include c++defs.h.
31641         (ioctl): In C++, define a namespaced alias symbol.
31642         * modules/sys_ioctl (Depends-on): Add c++defs.
31643         (Makefile.am): Update sys/ioctl.h rule.
31644
31645         string: Avoid #define replacements in C++ mode.
31646         * lib/string.in.h: Include c++defs.h.
31647         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
31648         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31649         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31650         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
31651         strsignal, strverscmp): In C++, define a namespaced alias symbol.
31652         * modules/string (Depends-on): Add c++defs.
31653         (Makefile.am): Update string.h rule.
31654
31655         stdlib: Avoid #define replacements in C++ mode.
31656         * lib/stdlib.in.h: Include c++defs.h.
31657         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
31658         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
31659         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
31660         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
31661         symbol.
31662         * modules/stdlib (Depends-on): Add c++defs.
31663         (Makefile.am): Update stdlib.h rule.
31664
31665         stdio: Avoid #define replacements in C++ mode.
31666         * lib/stdio.in.h: Include c++defs.h.
31667         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
31668         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
31669         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
31670         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
31671         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
31672         namespaced alias symbol.
31673         * modules/stdio (Depends-on): Add c++defs.
31674         (Makefile.am): Update stdio.h rule.
31675
31676         spawn: Avoid #define replacements in C++ mode.
31677         * lib/spawn.in.h: Include c++defs.h.
31678         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31679         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31680         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31681         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31682         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31683         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31684         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31685         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31686         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31687         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31688         In C++, define a namespaced alias symbol.
31689         * modules/spawn (Depends-on): Add c++defs.
31690         (Makefile.am): Update spawn.h rule.
31691
31692         signal: Avoid #define replacements in C++ mode.
31693         * lib/signal.in.h: Include c++defs.h.
31694         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31695         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
31696         namespaced alias symbol.
31697         * modules/signal (Depends-on): Add c++defs.
31698         (Makefile.am): Update signal.h rule.
31699
31700         search: Avoid #define replacements in C++ mode.
31701         * lib/search.in.h: Include c++defs.h.
31702         (_gl_search_compar_fn, _gl_search_action_fn): New types.
31703         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
31704         symbol.
31705         * modules/search (Depends-on): Add c++defs.
31706         (Makefile.am): Update search.h rule.
31707
31708         math: Avoid #define replacements in C++ mode.
31709         * lib/math.in.h: Include c++defs.h.
31710         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
31711         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
31712         trunc, truncl): In C++, define a namespaced alias symbol.
31713         * modules/math (Depends-on): Add c++defs.
31714         (Makefile.am): Update math.h rule.
31715
31716         locale: Avoid #define replacements in C++ mode.
31717         * lib/locale.in.h: Include c++defs.h.
31718         (duplocale): In C++, define a namespaced alias symbol.
31719         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
31720         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
31721         * modules/locale (Depends-on): Add c++defs.
31722         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
31723
31724         langinfo: Avoid #define replacements in C++ mode.
31725         * lib/langinfo.in.h: Include c++defs.h.
31726         (nl_langinfo): In C++, define a namespaced alias symbol.
31727         * modules/langinfo (Depends-on): Add c++defs.
31728         (Makefile.am): Update langinfo.h rule.
31729
31730         iconv-h: Avoid #define replacements in C++ mode.
31731         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
31732         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
31733         symbol.
31734         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31735         whenever iconv is present.
31736         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
31737         (Makefile.am): Update iconv.h rule.
31738
31739         glob: Avoid #define replacements in C++ mode.
31740         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
31741         (_gl_glob_errfunc_fn): New type.
31742         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
31743         symbol.
31744         * modules/glob (Depends-on): Add c++defs, warn-on-use.
31745         (Makefile.am): Update glob.h rule.
31746
31747         fcntl-h: Avoid #define replacements in C++ mode.
31748         * lib/fcntl.in.h: Include c++defs.h.
31749         (fcntl, open, openat): In C++, define a namespaced alias symbol.
31750         * modules/fcntl-h (Depends-on): Add c++defs.
31751         (Makefile.am): Update fcntl.h rule.
31752
31753         dirent: Avoid #define replacements in C++ mode.
31754         * lib/dirent.in.h: Include c++defs.h.
31755         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
31756         namespaced alias symbol.
31757         (dirfd): Update declaration.
31758         * modules/dirent (Depends-on): Add c++defs.
31759         (Makefile.am): Update dirent.h rule.
31760
31761         ctype: Make it usable in C++ code.
31762         * lib/ctype.in.h: Include c++defs.h.
31763         (isblank): Declare as extern "C".
31764         * modules/ctype (Depends-on): Add c++defs.
31765         (Makefile.am): Update ctype.h rule.
31766
31767         New module 'c++defs'.
31768         * modules/c++defs: New file.
31769         * build-aux/c++defs.h: New file.
31770         Reported by John W. Eaton <jwe@gnu.org>.
31771
31772 2010-03-07  Bruno Haible  <bruno@clisp.org>
31773
31774         logb: Provide missing declaration for Cygwin.
31775         * lib/math.in.h (logb): New declaration.
31776         * m4/logb.m4: New file.
31777         * modules/logb (Files): Add m4/logb.m4.
31778         (Depends-on): Add math.
31779         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
31780         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
31781         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
31782         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
31783         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
31784
31785 2010-03-07  Bruno Haible  <bruno@clisp.org>
31786
31787         Fix test-cond link error.
31788         * tests/test-cond.c: Include <stdio.h>.
31789
31790 2010-03-07  Bruno Haible  <bruno@clisp.org>
31791
31792         Fix test-dirent-safer link error.
31793         * modules/dirent-safer-tests (Makefile.am): Define
31794         test_dirent_safer_LDADD.
31795
31796 2010-03-07  Bruno Haible  <bruno@clisp.org>
31797
31798         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
31799         among default module list.
31800
31801 2010-03-07  Bruno Haible  <bruno@clisp.org>
31802
31803         Fix link error on platforms with GNU libiconv.
31804         * modules/unistr/u8-strcoll-tests (Makefile): Define
31805         test_u8_strcoll_LDADD.
31806         * modules/unistr/u16-strcoll-tests (Makefile): Define
31807         test_u16_strcoll_LDADD.
31808         * modules/unistr/u32-strcoll-tests (Makefile): Define
31809         test_u32_strcoll_LDADD.
31810
31811 2010-03-07  Bruno Haible  <bruno@clisp.org>
31812
31813         Use POSIX declarations for socket functions.
31814         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
31815         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
31816         rpl_sendto): Change declaration to match POSIX.
31817         * lib/connect.c (rpl_connect): Likewise.
31818         * lib/accept.c (rpl_accept): Likewise.
31819         * lib/bind.c (rpl_bind): Likewise.
31820         * lib/getpeername.c (rpl_getpeername): Likewise.
31821         * lib/getsockname.c (rpl_getsockname): Likewise.
31822         * lib/recv.c (rpl_recv): Likewise.
31823         * lib/send.c (rpl_send): Likewise.
31824         * lib/recvfrom.c (rpl_recvfrom): Likewise.
31825         * lib/sendto.c (rpl_sendto): Likewise.
31826
31827 2010-03-06  Bruno Haible  <bruno@clisp.org>
31828
31829         Clarify access, euidaccess, faccessat.
31830         * doc/posix-functions/faccessat.texi: Mention security problem under
31831         "Other problems", not "Portability problems".
31832         * doc/posix-functions/access.texi: Likewise. Mention a related security
31833         problem.
31834         * doc/glibc-functions/euidaccess.texi: Mention security problems.
31835         * lib/euidaccess.c: Add comments about platforms.
31836         * lib/unistd.in.h (access, euidaccess): Add warnings.
31837
31838 2010-03-07  Bruno Haible  <bruno@clisp.org>
31839
31840         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
31841         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
31842         (POSIX_SPAWN_SETSCHEDULER): Likewise.
31843         (POSIX_SPAWN_USEVFORK): Define in a way that works when
31844         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31845         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
31846         declare when POSIX_SPAWN_SETSCHEDULER is zero.
31847         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
31848         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
31849         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
31850         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
31851         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
31852         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
31853         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
31854         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
31855         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
31856         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
31857         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
31858         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
31859         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
31860         Likewise.
31861         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
31862         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
31863         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
31864         Likewise.
31865         * tests/test-spawn.c (main): Make it work when
31866         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31867
31868 2010-03-07  Bruno Haible  <bruno@clisp.org>
31869
31870         Fix incorrect Makefile.am generation in German locale.
31871         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31872         Execute sed command with character range in C locale.
31873
31874 2010-03-06  Bruno Haible  <bruno@clisp.org>
31875
31876         Tests for module 'iconv-h'.
31877         * modules/iconv-h-tests: New file.
31878         * tests/test-iconv-h.c: New file.
31879
31880         New module 'iconv-h'.
31881         * modules/iconv-h: New file.
31882         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
31883         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
31884         (configure.ac): Remove gl_ICONV_H.
31885         (Makefile.am): Remove rule for iconv.h.
31886
31887 2010-03-06  Bruno Haible  <bruno@clisp.org>
31888
31889         More consistent naming of *.m4 files.
31890         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
31891         * modules/wctype (Files): Update.
31892
31893         More consistent naming of *.m4 files.
31894         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
31895         * modules/wchar (Files): Update.
31896
31897 2010-03-06  Jim Meyering  <meyering@redhat.com>
31898
31899         euidaccess: relax license to LGPLv2+
31900         * modules/euidaccess (License): Relax to LGPLv2+.
31901
31902 2010-03-06  Bruno Haible  <bruno@clisp.org>
31903
31904         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
31905         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
31906         (Makefile.am): Augment lib_SOURCES instead.
31907
31908 2010-03-04  Jim Meyering  <meyering@redhat.com>
31909
31910         utime: remove obsolete module
31911         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
31912         unnecessary for years, and has been marked as obsolete for 10 months.
31913         * modules/utime: Remove file.
31914         * lib/utime.c: Remove file.
31915         * m4/utime.m4: Remove file.
31916         * m4/utimes-null.m4: Remove file.
31917         * doc/posix-functions/utime.texi (utime): Remove reference to
31918         the module.  Move the sole "fixed by gnulib" item into the
31919         "problems not fixed by Gnulib" list.
31920         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
31921
31922 2010-03-05  Simon Josefsson  <simon@josefsson.org>
31923
31924         * modules/exit (License): Relax license to LGPLv2+.
31925         (Status): Mark as obsolete.
31926         * NEWS: Mention deprecated 'exit' module.
31927         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
31928         of now obsolete 'exit'.
31929
31930 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31931
31932         fts-lgpl: remove unused module
31933         * modules/fts-lgpl: Remove.
31934         * MODULES.html.sh (func_all_modules): Adjust.
31935         * check-module (find_included_lib_files): Adjust.
31936         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
31937
31938 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
31939
31940         copy-acl: enhance Solaris ACL error handling
31941         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
31942         * lib/set-mode-acl.c (qset_acl): Likewise.
31943
31944 2010-03-02  Bruno Haible  <bruno@clisp.org>
31945
31946         spawn: Don't override the system defined values on FreeBSD 8.
31947         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
31948         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
31949         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
31950         if HAVE_POSIX_SPAWN is 1.
31951         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
31952
31953 2010-03-01  Bruno Haible  <bruno@clisp.org>
31954
31955         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
31956         regarding Automake.
31957
31958 2010-02-25  Bruno Haible  <bruno@clisp.org>
31959
31960         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
31961         * gnulib-tool: Define 'echo' as a function only before the ksh alias
31962         setting, not afterwards.
31963         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
31964
31965 2010-02-24  Eric Blake  <eblake@redhat.com>
31966
31967         bootstrap, git-version-gen: use timestamp
31968         * build-aux/git-version-gen (scriptversion): Force UTC.
31969         * build-aux/bootstrap (scriptversion): New variable.
31970
31971         bootstrap: allow older git
31972         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
31973         older than 1.6.4.  Requested by the libvirt project.
31974
31975 2010-02-23  Eric Blake  <eblake@redhat.com>
31976
31977         warn-on-use: work with old autoconf
31978         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
31979         AS_VAR semantics of autoconf 2.60.
31980         Reported by Bruno Haible.
31981
31982         bootstrap: improve some comments
31983         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
31984         clarification comments.
31985
31986         gettimeofday: provide correct function
31987         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
31988         when replacement is declared, otherwise provide gettimeofday.
31989         Reported by Michael Goffioul.
31990
31991 2010-02-23  Jim Meyering  <meyering@redhat.com>
31992
31993         lib-ignore: relax license to "unlimited", not LGPLv2+
31994         * modules/lib-ignore (License): Relax to "unlimited".
31995
31996 2010-02-23  Jim Meyering  <meyering@redhat.com>
31997
31998         lib-ignore: relax license to LGPLv2+
31999         * modules/lib-ignore (License): Relax to LGPLv2+.
32000
32001 2010-02-22  Eric Blake  <eblake@redhat.com>
32002
32003         lseek: avoid bash 3.2 broken pipe bug
32004         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
32005         warning from bash 3.2.
32006         Reported by Ben Pfaff, with analysis from Bruno Haible.
32007
32008         bootstrap: support non-FSF copyright holder
32009         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
32010         bootstrap.conf override of COPYRIGHT_HOLDER.
32011         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
32012
32013         bootstrap: interoperate with gettext 0.14.1
32014         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
32015
32016         bootstrap: allow for alternate submodule location
32017         * build-aux/bootstrap (gnulib_path): New variable; use instead of
32018         hardcoding submodule location.
32019         (gnulib_mk): Allow direct use of Makefile.am.
32020
32021         bootstrap: use GNULIB_SRCDIR to reduce disk usage
32022         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
32023         rather than reconfiguring where the submodule points.
32024
32025         gettimeofday: restore support for platforms that lack function
32026         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
32027         replacement if function is missing.
32028         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
32029         * modules/sys_time (Makefile.am): Substitute it.
32030         * lib/sys_time.in.h (gettimeofday): Check it.
32031         Reported by Michael Goffioul.
32032
32033 2010-02-21  Bruno Haible  <bruno@clisp.org>
32034
32035         * lib/stdio.in.h (obstack_printf): Fix typo.
32036
32037 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
32038
32039         vc-list-files: use bzr ls's -R option
32040         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
32041         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
32042
32043 2010-02-21  Jim Meyering  <meyering@redhat.com>
32044
32045         init.sh: fix EXEEXT shims to work also for names like test-prog
32046         * tests/init.sh: Re-exec a better shell, when needed.
32047         If the current shell lacks support for posix $(...), an init.sh-using
32048         test will now try to find a shell that supports that.  If EXEEXT is
32049         nonempty, we also require support for hyphen-in-alias-name and shell
32050         substitutions like ${var#glob}.  Failure to find such a shell results
32051         in a skipped test.
32052
32053 2010-02-21  Bruno Haible  <bruno@clisp.org>
32054
32055         Really work around around "broken pipe" error message from bash 3.2.
32056         * gnulib-tool (func_reset_sigpipe): Remove function.
32057         (echo): In bash 3.2, define to a function that uses printf.
32058         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
32059
32060 2010-02-20  Bruno Haible  <bruno@clisp.org>
32061
32062         Restore support for automake 1.9.6 with autoconf 2.61.
32063         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
32064         Reported by James Youngman <jay@gnu.org>.
32065
32066 2010-02-20  Bruno Haible  <bruno@clisp.org>
32067
32068         Improve *printf warning condition.
32069         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
32070         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
32071         and the function is overridden due to SIGPIPE emulation.
32072
32073 2010-02-20  Bruno Haible  <bruno@clisp.org>
32074
32075         * lib/stdio.in.h: Tweak comments.
32076
32077 2010-02-19  Bruno Haible  <bruno@clisp.org>
32078
32079         Make it easier to find modules. New gnulib-tool option '--find'.
32080         * gnulib-tool: New option --find.
32081         (func_usage): Document it.
32082         (func_sanitize_modulelist): New function, extracted from
32083         func_all_modules.
32084         (func_all_modules): Invoke it.
32085         * doc/gnulib-tool.texi (Which modules?): New node.
32086
32087 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
32088
32089         * lib/sys_select.in.h: Provide select replacement even if
32090         sys/select.h exists on a system, for Interix.
32091
32092 2010-02-18  Jim Meyering  <meyering@redhat.com>
32093
32094         init.sh: don't use $(...) just yet
32095         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
32096         to accommodate e.g., Solaris' /bin/sh.
32097
32098 2010-02-17  Bruno Haible  <bruno@clisp.org>
32099
32100         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
32101         Reported by Ludovic Courtès <ludo@gnu.org>.
32102
32103 2010-02-16  Simon Josefsson  <simon@josefsson.org>
32104
32105         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
32106         linking with -lintl.
32107
32108 2010-02-17  Simon Josefsson  <simon@josefsson.org>
32109
32110         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
32111         if not provided by the system's netdb.h.  Reported by
32112         ludo@gnu.org (Ludovic Courtès).
32113
32114 2010-02-15  Jim Meyering  <meyering@redhat.com>
32115
32116         init.sh: improve portability and efficiency
32117         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
32118         "dummy" in a for loop.
32119         Use '!', not '^' to select the complement of a character set used
32120         in a "case" statement.
32121         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
32122         Suggestions from Eric Blake.
32123
32124         init.sh: automatically accommodate programs with the .exe suffix
32125         Automatically arrange for an invocation of "prog" to execute the
32126         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
32127         may use the simpler "prog", yet still work when built on a system
32128         that requires specifying the added suffix.
32129         Do this by constructing a function named "prog" that invokes
32130         "prog.exe" for each .exe file in selected directories.
32131         * tests/init.sh (find_exe_basenames_): New function.
32132         (create_exe_shim_functions_): New function.
32133         (path_prepend_): Use it.
32134
32135         maint.mk: mark syntax-check sc_*.m rules as .PHONY
32136         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
32137         "make -t syntax-check" doesn't create a ton of sc_*.m files.
32138
32139 2010-02-14  Jim Meyering  <meyering@redhat.com>
32140
32141         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
32142         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
32143         (sc_prohibit_hash_pjw_without_use): New rule.
32144
32145         maint.mk: allow the default upload destination dir to be overridden
32146         * top/maint.mk (upload_dest_dir_): Define with a default that
32147         preserves the status quo.
32148         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
32149         Reported by Peter Simons.
32150
32151         maint.mk: prohibit inclusion of "hash.h" without_use
32152         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
32153
32154 2010-02-10  Jim Meyering  <meyering@redhat.com>
32155
32156         maint.mk: prohibit inclusion of "ignore-value.h" without_use
32157         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
32158
32159 2010-02-09  Eric Blake  <ebb9@byu.net>
32160         and Bruno Haible  <bruno@clisp.org>
32161
32162         obstack-printf-posix: ensure declaration
32163         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
32164         extracted from gl_FUNC_OBSTACK_PRINTF.
32165         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
32166         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
32167         Likewise.
32168         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
32169         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
32170         0.
32171
32172 2010-02-08  Bruno Haible  <bruno@clisp.org>
32173
32174         gnulib-tool: Fix typo in 2010-02-07 commit.
32175         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
32176         Reported by Eric Blake.
32177
32178 2010-02-07  Bruno Haible  <bruno@clisp.org>
32179
32180         gnulib-tool: Fix up caching patches.
32181         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
32182         option --no-cache. Use associative arrays when supported by the shell.
32183         (sed_comments): New variable.
32184         (modcache): Renamed from do_cache.
32185         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
32186         abbreviate unnecessarily.
32187         (have_associative): New variable.
32188         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
32189         way also for ksh and zsh.
32190         (func_init_sed_convert_to_cache_statements): New function, extracted
32191         from func_cache_lookup_module. Add support for associative arrays.
32192         Don't set the c_MODULE_cached variable here. Ignore all lines before
32193         the first field header. Remove only the final newline, not all trailing
32194         newlines. Support empty fields correctly. Limit the use of 'eval' to
32195         assignments.
32196         (func_get_description, func_get_status, func_get_notice,
32197         func_get_applicability, func_get_filelist, func_get_dependencies,
32198         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
32199         func_get_automake_snippet, func_get_include_directive,
32200         func_get_link_directive, func_get_license, func_get_maintainer):
32201         Update documentation. List the unoptimized code first. Add support for
32202         associative arrays. Limit the use of 'eval' to assignments.
32203         (func_get_applicability): Undo stylistic pessimisations.
32204         (func_get_automake_snippet, func_get_include_directive): Reduce code
32205         duplication.
32206         (func_modules_transitive_closure, func_modules_add_dummy,
32207         func_modules_notice, func_modules_to_filelist, func_add_file,
32208         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
32209         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
32210         func_create_testdir, func_create_megatestdir): Update documentation.
32211
32212 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32213
32214         * gnulib-tool (func_cache_lookup_module): Store the module name
32215         belonging to the cache variable; error out if two different
32216         module names map to the same cache variable name.
32217
32218 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32219
32220         gnulib-tool: Make caching optional.
32221         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
32222         Update matching short versions of --no-changelog.
32223         (func_usage): Update.
32224         (sed_extract_cache_prog): Renamed from ...
32225         (sed_extract_prog): ... this; revert to old extraction script.
32226         (func_get_description, func_get_status)
32227         (func_get_notice, func_get_applicability, func_get_filelist)
32228         (func_get_dependencies, func_get_autoconf_early_snippet)
32229         (func_get_autoconf_snippet, func_get_automake_snippet)
32230         (func_get_include_directive, func_get_link_directive)
32231         (func_get_license, func_get_maintainer): If $do_cache is false,
32232         use old, non-caching extraction scripts.
32233         Suggestion by Bruno Haible.
32234
32235 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32236
32237         gnulib-tool: cache module metainformation.
32238         * gnulib-tool (sed_extract_prog): Match newline before each
32239         header, and rewrite header to a shell variable suffix.
32240         (func_cache_var, func_cache_lookup_module): New functions,
32241         to turn a module name into a cache variable prefix, and to
32242         look up and cache module metainformation.
32243         (func_get_description, func_get_status)
32244         (func_get_notice, func_get_applicability, func_get_filelist)
32245         (func_get_dependencies, func_get_autoconf_early_snippet)
32246         (func_get_autoconf_snippet, func_get_automake_snippet)
32247         (func_get_include_directive, func_get_link_directive)
32248         (func_get_license, func_get_maintainer): Use
32249         func_cache_lookup_module.
32250
32251 2010-02-07  Bruno Haible  <bruno@clisp.org>
32252
32253         fnctl: Fix missing dependency.
32254         * modules/fcntl (Depends-on): Add getdtablesize.
32255         Reported by John W. Eaton <jwe@gnu.org>.
32256
32257 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32258
32259         Argp: fix recognition of short alias options.
32260
32261         * lib/argp-parse.c (convert_options): Fix improper use of
32262         `|' between character values.
32263         * tests/test-argp.c (group1_option): New alias option
32264         --read (-r).
32265         (group1_parser): Special handling for 'r'.
32266         (test15): New test case.
32267         (test_fun): Add test15.
32268         * tests/test-argp-2.sh: Update expected --help and --usage
32269         outputs.
32270
32271 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32272
32273         * tests/test-argp.c: Fix indentation.
32274
32275 2010-02-04  Eric Blake  <ebb9@byu.net>
32276
32277         gettimeofday: expose type of second argument
32278         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32279         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32280         * tests/test-gettimeofday.c: Use it to silence warning.
32281         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32282         the issue.
32283
32284 2010-02-03  Jim Meyering  <meyering@redhat.com>
32285
32286         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
32287         * lib/regcomp.c (TYPE_SIGNED): Define.
32288         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
32289
32290         regcomp.c: avoid a new -Wshadow warning
32291         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
32292
32293 2010-02-01  Jim Meyering  <meyering@redhat.com>
32294
32295         removing useless parentheses in cpp #define directives
32296         For motivation, see commit c0221df4, "define STREQ(a,b)
32297         consistently, removing useless parentheses"
32298         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
32299         * lib/mountlist.c (MNT_IGNORE): Likewise.
32300         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
32301
32302 2010-02-01  Eric Blake  <ebb9@byu.net>
32303
32304         sys_time: use link-warning
32305         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
32306         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
32307         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
32308         * modules/sys_time (Depends-on): Add warn-on-use.
32309         (Makefile.am): Always build replacement.
32310         (configure.ac): Update substitutions.
32311         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
32312         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
32313         bother with SYS_TIME_H.
32314         * modules/gettimeofday (configure.ac): Declare indicator.
32315         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
32316         in use.
32317
32318         closein-tests: silence compiler warning
32319         * tests/test-closein.c (main): Ignore fread result.
32320         * modules/closein-tests (Depends-on): Add ignore-value.
32321
32322         tests: silence warning about system return
32323         * tests/test-areadlink-with-size.c (main): Ignore system result.
32324         * tests/test-areadlink.c (main): Likewise.
32325         * tests/test-areadlinkat-with-size.c (main): Likewise.
32326         * tests/test-areadlinkat.c (main): Likewise.
32327         * tests/test-canonicalize-lgpl.c (main): Likewise.
32328         * tests/test-canonicalize.c (main): Likewise.
32329         * tests/test-chown.c (main): Likewise.
32330         * tests/test-fchownat.c (main): Likewise.
32331         * tests/test-fdutimensat.c (main): Likewise.
32332         * tests/test-fstatat.c (main): Likewise.
32333         * tests/test-futimens.c (main): Likewise.
32334         * tests/test-lchown.c (main): Likewise.
32335         * tests/test-link.c (main): Likewise.
32336         * tests/test-linkat.c (main): Likewise.
32337         * tests/test-lstat.c (main): Likewise.
32338         * tests/test-mkdir.c (main): Likewise.
32339         * tests/test-mkdirat.c (main): Likewise.
32340         * tests/test-mkfifo.c (main): Likewise.
32341         * tests/test-mkfifoat.c (main): Likewise.
32342         * tests/test-mknod.c (main): Likewise.
32343         * tests/test-readlink.c (main): Likewise.
32344         * tests/test-remove.c (main): Likewise.
32345         * tests/test-rename.c (main): Likewise.
32346         * tests/test-renameat.c (main): Likewise.
32347         * tests/test-rmdir.c (main): Likewise.
32348         * tests/test-symlink.c (main): Likewise.
32349         * tests/test-symlinkat.c (main): Likewise.
32350         * tests/test-unlink.c (main): Likewise.
32351         * tests/test-unlinkat.c (main): Likewise.
32352         * tests/test-utimens.c (main): Likewise.
32353         * tests/test-utimensat.c (main): Likewise.
32354         * modules/areadlink-tests (Depends-on): Add ignore-value.
32355         * modules/areadlink-with-size-tests (Depends-on): Likewise.
32356         * modules/areadlinkat-tests (Depends-on): Likewise.
32357         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
32358         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32359         * modules/canonicalize-tests (Depends-on): Likewise.
32360         * modules/chown-tests (Depends-on): Likewise.
32361         * modules/fdutimensat-tests (Depends-on): Likewise.
32362         * modules/futimens-tests (Depends-on): Likewise.
32363         * modules/lchown-tests (Depends-on): Likewise.
32364         * modules/link-tests (Depends-on): Likewise.
32365         * modules/linkat-tests (Depends-on): Likewise.
32366         * modules/lstat-tests (Depends-on): Likewise.
32367         * modules/mkdir-tests (Depends-on): Likewise.
32368         * modules/mkfifo-tests (Depends-on): Likewise.
32369         * modules/mkfifoat-tests (Depends-on): Likewise.
32370         * modules/mknod-tests (Depends-on): Likewise.
32371         * modules/openat-tests (Depends-on): Likewise.
32372         * modules/readlink-tests (Depends-on): Likewise.
32373         * modules/remove-tests (Depends-on): Likewise.
32374         * modules/rename-tests (Depends-on): Likewise.
32375         * modules/renameat-tests (Depends-on): Likewise.
32376         * modules/rmdir-tests (Depends-on): Likewise.
32377         * modules/symlink-tests (Depends-on): Likewise.
32378         * modules/symlinkat-tests (Depends-on): Likewise.
32379         * modules/unlink-tests (Depends-on): Likewise.
32380         * modules/utimens-tests (Depends-on): Likewise.
32381         * modules/utimensat-tests (Depends-on): Likewise.
32382
32383 2010-01-31  Bruno Haible  <bruno@clisp.org>
32384
32385         Perform the same test for many <math.h> functions.
32386         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
32387         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
32388         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
32389         of gl_MATHFUNC.
32390         * modules/acos (configure.ac): Likewise.
32391         * modules/asin (configure.ac): Likewise.
32392         * modules/atan (configure.ac): Likewise.
32393         * modules/atan2 (configure.ac): Likewise.
32394         * modules/cbrt (configure.ac): Likewise.
32395         * modules/copysign (configure.ac): Likewise.
32396         * modules/cos (configure.ac): Likewise.
32397         * modules/cosh (configure.ac): Likewise.
32398         * modules/erf (configure.ac): Likewise.
32399         * modules/erfc (configure.ac): Likewise.
32400         * modules/exp (configure.ac): Likewise.
32401         * modules/fmod (configure.ac): Likewise.
32402         * modules/hypot (configure.ac): Likewise.
32403         * modules/j0 (configure.ac): Likewise.
32404         * modules/j1 (configure.ac): Likewise.
32405         * modules/jn (configure.ac): Likewise.
32406         * modules/lgamma (configure.ac): Likewise.
32407         * modules/log (configure.ac): Likewise.
32408         * modules/log10 (configure.ac): Likewise.
32409         * modules/log1p (configure.ac): Likewise.
32410         * modules/pow (configure.ac): Likewise.
32411         * modules/remainder (configure.ac): Likewise.
32412         * modules/sin (configure.ac): Likewise.
32413         * modules/sinh (configure.ac): Likewise.
32414         * modules/tan (configure.ac): Likewise.
32415         * modules/tanh (configure.ac): Likewise.
32416         * modules/y0 (configure.ac): Likewise.
32417         * modules/y1 (configure.ac): Likewise.
32418         * modules/yn (configure.ac): Likewise.
32419         Suggested by Paolo Bonzini.
32420
32421 2010-01-31  Bruno Haible  <bruno@clisp.org>
32422
32423         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
32424
32425 2010-01-31  Bruno Haible  <bruno@clisp.org>
32426
32427         Work around getdelim() bug on FreeBSD 8.0.
32428         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
32429         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
32430         not work.
32431         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
32432         is 1.
32433         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
32434         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
32435         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
32436         a non-zero size.
32437         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
32438
32439 2010-01-31  Bruno Haible  <bruno@clisp.org>
32440
32441         Work around getline() bug on FreeBSD 8.0.
32442         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
32443         and a non-zero size.
32444         * tests/test-getline.c (main): Likewise.
32445         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
32446         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
32447
32448 2010-01-28  Eric Blake  <ebb9@byu.net>
32449
32450         regex: fix build failure
32451         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
32452         platforms.
32453
32454 2010-01-28  Jim Meyering  <meyering@redhat.com>
32455
32456         regex: do not ignore memory allocation failure
32457         * lib/regex_internal.c (create_cd_newstate): Detect
32458         re_node_set_init_copy failure.   Extracted from glibc commit
32459         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32460
32461         regex: sync more white-space changes from libc
32462         * lib/regex_internal.c: White-space only changes.
32463         * lib/regexec.c: Likewise.
32464
32465         regex: add many uses of __attribute_warn_unused_result__
32466         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
32467         * lib/regexec.c: Likewise.
32468         Extracted from a messy glibc commit.
32469
32470         regcomp.c: spelling and merge-artifact from glibc
32471         * lib/regcomp.c: Merge remainder of glibc's
32472         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32473
32474         regcomp.c: sync white-space changes from glibc
32475         * lib/regcomp.c: Merge to accommodate white space
32476         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32477
32478         regcomp.c: do not ignore internal return values
32479         * lib/regcomp.c: Do not ignore internal return values.
32480         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
32481         but without its white-space changes and spelling fixes.
32482
32483         regex_internal.h: define __attribute_warn_unused_result__
32484         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
32485
32486         maint: add a syntax-check rule to check for vulnerable Makefile.in
32487         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
32488
32489 2010-01-27  Jim Meyering  <meyering@redhat.com>
32490
32491         ncftpput-ftp: clean up spaces
32492         * build-aux/ncftpput-ftp: Make Copyright line consistent.
32493         Remove trailing blanks.
32494
32495 2010-01-27  Simon Josefsson  <simon@josefsson.org>
32496
32497         * build-aux/git-version-gen: Fix copyright statement.
32498         * build-aux/gnupload: Likewise.
32499         * tests/test-arcfour.c: Likewise.
32500         * tests/test-arctwo.c: Likewise.
32501         * tests/test-count-one-bits.c: Likewise.
32502         * tests/test-crc.c: Likewise.
32503         * tests/test-des.c: Likewise.
32504         * tests/test-gc-arcfour.c: Likewise.
32505         * tests/test-gc-arctwo.c: Likewise.
32506         * tests/test-gc-des.c: Likewise.
32507         * tests/test-gc-hmac-md5.c: Likewise.
32508         * tests/test-gc-hmac-sha1.c: Likewise.
32509         * tests/test-gc-md2.c: Likewise.
32510         * tests/test-gc-md4.c: Likewise.
32511         * tests/test-gc-md5.c: Likewise.
32512         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32513         * tests/test-gc-rijndael.c: Likewise.
32514         * tests/test-gc-sha1.c: Likewise.
32515         * tests/test-gc.c: Likewise.
32516         * tests/test-gethostname.c: Likewise.
32517         * tests/test-gettimeofday.c: Likewise.
32518         * tests/test-hash.c: Likewise.
32519         * tests/test-hmac-md5.c: Likewise.
32520         * tests/test-hmac-sha1.c: Likewise.
32521         * tests/test-md2.c: Likewise.
32522         * tests/test-md4.c: Likewise.
32523         * tests/test-md5.c: Likewise.
32524         * tests/test-memchr.c: Likewise.
32525         * tests/test-memchr2.c: Likewise.
32526         * tests/test-memcmp.c: Likewise.
32527         * tests/test-memmem.c: Likewise.
32528         * tests/test-memrchr.c: Likewise.
32529         * tests/test-rawmemchr.c: Likewise.
32530         * tests/test-read-file.c: Likewise.
32531         * tests/test-rijndael.c: Likewise.
32532         * tests/test-sockets.c: Likewise.
32533         * tests/test-strchrnul.c: Likewise.
32534         * tests/test-strstr.c: Likewise.
32535         * tests/test-strtod.c: Likewise.
32536         * build-aux/ncftpput-ftp: Likewise.
32537
32538 2010-01-26  Eric Blake  <ebb9@byu.net>
32539
32540         ignore-value: update recommended header name
32541         * modules/ignore-value (Include): Only use <> for headers that
32542         exist in glibc.
32543
32544 2010-01-26  Jim Meyering  <meyering@redhat.com>
32545
32546         test-userspec.c: avoid compiler warnings
32547         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
32548         and "initialization discards qualifiers..." warnings.
32549         Put the first "uid" in its own scope, and make char* members "const".
32550
32551 2010-01-25  Bruno Haible  <bruno@clisp.org>
32552
32553         gnulib-tool: Make warning diagnostics consistent.
32554         * gnulib-tool (func_warning): New function.
32555         Use it everywhere where gnulib-tool produces output to stderr and it is
32556         not a fatal error.
32557
32558 2010-01-25  Bruno Haible  <bruno@clisp.org>
32559
32560         Fix test dependencies.
32561         * modules/xstrtol-tests (Depends-on): Add inttypes.
32562         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
32563
32564 2010-01-25 Pádraig Brady <P@draigBrady.com>
32565
32566         syntax-check: detect incorrect boolean macro values in config.h
32567         * modules/maintainer-makefile (configure.ac): Parameterize the location
32568         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
32569         The logic is from Eric Blake and the location indicated by Jim Meyering.
32570         Note the more natural CONFIG_HEADER name is prohibited by automake
32571         for backwards compatibility reasons.
32572         * top/maint.mk (sc_Wundef_boolean): New rule.
32573
32574 2010-01-25  Jim Meyering  <meyering@redhat.com>
32575
32576         bootstrap: detect MacOS 10.6's shasum, too
32577         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
32578         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
32579
32580 2010-01-23  Jim Meyering  <meyering@redhat.com>
32581
32582         xstrtoll: new module
32583         * modules/xstrtoll: New file.
32584         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
32585         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
32586         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
32587         ./configure fails if you use this module and lack "long long".
32588         * modules/xstrtoll-tests: New module.
32589         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
32590         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
32591         new init.sh-based test framework.
32592
32593 2010-01-24  Bruno Haible  <bruno@clisp.org>
32594
32595         Tests for module 'yn'.
32596         * modules/yn-tests: New file.
32597         * tests/test-yn.c: New file.
32598
32599         Tests for module 'y1'.
32600         * modules/y1-tests: New file.
32601         * tests/test-y1.c: New file.
32602
32603         Tests for module 'y0'.
32604         * modules/y0-tests: New file.
32605         * tests/test-y0.c: New file.
32606
32607         Tests for module 'tanh'.
32608         * modules/tanh-tests: New file.
32609         * tests/test-tanh.c: New file.
32610
32611         Tests for module 'tan'.
32612         * modules/tan-tests: New file.
32613         * tests/test-tan.c: New file.
32614
32615         Tests for module 'sqrt'.
32616         * modules/sqrt-tests: New file.
32617         * tests/test-sqrt.c: New file.
32618
32619         Tests for module 'sinh'.
32620         * modules/sinh-tests: New file.
32621         * tests/test-sinh.c: New file.
32622
32623         Tests for module 'sin'.
32624         * modules/sin-tests: New file.
32625         * tests/test-sin.c: New file.
32626
32627         Tests for module 'rint'.
32628         * modules/rint-tests: New file.
32629         * tests/test-rint.c: New file.
32630
32631         Tests for module 'remainder'.
32632         * modules/remainder-tests: New file.
32633         * tests/test-remainder.c: New file.
32634
32635         Tests for module 'pow'.
32636         * modules/pow-tests: New file.
32637         * tests/test-pow.c: New file.
32638
32639         Tests for module 'nextafter'.
32640         * modules/nextafter-tests: New file.
32641         * tests/test-nextafter.c: New file.
32642
32643         Tests for module 'modf'.
32644         * modules/modf-tests: New file.
32645         * tests/test-modf.c: New file.
32646
32647         Tests for module 'logb'.
32648         * modules/logb-tests: New file.
32649         * tests/test-logb.c: New file.
32650
32651         Tests for module 'log1p'.
32652         * modules/log1p-tests: New file.
32653         * tests/test-log1p.c: New file.
32654
32655         Tests for module 'log10'.
32656         * modules/log10-tests: New file.
32657         * tests/test-log10.c: New file.
32658
32659         Tests for module 'log'.
32660         * modules/log-tests: New file.
32661         * tests/test-log.c: New file.
32662
32663         Tests for module 'lgamma'.
32664         * modules/lgamma-tests: New file.
32665         * tests/test-lgamma.c: New file.
32666
32667         Tests for module 'ldexp'.
32668         * modules/ldexp-tests: New file.
32669         * tests/test-ldexp.c: New file.
32670
32671         Tests for module 'jn'.
32672         * modules/jn-tests: New file.
32673         * tests/test-jn.c: New file.
32674
32675         Tests for module 'j1'.
32676         * modules/j1-tests: New file.
32677         * tests/test-j1.c: New file.
32678
32679         Tests for module 'j0'.
32680         * modules/j0-tests: New file.
32681         * tests/test-j0.c: New file.
32682
32683         Tests for module 'hypot'.
32684         * modules/hypot-tests: New file.
32685         * tests/test-hypot.c: New file.
32686
32687         Tests for module 'fmod'.
32688         * modules/fmod-tests: New file.
32689         * tests/test-fmod.c: New file.
32690
32691         Tests for module 'fabs'.
32692         * modules/fabs-tests: New file.
32693         * tests/test-fabs.c: New file.
32694
32695         Tests for module 'exp'.
32696         * modules/exp-tests: New file.
32697         * tests/test-exp.c: New file.
32698
32699         Tests for module 'erfc'.
32700         * modules/erfc-tests: New file.
32701         * tests/test-erfc.c: New file.
32702
32703         Tests for module 'erf'.
32704         * modules/erf-tests: New file.
32705         * tests/test-erf.c: New file.
32706
32707         Tests for module 'cosh'.
32708         * modules/cosh-tests: New file.
32709         * tests/test-cosh.c: New file.
32710
32711         Tests for module 'cos'.
32712         * modules/cos-tests: New file.
32713         * tests/test-cos.c: New file.
32714
32715         Tests for module 'copysign'.
32716         * modules/copysign-tests: New file.
32717         * tests/test-copysign.c: New file.
32718
32719         Tests for module 'cbrt'.
32720         * modules/cbrt-tests: New file.
32721         * tests/test-cbrt.c: New file.
32722
32723         Tests for module 'atan2'.
32724         * modules/atan2-tests: New file.
32725         * tests/test-atan2.c: New file.
32726
32727         Tests for module 'atan'.
32728         * modules/atan-tests: New file.
32729         * tests/test-atan.c: New file.
32730
32731         Tests for module 'asin'.
32732         * modules/asin-tests: New file.
32733         * tests/test-asin.c: New file.
32734
32735         Tests for module 'acos'.
32736         * modules/acos-tests: New file.
32737         * tests/test-acos.c: New file.
32738
32739 2010-01-24  Bruno Haible  <bruno@clisp.org>
32740
32741         Fix tests for common <math.h> functions.
32742         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
32743         code snippet that references the function pointer, rather than merely
32744         calling the function. Substitute the FUNC_LIBM variable.
32745         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
32746         * modules/acos (configure.ac): Likewise.
32747         * modules/asin (configure.ac): Likewise.
32748         * modules/atan (configure.ac): Likewise.
32749         * modules/atan2 (configure.ac): Likewise.
32750         * modules/cbrt (configure.ac): Likewise.
32751         * modules/copysign (configure.ac): Likewise.
32752         * modules/cos (configure.ac): Likewise.
32753         * modules/cosh (configure.ac): Likewise.
32754         * modules/erf (configure.ac): Likewise.
32755         * modules/erfc (configure.ac): Likewise.
32756         * modules/exp (configure.ac): Likewise.
32757         * modules/fabs (configure.ac): Likewise.
32758         * modules/fmod (configure.ac): Likewise.
32759         * modules/hypot (configure.ac): Likewise.
32760         * modules/j0 (configure.ac): Likewise.
32761         * modules/j1 (configure.ac): Likewise.
32762         * modules/jn (configure.ac): Likewise.
32763         * modules/ldexp (configure.ac): Likewise.
32764         * modules/lgamma (configure.ac): Likewise.
32765         * modules/log (configure.ac): Likewise.
32766         * modules/log10 (configure.ac): Likewise.
32767         * modules/log1p (configure.ac): Likewise.
32768         * modules/logb (configure.ac): Likewise.
32769         * modules/modf (configure.ac): Likewise.
32770         * modules/nextafter (configure.ac): Likewise.
32771         * modules/pow (configure.ac): Likewise.
32772         * modules/remainder (configure.ac): Likewise.
32773         * modules/rint (configure.ac): Likewise.
32774         * modules/sin (configure.ac): Likewise.
32775         * modules/sinh (configure.ac): Likewise.
32776         * modules/tan (configure.ac): Likewise.
32777         * modules/tanh (configure.ac): Likewise.
32778         * modules/y0 (configure.ac): Likewise.
32779         * modules/y1 (configure.ac): Likewise.
32780         * modules/yn (configure.ac): Likewise.
32781
32782 2010-01-24  Bruno Haible  <bruno@clisp.org>
32783
32784         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
32785         * tests/test-acosl.c (x): New variable.
32786         (main): Store argument in x and fetch it from x.
32787         * tests/test-asinl.c (x): New variable.
32788         (main): Store argument in x and fetch it from x.
32789         * tests/test-atanl.c (x): New variable.
32790         (main): Store argument in x and fetch it from x.
32791         * tests/test-cosl.c (x): New variable.
32792         (main): Store argument in x and fetch it from x.
32793         * tests/test-expl.c (x): New variable.
32794         (main): Store argument in x and fetch it from x.
32795         * tests/test-logl.c (x): New variable.
32796         (main): Store argument in x and fetch it from x.
32797         * tests/test-sinl.c (x): New variable.
32798         (main): Store argument in x and fetch it from x.
32799         * tests/test-sqrtl.c (x): New variable.
32800         (main): Store argument in x and fetch it from x.
32801         * tests/test-tanl.c (x): New variable.
32802         (main): Store argument in x and fetch it from x.
32803
32804 2010-01-24  Bruno Haible  <bruno@clisp.org>
32805
32806         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
32807         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
32808         assignments to the initial TESTS_ENVIRONMENT.
32809         * doc/gnulib.texi (Unit test modules): Document it.
32810         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
32811         TESTS_ENVIRONMENT.
32812         * modules/btowc-tests (Makefile.am): Likewise.
32813         * modules/c-stack-tests (Makefile.am): Likewise.
32814         * modules/c-strcase-tests (Makefile.am): Likewise.
32815         * modules/copy-file-tests (Makefile.am): Likewise.
32816         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
32817         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
32818         * modules/mbrtowc-tests (Makefile.am): Likewise.
32819         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32820         * modules/mbscasestr-tests (Makefile.am): Likewise.
32821         * modules/mbschr-tests (Makefile.am): Likewise.
32822         * modules/mbscspn-tests (Makefile.am): Likewise.
32823         * modules/mbsinit-tests (Makefile.am): Likewise.
32824         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32825         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
32826         * modules/mbspbrk-tests (Makefile.am): Likewise.
32827         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32828         * modules/mbsrchr-tests (Makefile.am): Likewise.
32829         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
32830         * modules/mbsspn-tests (Makefile.am): Likewise.
32831         * modules/mbsstr-tests (Makefile.am): Likewise.
32832         * modules/nl_langinfo-tests (Makefile.am): Likewise.
32833         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
32834         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32835         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32836         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32837         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32838         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
32839         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32840         * modules/wcrtomb-tests (Makefile.am): Likewise.
32841         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
32842         * modules/wcsrtombs-tests (Makefile.am): Likewise.
32843         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
32844         assignments from TESTS_ENVIRONMENT.
32845         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
32846         augmentation.
32847         * modules/argp-version-etc-tests (Makefile.am): Likewise.
32848         * modules/atexit-tests (Makefile.am): Likewise.
32849         * modules/binary-io-tests (Makefile.am): Likewise.
32850         * modules/closein-tests (Makefile.am): Likewise.
32851         * modules/dprintf-posix-tests (Makefile.am): Likewise.
32852         * modules/exclude-tests (Makefile.am): Likewise.
32853         * modules/fflush-tests (Makefile.am): Likewise.
32854         * modules/fpending-tests (Makefile.am): Likewise.
32855         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32856         * modules/freadahead-tests (Makefile.am): Likewise.
32857         * modules/freadptr-tests (Makefile.am): Likewise.
32858         * modules/freadseek-tests (Makefile.am): Likewise.
32859         * modules/fseek-tests (Makefile.am): Likewise.
32860         * modules/fseeko-tests (Makefile.am): Likewise.
32861         * modules/ftell-tests (Makefile.am): Likewise.
32862         * modules/ftello-tests (Makefile.am): Likewise.
32863         * modules/idpriv-drop-tests (Makefile.am): Likewise.
32864         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
32865         * modules/lseek-tests (Makefile.am): Likewise.
32866         * modules/parse-duration-tests (Makefile.am): Likewise.
32867         * modules/perror-tests (Makefile.am): Likewise.
32868         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
32869         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
32870         * modules/pipe-tests (Makefile.am): Likewise.
32871         * modules/pread-tests (Makefile.am): Likewise.
32872         * modules/printf-posix-tests (Makefile.am): Likewise.
32873         * modules/select-tests (Makefile.am): Likewise.
32874         * modules/sigpipe-tests (Makefile.am): Likewise.
32875         * modules/tsearch-tests (Makefile.am): Likewise.
32876         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
32877         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
32878         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32879         * modules/uniwidth/width-tests (Makefile.am): Likewise.
32880         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
32881         * modules/version-etc-tests (Makefile.am): Likewise.
32882         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32883         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32884         * modules/xalloc-die-tests (Makefile.am): Likewise.
32885         * modules/xprintf-posix-tests (Makefile.am): Likewise.
32886         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32887         * modules/xstrtol-tests (Makefile.am): Likewise.
32888         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32889         * modules/yesno-tests (Makefile.am): Likewise.
32890         Suggested by Jim Meyering.
32891
32892 2010-01-24  Bruno Haible  <bruno@clisp.org>
32893
32894         More documentation.
32895         * doc/gnulib.texi (Writing modules): New chapter.
32896         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
32897         the new chapter.
32898
32899 2010-01-24  Jim Meyering  <meyering@redhat.com>
32900
32901         maint.mk: do not prepend "./" after filtering
32902         * top/maint.mk (_prepend_srcdir_prefix): New variable
32903         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
32904         "./" when $(srcdir) is ".".
32905
32906         define STREQ(a,b) consistently, removing useless parentheses
32907         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
32908         since the only risk is that "a" or "b" contains an unparenthesized
32909         comma, but if either did that, STREQ would have 3 or more arguments.
32910         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
32911         * lib/fts.c (STREQ): Remove unnecessary parentheses.
32912         * lib/hash-triple.c (STREQ): Likewise.
32913         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
32914         * lib/getugroups.c (STREQ): Likewise.
32915
32916 2010-01-23  Jim Meyering  <meyering@redhat.com>
32917
32918         maint.mk: fix syntax-check in a non-srcdir build directory
32919         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
32920         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
32921
32922 2010-01-22  Jim Meyering  <meyering@redhat.com>
32923
32924         userspec: add unit tests
32925         * tests/test-userspec.c: New file.
32926         * modules/userspec-tests: Likewise.
32927
32928 2010-01-21  Jim Meyering  <meyering@redhat.com>
32929
32930         maint.mk: handle source file names containing "." robustly
32931         * top/maint.mk (_dot_escaped_srcdir): Define.
32932         (VC_LIST): Use it in LHS of sed substitution.
32933
32934 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
32935
32936         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
32937         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
32938         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
32939         from a non-srcdir build.
32940
32941 2010-01-20  Eric Blake  <ebb9@byu.net>
32942
32943         warn-on-use: use instead of link-warning
32944         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
32945         * modules/unistd (Depends-on, Makefile.am): Likewise.
32946         * modules/arpa_inet (Depends-on): Replace link-warning with
32947         warn-on-use.
32948         (Makefile.am): Update rules accordingly.
32949         * modules/ctype (Depends-on, Makefile.am): Likewise.
32950         * modules/dirent (Depends-on, Makefile.am): Likewise.
32951         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
32952         * modules/inttypes (Depends-on, Makefile.am): Likewise.
32953         * modules/langinfo (Depends-on, Makefile.am): Likewise.
32954         * modules/locale (Depends-on, Makefile.am): Likewise.
32955         * modules/math (Depends-on, Makefile.am): Likewise.
32956         * modules/search (Depends-on, Makefile.am): Likewise.
32957         * modules/signal (Depends-on, Makefile.am): Likewise.
32958         * modules/spawn (Depends-on, Makefile.am): Likewise.
32959         * modules/stdlib (Depends-on, Makefile.am): Likewise.
32960         * modules/string (Depends-on, Makefile.am): Likewise.
32961         * modules/strings (Depends-on, Makefile.am): Likewise.
32962         * modules/sys_file (Depends-on, Makefile.am): Likewise.
32963         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
32964         * modules/sys_select (Depends-on, Makefile.am): Likewise.
32965         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
32966         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
32967         * modules/sys_times (Depends-on, Makefile.am): Likewise.
32968         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
32969         * modules/wchar (Depends-on, Makefile.am): Likewise.
32970         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
32971         should be poisoned.
32972         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
32973         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
32974         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
32975         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32976         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32977         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32978         * m4/math_h.m4 (gl_MATH_H): Likewise.
32979         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32980         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32981         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32982         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32983         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32984         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32985         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
32986         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
32987         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
32988         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32989         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32990         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32991         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32992         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32993         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32994         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32995         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
32996         GL_LINK_WARNING.
32997         * lib/ctype.in.h: Likewise.
32998         * lib/dirent.in.h: Likewise.
32999         * lib/fcntl.in.h: Likewise.
33000         * lib/inttypes.in.h: Likewise.
33001         * lib/langinfo.in.h: Likewise.
33002         * lib/locale.in.h: Likewise.
33003         * lib/math.in.h: Likewise.
33004         * lib/search.in.h: Likewise.
33005         * lib/signal.in.h: Likewise.
33006         * lib/spawn.in.h: Likewise.
33007         * lib/stdio.in.h: Likewise.
33008         * lib/stdlib.in.h: Likewise.
33009         * lib/string.in.h: Likewise.
33010         * lib/strings.in.h: Likewise.
33011         * lib/sys_file.in.h: Likewise.
33012         * lib/sys_ioctl.in.h: Likewise.
33013         * lib/sys_select.in.h: Likewise.
33014         * lib/sys_socket.in.h: Likewise.
33015         * lib/sys_stat.in.h: Likewise.
33016         * lib/sys_times.in.h: Likewise.
33017         * lib/sys_utsname.in.h: Likewise.
33018         * lib/unistd.in.h: Likewise.
33019         * lib/wchar.in.h: Likewise.
33020
33021 2010-01-20  Bruno Haible  <bruno@clisp.org>
33022
33023         Avoid duplicate -lm.
33024         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
33025         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
33026         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
33027         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
33028         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
33029         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
33030         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
33031         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
33032         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
33033         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
33034         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
33035         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
33036         Reported by Paolo Bonzini.
33037
33038 2010-01-19  Bruno Haible  <bruno@clisp.org>
33039
33040         langinfo, nl_langinfo: Relicense under LGPLv2+.
33041         * modules/langinfo (License): Change to LGPLv2+.
33042         * modules/nl_langinfo (License): Likewise.
33043         Patch by David Lutterkort <lutter@redhat.com>.
33044
33045 2010-01-19  Bruno Haible  <bruno@clisp.org>
33046
33047         Avoid compilation error with cc on OSF/1 5.1.
33048         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
33049         statement, not before.
33050         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33051
33052 2010-01-18  Bruno Haible  <bruno@clisp.org>
33053
33054         Avoid a link error due to the __printf__ symbol.
33055         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
33056         and 2.6.x.
33057         (__format__, __printf__): Remove definitions.
33058         * lib/argp-fmtstream.h: Likewise.
33059         * lib/argp.h: Likewise.
33060         * lib/error.h: Likewise.
33061         * lib/vasnprintf.h: Likewise.
33062         * lib/xprintf.h: Likewise.
33063         * lib/xvasprintf.h: Likewise.
33064         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33065
33066 2010-01-18  Bruno Haible  <bruno@clisp.org>
33067
33068         Tests for module 'tanl'.
33069         * modules/tanl-tests: New file.
33070         * tests/test-tanl.c: New file.
33071
33072         Tests for module 'sqrtl'.
33073         * modules/sqrtl-tests: New file.
33074         * tests/test-sqrtl.c: New file.
33075
33076         Tests for module 'sinl'.
33077         * modules/sinl-tests: New file.
33078         * tests/test-sinl.c: New file.
33079
33080         Tests for module 'logl'.
33081         * modules/logl-tests: New file.
33082         * tests/test-logl.c: New file.
33083
33084         Tests for module 'expl'.
33085         * modules/expl-tests: New file.
33086         * tests/test-expl.c: New file.
33087
33088         Tests for module 'cosl'.
33089         * modules/cosl-tests: New file.
33090         * tests/test-cosl.c: New file.
33091
33092         Tests for module 'atanl'.
33093         * modules/atanl-tests: New file.
33094         * tests/test-atanl.c: New file.
33095
33096         Tests for module 'asinl'.
33097         * modules/asinl-tests: New file.
33098         * tests/test-asinl.c: New file.
33099
33100         Tests for module 'acosl'.
33101         * modules/acosl-tests: New file.
33102         * tests/test-acosl.c: New file.
33103
33104         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33105         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
33106         tanl): Use the standard gnulib idiom.
33107         * lib/cosl.c: Don't include trigl.c and sincosl.c.
33108         * lib/sinl.c: Likewise.
33109         * lib/tanl.c: Don't include trigl.c.
33110         (kernel_tanl): Make static.
33111         * lib/sincosl.c: Include trigl.h first.
33112         * lib/trigl.c: Likewise.
33113         * m4/acosl.m4: New file.
33114         * m4/asinl.m4: New file.
33115         * m4/atanl.m4: New file.
33116         * m4/cosl.m4: New file.
33117         * m4/expl.m4: New file.
33118         * m4/logl.m4: New file.
33119         * m4/sinl.m4: New file.
33120         * m4/sqrtl.m4: New file.
33121         * m4/tanl.m4: New file.
33122         * m4/mathl.m4: Remove file.
33123         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
33124         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
33125         Don't initialize GNULIB_MATHL.
33126         * modules/acosl: New file.
33127         * modules/asinl: New file.
33128         * modules/atanl: New file.
33129         * modules/cosl: New file.
33130         * modules/expl: New file.
33131         * modules/logl: New file.
33132         * modules/sinl: New file.
33133         * modules/sqrtl: New file.
33134         * modules/tanl: New file.
33135         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
33136         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
33137         substitute GNULIB_MATHL.
33138         * modules/mathl: Rewritten.
33139         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
33140         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
33141         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
33142         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
33143         * doc/posix-functions/expl.texi: Mention the 'expl' module.
33144         * doc/posix-functions/logl.texi: Mention the 'logl' module.
33145         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
33146         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
33147         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
33148
33149 2010-01-18  Bruno Haible  <bruno@clisp.org>
33150
33151         sqrt: Make gl_FUNC_SQRT requirable.
33152         * m4/sqrt.m4: New file.
33153         * modules/sqrt (Files): Add it.
33154         (configure.ac): Invoke gl_FUNC_SQRT.
33155
33156 2010-01-18  Bruno Haible  <bruno@clisp.org>
33157
33158         New modules for common <math.h> functions.
33159         * m4/mathfunc.m4: New file.
33160         * modules/acos: New file.
33161         * modules/asin: New file.
33162         * modules/atan: New file.
33163         * modules/atan2: New file.
33164         * modules/cbrt: New file.
33165         * modules/copysign: New file.
33166         * modules/cos: New file.
33167         * modules/cosh: New file.
33168         * modules/erf: New file.
33169         * modules/erfc: New file.
33170         * modules/exp: New file.
33171         * modules/fabs: New file.
33172         * modules/fmod: New file.
33173         * modules/hypot: New file.
33174         * modules/j0: New file.
33175         * modules/j1: New file.
33176         * modules/jn: New file.
33177         * modules/ldexp: New file.
33178         * modules/lgamma: New file.
33179         * modules/log: New file.
33180         * modules/log10: New file.
33181         * modules/log1p: New file.
33182         * modules/logb: New file.
33183         * modules/modf: New file.
33184         * modules/nextafter: New file.
33185         * modules/pow: New file.
33186         * modules/remainder: New file.
33187         * modules/rint: New file.
33188         * modules/sin: New file.
33189         * modules/sinh: New file.
33190         * modules/sqrt: New file.
33191         * modules/tan: New file.
33192         * modules/tanh: New file.
33193         * modules/y0: New file.
33194         * modules/y1: New file.
33195         * modules/yn: New file.
33196         * doc/posix-functions/acos.texi: Mention the 'acos' module.
33197         * doc/posix-functions/asin.texi: Mention the 'asin' module.
33198         * doc/posix-functions/atan.texi: Mention the 'atan' module.
33199         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
33200         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
33201         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
33202         * doc/posix-functions/cos.texi: Mention the 'cos' module.
33203         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
33204         * doc/posix-functions/erf.texi: Mention the 'erf' module.
33205         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
33206         * doc/posix-functions/exp.texi: Mention the 'exp' module.
33207         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
33208         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
33209         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
33210         * doc/posix-functions/j0.texi: Mention the 'j0' module.
33211         * doc/posix-functions/j1.texi: Mention the 'j1' module.
33212         * doc/posix-functions/jn.texi: Mention the 'jn' module.
33213         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
33214         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
33215         * doc/posix-functions/log.texi: Mention the 'log' module.
33216         * doc/posix-functions/log10.texi: Mention the 'log10' module.
33217         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
33218         * doc/posix-functions/logb.texi: Mention the 'logb' module.
33219         * doc/posix-functions/modf.texi: Mention the 'modf' module.
33220         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
33221         * doc/posix-functions/pow.texi: Mention the 'pow' module.
33222         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
33223         * doc/posix-functions/rint.texi: Mention the 'rint' module.
33224         * doc/posix-functions/sin.texi: Mention the 'sin' module.
33225         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
33226         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
33227         * doc/posix-functions/tan.texi: Mention the 'tan' module.
33228         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
33229         * doc/posix-functions/y0.texi: Mention the 'y0' module.
33230         * doc/posix-functions/y1.texi: Mention the 'y1' module.
33231         * doc/posix-functions/yn.texi: Mention the 'yn' module.
33232
33233 2010-01-18  Jim Meyering  <meyering@redhat.com>
33234
33235         ignore-value: relax license to LGPLv2+
33236         * modules/ignore-value (License): Relax to LGPLv2+.
33237
33238         getdate: don't leak when TZ contains two or more '"'s
33239         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
33240         double quote in TZ after the first one.
33241
33242         readtokens: do not leak internal token_lengths buffer
33243         * lib/readtokens.c (readtokens): Free the local, lengths,
33244         when the supplied "token_lengths" parameter is NULL.
33245
33246 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33247
33248         Fix a couple of missing LIBTHREAD link failures on AIX.
33249         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
33250         $(LIBTHREAD).
33251         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
33252
33253         Link test-poll against INET_PTON_LIB.
33254         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
33255         for inet_pton on Solaris 10.
33256
33257 2010-01-17  Bruno Haible  <bruno@clisp.org>
33258
33259         unistdio/*-sprintf: Fix typo in module description.
33260         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
33261         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
33262         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
33263         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
33264         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
33265         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33266         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33267         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33268
33269 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33270
33271         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33272         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33273         variables in shell case patterns, for AIX and HP-UX ksh.
33274
33275         Split large sed scripts, for HP-UX sed.
33276         * modules/stdio: Split sed scripts around 50 sed commands,
33277         to avoid HP-UX limit of 99 commands, in the near future.
33278         * modules/string: Likewise.
33279         * modules/unistd: Likewise.
33280
33281         gnulib-tool: avoid writing in the current directory.
33282         * gnulib-tool (func_emit_lib_Makefile_am)
33283         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
33284         not in the current directory, so concurrent gnulib-tool
33285         instances do not interfere.
33286
33287 2010-01-16  Jim Meyering  <meyering@redhat.com>
33288
33289         doc: update users.txt
33290         * users.txt: Add grep.
33291         (diffutils, gzip): Update URLs.
33292
33293 2010-01-12  Bruno Haible  <bruno@clisp.org>
33294
33295         posix_spawn: Avoid test failure on Cygwin.
33296         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
33297         characters.
33298         Reported by Simon Josefsson.
33299
33300 2010-01-12  Bruno Haible  <bruno@clisp.org>
33301
33302         * tests/test-cond.c (main): When skipping the test, show the reason.
33303
33304 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33305
33306         * lib/striconv.c (str_cd_iconv): Avoid if before free.
33307
33308 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33309
33310         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
33311         VC_LIST_ALWAYS_EXCLUDE_REGEX.
33312
33313 2010-01-12  Eric Blake  <ebb9@byu.net>
33314
33315         build: guarantee AS_VAR_IF
33316         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
33317         (gl_AS_VAR_IF): Move...
33318         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
33319         Reported by Simon Josefsson.
33320
33321 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33322
33323         * lib/stdio.in.h: Fix typo.
33324
33325 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33326
33327         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
33328         libgpg-error.
33329
33330 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33331
33332         * tests/test-xalloc-die.sh: Use $EXEEXT.
33333
33334 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33335             Bruno Haible  <bruno@clisp.org>
33336
33337         getlogin, getlogin_r: Avoid test failure.
33338         * tests/test-getlogin.c: Include <stdio.h>.
33339         (main): Skip the test when the function fails because stdin is not a
33340         tty.
33341         * tests/test-getlogin_r.c: Include <stdio.h>.
33342         (main): Skip the test when the function fails because stdin is not a
33343         tty.
33344
33345 2010-01-11  Eric Blake  <ebb9@byu.net>
33346
33347         tests: avoid more large file warnings
33348         * tests/test-fflush.c: Avoid warning about ftell use.
33349         * tests/test-fseek.c: Avoid warning about fseek use.
33350
33351 2010-01-10  Bruno Haible  <bruno@clisp.org>
33352
33353         nproc: Work better on Linux when /proc and /sys are not mounted.
33354         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
33355         as lower bound when, on glibc/Linux systems,
33356         sysconf (_SC_NPROCESSORS_CONF) returns 1.
33357         Suggested by Pádraig Brady <P@draigbrady.com>.
33358         Reported by Dmitry V. Levin <ldv@altlinux.org>.
33359
33360         nproc: Refactor.
33361         * lib/nproc.c (num_processors_via_affinity_mask): New function,
33362         extracted from num_processors.
33363         (num_processors): Call it.
33364
33365 2010-01-11  Jim Meyering  <meyering@redhat.com>
33366
33367         utimecmp: avoid new warning from upcoming gcc-4.5.0
33368         * lib/utimecmp.c (BILLION): Define using #define rather than an
33369         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
33370
33371 2010-01-11  Eric Blake  <ebb9@byu.net>
33372
33373         math: add portability warnings for classification macros
33374         * modules/math (Depends-on): Add warn-on-use.
33375         (Makefile.am): Provide new substitutions.
33376         * m4/math_h.m4 (gl_MATH_H): Require inline.
33377         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
33378         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
33379         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
33380         implement warnings.
33381
33382         unistd: warn on use of environ without module
33383         * modules/unistd (Depends-on): Add warn-on-use.
33384         (Makefile.am): Provide new substitutions.
33385         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
33386         * lib/unistd.in.h (environ): Wrap with a warning helper function.
33387
33388         stdio: warn on suspicious uses
33389         * modules/stdio (Depends-on): Add warn-on-use.
33390         (Makefile.am): Provide new substitutions.
33391         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
33392         fseeko.
33393         * lib/stdio.in.h (gets): Always warn on use.
33394         (fseek, ftell): Adjust when warnings are issued, and honor
33395         _GL_NO_LARGE_FILES as a way to silence the warning.
33396         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
33397         any warning about large file offsets.
33398         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
33399         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
33400         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
33401         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
33402         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
33403         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
33404         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
33405         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
33406
33407         warn-on-use: new module
33408         * modules/warn-on-use: New file.
33409         * build-aux/warn-on-use.h: Likewise.
33410         * m4/warn-on-use.m4: Likewise.
33411         * MODULES.html.sh (Support for building): Mention it.
33412
33413 2010-01-10  Bruno Haible  <bruno@clisp.org>
33414
33415         Tests for module 'unistr/u32-strdup'.
33416         * modules/unistr/u32-strdup-tests: New file.
33417         * tests/unistr/test-u32-strdup.c: New file.
33418
33419         Tests for module 'unistr/u16-strdup'.
33420         * modules/unistr/u16-strdup-tests: New file.
33421         * tests/unistr/test-u16-strdup.c: New file.
33422
33423         Tests for module 'unistr/u8-strdup'.
33424         * modules/unistr/u8-strdup-tests: New file.
33425         * tests/unistr/test-u8-strdup.c: New file.
33426         * tests/unistr/test-strdup.h: New file.
33427
33428         Tests for module 'unistr/u32-strncmp'.
33429         * modules/unistr/u32-strncmp-tests: New file.
33430         * tests/unistr/test-u32-strncmp.c: New file.
33431
33432         Tests for module 'unistr/u16-strncmp'.
33433         * modules/unistr/u16-strncmp-tests: New file.
33434         * tests/unistr/test-u16-strncmp.c: New file.
33435
33436         Tests for module 'unistr/u8-strncmp'.
33437         * modules/unistr/u8-strncmp-tests: New file.
33438         * tests/unistr/test-u8-strncmp.c: New file.
33439         * tests/unistr/test-strncmp.h: New file.
33440
33441         Tests for module 'unistr/u32-strcoll'.
33442         * modules/unistr/u32-strcoll-tests: New file.
33443         * tests/unistr/test-u32-strcoll.c: New file.
33444
33445         Tests for module 'unistr/u16-strcoll'.
33446         * modules/unistr/u16-strcoll-tests: New file.
33447         * tests/unistr/test-u16-strcoll.c: New file.
33448
33449         Tests for module 'unistr/u8-strcoll'.
33450         * modules/unistr/u8-strcoll-tests: New file.
33451         * tests/unistr/test-u8-strcoll.c: New file.
33452
33453         Tests for module 'unistr/u32-strcmp'.
33454         * modules/unistr/u32-strcmp-tests: New file.
33455         * tests/unistr/test-u32-strcmp.c: New file.
33456         * tests/unistr/test-u32-strcmp.h: New file.
33457
33458         Tests for module 'unistr/u16-strcmp'.
33459         * modules/unistr/u16-strcmp-tests: New file.
33460         * tests/unistr/test-u16-strcmp.c: New file.
33461         * tests/unistr/test-u16-strcmp.h: New file.
33462
33463         Tests for module 'unistr/u8-strcmp'.
33464         * modules/unistr/u8-strcmp-tests: New file.
33465         * tests/unistr/test-u8-strcmp.c: New file.
33466         * tests/unistr/test-u8-strcmp.h: New file.
33467         * tests/unistr/test-strcmp.h: New file.
33468
33469         Tests for module 'unistr/u32-strncat'.
33470         * modules/unistr/u32-strncat-tests: New file.
33471         * tests/unistr/test-u32-strncat.c: New file.
33472
33473         Tests for module 'unistr/u16-strncat'.
33474         * modules/unistr/u16-strncat-tests: New file.
33475         * tests/unistr/test-u16-strncat.c: New file.
33476
33477         Tests for module 'unistr/u8-strncat'.
33478         * modules/unistr/u8-strncat-tests: New file.
33479         * tests/unistr/test-u8-strncat.c: New file.
33480         * tests/unistr/test-strncat.h: New file.
33481
33482         Tests for module 'unistr/u32-strcat'.
33483         * modules/unistr/u32-strcat-tests: New file.
33484         * tests/unistr/test-u32-strcat.c: New file.
33485
33486         Tests for module 'unistr/u16-strcat'.
33487         * modules/unistr/u16-strcat-tests: New file.
33488         * tests/unistr/test-u16-strcat.c: New file.
33489
33490         Tests for module 'unistr/u8-strcat'.
33491         * modules/unistr/u8-strcat-tests: New file.
33492         * tests/unistr/test-u8-strcat.c: New file.
33493         * tests/unistr/test-strcat.h: New file.
33494
33495         Tests for module 'unistr/u32-stpncpy'.
33496         * modules/unistr/u32-stpncpy-tests: New file.
33497         * tests/unistr/test-u32-stpncpy.c: New file.
33498
33499         Tests for module 'unistr/u16-stpncpy'.
33500         * modules/unistr/u16-stpncpy-tests: New file.
33501         * tests/unistr/test-u16-stpncpy.c: New file.
33502
33503         Tests for module 'unistr/u8-stpncpy'.
33504         * modules/unistr/u8-stpncpy-tests: New file.
33505         * tests/unistr/test-u8-stpncpy.c: New file.
33506         * tests/unistr/test-stpncpy.h: New file.
33507
33508         Tests for module 'unistr/u32-strncpy'.
33509         * modules/unistr/u32-strncpy-tests: New file.
33510         * tests/unistr/test-u32-strncpy.c: New file.
33511
33512         Tests for module 'unistr/u16-strncpy'.
33513         * modules/unistr/u16-strncpy-tests: New file.
33514         * tests/unistr/test-u16-strncpy.c: New file.
33515
33516         Tests for module 'unistr/u8-strncpy'.
33517         * modules/unistr/u8-strncpy-tests: New file.
33518         * tests/unistr/test-u8-strncpy.c: New file.
33519         * tests/unistr/test-strncpy.h: New file.
33520
33521         Tests for module 'unistr/u32-stpcpy'.
33522         * modules/unistr/u32-stpcpy-tests: New file.
33523         * tests/unistr/test-u32-stpcpy.c: New file.
33524
33525         Tests for module 'unistr/u16-stpcpy'.
33526         * modules/unistr/u16-stpcpy-tests: New file.
33527         * tests/unistr/test-u16-stpcpy.c: New file.
33528
33529         Tests for module 'unistr/u8-stpcpy'.
33530         * modules/unistr/u8-stpcpy-tests: New file.
33531         * tests/unistr/test-u8-stpcpy.c: New file.
33532         * tests/unistr/test-stpcpy.h: New file.
33533
33534         Tests for module 'unistr/u32-strcpy'.
33535         * modules/unistr/u32-strcpy-tests: New file.
33536         * tests/unistr/test-u32-strcpy.c: New file.
33537
33538         Tests for module 'unistr/u16-strcpy'.
33539         * modules/unistr/u16-strcpy-tests: New file.
33540         * tests/unistr/test-u16-strcpy.c: New file.
33541
33542         Tests for module 'unistr/u8-strcpy'.
33543         * modules/unistr/u8-strcpy-tests: New file.
33544         * tests/unistr/test-u8-strcpy.c: New file.
33545         * tests/unistr/test-strcpy.h: New file.
33546
33547         Tests for module 'unistr/u32-strnlen'.
33548         * modules/unistr/u32-strnlen-tests: New file.
33549         * tests/unistr/test-u32-strnlen.c: New file.
33550
33551         Tests for module 'unistr/u16-strnlen'.
33552         * modules/unistr/u16-strnlen-tests: New file.
33553         * tests/unistr/test-u16-strnlen.c: New file.
33554
33555         Tests for module 'unistr/u8-strnlen'.
33556         * modules/unistr/u8-strnlen-tests: New file.
33557         * tests/unistr/test-u8-strnlen.c: New file.
33558         * tests/unistr/test-strnlen.h: New file.
33559
33560         Tests for module 'unistr/u32-strlen'.
33561         * modules/unistr/u32-strlen-tests: New file.
33562         * tests/unistr/test-u32-strlen.c: New file.
33563
33564         Tests for module 'unistr/u16-strlen'.
33565         * modules/unistr/u16-strlen-tests: New file.
33566         * tests/unistr/test-u16-strlen.c: New file.
33567
33568         Tests for module 'unistr/u8-strlen'.
33569         * modules/unistr/u8-strlen-tests: New file.
33570         * tests/unistr/test-u8-strlen.c: New file.
33571
33572         Tests for module 'unistr/u32-prev'.
33573         * modules/unistr/u32-prev-tests: New file.
33574         * tests/unistr/test-u32-prev.c: New file.
33575
33576         Tests for module 'unistr/u16-prev'.
33577         * modules/unistr/u16-prev-tests: New file.
33578         * tests/unistr/test-u16-prev.c: New file.
33579
33580         Tests for module 'unistr/u8-prev'.
33581         * modules/unistr/u8-prev-tests: New file.
33582         * tests/unistr/test-u8-prev.c: New file.
33583
33584         Tests for module 'unistr/u32-next'.
33585         * modules/unistr/u32-next-tests: New file.
33586         * tests/unistr/test-u32-next.c: New file.
33587
33588         Tests for module 'unistr/u16-next'.
33589         * modules/unistr/u16-next-tests: New file.
33590         * tests/unistr/test-u16-next.c: New file.
33591
33592         Tests for module 'unistr/u8-next'.
33593         * modules/unistr/u8-next-tests: New file.
33594         * tests/unistr/test-u8-next.c: New file.
33595
33596         Tests for module 'unistr/u32-strmbtouc'.
33597         * modules/unistr/u32-strmbtouc-tests: New file.
33598         * tests/unistr/test-u32-strmbtouc.c: New file.
33599
33600         Tests for module 'unistr/u16-strmbtouc'.
33601         * modules/unistr/u16-strmbtouc-tests: New file.
33602         * tests/unistr/test-u16-strmbtouc.c: New file.
33603
33604         Tests for module 'unistr/u8-strmbtouc'.
33605         * modules/unistr/u8-strmbtouc-tests: New file.
33606         * tests/unistr/test-u8-strmbtouc.c: New file.
33607
33608         Tests for module 'unistr/u32-strmblen'.
33609         * modules/unistr/u32-strmblen-tests: New file.
33610         * tests/unistr/test-u32-strmblen.c: New file.
33611
33612         Tests for module 'unistr/u16-strmblen'.
33613         * modules/unistr/u16-strmblen-tests: New file.
33614         * tests/unistr/test-u16-strmblen.c: New file.
33615
33616         Tests for module 'unistr/u8-strmblen'.
33617         * modules/unistr/u8-strmblen-tests: New file.
33618         * tests/unistr/test-u8-strmblen.c: New file.
33619
33620         Tests for module 'unistr/u32-cpy-alloc'.
33621         * modules/unistr/u32-cpy-alloc-tests: New file.
33622         * tests/unistr/test-u32-cpy-alloc.c: New file.
33623
33624         Tests for module 'unistr/u16-cpy-alloc'.
33625         * modules/unistr/u16-cpy-alloc-tests: New file.
33626         * tests/unistr/test-u16-cpy-alloc.c: New file.
33627
33628         Tests for module 'unistr/u8-cpy-alloc'.
33629         * modules/unistr/u8-cpy-alloc-tests: New file.
33630         * tests/unistr/test-u8-cpy-alloc.c: New file.
33631         * tests/unistr/test-cpy-alloc.h: New file.
33632
33633         Tests for module 'unistr/u32-mbsnlen'.
33634         * modules/unistr/u32-mbsnlen-tests: New file.
33635         * tests/unistr/test-u32-mbsnlen.c: New file.
33636
33637         Tests for module 'unistr/u16-mbsnlen'.
33638         * modules/unistr/u16-mbsnlen-tests: New file.
33639         * tests/unistr/test-u16-mbsnlen.c: New file.
33640
33641         Tests for module 'unistr/u8-mbsnlen'.
33642         * modules/unistr/u8-mbsnlen-tests: New file.
33643         * tests/unistr/test-u8-mbsnlen.c: New file.
33644
33645         Tests for module 'unistr/u32-chr'.
33646         * modules/unistr/u32-chr-tests: New file.
33647         * tests/unistr/test-u32-chr.c: New file.
33648
33649         Tests for module 'unistr/u16-chr'.
33650         * modules/unistr/u16-chr-tests: New file.
33651         * tests/unistr/test-u16-chr.c: New file.
33652
33653         Tests for module 'unistr/u8-chr'.
33654         * modules/unistr/u8-chr-tests: New file.
33655         * tests/unistr/test-u8-chr.c: New file.
33656         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
33657
33658         Tests for module 'unistr/u32-cmp2'.
33659         * modules/unistr/u32-cmp2-tests: New file.
33660         * tests/unistr/test-u32-cmp2.c: New file.
33661
33662         Tests for module 'unistr/u16-cmp2'.
33663         * modules/unistr/u16-cmp2-tests: New file.
33664         * tests/unistr/test-u16-cmp2.c: New file.
33665
33666         Tests for module 'unistr/u8-cmp2'.
33667         * modules/unistr/u8-cmp2-tests: New file.
33668         * tests/unistr/test-u8-cmp2.c: New file.
33669         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
33670
33671         Tests for module 'unistr/u32-cmp'.
33672         * modules/unistr/u32-cmp-tests: New file.
33673         * tests/unistr/test-u32-cmp.c: New file.
33674
33675         Tests for module 'unistr/u16-cmp'.
33676         * modules/unistr/u16-cmp-tests: New file.
33677         * tests/unistr/test-u16-cmp.c: New file.
33678
33679         Tests for module 'unistr/u8-cmp'.
33680         * modules/unistr/u8-cmp-tests: New file.
33681         * tests/unistr/test-u8-cmp.c: New file.
33682         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
33683
33684         Tests for module 'unistr/u32-set'.
33685         * modules/unistr/u32-set-tests: New file.
33686         * tests/unistr/test-u32-set.c: New file.
33687
33688         Tests for module 'unistr/u16-set'.
33689         * modules/unistr/u16-set-tests: New file.
33690         * tests/unistr/test-u16-set.c: New file.
33691
33692         Tests for module 'unistr/u8-set'.
33693         * modules/unistr/u8-set-tests: New file.
33694         * tests/unistr/test-u8-set.c: New file.
33695         * tests/unistr/test-set.h: New file.
33696
33697         Tests for module 'unistr/u32-move'.
33698         * modules/unistr/u32-move-tests: New file.
33699         * tests/unistr/test-u32-move.c: New file.
33700
33701         Tests for module 'unistr/u16-move'.
33702         * modules/unistr/u16-move-tests: New file.
33703         * tests/unistr/test-u16-move.c: New file.
33704
33705         Tests for module 'unistr/u8-move'.
33706         * modules/unistr/u8-move-tests: New file.
33707         * tests/unistr/test-u8-move.c: New file.
33708         * tests/unistr/test-move.h: New file.
33709
33710         Tests for module 'unistr/u32-cpy'.
33711         * modules/unistr/u32-cpy-tests: New file.
33712         * tests/unistr/test-u32-cpy.c: New file.
33713
33714         Tests for module 'unistr/u16-cpy'.
33715         * modules/unistr/u16-cpy-tests: New file.
33716         * tests/unistr/test-u16-cpy.c: New file.
33717
33718         Tests for module 'unistr/u8-cpy'.
33719         * modules/unistr/u8-cpy-tests: New file.
33720         * tests/unistr/test-u8-cpy.c: New file.
33721         * tests/unistr/test-cpy.h: New file.
33722
33723 2010-01-09  Bruno Haible  <bruno@clisp.org>
33724
33725         Tests for module 'unistr/u32-uctomb'.
33726         * modules/unistr/u32-uctomb-tests: New file.
33727         * tests/unistr/test-u32-uctomb.c: New file.
33728
33729         Tests for module 'unistr/u16-uctomb'.
33730         * modules/unistr/u16-uctomb-tests: New file.
33731         * tests/unistr/test-u16-uctomb.c: New file.
33732
33733         Tests for module 'unistr/u8-uctomb'.
33734         * modules/unistr/u8-uctomb-tests: New file.
33735         * tests/unistr/test-u8-uctomb.c: New file.
33736
33737         Tests for module 'unistr/u32-mbtoucr'.
33738         * modules/unistr/u32-mbtoucr-tests: New file.
33739         * tests/unistr/test-u32-mbtoucr.c: New file.
33740
33741         Tests for module 'unistr/u16-mbtoucr'.
33742         * modules/unistr/u16-mbtoucr-tests: New file.
33743         * tests/unistr/test-u16-mbtoucr.c: New file.
33744
33745         Tests for module 'unistr/u8-mbtoucr'.
33746         * modules/unistr/u8-mbtoucr-tests: New file.
33747         * tests/unistr/test-u8-mbtoucr.c: New file.
33748
33749         Tests for module 'unistr/u32-mbtouc'.
33750         * modules/unistr/u32-mbtouc-tests: New file.
33751         * tests/unistr/test-u32-mbtouc.c: New file.
33752
33753         Tests for module 'unistr/u16-mbtouc'.
33754         * modules/unistr/u16-mbtouc-tests: New file.
33755         * tests/unistr/test-u16-mbtouc.c: New file.
33756
33757         Tests for module 'unistr/u8-mbtouc'.
33758         * modules/unistr/u8-mbtouc-tests: New file.
33759         * tests/unistr/test-u8-mbtouc.c: New file.
33760
33761         Tests for module 'unistr/u32-mbtouc-unsafe'.
33762         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
33763         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
33764         * tests/unistr/test-u32-mbtouc.h: New file.
33765
33766         Tests for module 'unistr/u16-mbtouc-unsafe'.
33767         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
33768         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
33769         * tests/unistr/test-u16-mbtouc.h: New file.
33770
33771         Tests for module 'unistr/u8-mbtouc-unsafe'.
33772         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
33773         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
33774         * tests/unistr/test-u8-mbtouc.h: New file.
33775
33776         Tests for module 'unistr/u32-mblen'.
33777         * modules/unistr/u32-mblen-tests: New file.
33778         * tests/unistr/test-u32-mblen.c: New file.
33779
33780         Tests for module 'unistr/u16-mblen'.
33781         * modules/unistr/u16-mblen-tests: New file.
33782         * tests/unistr/test-u16-mblen.c: New file.
33783
33784         Tests for module 'unistr/u8-mblen'.
33785         * modules/unistr/u8-mblen-tests: New file.
33786         * tests/unistr/test-u8-mblen.c: New file.
33787
33788         Tests for module 'unistr/u32-to-u16'.
33789         * modules/unistr/u32-to-u16-tests: New file.
33790         * tests/unistr/test-u32-to-u16.c: New file.
33791
33792         Tests for module 'unistr/u32-to-u8'.
33793         * modules/unistr/u32-to-u8-tests: New file.
33794         * tests/unistr/test-u32-to-u8.c: New file.
33795
33796         Tests for module 'unistr/u16-to-u32'.
33797         * modules/unistr/u16-to-u32-tests: New file.
33798         * tests/unistr/test-u16-to-u32.c: New file.
33799
33800         Tests for module 'unistr/u16-to-u8'.
33801         * modules/unistr/u16-to-u8-tests: New file.
33802         * tests/unistr/test-u16-to-u8.c: New file.
33803
33804         Tests for module 'unistr/u8-to-u32'.
33805         * modules/unistr/u8-to-u32-tests: New file.
33806         * tests/unistr/test-u8-to-u32.c: New file.
33807
33808         Tests for module 'unistr/u8-to-u16'.
33809         * modules/unistr/u8-to-u16-tests: New file.
33810         * tests/unistr/test-u8-to-u16.c: New file.
33811
33812         Tests for module 'unistr/u32-check'.
33813         * modules/unistr/u32-check-tests: New file.
33814         * tests/unistr/test-u32-check.c: New file.
33815
33816         Tests for module 'unistr/u16-check'.
33817         * modules/unistr/u16-check-tests: New file.
33818         * tests/unistr/test-u16-check.c: New file.
33819
33820         Tests for module 'unistr/u8-check'.
33821         * modules/unistr/u8-check-tests: New file.
33822         * tests/unistr/test-u8-check.c: New file.
33823
33824         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
33825         (category_equals): New function.
33826         (main): Add more tests.
33827         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
33828
33829         * tests/unictype/test-bidi_byname.c (main): Add more tests.
33830
33831 2010-01-10  Bruno Haible  <bruno@clisp.org>
33832
33833         unistr/u*-strcoll: Try harder to distinguish different strings.
33834         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
33835         compare s1 and s2 to see if they are different.
33836
33837 2010-01-10  Bruno Haible  <bruno@clisp.org>
33838
33839         unistr/u*-stpncpy: Fix the return value.
33840         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
33841         description of the return value consistent with stpncpy in glibc.
33842         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
33843         written non-NUL unit.
33844
33845 2010-01-10  Bruno Haible  <bruno@clisp.org>
33846
33847         unistr/u*-next: Add missing dependencies.
33848         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
33849         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
33850         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
33851
33852 2010-01-10  Bruno Haible  <bruno@clisp.org>
33853
33854         unistr/u8-mbsnlen: Fix return value for incomplete character.
33855         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
33856         u8_mblen.
33857         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
33858         Remove unistr/u8-mblen.
33859         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
33860         u16_mblen.
33861         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
33862         Remove unistr/u16-mblen.
33863
33864 2010-01-10  Bruno Haible  <bruno@clisp.org>
33865
33866         wchar: Fix compilation error when <wchar.h> is used from coreutils.
33867         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
33868         Reported by Brian Gough <bjg@gnu.org> and
33869         Chris Clayton <chris2553@googlemail.com> via
33870         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
33871
33872 2010-01-09  Bruno Haible  <bruno@clisp.org>
33873
33874         unistr/u16-to-u32: Reject invalid input.
33875         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
33876         u16_mbtouc.
33877         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
33878         Remove unistr/u16-mbtouc.
33879
33880         unistr/u16-to-u8: Reject invalid input.
33881         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
33882         u16_mbtouc.
33883         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
33884         Remove unistr/u16-mbtouc.
33885
33886         unistr/u8-to-u32: Reject invalid input.
33887         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
33888         u8_mbtouc.
33889         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
33890         Remove unistr/u8-mbtouc.
33891
33892         unistr/u8-to-u16: Reject invalid input.
33893         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
33894         u8_mbtouc.
33895         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
33896         Remove unistr/u8-mbtouc.
33897
33898 2010-01-09  Bruno Haible  <bruno@clisp.org>
33899
33900         Tests for module 'getlogin'.
33901         * modules/getlogin-tests: New file.
33902         * tests/test-getlogin.c: New file.
33903
33904         New module 'getlogin'.
33905         * lib/unistd.in.h (getlogin): New declaration.
33906         * lib/getlogin.c: New file.
33907         * m4/getlogin.m4: New file.
33908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
33909         HAVE_GETLOGIN.
33910         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
33911         HAVE_GETLOGIN.
33912         * modules/getlogin: New file.
33913         * doc/posix-functions/getlogin.texi: Mention the new module.
33914         Reported by John W. Eaton <jwe@gnu.org>.
33915
33916 2010-01-09  Bruno Haible  <bruno@clisp.org>
33917
33918         getlogin_r: Support for native Windows.
33919         * lib/getlogin_r.c: Include <windows.h>
33920         (getlogin_r): Implement for native Windows.
33921         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
33922         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
33923         via John W. Eaton <jwe@gnu.org>.
33924
33925 2010-01-09  Bruno Haible  <bruno@clisp.org>
33926
33927         getlogin_r: Small fixes.
33928         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
33929         succeeds.
33930         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
33931         before testing whether getlogin_r is declared. No need to set
33932         HAVE_DECL_GETLOGIN_R to 1.
33933         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
33934
33935 2010-01-09  Bruno Haible  <bruno@clisp.org>
33936
33937         * lib/unistd.in.h (getlogin_r): Add comment.
33938
33939 2010-01-09  Bruno Haible  <bruno@clisp.org>
33940
33941         Tests for module 'getlogin_r'.
33942         * modules/getlogin_r-tests: New file.
33943         * tests/test-getlogin_r.c: New file.
33944
33945 2010-01-09  Jim Meyering  <meyering@redhat.com>
33946
33947         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
33948         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
33949         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
33950
33951 2010-01-08  Simon Josefsson  <simon@josefsson.org>
33952
33953         * lib/dup2.c (rpl_dup2): Improve comment.
33954
33955 2010-01-08  Eric Blake  <ebb9@byu.net>
33956
33957         maint.mk: allow packages to add makefile @@ exceptions
33958         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
33959         (sc_makefile_check): Rename...
33960         (sc_makefile_at_at_check): ...to this, and use hook.
33961
33962         dup2: work around mingw bug
33963         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
33964         Reported by Simon Josefsson.
33965
33966 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
33967
33968         glob: Fix C++ compilation.
33969         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
33970         C++.
33971
33972 2010-01-07  Bruno Haible  <bruno@clisp.org>
33973
33974         Fix indentation of wctype.in.h, broken since 2007-01-06.
33975         * lib/wctype.in.h: Fix indentation of preprocessor directives.
33976
33977 2010-01-07  Bruno Haible  <bruno@clisp.org>
33978
33979         mbslen: Avoid collision with system function.
33980         * lib/string.in.h [MirBSD]: Include <wchar.h>.
33981         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
33982         * m4/mbslen.m4: New file.
33983         * modules/mbslen (Files): Add it.
33984         (configure.ac): Invoke gl_MBSLEN.
33985         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
33986         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
33987         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
33988         via Ian Beckwith <ianb@erislabs.net>.
33989
33990 2010-01-07  Bruno Haible  <bruno@clisp.org>
33991
33992         dirent: Document the last fix.
33993         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
33994
33995 2010-01-07  Bruno Haible  <bruno@clisp.org>
33996
33997         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
33998         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
33999         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
34000         va_list are defined.
34001         * doc/posix-headers/stdio.texi: Document the bug of missing types.
34002         Reported by Eric Blake.
34003
34004 2010-01-07  Bruno Haible  <bruno@clisp.org>
34005
34006         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
34007         * modules/xlist (Depends-on): Add 'list',
34008         * modules/xoset (Depends-on): Add 'oset'.
34009         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34010
34011 2010-01-07  Bruno Haible  <bruno@clisp.org>
34012
34013         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
34014         * doc/posix-functions/strncasecmp.texi: Likewise.
34015
34016 2010-01-07  Bruno Haible  <bruno@clisp.org>
34017
34018         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
34019
34020 2010-01-07  John W. Eaton  <jwe@octave.org>
34021
34022         wctype: allow C++ use
34023         * lib/wctype.in.h: Add extern "C" block for C++.
34024
34025 2010-01-06  Eric Blake  <ebb9@byu.net>
34026
34027         maint.mk: detect incorrect GFDL usage
34028         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
34029
34030 2010-01-06  Jim Meyering  <meyering@redhat.com>
34031         and Eric Blake  <ebb9@byu.net>
34032
34033         maint.mk: ignore multi-line copyright in NEWS
34034         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
34035
34036 2010-01-06  Eric Blake  <ebb9@byu.net>
34037
34038         select: add missing dependency
34039         * modules/select-tests (Depends-on): Move sockets dependency...
34040         * modules/select (Depends-on): ...here.
34041         Reported by Ian Beckwith.
34042
34043         doc: regenerate INSTALL
34044         * doc/INSTALL: Reflect recent autoconf update.
34045         * doc/INSTALL.ISO: Likewise.
34046         * doc/INSTALL.UTF-8: Likewise.
34047
34048         pread: fix compilation on glibc
34049         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
34050         Reported by Ralf Wildenhues.
34051
34052         dirent: fix test failure
34053         * lib/dirent.in.h (includes): Guarantee ino_t.
34054         Reported by Ralf Wildenhues.
34055
34056 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
34057
34058         linkat, renameat: avoid bad free
34059         * lib/at-func2.c (at_func2): Fix typo.
34060         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
34061
34062 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34063
34064         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
34065         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
34066         to avoid failure of symlink test later.
34067
34068 2010-01-06  Eric Blake  <ebb9@byu.net>
34069
34070         stdio, unistd: guarantee ssize_t
34071         * lib/unistd.in.h (includes): Ensure that types required by POSIX
34072         2008 are exposed when needed.
34073         * lib/stdio.in.h (includes): Likewise.
34074         Reported by Ralf Wildenhues.
34075
34076 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
34077
34078         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
34079         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
34080         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
34081
34082 2010-01-06  Jim Meyering  <meyering@redhat.com>
34083
34084         readtokens: this module *does* require xalloc.h
34085         It uses only functions that were omitted by the old syntax-check rule.
34086         * lib/readtokens.c: Include "xalloc.h" once again.
34087         * modules/readtokens (Depends-on): Add xalloc.
34088         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
34089
34090 2010-01-05  Eric Blake  <ebb9@byu.net>
34091
34092         maint: support 'make announcement' from a VPATH build
34093         * top/maint.mk (announcement): Look for correct NEWS file.
34094
34095 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
34096
34097         utimens (fdutimens): ignore a negative FD, per contract
34098         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
34099         when we have a valid file descriptor.  Otherwise, using a brand
34100         new glibc (with just-patched futimens that now fails with EBADF)
34101         would cause this function to fail with ENOSYS.
34102         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
34103         See also http://bugzilla.redhat.com/552320.
34104
34105 2010-01-05  Eric Blake  <ebb9@byu.net>
34106
34107         strcase: document what it provides
34108         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
34109         gnulib module.
34110         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
34111         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
34112
34113 2010-01-05  Jim Meyering  <meyering@redhat.com>
34114
34115         maint: remove useless inclusions of "xalloc.h"
34116         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
34117         * lib/readtokens.c: Likewise.
34118         * lib/same.c: Likewise.
34119         * modules/getloadavg (Depends-on): Remove xalloc.
34120         * modules/readtokens: Likewise.
34121         * modules/same: Likewise.
34122
34123         maint.mk: include 4 more function names in alloca.h-checking regexp
34124         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
34125         regexp.  Before, we would give a false-positive (saying alloca.h
34126         is included unnecessarily) when the only uses involved omitted symbols.
34127
34128         xalloc.h: use consistent formatting
34129         * lib/xalloc.h: Move declarations to start in the first column.
34130
34131 2010-01-05  Eric Blake  <ebb9@byu.net>
34132
34133         mkdir: avoid xalloc
34134         * lib/mkdir.c (includes): Drop unused header.
34135         Reported by John W. Eaton.
34136
34137 2010-01-04  Jim Meyering  <meyering@redhat.com>
34138
34139         nl_langinfo: avoid configure-time syntax error
34140         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
34141         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
34142         the empty string.  Don't let that provoke a shell syntax error.
34143
34144         regcomp, regexec, fnmatch: avoid array bounds read error
34145         * lib/regcomp.c (build_equiv_class): From glibc:
34146         Use only the low 24 bits of a findidx return value as an index
34147         into the weights array.  Patch by Ulrich Drepper:
34148         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
34149         * lib/regexec.c (check_node_accept_bytes): Likewise.
34150         * lib/fnmatch_loop.c (FCT): Likewise.
34151
34152         regcomp: skip collseq lookup when there are no rules
34153         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
34154         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
34155
34156         regcomp: recognize ill-formed { } expressions
34157         * lib/regcomp.c (parse_dup_op): From glibc:
34158         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
34159
34160         regcomp: fix typo in comment
34161         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
34162         s/satisfy/satisfies/.
34163
34164         regcomp: sync from glibc: remove dead store
34165         * lib/regcomp.c (duplicate_node_closure): Remove useless
34166         search_duplicated_node call and dead store.
34167
34168         regcomp: sync from glibc; always use nl_langinfo
34169         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
34170         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
34171         * modules/regex (Depends-on): Add nl_langinfo.
34172
34173 2010-01-04  Eric Blake  <ebb9@byu.net>
34174
34175         fdopendir: fix configure test
34176         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
34177
34178 2010-01-01  Bruno Haible  <bruno@clisp.org>
34179
34180         wchar: Remove unused configure check.
34181         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
34182
34183 2010-01-01  Eric Blake  <ebb9@byu.net>
34184
34185         headers: make check of system header explicit
34186         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
34187         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
34188         ourselves.
34189         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
34190         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34191         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
34192         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
34193         internals.
34194         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
34195         missing.
34196         Suggested by Bruno Haible.
34197
34198 2010-01-01  Jim Meyering  <meyering@redhat.com>
34199
34200         ChangeLog: tweak to eliminate unnecessary copyright line
34201         * ChangeLog: Remove a copyright line that was mistakenly updated
34202         by today's update-copyright run.  Reported by Eric Blake.
34203
34204         test-update-copyright: don't let envvar setting cause test failure
34205         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34206
34207 2010-01-01  Bruno Haible  <bruno@clisp.org>
34208
34209         localename: Avoid gcc warning.
34210         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
34211         function if it is not used.
34212
34213 2010-01-01  Jim Meyering  <meyering@redhat.com>
34214
34215         update nearly all FSF copyright year lists to include 2010
34216         Use the same procedure as for 2009, outlined in
34217         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
34218
34219         version-etc: set COPYRIGHT_YEAR to 2010
34220         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
34221
34222 2009-12-31  Eric Blake  <ebb9@byu.net>
34223
34224         doc: correct availability of cygwin 1.5.x getopt
34225         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
34226         variables.
34227         * doc/posix-functions/opterr.texi (opterr): Likewise.
34228         * doc/posix-functions/optind.texi (optind): Likewise.
34229         * doc/posix-functions/optopt.texi (optopt): Likewise.
34230         * doc/posix-functions/tzname.texi (tzname): Likewise.
34231
34232         openat: update maintainer
34233         * modules/openat (Maintainer): Add myself.
34234
34235         utimens: avoid shadowing warning
34236         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
34237         buffers into one, to avoid shadowing, as well as avoiding a
34238         redundant stat.
34239         Reported by Jim Meyering.
34240
34241         test-dup2: avoid compiler warning
34242         * tests/test-dup2.c (is_inheritable): Only define if used.
34243
34244 2010-01-01  Bruno Haible  <bruno@clisp.org>
34245
34246         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
34247         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
34248         defined, use wctomb instead of wcrtomb.
34249
34250 2010-01-01  Bruno Haible  <bruno@clisp.org>
34251
34252         iconv: Reject native Solaris iconv.
34253         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
34254         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
34255
34256 2009-12-31  Bruno Haible  <bruno@clisp.org>
34257
34258         * tests/test-signal.c (main): Remove test of 'SIG'.
34259
34260 2009-12-31  Bruno Haible  <bruno@clisp.org>
34261
34262         spawn: Fix incomplete fix.
34263         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34264         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34265         warnings for GNULIB_POSIXCHECK again.
34266         Reported by Eric Blake.
34267
34268 2009-12-31  Bruno Haible  <bruno@clisp.org>
34269
34270         Avoid namespace pollution on glibc systems.
34271         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34272         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34273         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34274         glibc systems.
34275
34276 2009-12-31  Bruno Haible  <bruno@clisp.org>
34277
34278         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34279         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34280         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34281         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34282         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34283         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34284         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34285
34286 2009-12-31  Bruno Haible  <bruno@clisp.org>
34287
34288         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34289         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
34290         afterwards.
34291
34292 2009-12-31  Bruno Haible  <bruno@clisp.org>
34293
34294         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
34295         SYS_UTSNAME_H.
34296
34297 2009-12-31  Bruno Haible  <bruno@clisp.org>
34298
34299         spawn: Fix misapplied patch.
34300         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34301         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34302         warnings for GNULIB_POSIXCHECK.
34303
34304 2009-12-31  Bruno Haible  <bruno@clisp.org>
34305
34306         times: Update after sys_times changed.
34307         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
34308         * modules/times (Files): Add it.
34309         (configure.ac): Invoke gl_FUNC_TIMES.
34310
34311 2009-12-31  Bruno Haible  <bruno@clisp.org>
34312
34313         Use AC_C_INLINE where necessary.
34314         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
34315         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34316         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34317         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
34318         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34319         * m4/mbiter.m4 (gl_MBITER): Likewise.
34320         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34321         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34322         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
34323         * modules/u64 (configure.ac): Likewise.
34324
34325 2009-12-31  Bruno Haible  <bruno@clisp.org>
34326
34327         Use AC_C_INLINE instead of module 'inline' where possible.
34328         * modules/inline (Description): Clarify purpose.
34329         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
34330         * modules/count-one-bits (Depends-on): Remove inline.
34331         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
34332         * modules/openat (Depends-on): Remove inline.
34333         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
34334         instead of depending on module 'inline'.
34335         * modules/filevercmp (Depends-on, configure.ac): Likewise.
34336         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
34337         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
34338         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
34339         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
34340         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
34341         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
34342         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
34343         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
34344         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
34345         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
34346         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
34347         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
34348         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
34349         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
34350         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
34351         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
34352         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
34353         Likewise.
34354         * modules/unictype/property-ascii-hex-digit (Depends-on,
34355         configure.ac): Likewise.
34356         * modules/unictype/property-bidi-arabic-digit (Depends-on,
34357         configure.ac): Likewise.
34358         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
34359         configure.ac): Likewise.
34360         * modules/unictype/property-bidi-block-separator (Depends-on,
34361         configure.ac): Likewise.
34362         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
34363         configure.ac): Likewise.
34364         * modules/unictype/property-bidi-common-separator (Depends-on,
34365         configure.ac): Likewise.
34366         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
34367         Likewise.
34368         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
34369         configure.ac): Likewise.
34370         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
34371         configure.ac): Likewise.
34372         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
34373         configure.ac): Likewise.
34374         * modules/unictype/property-bidi-european-digit (Depends-on,
34375         configure.ac): Likewise.
34376         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
34377         configure.ac): Likewise.
34378         * modules/unictype/property-bidi-left-to-right (Depends-on,
34379         configure.ac): Likewise.
34380         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
34381         configure.ac): Likewise.
34382         * modules/unictype/property-bidi-other-neutral (Depends-on,
34383         configure.ac): Likewise.
34384         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
34385         Likewise.
34386         * modules/unictype/property-bidi-segment-separator (Depends-on,
34387         configure.ac): Likewise.
34388         * modules/unictype/property-bidi-whitespace (Depends-on,
34389         configure.ac): Likewise.
34390         * modules/unictype/property-combining (Depends-on, configure.ac):
34391         Likewise.
34392         * modules/unictype/property-composite (Depends-on, configure.ac):
34393         Likewise.
34394         * modules/unictype/property-currency-symbol (Depends-on,
34395         configure.ac): Likewise.
34396         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
34397         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
34398         Likewise.
34399         * modules/unictype/property-default-ignorable-code-point (Depends-on,
34400         configure.ac): Likewise.
34401         * modules/unictype/property-deprecated (Depends-on, configure.ac):
34402         Likewise.
34403         * modules/unictype/property-diacritic (Depends-on, configure.ac):
34404         Likewise.
34405         * modules/unictype/property-extender (Depends-on, configure.ac):
34406         Likewise.
34407         * modules/unictype/property-format-control (Depends-on, configure.ac):
34408         Likewise.
34409         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
34410         Likewise.
34411         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
34412         Likewise.
34413         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
34414         Likewise.
34415         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
34416         Likewise.
34417         * modules/unictype/property-hyphen (Depends-on, configure.ac):
34418         Likewise.
34419         * modules/unictype/property-id-continue (Depends-on, configure.ac):
34420         Likewise.
34421         * modules/unictype/property-id-start (Depends-on, configure.ac):
34422         Likewise.
34423         * modules/unictype/property-ideographic (Depends-on, configure.ac):
34424         Likewise.
34425         * modules/unictype/property-ids-binary-operator (Depends-on,
34426         configure.ac): Likewise.
34427         * modules/unictype/property-ids-trinary-operator (Depends-on,
34428         configure.ac): Likewise.
34429         * modules/unictype/property-ignorable-control (Depends-on,
34430         configure.ac): Likewise.
34431         * modules/unictype/property-iso-control (Depends-on, configure.ac):
34432         Likewise.
34433         * modules/unictype/property-join-control (Depends-on, configure.ac):
34434         Likewise.
34435         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
34436         Likewise.
34437         * modules/unictype/property-line-separator (Depends-on, configure.ac):
34438         Likewise.
34439         * modules/unictype/property-logical-order-exception (Depends-on,
34440         configure.ac): Likewise.
34441         * modules/unictype/property-lowercase (Depends-on, configure.ac):
34442         Likewise.
34443         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
34444         * modules/unictype/property-non-break (Depends-on, configure.ac):
34445         Likewise.
34446         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
34447         Likewise.
34448         * modules/unictype/property-numeric (Depends-on, configure.ac):
34449         Likewise.
34450         * modules/unictype/property-other-alphabetic (Depends-on,
34451         configure.ac): Likewise.
34452         * modules/unictype/property-other-default-ignorable-code-point
34453         (Depends-on, configure.ac): Likewise.
34454         * modules/unictype/property-other-grapheme-extend (Depends-on,
34455         configure.ac): Likewise.
34456         * modules/unictype/property-other-id-continue (Depends-on,
34457         configure.ac): Likewise.
34458         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
34459         Likewise.
34460         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
34461         Likewise.
34462         * modules/unictype/property-other-math (Depends-on, configure.ac):
34463         Likewise.
34464         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
34465         Likewise.
34466         * modules/unictype/property-paired-punctuation (Depends-on,
34467         configure.ac): Likewise.
34468         * modules/unictype/property-paragraph-separator (Depends-on,
34469         configure.ac): Likewise.
34470         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
34471         Likewise.
34472         * modules/unictype/property-pattern-white-space (Depends-on,
34473         configure.ac): Likewise.
34474         * modules/unictype/property-private-use (Depends-on, configure.ac):
34475         Likewise.
34476         * modules/unictype/property-punctuation (Depends-on, configure.ac):
34477         Likewise.
34478         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
34479         Likewise.
34480         * modules/unictype/property-radical (Depends-on, configure.ac):
34481         Likewise.
34482         * modules/unictype/property-sentence-terminal (Depends-on,
34483         configure.ac): Likewise.
34484         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
34485         Likewise.
34486         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
34487         * modules/unictype/property-terminal-punctuation (Depends-on,
34488         configure.ac): Likewise.
34489         * modules/unictype/property-titlecase (Depends-on, configure.ac):
34490         Likewise.
34491         * modules/unictype/property-unassigned-code-value (Depends-on,
34492         configure.ac): Likewise.
34493         * modules/unictype/property-unified-ideograph (Depends-on,
34494         configure.ac): Likewise.
34495         * modules/unictype/property-uppercase (Depends-on, configure.ac):
34496         Likewise.
34497         * modules/unictype/property-variation-selector (Depends-on,
34498         configure.ac): Likewise.
34499         * modules/unictype/property-white-space (Depends-on, configure.ac):
34500         Likewise.
34501         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
34502         Likewise.
34503         * modules/unictype/property-xid-start (Depends-on, configure.ac):
34504         Likewise.
34505         * modules/unictype/property-zero-width (Depends-on, configure.ac):
34506         Likewise.
34507         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
34508         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
34509         Likewise.
34510
34511 2009-12-31  Bruno Haible  <bruno@clisp.org>
34512
34513         Remove unnecessary AC_C_INLINE invocation.
34514         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
34515         since 2009-08-21.
34516
34517 2009-12-31  Jim Meyering  <meyering@redhat.com>
34518
34519         maint.mk: don't require explicit gpg_key_ID in cfg.mk
34520         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
34521         With this change, we can all remove the gpg_key_ID = ... definition
34522         from our respective cfg.mk files.
34523
34524         maint.mk: create announcement template in ~/, not in /tmp
34525         * top/maint.mk (emit_upload_commands): Adjust.
34526         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
34527         Remove temporary file, .ci-msg.
34528
34529 2009-12-31  Eric Blake  <ebb9@byu.net>
34530
34531         link-warning: always build headers with link warnings
34532         * modules/arpa_inet (Makefile.am): Always build replacement
34533         header.
34534         * modules/ctype (Makefile.am): Likewise.
34535         * modules/dirent (Makefile.am): Likewise.
34536         * modules/inttypes (Makefile.am): Likewise.
34537         * modules/langinfo (Makefile.am): Likewise.
34538         * modules/locale (Makefile.am): Likewise.
34539         * modules/spawn (Makefile.am): Likewise.
34540         * modules/sys_file (Makefile.am): Likewise.
34541         * modules/sys_ioctl (Makefile.am): Likewise.
34542         * modules/sys_select (Makefile.am): Likewise.
34543         * modules/sys_socket (Makefile.am): Likewise.
34544         * modules/sys_times (Makefile.am): Likewise.
34545         * modules/sys_utsname (Makefile.am): Likewise.
34546         * modules/sys_wait (Makefile.am): Likewise.
34547         * modules/wchar (Makefile.am): Likewise.
34548         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
34549         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
34550         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
34551         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
34552         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
34553         Likewise.
34554         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34555         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34556         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
34557         Likewise.
34558         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
34559         Likewise.
34560         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
34561         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
34562         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
34563         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34564         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34565         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34566         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34567         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
34568         (gl_WCHAR_H_DEFAULTS): Likewise.
34569
34570 2009-12-31  Eric Blake  <ebb9@byu.net>
34571
34572         signal, spawn: use link warnings
34573         * lib/signal.in.h (sigset_t): Make unconditional.
34574         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
34575         (sigpending, sigprocmask, sigaction): Add link warnings.
34576         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
34577         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
34578         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
34579         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
34580         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
34581         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
34582         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
34583         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
34584         (posix_spawn_file_actions_destroy)
34585         (posix_spawn_file_actions_addopen)
34586         (posix_spawn_file_actions_addclose)
34587         (posix_spawn_file_actions_adddup2): Likewise.
34588         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
34589         * tests/test-signal.c (main): Enhance test.
34590
34591         spawn: improve wrapper support
34592         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
34593         (gl_SPAWN_H_DEFAULTS): New defaults.
34594         * modules/spawn (Makefile.am): Substitute them.
34595         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
34596         Only declare if missing or broken.
34597
34598         sys_times, sys_utsname: use include_next
34599         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
34600         header.
34601         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
34602         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34603         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34604         * modules/sys_times (Depends-on): Add include_next.
34605         (Makefile.am): Substitute additional values.
34606         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34607         * lib/sys_times.in.h (includes): Include native header, if
34608         available.
34609         * lib/sys_utsname.in.h (includes): Likewise.
34610         * tests/test-sys_times.c (main): Enhance test.
34611
34612         fdutimensat: revert prior patch
34613         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
34614         utimens.h.
34615         Reported by Bruno Haible.
34616
34617 2009-12-30  Eric Blake  <ebb9@byu.net>
34618
34619         sys_wait: drop link-warning dependency
34620         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
34621         link-warning efforts.
34622         * lib/sys_wait.in.h: Likewise.
34623
34624         fdutimensat: remove bogus dependency
34625         * modules/fdutimensat (Depends-on): Drop inline.
34626
34627         unistd: fix typo
34628         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
34629
34630 2009-12-30  Bruno Haible  <bruno@clisp.org>
34631
34632         Fix compilation error with Solaris cc.
34633         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
34634         * lib/unicase/u16-is-invariant.c: Likewise.
34635         * lib/unicase/u32-is-invariant.c: Likewise.
34636         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
34637
34638 2009-12-30  Bruno Haible  <bruno@clisp.org>
34639
34640         Fix test crash.
34641         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
34642         locales.
34643         Reported by Simon Josefsson <simon@josefsson.org>.
34644
34645 2009-12-30  Bruno Haible  <bruno@clisp.org>
34646
34647         Fix compilation error on most platforms.
34648         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
34649         Reported by Simon Josefsson <simon@josefsson.org>
34650         and Nelson H. F. Beebe <beebe@math.utah.edu>.
34651
34652 2009-12-30  Eric Blake  <ebb9@byu.net>
34653
34654         futimens, utimensat: work around ntfs-3g bug
34655         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
34656         a ctime bug is present, and expand workaround to cover ntfs-3g.
34657         * lib/utimens.c (fdutimens, lutimens): Likewise.
34658         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
34659         (validate_timespec): Adjust return value.
34660         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
34661         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34662         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
34663
34664 2009-12-29  Eric Blake  <ebb9@byu.net>
34665
34666         link-warning: make usage consistent
34667         * modules/ctype (Depends-on): Add link-warning.
34668         (Makefile.am): Update rules accordingly.
34669         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34670         * modules/locale (Depends-on, Makefile.am): Likewise.
34671         * modules/sys_file (Makefile.am): Likewise.
34672         * modules/getopt-posix (Makefile.am): Delete unused link warning
34673         efforts.
34674         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
34675         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
34676         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
34677         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
34678
34679         stdio: remove unused variables
34680         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
34681         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
34682         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
34683
34684         tests: test more substitute headers
34685         * modules/ctype-tests: New file.
34686         * modules/dirent-tests: Likewise.
34687         * modules/spawn-tests: Likewise.
34688         * modules/sys_file-tests: Likewise.
34689         * modules/sys_ioctl-tests: Likewise.
34690         * modules/sys_wait-tests: Likewise.
34691         * tests/test-ctype.c: Likewise.
34692         * tests/test-dirent.c: Likewise.
34693         * tests/test-spawn.c: Likewise.
34694         * tests/test-sys_file.c: Likewise.
34695         * tests/test-sys_ioctl.c: Likewise.
34696         * tests/test-sys_wait.c: Likewise.
34697         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
34698         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
34699         whether or not flock is in use.
34700
34701         tests: remove License section from module
34702         * modules/arpa_inet-tests: Remove unneeded section.
34703         * modules/byteswap-tests: Likewise.
34704         * modules/ceilf-tests: Likewise.
34705         * modules/ceill-tests: Likewise.
34706         * modules/crypto/des-tests: Likewise.
34707         * modules/crypto/gc-arcfour-tests: Likewise.
34708         * modules/crypto/gc-arctwo-tests: Likewise.
34709         * modules/crypto/gc-des-tests: Likewise.
34710         * modules/crypto/gc-hmac-md5-tests: Likewise.
34711         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34712         * modules/crypto/gc-md2-tests: Likewise.
34713         * modules/crypto/gc-md4-tests: Likewise.
34714         * modules/crypto/gc-md5-tests: Likewise.
34715         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34716         * modules/crypto/gc-rijndael-tests: Likewise.
34717         * modules/crypto/gc-sha1-tests: Likewise.
34718         * modules/crypto/gc-tests: Likewise.
34719         * modules/crypto/md2-tests: Likewise.
34720         * modules/crypto/md4-tests: Likewise.
34721         * modules/fcntl-h-tests: Likewise.
34722         * modules/floorf-tests: Likewise.
34723         * modules/floorl-tests: Likewise.
34724         * modules/frexp-nolibm-tests: Likewise.
34725         * modules/frexp-tests: Likewise.
34726         * modules/frexpl-nolibm-tests: Likewise.
34727         * modules/frexpl-tests: Likewise.
34728         * modules/getaddrinfo-tests: Likewise.
34729         * modules/inttypes-tests: Likewise.
34730         * modules/isfinite-tests: Likewise.
34731         * modules/isinf-tests: Likewise.
34732         * modules/ldexpl-tests: Likewise.
34733         * modules/locale-tests: Likewise.
34734         * modules/math-tests: Likewise.
34735         * modules/netdb-tests: Likewise.
34736         * modules/netinet_in-tests: Likewise.
34737         * modules/printf-frexp-tests: Likewise.
34738         * modules/printf-frexpl-tests: Likewise.
34739         * modules/priv-set-tests: Likewise.
34740         * modules/random_r-tests: Likewise.
34741         * modules/round-tests: Likewise.
34742         * modules/roundf-tests: Likewise.
34743         * modules/roundl-tests: Likewise.
34744         * modules/search-tests: Likewise.
34745         * modules/select-tests: Likewise.
34746         * modules/signal-tests: Likewise.
34747         * modules/stdbool-tests: Likewise.
34748         * modules/stddef-tests: Likewise.
34749         * modules/stdint-tests: Likewise.
34750         * modules/stdio-tests: Likewise.
34751         * modules/stdlib-tests: Likewise.
34752         * modules/string-tests: Likewise.
34753         * modules/strings-tests: Likewise.
34754         * modules/sys_select-tests: Likewise.
34755         * modules/sys_socket-tests: Likewise.
34756         * modules/sys_stat-tests: Likewise.
34757         * modules/sys_time-tests: Likewise.
34758         * modules/sys_utsname-tests: Likewise.
34759         * modules/sysexits-tests: Likewise.
34760         * modules/time-tests: Likewise.
34761         * modules/trunc-tests: Likewise.
34762         * modules/truncf-tests: Likewise.
34763         * modules/truncl-tests: Likewise.
34764         * modules/tsearch-tests: Likewise.
34765         * modules/unistd-tests: Likewise.
34766         * modules/wchar-tests: Likewise.
34767         * modules/wctype-tests: Likewise.
34768
34769         tests: fix license on several tests
34770         * tests/test-des.c: Update to GPLv3+.
34771         * tests/test-flock.c: Likewise.
34772         * tests/test-fsync.c: Likewise.
34773         * tests/test-futimens.h: Likewise.
34774         * tests/test-gc-arcfour.c: Likewise.
34775         * tests/test-gc-arctwo.c: Likewise.
34776         * tests/test-gc-des.c: Likewise.
34777         * tests/test-gc-hmac-md5.c: Likewise.
34778         * tests/test-gc-hmac-sha1.c: Likewise.
34779         * tests/test-gc-md2.c: Likewise.
34780         * tests/test-gc-md4.c: Likewise.
34781         * tests/test-gc-md5.c: Likewise.
34782         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34783         * tests/test-gc-rijndael.c: Likewise.
34784         * tests/test-gc-sha1.c: Likewise.
34785         * tests/test-gc.c: Likewise.
34786         * tests/test-getcwd.c: Likewise.
34787         * tests/test-link.c: Likewise.
34788         * tests/test-link.h: Likewise.
34789         * tests/test-lutimens.h: Likewise.
34790         * tests/test-md2.c: Likewise.
34791         * tests/test-md4.c: Likewise.
34792         * tests/test-mkdir.h: Likewise.
34793         * tests/test-rename.c: Likewise.
34794         * tests/test-rename.h: Likewise.
34795         * tests/test-safe-alloc.c: Likewise.
34796         * tests/test-utimens-common.h: Likewise.
34797         * tests/test-utimens.h: Likewise.
34798
34799         maint: sync license texts
34800         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
34801         * doc/gpl-3.0.texi: Revert copyright year update.
34802         * doc/lgpl-3.0.texi: Likewise.
34803
34804 2009-12-29  Jim Meyering  <meyering@redhat.com>
34805
34806         update nearly all FSF copyright year lists to include 2009
34807         The files named by the following are exempted:
34808             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
34809               test -f "$dst" && { echo "$dst"; continue; }
34810               test -d "$dst" || continue
34811               echo "$dst"/$(basename "$src")
34812             done > exempt
34813             git ls-files tests/unictype >> exempt
34814         In the remaining files, convert to all-interval notation if
34815         - there is already at least one year interval like 2000-2003
34816         - the file is maintained by me
34817         - the file is in lib/uni*/, where that style already prevails
34818         Otherwise, use update-copyright's default.
34819
34820 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34821         and Eric Blake  <ebb9@byu.net>
34822
34823         tests: don't require debug system() to pass
34824         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
34825         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34826         * tests/test-unlink.h (test_unlink_func): Likewise.
34827         * tests/test-fstatat.c (main): ...into callers.
34828         * tests/test-lstat.c (main): Likewise.
34829         * tests/test-rmdir.c (main): Likewise.
34830         * tests/test-unlink.c (main): Likewise.
34831         * tests/test-unlinkat.c (main): Likewise.
34832         * tests/test-areadlink-with-size.c (main): Don't require a
34833         debug-only system call to pass, aiding cross-testing to mingw.
34834         * tests/test-areadlink.c (main): Likewise.
34835         * tests/test-areadlinkat-with-size.c (main): Likewise.
34836         * tests/test-areadlinkat.c (main): Likewise.
34837         * tests/test-canonicalize-lgpl.c (main): Likewise.
34838         * tests/test-canonicalize.c (main): Likewise.
34839         * tests/test-chown.c (main): Likewise.
34840         * tests/test-fchownat.c (main): Likewise.
34841         * tests/test-lchown.c (main): Likewise.
34842         * tests/test-fdutimensat.c (main): Likewise.
34843         * tests/test-futimens.c (main): Likewise.
34844         * tests/test-link.c (main): Likewise.
34845         * tests/test-linkat.c (main): Likewise.
34846         * tests/test-mkdir.c (main): Likewise.
34847         * tests/test-mkdirat.c (main): Likewise.
34848         * tests/test-mkfifo.c (main): Likewise.
34849         * tests/test-mkfifoat.c (main): Likewise.
34850         * tests/test-mknod.c (main): Likewise.
34851         * tests/test-readlink.c (main): Likewise.
34852         * tests/test-remove.c (main): Likewise.
34853         * tests/test-rename.c (main): Likewise.
34854         * tests/test-renameat.c (main): Likewise.
34855         * tests/test-symlink.c (main): Likewise.
34856         * tests/test-symlinkat.c (main): Likewise.
34857         * tests/test-utimens.c (main): Likewise.
34858         * tests/test-utimensat.c (main): Likewise.
34859
34860 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34861
34862         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
34863         on $(UNUSED_PARAMETER_H) to avoid build failure.
34864
34865 2009-12-28  Jim Meyering  <meyering@redhat.com>
34866
34867         update-copyright: you may specify a max. line length other than 72
34868         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34869
34870         maint: use consistent FSF copyright line syntax
34871         * lib/posixtm.c: Add missing comma in FSF copyright line.
34872         * lib/posixtm.h: Likewise.
34873         * lib/getugroups.c: Add missing ", Inc.".
34874
34875         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
34876         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
34877         FSF copyright line.  Remove trailing blanks.
34878
34879 2009-12-28  Eric Blake  <ebb9@byu.net>
34880
34881         test-dup2: reduce dependencies
34882         * modules/cloexec (Configure.ac): Set witness.
34883         * modules/dup2-tests (Depends-on): Drop cloexec.
34884         * tests/test-dup2.c (main): Skip portion of test if cloexec module
34885         not present.
34886         Suggested by Bruno Haible.
34887
34888 2009-12-26  Bruno Haible  <bruno@clisp.org>
34889
34890         Remove an unneeded dependency.
34891         * modules/fseterr (Depends-on): Remove dup2.
34892
34893 2009-12-26  Eric Blake  <ebb9@byu.net>
34894
34895         tests: use macros.h in more places
34896         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
34897         (ASSERT_STREAM): Provide default of stderr.
34898         * tests/test-dirent-safer.c: Include macros.h, using alternate
34899         stream for assertions.
34900         * tests/test-dup-safer.c: Likewise.
34901         * tests/test-freopen-safer.c: Likewise.
34902         * tests/test-getopt.c: Likewise.
34903         * tests/test-openat-safer.c: Likewise.
34904         * tests/test-pipe.c: Likewise.
34905         * tests/test-popen-safer.c: Likewise.
34906         * modules/dirent-safer-tests (Files): Include macros.h.
34907         * modules/unistd-safer-tests (Files): Likewise.
34908         * modules/freopen-safer-tests (Files): Likewise.
34909         * modules/getopt-posix-tests (Files): Likewise.
34910         * modules/openat-safer-tests (Files): Likewise.
34911         * modules/pipe-tests (Files): Likewise.
34912
34913 2009-12-26  Bruno Haible  <bruno@clisp.org>
34914
34915         javacomp: Portability fix.
34916         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
34917         that it also works on Solaris.
34918
34919 2009-12-26  Bruno Haible  <bruno@clisp.org>
34920
34921         localename: Fix storage allocation of gl_locale_name_thread's result.
34922         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
34923         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
34924         all platforms that have 'uselocale'.
34925         (gl_locale_name_thread_unsafe): New function, extracted from
34926         gl_locale_name_thread.
34927         (gl_locale_name_thread): Call struniq on all platforms that have
34928         'uselocale'.
34929         * tests/test-localename.c (test_locale_name_thread): Check that the
34930         resulting strings are permanently allocated.
34931         * modules/localename-tests (Depends-on): Add strdup.
34932
34933 2009-12-26  Bruno Haible  <bruno@clisp.org>
34934
34935         * tests/test-localename.c (categories): Fill in the strings.
34936
34937 2009-12-26  Jim Meyering  <meyering@redhat.com>
34938
34939         isdir: complete the removal of m4/isdir.m4
34940         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
34941
34942         isdir: clean up, since at least grep still uses it
34943         * lib/isdir.c: Include "isdir.h".
34944         (S_ISDIR): Remove now-unneeded definition.
34945         * modules/isdir (Files): Add lib/isdir.h.
34946         * lib/isdir.h: New file, with declaration.
34947         * m4/isdir.m4: Remove file -- unneeded.
34948
34949 2009-12-25  Bruno Haible  <bruno@clisp.org>
34950
34951         selinux-h: Make generated .h files standalone.
34952         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
34953         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
34954         * lib/se-selinux.in.h: Likewise.
34955         * modules/selinux-h (Depends-on): Add unused-parameter.
34956         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
34957         selinux/selinux.h and selinux/context.h.
34958         Suggested by Eric Blake.
34959
34960 2009-12-25  Bruno Haible  <bruno@clisp.org>
34961
34962         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
34963         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
34964         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
34965         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
34966         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
34967
34968 2009-12-24  Bruno Haible  <bruno@clisp.org>
34969
34970         openat: Fix warning.
34971         * lib/openat-proc.c: Include <unistd.h>.
34972
34973 2009-12-24  Bruno Haible  <bruno@clisp.org>
34974
34975         New module 'unused-parameter'.
34976         * build-aux/unused-parameter.h: New file, extracted from earlier
34977         gnulib-common.m4.
34978         * modules/unused-parameter: New file.
34979         * lib/unistr.h: Include unused-parameter.h.
34980         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
34981         _GL_UNUSED.
34982         * modules/unistr/base (Depends-on): Add unused-parameter.
34983
34984 2009-12-24  Bruno Haible  <bruno@clisp.org>
34985
34986         Add missing dependencies to 'extensions' module.
34987         * m4/extensions.m4: Add comment.
34988         * modules/accept4 (Depends-on): Add extensions.
34989         * modules/dup3 (Depends-on): Likewise.
34990         * modules/fcntl (Depends-on): Likewise.
34991         * modules/futimens (Depends-on): Likewise.
34992         * modules/mknod (Depends-on): Likewise.
34993         * modules/pipe2 (Depends-on): Likewise.
34994         * modules/stat-time (Depends-on): Likewise.
34995         * modules/strcasestr-simple (Depends-on): Likewise.
34996         * modules/strsignal (Depends-on): Likewise.
34997         * modules/utimensat (Depends-on): Likewise.
34998         * modules/localcharset (Depends-on): Likewise. Needed because of
34999         gl_FCNTL_O_FLAGS.
35000         * modules/wcrtomb (Depends-on): Likewise. Needed because of
35001         AC_TYPE_MBSTATE_T.
35002         * modules/wcsnrtombs (Depends-on): Likewise.
35003         * modules/wcsrtombs (Depends-on): Likewise.
35004
35005 2009-12-24  Bruno Haible  <bruno@clisp.org>
35006
35007         binary-io: Avoid gcc warning due to SET_BINARY.
35008         * lib/binary-io.h (SET_BINARY): Cast the result to void.
35009         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
35010
35011 2009-12-24  Bruno Haible  <bruno@clisp.org>
35012
35013         Avoid future namespace pollution on glibc systems.
35014         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
35015         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
35016         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
35017         glibc systems.
35018
35019 2009-12-24  Bruno Haible  <bruno@clisp.org>
35020
35021         Refactor common macros used in tests.
35022         * tests/macros.h: New file.
35023         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
35024         and/or <stdlib.h>, if appropriate.
35025         (ASSERT, SIZEOF): Remove macros.
35026         * tests/test-areadlink-with-size.c: Likewise.
35027         * tests/test-areadlinkat.c: Likewise.
35028         * tests/test-areadlinkat-with-size.c: Likewise.
35029         * tests/test-argmatch.c: Likewise.
35030         * tests/test-argv-iter.c: Likewise.
35031         * tests/test-array-mergesort.c: Likewise.
35032         * tests/test-array_list.c: Likewise.
35033         * tests/test-array_oset.c: Likewise.
35034         * tests/test-avltree_list.c: Likewise.
35035         * tests/test-avltree_oset.c: Likewise.
35036         * tests/test-avltreehash_list.c: Likewise.
35037         * tests/test-base64.c: Likewise.
35038         * tests/test-binary-io.c: Likewise.
35039         * tests/test-bitrotate.c: Likewise.
35040         * tests/test-btowc.c: Likewise.
35041         * tests/test-byteswap.c: Likewise.
35042         * tests/test-c-ctype.c: Likewise.
35043         * tests/test-c-stack.c: Likewise.
35044         * tests/test-c-strcasecmp.c: Likewise.
35045         * tests/test-c-strcasestr.c: Likewise.
35046         * tests/test-c-strncasecmp.c: Likewise.
35047         * tests/test-c-strstr.c: Likewise.
35048         * tests/test-canonicalize-lgpl.c: Likewise.
35049         * tests/test-canonicalize.c: Likewise.
35050         * tests/test-carray_list.c: Likewise.
35051         * tests/test-ceilf1.c: Likewise.
35052         * tests/test-ceilf2.c: Likewise.
35053         * tests/test-ceill.c: Likewise.
35054         * tests/test-chown.c: Likewise.
35055         * tests/test-cloexec.c: Likewise.
35056         * tests/test-copy-acl.c: Likewise.
35057         * tests/test-copy-file.c: Likewise.
35058         * tests/test-count-one-bits.c: Likewise.
35059         * tests/test-dprintf-posix.c: Likewise.
35060         * tests/test-dup2.c: Likewise.
35061         * tests/test-dup3.c: Likewise.
35062         * tests/test-duplocale.c: Likewise.
35063         * tests/test-fbufmode.c: Likewise.
35064         * tests/test-fchdir.c: Likewise.
35065         * tests/test-fchownat.c: Likewise.
35066         * tests/test-fcntl-safer.c: Likewise.
35067         * tests/test-fcntl.c: Likewise.
35068         * tests/test-fdopendir.c: Likewise.
35069         * tests/test-fdutimensat.c: Likewise.
35070         * tests/test-fflush2.c: Likewise.
35071         * tests/test-file-has-acl.c: Likewise.
35072         * tests/test-filevercmp.c: Likewise.
35073         * tests/test-flock.c: Likewise.
35074         * tests/test-floorf1.c: Likewise.
35075         * tests/test-floorf2.c: Likewise.
35076         * tests/test-floorl.c: Likewise.
35077         * tests/test-fnmatch.c: Likewise.
35078         * tests/test-fopen.h: Likewise.
35079         * tests/test-fpending.c: Likewise.
35080         * tests/test-fprintf-posix.c: Likewise.
35081         * tests/test-fpurge.c: Likewise.
35082         * tests/test-freadable.c: Likewise.
35083         * tests/test-freadahead.c: Likewise.
35084         * tests/test-freading.c: Likewise.
35085         * tests/test-freadptr.c: Likewise.
35086         * tests/test-freadptr2.c: Likewise.
35087         * tests/test-freadseek.c: Likewise.
35088         * tests/test-freopen.c: Likewise.
35089         * tests/test-frexp.c: Likewise.
35090         * tests/test-frexpl.c: Likewise.
35091         * tests/test-fseek.c: Likewise.
35092         * tests/test-fseeko.c: Likewise.
35093         * tests/test-fstatat.c: Likewise.
35094         * tests/test-fstrcmp.c: Likewise.
35095         * tests/test-fsync.c: Likewise.
35096         * tests/test-ftell.c: Likewise.
35097         * tests/test-ftello.c: Likewise.
35098         * tests/test-func.c: Likewise.
35099         * tests/test-futimens.c: Likewise.
35100         * tests/test-fwritable.c: Likewise.
35101         * tests/test-fwriting.c: Likewise.
35102         * tests/test-getcwd.c: Likewise.
35103         * tests/test-getdate.c: Likewise.
35104         * tests/test-getdelim.c: Likewise.
35105         * tests/test-getdtablesize.c: Likewise.
35106         * tests/test-getgroups.c: Likewise.
35107         * tests/test-getline.c: Likewise.
35108         * tests/test-getndelim2.c: Likewise.
35109         * tests/test-glob.c: Likewise.
35110         * tests/test-hash.c: Likewise.
35111         * tests/test-i-ring.c: Likewise.
35112         * tests/test-iconv-utf.c: Likewise.
35113         * tests/test-iconv.c: Likewise.
35114         * tests/test-idpriv-drop.c: Likewise.
35115         * tests/test-idpriv-droptemp.c: Likewise.
35116         * tests/test-inet_ntop.c: Likewise.
35117         * tests/test-inet_pton.c: Likewise.
35118         * tests/test-isblank.c: Likewise.
35119         * tests/test-isfinite.c: Likewise.
35120         * tests/test-isinf.c: Likewise.
35121         * tests/test-isnan.c: Likewise.
35122         * tests/test-isnand.h: Likewise.
35123         * tests/test-isnanf.h: Likewise.
35124         * tests/test-isnanl.h: Likewise.
35125         * tests/test-lchown.c: Likewise.
35126         * tests/test-ldexpl.c: Likewise.
35127         * tests/test-link.c: Likewise.
35128         * tests/test-linkat.c: Likewise.
35129         * tests/test-linked_list.c: Likewise.
35130         * tests/test-linkedhash_list.c: Likewise.
35131         * tests/test-localename.c: Likewise.
35132         * tests/test-lseek.c: Likewise.
35133         * tests/test-lstat.c: Likewise.
35134         * tests/test-mbmemcasecmp.c: Likewise.
35135         * tests/test-mbmemcasecoll.c: Likewise.
35136         * tests/test-mbrtowc.c: Likewise.
35137         * tests/test-mbscasecmp.c: Likewise.
35138         * tests/test-mbscasestr1.c: Likewise.
35139         * tests/test-mbscasestr2.c: Likewise.
35140         * tests/test-mbscasestr3.c: Likewise.
35141         * tests/test-mbscasestr4.c: Likewise.
35142         * tests/test-mbschr.c: Likewise.
35143         * tests/test-mbscspn.c: Likewise.
35144         * tests/test-mbsinit.c: Likewise.
35145         * tests/test-mbsncasecmp.c: Likewise.
35146         * tests/test-mbsnrtowcs.c: Likewise.
35147         * tests/test-mbspbrk.c: Likewise.
35148         * tests/test-mbspcasecmp.c: Likewise.
35149         * tests/test-mbsrchr.c: Likewise.
35150         * tests/test-mbsrtowcs.c: Likewise.
35151         * tests/test-mbsspn.c: Likewise.
35152         * tests/test-mbsstr1.c: Likewise.
35153         * tests/test-mbsstr2.c: Likewise.
35154         * tests/test-mbsstr3.c: Likewise.
35155         * tests/test-memchr.c: Likewise.
35156         * tests/test-memchr2.c: Likewise.
35157         * tests/test-memcmp.c: Likewise.
35158         * tests/test-memmem.c: Likewise.
35159         * tests/test-memrchr.c: Likewise.
35160         * tests/test-mkdir.c: Likewise.
35161         * tests/test-mkdirat.c: Likewise.
35162         * tests/test-mkfifo.c: Likewise.
35163         * tests/test-mkfifoat.c: Likewise.
35164         * tests/test-mknod.c: Likewise.
35165         * tests/test-nanosleep.c: Likewise.
35166         * tests/test-nl_langinfo.c: Likewise.
35167         * tests/test-obstack-printf.c: Likewise.
35168         * tests/test-open.c: Likewise.
35169         * tests/test-openat.c: Likewise.
35170         * tests/test-pipe-filter-gi1.c: Likewise.
35171         * tests/test-pipe-filter-gi2-main.c: Likewise.
35172         * tests/test-pipe-filter-ii1.c: Likewise.
35173         * tests/test-pipe-filter-ii2-main.c: Likewise.
35174         * tests/test-pipe2.c: Likewise.
35175         * tests/test-popen.h: Likewise.
35176         * tests/test-posixtm.c: Likewise.
35177         * tests/test-pread.c: Likewise.
35178         * tests/test-printf-frexp.c: Likewise.
35179         * tests/test-printf-frexpl.c: Likewise.
35180         * tests/test-printf-posix.c: Likewise.
35181         * tests/test-priv-set.c: Likewise.
35182         * tests/test-quotearg.c: Likewise.
35183         * tests/test-random_r.c: Likewise.
35184         * tests/test-rawmemchr.c: Likewise.
35185         * tests/test-rbtree_list.c: Likewise.
35186         * tests/test-rbtree_oset.c: Likewise.
35187         * tests/test-rbtreehash_list.c: Likewise.
35188         * tests/test-readlink.c: Likewise.
35189         * tests/test-remove.c: Likewise.
35190         * tests/test-rename.c: Likewise.
35191         * tests/test-renameat.c: Likewise.
35192         * tests/test-rmdir.c: Likewise.
35193         * tests/test-round1.c: Likewise.
35194         * tests/test-roundf1.c: Likewise.
35195         * tests/test-roundl.c: Likewise.
35196         * tests/test-safe-alloc.c: Likewise.
35197         * tests/test-sameacls.c: Likewise.
35198         * tests/test-set-mode-acl.c: Likewise.
35199         * tests/test-setenv.c: Likewise.
35200         * tests/test-sigaction.c: Likewise.
35201         * tests/test-signbit.c: Likewise.
35202         * tests/test-sleep.c: Likewise.
35203         * tests/test-snprintf-posix.c: Likewise.
35204         * tests/test-snprintf.c: Likewise.
35205         * tests/test-sprintf-posix.c: Likewise.
35206         * tests/test-stat-time.c: Likewise.
35207         * tests/test-stat.c: Likewise.
35208         * tests/test-strcasestr.c: Likewise.
35209         * tests/test-strchrnul.c: Likewise.
35210         * tests/test-strerror.c: Likewise.
35211         * tests/test-striconv.c: Likewise.
35212         * tests/test-striconveh.c: Likewise.
35213         * tests/test-striconveha.c: Likewise.
35214         * tests/test-strsignal.c: Likewise.
35215         * tests/test-strstr.c: Likewise.
35216         * tests/test-strtod.c: Likewise.
35217         * tests/test-strverscmp.c: Likewise.
35218         * tests/test-symlink.c: Likewise.
35219         * tests/test-symlinkat.c: Likewise.
35220         * tests/test-trunc1.c: Likewise.
35221         * tests/test-trunc2.c: Likewise.
35222         * tests/test-truncf1.c: Likewise.
35223         * tests/test-truncf2.c: Likewise.
35224         * tests/test-truncl.c: Likewise.
35225         * tests/test-uname.c: Likewise.
35226         * tests/test-unlink.c: Likewise.
35227         * tests/test-unlinkat.c: Likewise.
35228         * tests/test-unsetenv.c: Likewise.
35229         * tests/test-usleep.c: Likewise.
35230         * tests/test-utimens.c: Likewise.
35231         * tests/test-utimensat.c: Likewise.
35232         * tests/test-vasnprintf-posix.c: Likewise.
35233         * tests/test-vasnprintf-posix2.c: Likewise.
35234         * tests/test-vasnprintf.c: Likewise.
35235         * tests/test-vasprintf-posix.c: Likewise.
35236         * tests/test-vasprintf.c: Likewise.
35237         * tests/test-vdprintf-posix.c: Likewise.
35238         * tests/test-vfprintf-posix.c: Likewise.
35239         * tests/test-vprintf-posix.c: Likewise.
35240         * tests/test-vsnprintf-posix.c: Likewise.
35241         * tests/test-vsnprintf.c: Likewise.
35242         * tests/test-vsprintf-posix.c: Likewise.
35243         * tests/test-wcrtomb.c: Likewise.
35244         * tests/test-wcsnrtombs.c: Likewise.
35245         * tests/test-wcsrtombs.c: Likewise.
35246         * tests/test-wctype.c: Likewise.
35247         * tests/test-wcwidth.c: Likewise.
35248         * tests/test-xfprintf-posix.c: Likewise.
35249         * tests/test-xmemdup0.c: Likewise.
35250         * tests/test-xprintf-posix.c: Likewise.
35251         * tests/test-xvasprintf.c: Likewise.
35252         * tests/unicase/test-locale-language.c: Likewise.
35253         * tests/unicase/test-mapping-part1.h: Likewise.
35254         * tests/unicase/test-predicate-part1.h: Likewise.
35255         * tests/unicase/test-u8-casecmp.c: Likewise.
35256         * tests/unicase/test-u8-casecoll.c: Likewise.
35257         * tests/unicase/test-u8-casefold.c: Likewise.
35258         * tests/unicase/test-u8-is-cased.c: Likewise.
35259         * tests/unicase/test-u8-is-casefolded.c: Likewise.
35260         * tests/unicase/test-u8-is-lowercase.c: Likewise.
35261         * tests/unicase/test-u8-is-titlecase.c: Likewise.
35262         * tests/unicase/test-u8-is-uppercase.c: Likewise.
35263         * tests/unicase/test-u8-tolower.c: Likewise.
35264         * tests/unicase/test-u8-totitle.c: Likewise.
35265         * tests/unicase/test-u8-toupper.c: Likewise.
35266         * tests/unicase/test-u16-casecmp.c: Likewise.
35267         * tests/unicase/test-u16-casecoll.c: Likewise.
35268         * tests/unicase/test-u16-casefold.c: Likewise.
35269         * tests/unicase/test-u16-is-cased.c: Likewise.
35270         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35271         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35272         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35273         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35274         * tests/unicase/test-u16-tolower.c: Likewise.
35275         * tests/unicase/test-u16-totitle.c: Likewise.
35276         * tests/unicase/test-u16-toupper.c: Likewise.
35277         * tests/unicase/test-u32-casecmp.c: Likewise.
35278         * tests/unicase/test-u32-casecoll.c: Likewise.
35279         * tests/unicase/test-u32-casefold.c: Likewise.
35280         * tests/unicase/test-u32-is-cased.c: Likewise.
35281         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35282         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35283         * tests/unicase/test-u32-is-titlecase.c: Likewise.
35284         * tests/unicase/test-u32-is-uppercase.c: Likewise.
35285         * tests/unicase/test-u32-tolower.c: Likewise.
35286         * tests/unicase/test-u32-totitle.c: Likewise.
35287         * tests/unicase/test-u32-toupper.c: Likewise.
35288         * tests/unicase/test-ulc-casecmp.c: Likewise.
35289         * tests/unicase/test-ulc-casecoll.c: Likewise.
35290         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35291         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35292         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35293         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35294         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35295         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35296         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35297         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35298         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35299         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35300         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35301         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35302         * tests/unictype/test-bidi_byname.c: Likewise.
35303         * tests/unictype/test-bidi_name.c: Likewise.
35304         * tests/unictype/test-bidi_of.c: Likewise.
35305         * tests/unictype/test-bidi_test.c: Likewise.
35306         * tests/unictype/test-block_list.c: Likewise.
35307         * tests/unictype/test-block_of.c: Likewise.
35308         * tests/unictype/test-block_test.c: Likewise.
35309         * tests/unictype/test-categ_and.c: Likewise.
35310         * tests/unictype/test-categ_and_not.c: Likewise.
35311         * tests/unictype/test-categ_byname.c: Likewise.
35312         * tests/unictype/test-categ_name.c: Likewise.
35313         * tests/unictype/test-categ_none.c: Likewise.
35314         * tests/unictype/test-categ_of.c: Likewise.
35315         * tests/unictype/test-categ_or.c: Likewise.
35316         * tests/unictype/test-categ_test_withtable.c: Likewise.
35317         * tests/unictype/test-combining.c: Likewise.
35318         * tests/unictype/test-decdigit.c: Likewise.
35319         * tests/unictype/test-digit.c: Likewise.
35320         * tests/unictype/test-mirror.c: Likewise.
35321         * tests/unictype/test-numeric.c: Likewise.
35322         * tests/unictype/test-pr_byname.c: Likewise.
35323         * tests/unictype/test-pr_test.c: Likewise.
35324         * tests/unictype/test-predicate-part1.h: Likewise.
35325         * tests/unictype/test-scripts.c: Likewise.
35326         * tests/unictype/test-sy_c_ident.c: Likewise.
35327         * tests/unictype/test-sy_java_ident.c: Likewise.
35328         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
35329         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
35330         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
35331         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
35332         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
35333         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
35334         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
35335         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
35336         * tests/uninorm/test-canonical-decomposition.c: Likewise.
35337         * tests/uninorm/test-compat-decomposition.c: Likewise.
35338         * tests/uninorm/test-composition.c: Likewise.
35339         * tests/uninorm/test-decomposing-form.c: Likewise.
35340         * tests/uninorm/test-decomposition.c: Likewise.
35341         * tests/uninorm/test-u8-nfc.c: Likewise.
35342         * tests/uninorm/test-u8-nfd.c: Likewise.
35343         * tests/uninorm/test-u8-nfkc.c: Likewise.
35344         * tests/uninorm/test-u8-nfkd.c: Likewise.
35345         * tests/uninorm/test-u8-normcmp.c: Likewise.
35346         * tests/uninorm/test-u8-normcoll.c: Likewise.
35347         * tests/uninorm/test-u16-nfc.c: Likewise.
35348         * tests/uninorm/test-u16-nfd.c: Likewise.
35349         * tests/uninorm/test-u16-nfkc.c: Likewise.
35350         * tests/uninorm/test-u16-nfkd.c: Likewise.
35351         * tests/uninorm/test-u16-normcmp.c: Likewise.
35352         * tests/uninorm/test-u16-normcoll.c: Likewise.
35353         * tests/uninorm/test-u32-nfc.c: Likewise.
35354         * tests/uninorm/test-u32-nfd.c: Likewise.
35355         * tests/uninorm/test-u32-nfkc.c: Likewise.
35356         * tests/uninorm/test-u32-nfkd.c: Likewise.
35357         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35358         * tests/uninorm/test-u32-normcmp.c: Likewise.
35359         * tests/uninorm/test-u32-normcoll.c: Likewise.
35360         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
35361         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
35362         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
35363         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
35364         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
35365         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
35366         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
35367         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
35368         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
35369         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
35370         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
35371         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
35372         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
35373         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
35374         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
35375         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
35376         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
35377         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
35378         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
35379         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
35380         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
35381         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
35382         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
35383         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
35384         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
35385         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
35386         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
35387         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
35388         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
35389         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
35390         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
35391         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
35392         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
35393         * tests/uniwidth/test-u8-strwidth.c: Likewise.
35394         * tests/uniwidth/test-u8-width.c: Likewise.
35395         * tests/uniwidth/test-u16-strwidth.c: Likewise.
35396         * tests/uniwidth/test-u16-width.c: Likewise.
35397         * tests/uniwidth/test-u32-strwidth.c: Likewise.
35398         * tests/uniwidth/test-u32-width.c: Likewise.
35399         * tests/uniwidth/test-uc_width.c: Likewise.
35400         * tests/uniwidth/test-uc_width2.c: Likewise.
35401         * modules/acl-tests (Files): Add tests/macros.h.
35402         * modules/areadlink-tests (Files): Likewise.
35403         * modules/areadlink-with-size-tests (Files): Likewise.
35404         * modules/areadlinkat-tests (Files): Likewise.
35405         * modules/areadlinkat-with-size-tests (Files): Likewise.
35406         * modules/argmatch-tests (Files): Likewise.
35407         * modules/argv-iter-tests (Files): Likewise.
35408         * modules/array-list-tests (Files): Likewise.
35409         * modules/array-mergesort-tests (Files): Likewise.
35410         * modules/array-oset-tests (Files): Likewise.
35411         * modules/avltree-list-tests (Files): Likewise.
35412         * modules/avltree-oset-tests (Files): Likewise.
35413         * modules/avltreehash-list-tests (Files): Likewise.
35414         * modules/base64-tests (Files): Likewise.
35415         * modules/binary-io-tests (Files): Likewise.
35416         * modules/bitrotate-tests (Files): Likewise.
35417         * modules/btowc-tests (Files): Likewise.
35418         * modules/byteswap-tests (Files): Likewise.
35419         * modules/c-ctype-tests (Files): Likewise.
35420         * modules/c-stack-tests (Files): Likewise.
35421         * modules/c-strcase-tests (Files): Likewise.
35422         * modules/c-strcasestr-tests (Files): Likewise.
35423         * modules/c-strstr-tests (Files): Likewise.
35424         * modules/canonicalize-lgpl-tests (Files): Likewise.
35425         * modules/canonicalize-tests (Files): Likewise.
35426         * modules/carray-list-tests (Files): Likewise.
35427         * modules/ceilf-tests (Files): Likewise.
35428         * modules/ceill-tests (Files): Likewise.
35429         * modules/chown-tests (Files): Likewise.
35430         * modules/cloexec-tests (Files): Likewise.
35431         * modules/copy-file-tests (Files): Likewise.
35432         * modules/count-one-bits-tests (Files): Likewise.
35433         * modules/dprintf-posix-tests (Files): Likewise.
35434         * modules/dup2-tests (Files): Likewise.
35435         * modules/dup3-tests (Files): Likewise.
35436         * modules/duplocale-tests (Files): Likewise.
35437         * modules/fbufmode-tests (Files): Likewise.
35438         * modules/fchdir-tests (Files): Likewise.
35439         * modules/fcntl-safer-tests (Files): Likewise.
35440         * modules/fcntl-tests (Files): Likewise.
35441         * modules/fdopendir-tests (Files): Likewise.
35442         * modules/fdutimensat-tests (Files): Likewise.
35443         * modules/fflush-tests (Files): Likewise.
35444         * modules/filevercmp-tests (Files): Likewise.
35445         * modules/flock-tests (Files): Likewise.
35446         * modules/floorf-tests (Files): Likewise.
35447         * modules/floorl-tests (Files): Likewise.
35448         * modules/fnmatch-tests (Files): Likewise.
35449         * modules/fopen-safer-tests (Files): Likewise.
35450         * modules/fopen-tests (Files): Likewise.
35451         * modules/fpending-tests (Files): Likewise.
35452         * modules/fprintf-posix-tests (Files): Likewise.
35453         * modules/fpurge-tests (Files): Likewise.
35454         * modules/freadable-tests (Files): Likewise.
35455         * modules/freadahead-tests (Files): Likewise.
35456         * modules/freading-tests (Files): Likewise.
35457         * modules/freadptr-tests (Files): Likewise.
35458         * modules/freadseek-tests (Files): Likewise.
35459         * modules/freopen-tests (Files): Likewise.
35460         * modules/frexp-nolibm-tests (Files): Likewise.
35461         * modules/frexp-tests (Files): Likewise.
35462         * modules/frexpl-nolibm-tests (Files): Likewise.
35463         * modules/frexpl-tests (Files): Likewise.
35464         * modules/fseek-tests (Files): Likewise.
35465         * modules/fseeko-tests (Files): Likewise.
35466         * modules/fstrcmp-tests (Files): Likewise.
35467         * modules/fsync-tests (Files): Likewise.
35468         * modules/ftell-tests (Files): Likewise.
35469         * modules/ftello-tests (Files): Likewise.
35470         * modules/func-tests (Files): Likewise.
35471         * modules/futimens-tests (Files): Likewise.
35472         * modules/fwritable-tests (Files): Likewise.
35473         * modules/fwriting-tests (Files): Likewise.
35474         * modules/getcwd-tests (Files): Likewise.
35475         * modules/getdate-tests (Files): Likewise.
35476         * modules/getdelim-tests (Files): Likewise.
35477         * modules/getdtablesize-tests (Files): Likewise.
35478         * modules/getgroups-tests (Files): Likewise.
35479         * modules/getline-tests (Files): Likewise.
35480         * modules/getndelim2-tests (Files): Likewise.
35481         * modules/glob-tests (Files): Likewise.
35482         * modules/hash-tests (Files): Likewise.
35483         * modules/i-ring-tests (Files): Likewise.
35484         * modules/iconv-tests (Files): Likewise.
35485         * modules/iconv_open-utf-tests (Files): Likewise.
35486         * modules/idpriv-drop-tests (Files): Likewise.
35487         * modules/idpriv-droptemp-tests (Files): Likewise.
35488         * modules/inet_ntop-tests (Files): Likewise.
35489         * modules/inet_pton-tests (Files): Likewise.
35490         * modules/isblank-tests (Files): Likewise.
35491         * modules/isfinite-tests (Files): Likewise.
35492         * modules/isinf-tests (Files): Likewise.
35493         * modules/isnan-tests (Files): Likewise.
35494         * modules/isnand-nolibm-tests (Files): Likewise.
35495         * modules/isnand-tests (Files): Likewise.
35496         * modules/isnanf-nolibm-tests (Files): Likewise.
35497         * modules/isnanf-tests (Files): Likewise.
35498         * modules/isnanl-nolibm-tests (Files): Likewise.
35499         * modules/isnanl-tests (Files): Likewise.
35500         * modules/lchown-tests (Files): Likewise.
35501         * modules/ldexpl-tests (Files): Likewise.
35502         * modules/link-tests (Files): Likewise.
35503         * modules/linkat-tests (Files): Likewise.
35504         * modules/linked-list-tests (Files): Likewise.
35505         * modules/linkedhash-list-tests (Files): Likewise.
35506         * modules/localename-tests (Files): Likewise.
35507         * modules/lseek-tests (Files): Likewise.
35508         * modules/lstat-tests (Files): Likewise.
35509         * modules/mbmemcasecmp-tests (Files): Likewise.
35510         * modules/mbmemcasecoll-tests (Files): Likewise.
35511         * modules/mbrtowc-tests (Files): Likewise.
35512         * modules/mbscasecmp-tests (Files): Likewise.
35513         * modules/mbscasestr-tests (Files): Likewise.
35514         * modules/mbschr-tests (Files): Likewise.
35515         * modules/mbscspn-tests (Files): Likewise.
35516         * modules/mbsinit-tests (Files): Likewise.
35517         * modules/mbsncasecmp-tests (Files): Likewise.
35518         * modules/mbsnrtowcs-tests (Files): Likewise.
35519         * modules/mbspbrk-tests (Files): Likewise.
35520         * modules/mbspcasecmp-tests (Files): Likewise.
35521         * modules/mbsrchr-tests (Files): Likewise.
35522         * modules/mbsrtowcs-tests (Files): Likewise.
35523         * modules/mbsspn-tests (Files): Likewise.
35524         * modules/mbsstr-tests (Files): Likewise.
35525         * modules/memchr-tests (Files): Likewise.
35526         * modules/memchr2-tests (Files): Likewise.
35527         * modules/memcmp-tests (Files): Likewise.
35528         * modules/memmem-tests (Files): Likewise.
35529         * modules/memrchr-tests (Files): Likewise.
35530         * modules/mkdir-tests (Files): Likewise.
35531         * modules/mkfifo-tests (Files): Likewise.
35532         * modules/mkfifoat-tests (Files): Likewise.
35533         * modules/mknod-tests (Files): Likewise.
35534         * modules/nanosleep-tests (Files): Likewise.
35535         * modules/nl_langinfo-tests (Files): Likewise.
35536         * modules/obstack-printf-tests (Files): Likewise.
35537         * modules/open-tests (Files): Likewise.
35538         * modules/openat-tests (Files): Likewise.
35539         * modules/pipe-filter-gi-tests (Files): Likewise.
35540         * modules/pipe-filter-ii-tests (Files): Likewise.
35541         * modules/pipe2-tests (Files): Likewise.
35542         * modules/popen-safer-tests (Files): Likewise.
35543         * modules/popen-tests (Files): Likewise.
35544         * modules/posixtm-tests (Files): Likewise.
35545         * modules/pread-tests (Files): Likewise.
35546         * modules/printf-frexp-tests (Files): Likewise.
35547         * modules/printf-frexpl-tests (Files): Likewise.
35548         * modules/printf-posix-tests (Files): Likewise.
35549         * modules/priv-set-tests (Files): Likewise.
35550         * modules/quotearg-tests (Files): Likewise.
35551         * modules/random_r-tests (Files): Likewise.
35552         * modules/rawmemchr-tests (Files): Likewise.
35553         * modules/rbtree-list-tests (Files): Likewise.
35554         * modules/rbtree-oset-tests (Files): Likewise.
35555         * modules/rbtreehash-list-tests (Files): Likewise.
35556         * modules/readlink-tests (Files): Likewise.
35557         * modules/remove-tests (Files): Likewise.
35558         * modules/rename-tests (Files): Likewise.
35559         * modules/renameat-tests (Files): Likewise.
35560         * modules/rmdir-tests (Files): Likewise.
35561         * modules/round-tests (Files): Likewise.
35562         * modules/roundf-tests (Files): Likewise.
35563         * modules/roundl-tests (Files): Likewise.
35564         * modules/safe-alloc-tests (Files): Likewise.
35565         * modules/setenv-tests (Files): Likewise.
35566         * modules/sigaction-tests (Files): Likewise.
35567         * modules/signbit-tests (Files): Likewise.
35568         * modules/sleep-tests (Files): Likewise.
35569         * modules/snprintf-posix-tests (Files): Likewise.
35570         * modules/snprintf-tests (Files): Likewise.
35571         * modules/sprintf-posix-tests (Files): Likewise.
35572         * modules/stat-tests (Files): Likewise.
35573         * modules/stat-time-tests (Files): Likewise.
35574         * modules/strcasestr-tests (Files): Likewise.
35575         * modules/strchrnul-tests (Files): Likewise.
35576         * modules/strerror-tests (Files): Likewise.
35577         * modules/striconv-tests (Files): Likewise.
35578         * modules/striconveh-tests (Files): Likewise.
35579         * modules/striconveha-tests (Files): Likewise.
35580         * modules/strsignal-tests (Files): Likewise.
35581         * modules/strstr-tests (Files): Likewise.
35582         * modules/strtod-tests (Files): Likewise.
35583         * modules/strverscmp-tests (Files): Likewise.
35584         * modules/symlink-tests (Files): Likewise.
35585         * modules/symlinkat-tests (Files): Likewise.
35586         * modules/trunc-tests (Files): Likewise.
35587         * modules/truncf-tests (Files): Likewise.
35588         * modules/truncl-tests (Files): Likewise.
35589         * modules/uname-tests (Files): Likewise.
35590         * modules/unicase/cased-tests (Files): Likewise.
35591         * modules/unicase/ignorable-tests (Files): Likewise.
35592         * modules/unicase/locale-language-tests (Files): Likewise.
35593         * modules/unicase/tolower-tests (Files): Likewise.
35594         * modules/unicase/totitle-tests (Files): Likewise.
35595         * modules/unicase/toupper-tests (Files): Likewise.
35596         * modules/unicase/u8-casecmp-tests (Files): Likewise.
35597         * modules/unicase/u8-casecoll-tests (Files): Likewise.
35598         * modules/unicase/u8-casefold-tests (Files): Likewise.
35599         * modules/unicase/u8-is-cased-tests (Files): Likewise.
35600         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
35601         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
35602         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
35603         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
35604         * modules/unicase/u8-tolower-tests (Files): Likewise.
35605         * modules/unicase/u8-totitle-tests (Files): Likewise.
35606         * modules/unicase/u8-toupper-tests (Files): Likewise.
35607         * modules/unicase/u16-casecmp-tests (Files): Likewise.
35608         * modules/unicase/u16-casecoll-tests (Files): Likewise.
35609         * modules/unicase/u16-casefold-tests (Files): Likewise.
35610         * modules/unicase/u16-is-cased-tests (Files): Likewise.
35611         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
35612         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
35613         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
35614         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
35615         * modules/unicase/u16-tolower-tests (Files): Likewise.
35616         * modules/unicase/u16-totitle-tests (Files): Likewise.
35617         * modules/unicase/u16-toupper-tests (Files): Likewise.
35618         * modules/unicase/u32-casecmp-tests (Files): Likewise.
35619         * modules/unicase/u32-casecoll-tests (Files): Likewise.
35620         * modules/unicase/u32-casefold-tests (Files): Likewise.
35621         * modules/unicase/u32-is-cased-tests (Files): Likewise.
35622         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
35623         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
35624         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
35625         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
35626         * modules/unicase/u32-tolower-tests (Files): Likewise.
35627         * modules/unicase/u32-totitle-tests (Files): Likewise.
35628         * modules/unicase/u32-toupper-tests (Files): Likewise.
35629         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
35630         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
35631         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
35632         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
35633         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
35634         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
35635         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
35636         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
35637         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
35638         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
35639         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
35640         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
35641         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
35642         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
35643         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
35644         * modules/unictype/bidicategory-name-tests (Files): Likewise.
35645         * modules/unictype/bidicategory-of-tests (Files): Likewise.
35646         * modules/unictype/bidicategory-test-tests (Files): Likewise.
35647         * modules/unictype/block-list-tests (Files): Likewise.
35648         * modules/unictype/block-of-tests (Files): Likewise.
35649         * modules/unictype/block-test-tests (Files): Likewise.
35650         * modules/unictype/category-C-tests (Files): Likewise.
35651         * modules/unictype/category-Cc-tests (Files): Likewise.
35652         * modules/unictype/category-Cf-tests (Files): Likewise.
35653         * modules/unictype/category-Cn-tests (Files): Likewise.
35654         * modules/unictype/category-Co-tests (Files): Likewise.
35655         * modules/unictype/category-Cs-tests (Files): Likewise.
35656         * modules/unictype/category-L-tests (Files): Likewise.
35657         * modules/unictype/category-Ll-tests (Files): Likewise.
35658         * modules/unictype/category-Lm-tests (Files): Likewise.
35659         * modules/unictype/category-Lo-tests (Files): Likewise.
35660         * modules/unictype/category-Lt-tests (Files): Likewise.
35661         * modules/unictype/category-Lu-tests (Files): Likewise.
35662         * modules/unictype/category-M-tests (Files): Likewise.
35663         * modules/unictype/category-Mc-tests (Files): Likewise.
35664         * modules/unictype/category-Me-tests (Files): Likewise.
35665         * modules/unictype/category-Mn-tests (Files): Likewise.
35666         * modules/unictype/category-N-tests (Files): Likewise.
35667         * modules/unictype/category-Nd-tests (Files): Likewise.
35668         * modules/unictype/category-Nl-tests (Files): Likewise.
35669         * modules/unictype/category-No-tests (Files): Likewise.
35670         * modules/unictype/category-P-tests (Files): Likewise.
35671         * modules/unictype/category-Pc-tests (Files): Likewise.
35672         * modules/unictype/category-Pd-tests (Files): Likewise.
35673         * modules/unictype/category-Pe-tests (Files): Likewise.
35674         * modules/unictype/category-Pf-tests (Files): Likewise.
35675         * modules/unictype/category-Pi-tests (Files): Likewise.
35676         * modules/unictype/category-Po-tests (Files): Likewise.
35677         * modules/unictype/category-Ps-tests (Files): Likewise.
35678         * modules/unictype/category-S-tests (Files): Likewise.
35679         * modules/unictype/category-Sc-tests (Files): Likewise.
35680         * modules/unictype/category-Sk-tests (Files): Likewise.
35681         * modules/unictype/category-Sm-tests (Files): Likewise.
35682         * modules/unictype/category-So-tests (Files): Likewise.
35683         * modules/unictype/category-Z-tests (Files): Likewise.
35684         * modules/unictype/category-Zl-tests (Files): Likewise.
35685         * modules/unictype/category-Zp-tests (Files): Likewise.
35686         * modules/unictype/category-Zs-tests (Files): Likewise.
35687         * modules/unictype/category-and-not-tests (Files): Likewise.
35688         * modules/unictype/category-and-tests (Files): Likewise.
35689         * modules/unictype/category-byname-tests (Files): Likewise.
35690         * modules/unictype/category-name-tests (Files): Likewise.
35691         * modules/unictype/category-none-tests (Files): Likewise.
35692         * modules/unictype/category-of-tests (Files): Likewise.
35693         * modules/unictype/category-or-tests (Files): Likewise.
35694         * modules/unictype/category-test-withtable-tests (Files): Likewise.
35695         * modules/unictype/combining-class-tests (Files): Likewise.
35696         * modules/unictype/ctype-alnum-tests (Files): Likewise.
35697         * modules/unictype/ctype-alpha-tests (Files): Likewise.
35698         * modules/unictype/ctype-blank-tests (Files): Likewise.
35699         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
35700         * modules/unictype/ctype-digit-tests (Files): Likewise.
35701         * modules/unictype/ctype-graph-tests (Files): Likewise.
35702         * modules/unictype/ctype-lower-tests (Files): Likewise.
35703         * modules/unictype/ctype-print-tests (Files): Likewise.
35704         * modules/unictype/ctype-punct-tests (Files): Likewise.
35705         * modules/unictype/ctype-space-tests (Files): Likewise.
35706         * modules/unictype/ctype-upper-tests (Files): Likewise.
35707         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
35708         * modules/unictype/decimal-digit-tests (Files): Likewise.
35709         * modules/unictype/digit-tests (Files): Likewise.
35710         * modules/unictype/mirror-tests (Files): Likewise.
35711         * modules/unictype/numeric-tests (Files): Likewise.
35712         * modules/unictype/property-alphabetic-tests (Files): Likewise.
35713         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
35714         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
35715         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
35716         Likewise.
35717         * modules/unictype/property-bidi-block-separator-tests (Files):
35718         Likewise.
35719         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
35720         Likewise.
35721         * modules/unictype/property-bidi-common-separator-tests (Files):
35722         Likewise.
35723         * modules/unictype/property-bidi-control-tests (Files): Likewise.
35724         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
35725         Likewise.
35726         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
35727         Likewise.
35728         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
35729         Likewise.
35730         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
35731         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
35732         Likewise.
35733         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
35734         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
35735         Likewise.
35736         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
35737         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
35738         * modules/unictype/property-bidi-segment-separator-tests (Files):
35739         Likewise.
35740         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
35741         * modules/unictype/property-byname-tests (Files): Likewise.
35742         * modules/unictype/property-combining-tests (Files): Likewise.
35743         * modules/unictype/property-composite-tests (Files): Likewise.
35744         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
35745         * modules/unictype/property-dash-tests (Files): Likewise.
35746         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
35747         * modules/unictype/property-default-ignorable-code-point-tests (Files):
35748         Likewise.
35749         * modules/unictype/property-deprecated-tests (Files): Likewise.
35750         * modules/unictype/property-diacritic-tests (Files): Likewise.
35751         * modules/unictype/property-extender-tests (Files): Likewise.
35752         * modules/unictype/property-format-control-tests (Files): Likewise.
35753         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
35754         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
35755         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
35756         * modules/unictype/property-hex-digit-tests (Files): Likewise.
35757         * modules/unictype/property-hyphen-tests (Files): Likewise.
35758         * modules/unictype/property-id-continue-tests (Files): Likewise.
35759         * modules/unictype/property-id-start-tests (Files): Likewise.
35760         * modules/unictype/property-ideographic-tests (Files): Likewise.
35761         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
35762         * modules/unictype/property-ids-trinary-operator-tests (Files):
35763         Likewise.
35764         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
35765         * modules/unictype/property-iso-control-tests (Files): Likewise.
35766         * modules/unictype/property-join-control-tests (Files): Likewise.
35767         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
35768         * modules/unictype/property-line-separator-tests (Files): Likewise.
35769         * modules/unictype/property-logical-order-exception-tests (Files):
35770         Likewise.
35771         * modules/unictype/property-lowercase-tests (Files): Likewise.
35772         * modules/unictype/property-math-tests (Files): Likewise.
35773         * modules/unictype/property-non-break-tests (Files): Likewise.
35774         * modules/unictype/property-not-a-character-tests (Files): Likewise.
35775         * modules/unictype/property-numeric-tests (Files): Likewise.
35776         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
35777         * modules/unictype/property-other-default-ignorable-code-point-tests
35778         (Files): Likewise.
35779         * modules/unictype/property-other-grapheme-extend-tests (Files):
35780         Likewise.
35781         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
35782         * modules/unictype/property-other-id-start-tests (Files): Likewise.
35783         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
35784         * modules/unictype/property-other-math-tests (Files): Likewise.
35785         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
35786         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
35787         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
35788         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
35789         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
35790         * modules/unictype/property-private-use-tests (Files): Likewise.
35791         * modules/unictype/property-punctuation-tests (Files): Likewise.
35792         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
35793         * modules/unictype/property-radical-tests (Files): Likewise.
35794         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
35795         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
35796         * modules/unictype/property-space-tests (Files): Likewise.
35797         * modules/unictype/property-terminal-punctuation-tests (Files):
35798         Likewise.
35799         * modules/unictype/property-test-tests (Files): Likewise.
35800         * modules/unictype/property-titlecase-tests (Files): Likewise.
35801         * modules/unictype/property-unassigned-code-value-tests (Files):
35802         Likewise.
35803         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
35804         * modules/unictype/property-uppercase-tests (Files): Likewise.
35805         * modules/unictype/property-variation-selector-tests (Files): Likewise.
35806         * modules/unictype/property-white-space-tests (Files): Likewise.
35807         * modules/unictype/property-xid-continue-tests (Files): Likewise.
35808         * modules/unictype/property-xid-start-tests (Files): Likewise.
35809         * modules/unictype/property-zero-width-tests (Files): Likewise.
35810         * modules/unictype/scripts-tests (Files): Likewise.
35811         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
35812         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
35813         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
35814         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
35815         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
35816         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
35817         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
35818         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
35819         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
35820         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
35821         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
35822         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
35823         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
35824         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
35825         * modules/uninorm/composition-tests (Files): Likewise.
35826         * modules/uninorm/decomposing-form-tests (Files): Likewise.
35827         * modules/uninorm/decomposition-tests (Files): Likewise.
35828         * modules/uninorm/filter-tests (Files): Likewise.
35829         * modules/uninorm/nfc-tests (Files): Likewise.
35830         * modules/uninorm/nfd-tests (Files): Likewise.
35831         * modules/uninorm/nfkc-tests (Files): Likewise.
35832         * modules/uninorm/nfkd-tests (Files): Likewise.
35833         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
35834         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
35835         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
35836         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
35837         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
35838         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
35839         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
35840         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35841         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
35842         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
35843         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
35844         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
35845         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35846         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
35847         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
35848         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
35849         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
35850         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35851         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
35852         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
35853         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
35854         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
35855         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35856         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
35857         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
35858         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
35859         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
35860         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
35861         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
35862         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
35863         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
35864         * modules/uniwidth/u8-width-tests (Files): Likewise.
35865         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
35866         * modules/uniwidth/u16-width-tests (Files): Likewise.
35867         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
35868         * modules/uniwidth/u32-width-tests (Files): Likewise.
35869         * modules/uniwidth/width-tests (Files): Likewise.
35870         * modules/unlink-tests (Files): Likewise.
35871         * modules/unsetenv-tests (Files): Likewise.
35872         * modules/usleep-tests (Files): Likewise.
35873         * modules/utimens-tests (Files): Likewise.
35874         * modules/utimensat-tests (Files): Likewise.
35875         * modules/vasnprintf-posix-tests (Files): Likewise.
35876         * modules/vasnprintf-tests (Files): Likewise.
35877         * modules/vasprintf-posix-tests (Files): Likewise.
35878         * modules/vasprintf-tests (Files): Likewise.
35879         * modules/vdprintf-posix-tests (Files): Likewise.
35880         * modules/vfprintf-posix-tests (Files): Likewise.
35881         * modules/vprintf-posix-tests (Files): Likewise.
35882         * modules/vsnprintf-posix-tests (Files): Likewise.
35883         * modules/vsnprintf-tests (Files): Likewise.
35884         * modules/vsprintf-posix-tests (Files): Likewise.
35885         * modules/wcrtomb-tests (Files): Likewise.
35886         * modules/wcsnrtombs-tests (Files): Likewise.
35887         * modules/wcsrtombs-tests (Files): Likewise.
35888         * modules/wctype-tests (Files): Likewise.
35889         * modules/wcwidth-tests (Files): Likewise.
35890         * modules/xmemdup0-tests (Files): Likewise.
35891         * modules/xprintf-posix-tests (Files): Likewise.
35892         * modules/xvasprintf-tests (Files): Likewise.
35893
35894 2009-12-24  Eric Blake  <ebb9@byu.net>
35895
35896         test-nanosleep: fix typo
35897         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
35898         patch.
35899         Reported by Bruno Haible.
35900
35901 2009-12-24  Bruno Haible  <bruno@clisp.org>
35902
35903         Reduce namespace pollution on glibc systems.
35904         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
35905         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
35906         systems.
35907         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
35908         <getopt.h> on glibc systems.
35909         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
35910         systems.
35911         * lib/fcntl.c: Include <unistd.h> here instead.
35912
35913 2009-12-24  Bruno Haible  <bruno@clisp.org>
35914
35915         * lib/stdlib.in.h (includes): Fix typo in today's commit.
35916
35917 2009-12-24  Eric Blake  <ebb9@byu.net>
35918
35919         tests: add signature checks
35920         * tests/signature.h (SIGNATURE_CHECK): New file.
35921         * modules/atexit-tests (Files): Use it.
35922         * modules/btowc-tests (Files): Likewise.
35923         * modules/canonicalize-lgpl-tests (Files): Likewise.
35924         * modules/ceilf-tests (Files): Likewise.
35925         * modules/ceill-tests (Files): Likewise.
35926         * modules/chown-tests (Files): Likewise.
35927         * modules/dprintf-posix-tests (Files): Likewise.
35928         * modules/dup2-tests (Files): Likewise.
35929         * modules/dup3-tests (Files): Likewise.
35930         * modules/duplocale-tests (Files): Likewise.
35931         * modules/fchdir-tests (Files): Likewise.
35932         * modules/fcntl-tests (Files): Likewise.
35933         * modules/fdopendir-tests (Files): Likewise.
35934         * modules/fflush-tests (Files): Likewise.
35935         * modules/flock-tests (Files): Likewise.
35936         * modules/floorf-tests (Files): Likewise.
35937         * modules/floorl-tests (Files): Likewise.
35938         * modules/fnmatch-tests (Files): Likewise.
35939         * modules/fopen-tests (Files): Likewise.
35940         * modules/fprintf-posix-tests (Files): Likewise.
35941         * modules/freopen-tests (Files): Likewise.
35942         * modules/frexp-nolibm-tests (Files): Likewise.
35943         * modules/frexp-tests (Files): Likewise.
35944         * modules/frexpl-nolibm-tests (Files): Likewise.
35945         * modules/frexpl-tests (Files): Likewise.
35946         * modules/fseek-tests (Files): Likewise.
35947         * modules/fseeko-tests (Files): Likewise.
35948         * modules/fsync-tests (Files): Likewise.
35949         * modules/ftell-tests (Files): Likewise.
35950         * modules/ftello-tests (Files): Likewise.
35951         * modules/futimens-tests (Files): Likewise.
35952         * modules/getaddrinfo-tests (Files): Likewise.
35953         * modules/getcwd-tests (Files): Likewise.
35954         * modules/getdelim-tests (Files): Likewise.
35955         * modules/getdtablesize-tests (Files): Likewise.
35956         * modules/getgroups-tests (Files): Likewise.
35957         * modules/gethostname-tests (Files): Likewise.
35958         * modules/getline-tests (Files): Likewise.
35959         * modules/getopt-posix-tests (Files): Likewise.
35960         * modules/gettimeofday-tests (Files): Likewise.
35961         * modules/glob-tests (Files): Likewise.
35962         * modules/iconv-tests (Files): Likewise.
35963         * modules/inet_ntop-tests (Files): Likewise.
35964         * modules/inet_pton-tests (Files): Likewise.
35965         * modules/isblank-tests (Files): Likewise.
35966         * modules/lchown-tests (Files): Likewise.
35967         * modules/ldexpl-tests (Files): Likewise.
35968         * modules/link-tests (Files): Likewise.
35969         * modules/linkat-tests (Files): Likewise.
35970         * modules/lseek-tests (Files): Likewise.
35971         * modules/lstat-tests (Files): Likewise.
35972         * modules/mbrtowc-tests (Files): Likewise.
35973         * modules/mbsinit-tests (Files): Likewise.
35974         * modules/mbsnrtowcs-tests (Files): Likewise.
35975         * modules/mbsrtowcs-tests (Files): Likewise.
35976         * modules/memchr-tests (Files): Likewise.
35977         * modules/memcmp-tests (Files): Likewise.
35978         * modules/memmem-tests (Files): Likewise.
35979         * modules/memrchr-tests (Files): Likewise.
35980         * modules/mkdir-tests (Files): Likewise.
35981         * modules/mkfifo-tests (Files): Likewise.
35982         * modules/mkfifoat-tests (Files): Likewise.
35983         * modules/mknod-tests (Files): Likewise.
35984         * modules/nanosleep-tests (Files): Likewise.
35985         * modules/nl_langinfo-tests (Files): Likewise.
35986         * modules/obstack-printf-tests (Files): Likewise.
35987         * modules/open-tests (Files): Likewise.
35988         * modules/openat-tests (Files): Likewise.
35989         * modules/perror-tests (Files): Likewise.
35990         * modules/pipe2-tests (Files): Likewise.
35991         * modules/poll-tests (Files): Likewise.
35992         * modules/popen-tests (Files): Likewise.
35993         * modules/posix_spawn-tests (Files): Likewise.
35994         * modules/posix_spawnp-tests (Files): Likewise.
35995         * modules/pread-tests (Files): Likewise.
35996         * modules/printf-posix-tests (Files): Likewise.
35997         * modules/pty-tests (Files): Likewise.
35998         * modules/random_r-tests (Files): Likewise.
35999         * modules/rawmemchr-tests (Files): Likewise.
36000         * modules/readlink-tests (Files): Likewise.
36001         * modules/remove-tests (Files): Likewise.
36002         * modules/rename-tests (Files): Likewise.
36003         * modules/renameat-tests (Files): Likewise.
36004         * modules/rmdir-tests (Files): Likewise.
36005         * modules/round-tests (Files): Likewise.
36006         * modules/roundf-tests (Files): Likewise.
36007         * modules/roundl-tests (Files): Likewise.
36008         * modules/select-tests (Files): Likewise.
36009         * modules/setenv-tests (Files): Likewise.
36010         * modules/sigaction-tests (Files): Likewise.
36011         * modules/sleep-tests (Files): Likewise.
36012         * modules/snprintf-posix-tests (Files): Likewise.
36013         * modules/snprintf-tests (Files): Likewise.
36014         * modules/sprintf-posix-tests (Files): Likewise.
36015         * modules/stat-tests (Files): Likewise.
36016         * modules/strcasestr-tests (Files): Likewise.
36017         * modules/strchrnul-tests (Files): Likewise.
36018         * modules/strerror-tests (Files): Likewise.
36019         * modules/strsignal-tests (Files): Likewise.
36020         * modules/strstr-tests (Files): Likewise.
36021         * modules/strtod-tests (Files): Likewise.
36022         * modules/strverscmp-tests (Files): Likewise.
36023         * modules/symlink-tests (Files): Likewise.
36024         * modules/symlinkat-tests (Files): Likewise.
36025         * modules/times-tests (Files): Likewise.
36026         * modules/trunc-tests (Files): Likewise.
36027         * modules/truncf-tests (Files): Likewise.
36028         * modules/truncl-tests (Files): Likewise.
36029         * modules/tsearch-tests (Files): Likewise.
36030         * modules/uname-tests (Files): Likewise.
36031         * modules/unlink-tests (Files): Likewise.
36032         * modules/unsetenv-tests (Files): Likewise.
36033         * modules/usleep-tests (Files): Likewise.
36034         * modules/utimensat-tests (Files): Likewise.
36035         * modules/vasprintf-tests (Files): Likewise.
36036         * modules/vdprintf-posix-tests (Files): Likewise.
36037         * modules/vfprintf-posix-tests (Files): Likewise.
36038         * modules/vprintf-posix-tests (Files): Likewise.
36039         * modules/vsnprintf-posix-tests (Files): Likewise.
36040         * modules/vsnprintf-tests (Files): Likewise.
36041         * modules/vsprintf-posix-tests (Files): Likewise.
36042         * modules/wcrtomb-tests (Files): Likewise.
36043         * modules/wcsnrtombs-tests (Files): Likewise.
36044         * modules/wcsrtombs-tests (Files): Likewise.
36045         * modules/wcwidth-tests (Files): Likewise.
36046         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
36047         * tests/test-isinf.c (isinf): Likewise.
36048         * tests/test-isnan.c (isnan): Likewise.
36049         * tests/test-signbit.c (signbit): Likewise.
36050         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
36051         declaration, either as macro or with correct signature.
36052         (select): Ensure function under test is declared with correct
36053         signature in correct header.
36054         * tests/test-atexit.c (atexit): Likewise.
36055         * tests/test-btowc.c (btowc): Likewise.
36056         * tests/test-canonicalize-lgpl.c (realpath)
36057         (canonicalize_file_name): Likewise.
36058         * tests/test-ceilf1.c (ceilf): Likewise.
36059         * tests/test-ceill.c (ceill): Likewise.
36060         * tests/test-chown.c (chown): Likewise.
36061         * tests/test-dprintf-posix.c (dprintf): Likewise.
36062         * tests/test-dup2.c (dup2): Likewise.
36063         * tests/test-dup3.c (dup3): Likewise.
36064         * tests/test-duplocale.c (duplocale): Likewise.
36065         * tests/test-fchdir.c (fchdir): Likewise.
36066         * tests/test-fchownat.c (fchownat): Likewise.
36067         * tests/test-fcntl.c (fcntl): Likewise.
36068         * tests/test-fdopendir.c (fdopendir): Likewise.
36069         * tests/test-fflush.c (fflush): Likewise.
36070         * tests/test-flock.c (flock): Likewise.
36071         * tests/test-floorf1.c (floorf): Likewise.
36072         * tests/test-floorl.c (floorl): Likewise.
36073         * tests/test-fnmatch.c (fnmatch): Likewise.
36074         * tests/test-fopen.c (fopen): Likewise.
36075         * tests/test-fprintf-posix.c (fprintf): Likewise.
36076         * tests/test-freopen.c (freopen): Likewise.
36077         * tests/test-frexp.c (frexp): Likewise.
36078         * tests/test-frexpl.c (frexpl): Likewise.
36079         * tests/test-fseek.c (fseek): Likewise.
36080         * tests/test-fseeko.c (fseeko): Likewise.
36081         * tests/test-fstatat.c (fstatat): Likewise.
36082         * tests/test-fsync.c (fsync): Likewise.
36083         * tests/test-ftell.c (ftell): Likewise.
36084         * tests/test-ftello.c (ftello): Likewise.
36085         * tests/test-futimens.c (futimens): Likewise.
36086         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
36087         (gai_strerror): Likewise.
36088         * tests/test-getcwd.c (getcwd): Likewise.
36089         * tests/test-getdelim.c (getdelim): Likewise.
36090         * tests/test-getdtablesize.c (getdtablesize): Likewise.
36091         * tests/test-getgroups.c (getgroups): Likewise.
36092         * tests/test-gethostname.c (gethostname): Likewise.
36093         * tests/test-getline.c (getline): Likewise.
36094         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
36095         Likewise.
36096         * tests/test-gettimeofday.c (gettimeofday): Likewise.
36097         * tests/test-glob.c (glob, globfree): Likewise.
36098         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
36099         * tests/test-inet_ntop.c (inet_ntop): Likewise.
36100         * tests/test-inet_pton.c (inet_pton): Likewise.
36101         * tests/test-isblank.c (isblank): Likewise.
36102         * tests/test-lchown.c (lchown): Likewise.
36103         * tests/test-ldexpl.c (ldexpl): Likewise.
36104         * tests/test-link.c (link): Likewise.
36105         * tests/test-linkat.c (linkat): Likewise.
36106         * tests/test-lseek.c (lseek): Likewise.
36107         * tests/test-lstat.c (lstat): Likewise.
36108         * tests/test-mbrtowc.c (mbrtowc): Likewise.
36109         * tests/test-mbsinit.c (mbsinit): Likewise.
36110         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
36111         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
36112         * tests/test-memchr.c (memchr): Likewise.
36113         * tests/test-memcmp.c (memcmp): Likewise.
36114         * tests/test-memmem.c (memmem): Likewise.
36115         * tests/test-memrchr.c (memrchr): Likewise.
36116         * tests/test-mkdir.c (mkdir): Likewise.
36117         * tests/test-mkdirat.c (mkdirat): Likewise.
36118         * tests/test-mkfifo.c (mkfifo): Likewise.
36119         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
36120         * tests/test-mknod.c (mknod): Likewise.
36121         * tests/test-nanosleep.c (nanosleep): Likewise.
36122         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
36123         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
36124         Likewise.
36125         * tests/test-open.c (open): Likewise.
36126         * tests/test-openat.c (openat): Likewise.
36127         * tests/test-perror.c (perror): Likewise.
36128         * tests/test-pipe2.c (pipe2): Likewise.
36129         * tests/test-poll.c (poll): Likewise.
36130         * tests/test-popen.c (popen, pclose): Likewise.
36131         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
36132         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
36133         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
36134         (posix_spawn_file_actions_destroy)
36135         (posix_spawn_file_actions_addclose)
36136         (posix_spawn_file_actions_addopen)
36137         (posix_spawn_file_actions_adddup2): Likewise.
36138         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
36139         * tests/test-pread.c (pread): Likewise.
36140         * tests/test-printf-posix.c (printf): Likewise.
36141         * tests/test-pty.c (openpty, forkpty): Likewise.
36142         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
36143         (random_r): Likewise.
36144         * tests/test-rawmemchr.c (rawmemchr): Likewise.
36145         * tests/test-readlink.c (readlink): Likewise.
36146         * tests/test-remove.c (remove): Likewise.
36147         * tests/test-rename.c (rename): Likewise.
36148         * tests/test-renameat.c (renameat): Likewise.
36149         * tests/test-rmdir.c (rmdir): Likewise.
36150         * tests/test-round1.c (round): Likewise.
36151         * tests/test-roundf1.c (roundf): Likewise.
36152         * tests/test-roundl.c (roundl): Likewise.
36153         * tests/test-setenv.c (setenv): Likewise.
36154         * tests/test-sigaction.c (sigaction): Likewise.
36155         * tests/test-sleep.c (sleep): Likewise.
36156         * tests/test-snprintf.c (snprintf): Likewise.
36157         * tests/test-sprintf-posix.c (sprintf): Likewise.
36158         * tests/test-stat.c (stat): Likewise.
36159         * tests/test-stpncpy.c (stpncpy): Likewise.
36160         * tests/test-strcasestr.c (strcasestr): Likewise.
36161         * tests/test-strchrnul.c (strchrnul): Likewise.
36162         * tests/test-strerror.c (strerror): Likewise.
36163         * tests/test-strsignal.c (strsignal): Likewise.
36164         * tests/test-strstr.c (strstr): Likewise.
36165         * tests/test-strtod.c (strtod): Likewise.
36166         * tests/test-strverscmp.c (strverscmp): Likewise.
36167         * tests/test-symlink.c (symlink): Likewise.
36168         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
36169         * tests/test-times.c (times): Likewise.
36170         * tests/test-trunc1.c (trunc): Likewise.
36171         * tests/test-truncf1.c (truncf): Likewise.
36172         * tests/test-truncl.c (truncl): Likewise.
36173         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
36174         Likewise.
36175         * tests/test-uname.c (uname): Likewise.
36176         * tests/test-unlink.c (unlink): Likewise.
36177         * tests/test-unlinkat.c (unlinkat): Likewise.
36178         * tests/test-unsetenv.c (unsetenv): Likewise.
36179         * tests/test-usleep.c (usleep): Likewise.
36180         * tests/test-utimensat.c (utimensat): Likewise.
36181         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
36182         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
36183         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
36184         * tests/test-vprintf-posix.c (vprintf): Likewise.
36185         * tests/test-vsnprintf.c (vsnprintf): Likewise.
36186         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
36187         * tests/test-wcrtomb.c (wcrtomb): Likewise.
36188         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
36189         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
36190         * tests/test-wcwidth.c (wcwidth): Likewise.
36191
36192         build: pull in conditional headers during GNULIB_POSIXCHECK
36193         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
36194         definitions from any conditionally-included headers.
36195         * lib/stdlib.in.h (includes): Likewise.
36196         * lib/unistd.in.h (includes): Likewise.
36197
36198 2009-12-24  Bruno Haible  <bruno@clisp.org>
36199
36200         * tests/test-argv-iter.c: Include header file being tested immediately
36201         after config.h.
36202         * tests/test-base64.c: Likewise.
36203         * tests/test-flock.c: Likewise.
36204         * tests/test-fsync.c: Likewise.
36205         * tests/test-getdate.c: Likewise.
36206         * tests/test-getndelim2.c: Likewise.
36207         * tests/test-isfinite.c: Likewise.
36208         * tests/test-isinf.c: Likewise.
36209         * tests/test-strerror.c: Likewise.
36210         * tests/test-strsignal.c: Likewise.
36211
36212 2009-12-23  Eric Blake  <ebb9@byu.net>
36213
36214         unistd: work around cygwin bug
36215         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
36216         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
36217         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36218
36219 2009-12-23  Bruno Haible  <bruno@clisp.org>
36220
36221         localename: More tests.
36222         * tests/test-localename.c (SIZEOF): New macro.
36223         (categories): New variable.
36224         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
36225         test_locale_name_default): Add test w.r.t. thread locale.
36226         (test_locale_name_thread): New function.
36227         (main): Invoke it.
36228
36229         localename: Make aware of thread locale.
36230         * lib/localename.h (gl_locale_name_thread): New declaration.
36231         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
36232         behaviour with respect to thread locale.
36233         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
36234         <langinfo.h>, glthread/lock.h.
36235         (SIZE_BITS): New macro.
36236         (string_hash): New function.
36237         (struct hash_node): New type.
36238         (HASH_TABLE_SIZE): New macro.
36239         (struniq_hash_table, struniq_lock): New variables.
36240         (struniq): New function.
36241         (gl_locale_name_thread): New function.
36242         (gl_locale_name): Invoke it.
36243         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
36244         * modules/localename (Depends-on): Add lock.
36245         Reported by Mike Gran <spk121@yahoo.com>.
36246
36247 2009-12-23  Eric Blake  <ebb9@byu.net>
36248
36249         va-args: new module
36250         * modules/va-args: New file.
36251         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
36252         * MODULES.html.sh (Core language properties): Mention it.
36253
36254         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
36255         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
36256         named alias for __attribute__((__unused__)).
36257         * lib/chown.c: Update client.
36258         * lib/fchmodat.c: Likewise.
36259         * lib/fts.c: Likewise.
36260         * lib/getdate.y: Likewise.
36261         * lib/getgroups.c: Likewise.
36262         * lib/getopt.c: Likewise.
36263         * lib/getugroups.c: Likewise.
36264         * lib/mkdir.c: Likewise.
36265         * lib/mkfifo.c: Likewise.
36266         * lib/mkfifoat.c: Likewise.
36267         * lib/mknod.c: Likewise.
36268         * lib/mknodat.c: Likewise.
36269         * lib/readlink.c: Likewise.
36270         * lib/se-context.in.h: Likewise.
36271         * lib/se-selinux.in.h: Likewise.
36272         * lib/sockets.c: Likewise.
36273         * lib/symlink.c: Likewise.
36274         * lib/symlinkat.c: Likewise.
36275         * lib/unicodeio.c: Likewise.
36276         * lib/unistr.h: Likewise.
36277         * tests/test-areadlink.c: Likewise.
36278         * tests/test-areadlinkat.c: Likewise.
36279         * tests/test-filenamecat.c: Likewise.
36280         * tests/test-fseeko.c: Likewise.
36281         * tests/test-ftello.c: Likewise.
36282         * tests/test-getdate.c: Likewise.
36283         * tests/test-getgroups.c: Likewise.
36284         * tests/test-gethostname.c: Likewise.
36285         * tests/test-quotearg.c: Likewise.
36286         * tests/test-version-etc.c: Likewise.
36287         * tests/test-xalloc-die.c: Likewise.
36288         * tests/test-xfprintf-posix.c: Likewise.
36289         * tests/test-xprintf-posix.c: Likewise.
36290         * tests/test-xvasprintf.c: Likewise.
36291
36292         tests: avoid compiler warnings
36293         * tests/test-fcntl.c (main): Delete unused parameters.
36294         * tests/test-freopen-safer.c (main): Likewise.
36295         * tests/test-xalloc-die.c (main): Mark unused parameters.
36296         * tests/test-fseeko.c (main): Likewise.
36297         * tests/test-ftello.c (main): Likewise.
36298         * tests/test-nanosleep.c (main): Avoid declaration warning.
36299         * tests/test-sleep.c (main): Likewise.
36300         * tests/test-unsetenv.c (main): Silence warning about string
36301         literal.
36302         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
36303
36304 2009-12-23  Bruno Haible  <bruno@clisp.org>
36305
36306         * tests/test-localename.c (test_locale_name): New function, extracted
36307         from main. Also test mixed situations.
36308         (test_locale_name_posix, test_locale_name_environ,
36309         test_locale_name_default): New functions.
36310         (main): Invoke them all.
36311         * modules/localename-tests (configure.ac): Test for newlocale.
36312
36313 2009-12-23  Bruno Haible  <bruno@clisp.org>
36314
36315         unistd: Ensure getcwd gets declared before being overridden.
36316         * lib/unistd.in.h: Conditionally include <io.h>.
36317
36318 2009-12-22  Bruno Haible  <bruno@clisp.org>
36319
36320         wchar: Diagnose broken combination of glibc and gcc versions and flags.
36321         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
36322         (gl_WCHAR_H): Invoke it.
36323         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
36324         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
36325         Reported by Karl Berry <karl@freefriends.org>.
36326
36327 2009-12-22  Eric Blake  <ebb9@byu.net>
36328
36329         math, unistd: avoid redundant includes
36330         * lib/math.in.h (isnan): No need to re-include <math.h>.
36331         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
36332
36333         getsubopt: work around cygwin bug
36334         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
36335         avoid conflicting with system getsubopt.
36336         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
36337         bug.
36338
36339         getopt: synchronize from glibc
36340         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
36341         parameter order.  Adjust all callers.
36342         (_getopt_internal_r, main): Adjust quoting in error messages.
36343         Drop considerations for outdated POSIX 1003.2 error message.
36344         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
36345         callers.
36346         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
36347
36348         test-getopt: test stderr behavior
36349         * modules/getopt-posix-tests (Depends-on): Add dup2.
36350         * tests/test-getopt.c (ASSERT): Avoid stderr.
36351         (main): Move stderr to a temporary file.
36352         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
36353         Instead, add parameter to inform caller if output occurred.
36354         (test_getopt): Adjust all existing tests to expect silence, and
36355         add new tests of leading ":".
36356         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36357         glibc shortcomings with leading "-:" or "+:" in optstring.
36358         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36359         Likewise.
36360         * doc/posix-functions/getopt.texi (getopt): Likewise.
36361
36362         test-getopt: enhance test
36363         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
36364         supports optind=0.
36365         * tests/test-getopt.c (OPTIND_MIN): Move...
36366         * tests/test-getopt.h (OPTIND_MIN): ...here.
36367         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
36368         Require that optind=0 works, since modern BSD supports it in
36369         addition to optreset, and since coreutils expects it.
36370         (test_getopt_long_only): New test.
36371         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36372         glibc shortcomings with 'W;', and enforcement of optind=0.
36373         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36374         Likewise.
36375
36376 2009-12-21  Bruno Haible  <bruno@clisp.org>
36377
36378         localename: Improvements for MacOS X and Cygwin.
36379         * lib/localename.h (gl_locale_name_environ): New declaration.
36380         * lib/localename.c (gl_locale_name_environ): New function, extracted from
36381         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
36382         (gl_locale_name_posix): Invoke it.
36383         (gl_locale_name_default): Add comments. Use Windows native API also on
36384         Cygwin.
36385
36386 2009-12-21  Bruno Haible  <bruno@clisp.org>
36387
36388         Update list of Win32 locale ids.
36389         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
36390         (LANG_SAMI): Renamed from LANG_SAAMI.
36391         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
36392         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
36393         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
36394         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
36395         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
36396         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
36397         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
36398         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
36399         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
36400         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
36401         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
36402         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
36403         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
36404         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
36405         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
36406         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
36407         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
36408         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
36409         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
36410         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
36411         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
36412         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
36413         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
36414         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
36415         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
36416         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
36417         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
36418         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
36419         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
36420         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
36421         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
36422         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
36423         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
36424         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
36425         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
36426         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
36427         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
36428         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
36429         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
36430         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
36431         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
36432         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
36433         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
36434         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
36435         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
36436         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
36437         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
36438         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
36439         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
36440         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
36441         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
36442         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
36443         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
36444         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
36445         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
36446         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
36447         Add more languages and countries for Sami, Sorbian. Add more countries
36448         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
36449         for Pashto. Change country for Syriac, Tswana.
36450
36451 2009-12-21  Eric Blake  <ebb9@byu.net>
36452
36453         test-utimens: avoid spurious failure
36454         * tests/test-chown.h (nap): Factor...
36455         * tests/nap.h: ...into new file.
36456         * tests/test-lchown.h (nap): Avoid duplication.
36457         * tests/test-utimens-common.h (nap): Use shared implementation,
36458         necessary on file systems with 1-second resolution.
36459         * modules/chown-tests (Files): Include new file.
36460         * modules/fdutimensat-tests (Files): Likewise.
36461         * modules/futimens-tests (Files): Likewise.
36462         * modules/lchown-tests (Files): Likewise.
36463         * modules/openat-tests (Files): Likewise.
36464         * modules/utimens-tests (Files): Likewise.
36465         * modules/utimensat-tests (Files): Likewise.
36466
36467 2009-12-19  Eric Blake  <ebb9@byu.net>
36468
36469         futimens, utimensat: work around Linux bug
36470         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
36471         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36472         * lib/utimensat.c (rpl_utimensat): Work around it.
36473         * lib/futimens.c (rpl_futimens): Adjust comment.
36474
36475         utimens: work around Linux ctime bug
36476         * lib/utimens.c (detect_ctime_bug): New helper function.
36477         (update_timespec): Differentiate between workaround needed for
36478         this bug vs. what is needed for systems that lack utimensat.
36479         (fdutimens, lutimens): Work around bug.
36480
36481         utimens: check for ctime update
36482         * tests/test-utimens-common.h (check_ctime): Define.
36483         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
36484         * tests/test-futimens.h (test_futimens): Likewise.
36485         * tests/test-lutimens.h (test_lutimens): Likewise.
36486         * doc/posix-functions/futimens.texi (futimens): Document the bug.
36487         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36488
36489 2009-12-19  Bruno Haible  <bruno@clisp.org>
36490
36491         dprintf-posix: Check against memory leak fixed on 2009-12-15.
36492         * tests/test-dprintf-posix2.sh: New file.
36493         * tests/test-dprintf-posix2.c: New file.
36494         * modules/dprintf-posix-tests (Files): Add them.
36495         (configure.ac): Check for getrlimit and setrlimit.
36496         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36497
36498 2009-12-19  Bruno Haible  <bruno@clisp.org>
36499
36500         fprintf-posix: Check against memory leak fixed on 2009-12-15.
36501         * tests/test-fprintf-posix3.sh: New file.
36502         * tests/test-fprintf-posix3.c: New file.
36503         * modules/fprintf-posix-tests (Files): Add them.
36504         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36505
36506 2009-12-19  Eric Blake  <ebb9@byu.net>
36507
36508         dirfd: fix prototype
36509         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
36510         * lib/dirfd.c (dirfd): Likewise.
36511
36512         canonicalize: reduce memory usage
36513         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
36514         allocation to size.
36515         Reported by Solar Designer <solar@openwall.com>.
36516
36517 2009-12-19  Bruno Haible  <bruno@clisp.org>
36518
36519         New module attribute 'Applicability'.
36520         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
36521         * gnulib-tool: New option --extract-applicability.
36522         (func_usage): Document it.
36523         (sed_extract_prog): Recognize it.
36524         (func_get_applicability): New function.
36525         (func_import): Generalize handling of 'link-warning' module.
36526         * modules/link-warning (Applicability): New section.
36527         * modules/arg-nonnull (Applicability): New section.
36528         Repoted by Simon Josefsson <simon@josefsson.org>.
36529
36530 2009-12-19  Bruno Haible  <bruno@clisp.org>
36531
36532         fflush: tweak
36533         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
36534         * lib/fseeko.c (rpl_fseeko): Likewise.
36535
36536 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
36537
36538         * lib/gl_list.h: Fix typo in comment.
36539
36540 2009-12-16  Eric Blake  <ebb9@byu.net>
36541
36542         fcntl: use to simplify other modules
36543         * modules/cloexec (Depends-on): Add fcntl.
36544         * modules/fchdir (Depends-on): Likewise.
36545         * modules/fd-safer-flag (Depends-on): Likewise.
36546         * modules/unistd-safer (Depends-on): Likewise.
36547         * modules/dup3 (configure.ac): Set module indicator.
36548         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
36549         missing.
36550         * lib/fchdir.c (_gl_register_dup): Fix comment.
36551         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
36552         * lib/dup-safer.c (dup_safer): Likewise.
36553         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
36554         * lib/dup3.c (dup3): Likewise.
36555         * tests/test-fchdir.c (main): Enhance test.
36556         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
36557
36558         fcntl: port portions of fcntl to mingw
36559         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
36560         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
36561         replacement for mingw.
36562         * modules/fcntl (Description): Update.
36563         (Depends-on): Add dup2.
36564         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
36565         * modules/fcntl-h (Makefile.am): Substitute it.
36566         * lib/fcntl.in.h (fcntl): Update declaration.
36567         (F_DUPFD, F_GETFD): New macros, when needed.
36568         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36569         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
36570         * tests/test-fcntl.c (check_flags, main): Enhance test for items
36571         we now guarantee.
36572
36573         fcntl: work around cygwin bug in F_DUPFD
36574         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
36575         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
36576         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
36577         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
36578         * doc/posix-functions/fcntl.texi (fcntl): Document it.
36579
36580         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
36581         * modules/fcntl (Files): List new files.
36582         (configure.ac): Run a test.
36583         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
36584         * lib/fcntl.c (rpl_fcntl): Likewise.
36585         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
36586         (gl_FCNTL_H): Always replace fcntl.h.
36587         * modules/fcntl-h (Makefile.am): Substitute witnesses.
36588         * lib/fcntl.in.h (fcntl): Declare replacement.
36589         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
36590         needed, plus a witness.
36591         * doc/posix-functions/fcntl.texi (fcntl): Document this.
36592         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36593         * tests/test-fcntl.c: New file.
36594         * modules/fcntl-tests: Likewise.
36595
36596         binary-io: avoid potential compilation warning
36597         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
36598         directives.
36599
36600         fflush: avoid compilation error on NetBSD
36601         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
36602         between off_t and fpos_t, since the latter is sometimes a struct.
36603         * lib/fseeko.c (rpl_fseeko): Likewise.
36604         Reported by Alexander Nasonov <alnsn@yandex.ru>.
36605
36606 2009-12-15  Eric Blake  <ebb9@byu.net>
36607
36608         fcntl-h, stdio, sys_ioctl: fix declarations
36609         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
36610         function must not take arguments.
36611         * lib/sys_ioctl.in.h (ioctl): Likewise.
36612         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
36613         (open): Add a link warning.
36614
36615 2009-12-15  Jim Meyering  <meyering@redhat.com>
36616
36617         areadlink, areadlink-with-size: relax license to LGPLv2+
36618         * modules/areadlink (License): Relax to LGPLv2+.
36619         * modules/areadlink-with-size (License): Likewise.
36620
36621 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
36622             Bruno Haible  <bruno@clisp.org>
36623
36624         *printf: Fix memory leak.
36625         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
36626         * lib/vfprintf.c (vfprintf): Likewise.
36627         * lib/dprintf.c (dprintf): Likewise.
36628         * lib/vdprintf.c (vdprintf): Likewise.
36629
36630 2009-12-14  Eric Blake  <ebb9@byu.net>
36631
36632         accept4: adjust module dependencies
36633         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
36634
36635         utimens: one more try at avoiding compiler warning
36636         * lib/utimens.c (lutimens): Lower scope of result.
36637
36638 2009-12-13  Bruno Haible  <bruno@clisp.org>
36639
36640         Move the malloc checking from module 'list' to new module 'xlist'.
36641         * modules/xlist: New file.
36642         * lib/gl_xlist.h: New file.
36643         * lib/gl_xlist.c: New file.
36644         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
36645         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
36646         gl_list_add_last, gl_list_add_before, gl_list_add_after,
36647         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
36648         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
36649         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
36650         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
36651         gl_sortedlist_nx_add): New declarations.
36652         (struct gl_list_implementation): Rename and change methods accordingly.
36653         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
36654         (gl_list_nx_create): Renamed from gl_list_create.
36655         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36656         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36657         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36658         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36659         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36660         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36661         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36662         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36663         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
36664         gl_list_create_empty.
36665         (gl_list_nx_create): Renamed from gl_list_create.
36666         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36667         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36668         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36669         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36670         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36671         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36672         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36673         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36674         * lib/gl_array_list.c: Don't include xalloc.h.
36675         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
36676         NULL upon out-of-memory.
36677         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
36678         out-of-memory.
36679         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
36680         Change return type to 'int'.
36681         (gl_array_nx_set_at): Renamed from gl_array_set_at.
36682         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36683         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
36684         upon out-of-memory.
36685         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
36686         upon out-of-memory.
36687         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
36688         upon out-of-memory.
36689         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
36690         upon out-of-memory.
36691         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
36692         out-of-memory.
36693         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
36694         Update.
36695         (gl_array_list_implementation): Update.
36696         * lib/gl_carray_list.c: Don't include xalloc.h.
36697         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
36698         Return NULL upon out-of-memory.
36699         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
36700         out-of-memory.
36701         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
36702         Change return type to 'int'.
36703         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
36704         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36705         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
36706         upon out-of-memory.
36707         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
36708         upon out-of-memory.
36709         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
36710         out-of-memory.
36711         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
36712         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
36713         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
36714         Update.
36715         (gl_carray_list_implementation): Update.
36716         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
36717         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
36718         gl_linked_create_empty. Return NULL upon out-of-memory.
36719         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
36720         out-of-memory.
36721         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
36722         Change return type to 'int'. Return -1 upon out-of-memory.
36723         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
36724         out-of-memory.
36725         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
36726         upon out-of-memory.
36727         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
36728         upon out-of-memory.
36729         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
36730         NULL upon out-of-memory.
36731         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
36732         upon out-of-memory.
36733         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
36734         out-of-memory.
36735         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
36736         Update.
36737         * lib/gl_linked_list.c: Don't include xalloc.h.
36738         (gl_linked_list_implementation): Update.
36739         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
36740         (add_to_bucket): Change return type to 'int'.
36741         (gl_linkedhash_list_implementation): Update.
36742         * lib/gl_anytree_list1.h (free_subtree): New function.
36743         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
36744         gl_tree_create_empty. Return NULL upon out-of-memory.
36745         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
36746         Change return type to 'int'. Return -1 upon out-of-memory.
36747         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
36748         out-of-memory.
36749         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
36750         (gl_tree_remove_node): New function, moved here from
36751         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
36752         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
36753         Update.
36754         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
36755         malloc, not xmalloc. Return NULL upon out-of-memory.
36756         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36757         out-of-memory.
36758         (gl_tree_remove_node_from_tree): New function, extracted from
36759         gl_tree_remove_node.
36760         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36761         upon out-of-memory.
36762         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36763         out-of-memory.
36764         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36765         upon out-of-memory.
36766         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36767         upon out-of-memory.
36768         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36769         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
36770         not xmalloc. Return NULL upon out-of-memory.
36771         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36772         out-of-memory.
36773         (gl_tree_remove_node_from_tree): New function, extracted from
36774         gl_tree_remove_node.
36775         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36776         upon out-of-memory.
36777         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36778         out-of-memory.
36779         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36780         upon out-of-memory.
36781         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36782         upon out-of-memory.
36783         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36784         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
36785         gl_anytree_list1.h before gl_anyavltree_list2.h.
36786         (gl_avltree_list_implementation): Update.
36787         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
36788         gl_anytree_list1.h before gl_anyavltree_list2.h.
36789         (gl_rbtree_list_implementation): Update.
36790         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
36791         Change return type to 'int'. Return -1 upon out-of-memory. Use
36792         __builtin_expect.
36793         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
36794         (gl_avltreehash_list_implementation): Update.
36795         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
36796         (gl_rbtreehash_list_implementation): Update.
36797         * modules/array-list (Depends-on): Remove xalloc.
36798         * modules/carray-list (Depends-on): Likewise.
36799         * modules/linked-list (Depends-on): Likewise.
36800         * modules/linkedhash-list (Depends-on): Likewise.
36801         * modules/avltree-list (Depends-on): Likewise.
36802         * modules/rbtree-list (Depends-on): Likewise.
36803         * modules/avltreehash-list (Depends-on): Likewise.
36804         * modules/rbtreehash-list (Depends-on): Likewise.
36805
36806         * modules/xsublist: New file.
36807         * lib/gl_xsublist.h: New file.
36808         * lib/gl_xsublist.c: New file.
36809         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
36810         (gl_sublist_nx_create): New declaration.
36811         * lib/gl_sublist.c: Don't include xalloc.h.
36812         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
36813         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
36814         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
36815         Change return type to 'int'. Return -1 upon out-of-memory.
36816         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
36817         upon out-of-memory.
36818         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
36819         NULL upon out-of-memory.
36820         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
36821         upon out-of-memory.
36822         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
36823         NULL upon out-of-memory.
36824         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
36825         NULL upon out-of-memory.
36826         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
36827         upon out-of-memory.
36828         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
36829         (gl_sublist_list_implementation): Update.
36830         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
36831         upon out-of-memory.
36832         * modules/sublist (Depends-on): Remove xalloc.
36833
36834         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
36835         * tests/test-carray_list.c: Likewise.
36836         * tests/test-linked_list.c: Likewise.
36837         * tests/test-linkedhash_list.c: Likewise.
36838         * tests/test-avltree_list.c: Likewise.
36839         * tests/test-rbtree_list.c: Likewise.
36840         * tests/test-avltreehash_list.c: Likewise.
36841         * tests/test-rbtreehash_list.c: Likewise.
36842         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
36843         * modules/carray-list-tests (Makefile.am): Likewise.
36844         * modules/linked-list-tests (Makefile.am): Likewise.
36845         * modules/linkedhash-list-tests (Makefile.am): Likewise.
36846         * modules/avltree-list-tests (Makefile.am): Likewise.
36847         * modules/rbtree-list-tests (Makefile.am): Likewise.
36848         * modules/avltreehash-list-tests (Makefile.am): Likewise.
36849         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
36850
36851         * NEWS: Mention the changes.
36852
36853         * lib/clean-temp.c: Include gl_xlist.h.
36854         * modules/clean-temp (Depends-on): Add xlist.
36855
36856         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
36857         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
36858
36859         * tests/test-array_oset.c: Include gl_xlist.h.
36860         * modules/array-oset-tests (Depends-on): Add xlist.
36861
36862         Reported by José E. Marchesi <jemarch@gnu.org>.
36863
36864 2009-12-13  Bruno Haible  <bruno@clisp.org>
36865
36866         Move the malloc checking from module 'oset' to new module 'xoset'.
36867         * modules/xoset: New file.
36868         * lib/gl_xoset.h: New file.
36869         * lib/gl_xoset.c: New file.
36870         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
36871         declarations.
36872         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
36873         (struct gl_oset_implementation): Rename and change methods accordingly.
36874         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
36875         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36876         'int'. Mark as __warn_unused_result__.
36877         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
36878         gl_oset_create_empty.
36879         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36880         'int'.
36881         * lib/gl_array_oset.c: Don't include xalloc.h.
36882         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
36883         malloc, not xmalloc.
36884         (grow): Change return type to 'int'. Don't call xalloc_die.
36885         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
36886         to 'int'.
36887         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
36888         'int'.
36889         (gl_array_oset_implementation): Update.
36890         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
36891         gl_tree_create_empty.
36892         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
36893         'int'.
36894         * lib/gl_avltree_oset.c: Don't include xalloc.h.
36895         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36896         xmalloc.
36897         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36898         not xmalloc.
36899         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36900         xmalloc.
36901         (gl_avltree_oset_implementation): Update.
36902         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
36903         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36904         xmalloc.
36905         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36906         not xmalloc.
36907         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36908         xmalloc.
36909         (gl_rbtree_oset_implementation): Update.
36910         * modules/array-oset (Depends-on): Remove xalloc.
36911         * modules/avltree-oset (Depends-on): Likewise.
36912         * modules/rbtree-oset (Depends-on): Likewise.
36913         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
36914         * tests/test-avltree_oset.c: Likewise.
36915         * tests/test-rbtree_oset.c: Likewise.
36916         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
36917         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
36918         * modules/rbtree-oset-tests (Makefile.am): Likewise.
36919         * NEWS: Mention the change.
36920
36921 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
36922
36923         maint.mk: allow a project to override release-prep commands
36924         * top/maint.mk (alpha, beta, stable): Move release-preparatory
36925         commands into a new rule.
36926         (release-prep): New rule.
36927         (release-prep-hook): New overridable variable.
36928
36929 2009-12-13  Bruno Haible  <bruno@clisp.org>
36930
36931         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
36932
36933 2009-12-13  Jim Meyering  <meyering@redhat.com>
36934
36935         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
36936         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
36937
36938 2009-12-12  Bruno Haible  <bruno@clisp.org>
36939
36940         duplocale: Tweak.
36941         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
36942
36943 2009-12-12  Karl Berry  <karl@gnu.org>
36944
36945         * config/srclist.txt (strtoll.c): tab changes, no more sync.
36946
36947 2009-12-12  Bruno Haible  <bruno@clisp.org>
36948
36949         * m4/po.m4: Undo incorrect untabification.
36950
36951 2009-12-12  Bruno Haible  <bruno@clisp.org>
36952
36953         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
36954         * modules/c-strtod (Depends-on): Add locale.
36955         * modules/c-strtold (Depends-on): Likewise.
36956
36957 2009-12-12  Bruno Haible  <bruno@clisp.org>
36958
36959         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
36960
36961 2009-12-11  Eric Blake  <ebb9@byu.net>
36962
36963         setenv: relax requirement in light of POSIX ruling
36964         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
36965         not NULL.
36966         * tests/test-setenv.c (main): Relax test.
36967         * tests/test-unsetenv.c (main): Likewise.
36968         * doc/posix-functions/setenv.texi (setenv): Document this.
36969         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
36970
36971 2009-12-11  Bruno Haible  <bruno@clisp.org>
36972
36973         New module 'fd-safer-flag'.
36974         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
36975         * lib/dup-safer.c (dup_safer_flag): Remove function.
36976         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
36977         * lib/fd-safer.c (fd_safer_flag): Remove function.
36978         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
36979         * modules/cloexec (configure.ac): Drop indicator macro.
36980         * modules/fd-safer-flag: New file.
36981         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
36982         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
36983         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
36984
36985 2009-12-11  Bruno Haible  <bruno@clisp.org>
36986
36987         Tests for module 'nl_langinfo'.
36988         * modules/nl_langinfo-tests: New file.
36989         * tests/test-nl_langinfo.sh: New file.
36990         * tests/test-nl_langinfo.c: New file.
36991
36992         New module 'nl_langinfo'.
36993         * lib/nl_langinfo.c: New file.
36994         * m4/nl_langinfo.m4: New file.
36995         * modules/nl_langinfo: New file.
36996         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
36997
36998 2009-12-11  Bruno Haible  <bruno@clisp.org>
36999
37000         Tests for module 'langinfo'.
37001         * modules/langinfo-tests: New file.
37002         * tests/test-langinfo.c: New file.
37003
37004         New module 'langinfo'.
37005         * lib/langinfo.in.h: New file.
37006         * m4/langinfo_h.m4: New file.
37007         * modules/langinfo: New file.
37008         * doc/posix-headers/langinfo.texi: Mention the new module.
37009
37010 2009-12-11  Bruno Haible  <bruno@clisp.org>
37011
37012         * lib/config.charset: Untabify.
37013
37014 2009-12-11  Bruno Haible  <bruno@clisp.org>
37015
37016         * modules/unistd-safer (configure.ac): Drop indicator macro.
37017
37018 2009-12-11  Bruno Haible  <bruno@clisp.org>
37019
37020         Move pipe2-safer code to its own file.
37021         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
37022         * lib/pipe-safer.c (pipe2_safer): Remove function.
37023         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
37024         (Makefile.am): Add it to lib_SOURCES.
37025
37026 2009-12-10  Bruno Haible  <bruno@clisp.org>
37027
37028         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
37029
37030 2009-12-10  Bruno Haible  <bruno@clisp.org>
37031
37032         Declare which arguments expect non-NULL values, for GCC and clang.
37033         * build-aux/arg-nonnull.h: New file.
37034         * modules/arg-nonnull: New file.
37035         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
37036         (inet_ntop, inet_pton): Use it.
37037         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
37038         (closedir, dirfd, opendir, scandir, alphasort): Use it.
37039         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
37040         (open, openat): Use it.
37041         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
37042         (fnmatch): Use it.
37043         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
37044         (getopt, getopt_long, getopt_long_only): Use it.
37045         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
37046         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
37047         Use it.
37048         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
37049         (iconv_open): Use it.
37050         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
37051         (strtoimax, strtoumax): Use it.
37052         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
37053         (duplocale): Use it.
37054         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
37055         (frexp, frexpl): Use it.
37056         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
37057         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
37058         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
37059         (tsearch, tfind, tdelete, twalk): Use it.
37060         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
37061         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
37062         sigpending): Use it.
37063         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
37064         (posix_spawn, posix_spawnp, posix_spawnattr_init,
37065         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
37066         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
37067         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
37068         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
37069         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
37070         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
37071         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
37072         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
37073         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
37074         Use it.
37075         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
37076         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
37077         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
37078         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
37079         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
37080         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
37081         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
37082         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
37083         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
37084         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
37085         strtoull, unsetenv): Use it.
37086         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
37087         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
37088         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
37089         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
37090         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
37091         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
37092         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
37093         (strcasecmp, strncasecmp): Use it.
37094         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
37095         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
37096         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
37097         rpl_setsockopt): Use it.
37098         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
37099         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
37100         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
37101         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
37102         (gettimeofday): Use it.
37103         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
37104         (times): Use it.
37105         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
37106         (uname): Use it.
37107         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
37108         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
37109         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
37110         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
37111         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
37112         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
37113         unlinkat, write): Use it.
37114         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
37115         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
37116         * lib/argv-iter.h: Include arg-nonnull.h.
37117         (_ATTRIBUTE_NONNULL_): Remove macro.
37118         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
37119         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
37120         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
37121         optimization.
37122         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
37123         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
37124         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
37125         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
37126         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
37127         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
37128         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
37129         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
37130         * modules/arpa_inet (Depends-on): Add arg-nonnull.
37131         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
37132         * modules/dirent (Depends-on): Add arg-nonnull.
37133         (Makefile.am): Insert arg-nonnull.h into dirent.h.
37134         * modules/fcntl-h (Depends-on): Add arg-nonnull.
37135         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
37136         * modules/fnmatch (Depends-on): Add arg-nonnull.
37137         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
37138         * modules/getopt-posix (Depends-on): Add arg-nonnull.
37139         (Makefile.am): Insert arg-nonnull.h into getopt.h.
37140         * modules/glob (Depends-on): Add arg-nonnull.
37141         (Makefile.am): Insert arg-nonnull.h into glob.h.
37142         * modules/iconv_open (Depends-on): Add arg-nonnull.
37143         (Makefile.am): Insert arg-nonnull.h into iconv.h.
37144         * modules/inttypes (Depends-on): Add arg-nonnull.
37145         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
37146         * modules/locale (Depends-on): Add arg-nonnull.
37147         (Makefile.am): Insert arg-nonnull.h into locale.h.
37148         * modules/math (Depends-on): Add arg-nonnull.
37149         (Makefile.am): Insert arg-nonnull.h into math.h.
37150         * modules/netdb (Depends-on): Add arg-nonnull.
37151         (Makefile.am): Insert arg-nonnull.h into netdb.h.
37152         * modules/search (Depends-on): Add arg-nonnull.
37153         (Makefile.am): Insert arg-nonnull.h into search.h.
37154         * modules/signal (Depends-on): Add arg-nonnull.
37155         (Makefile.am): Insert arg-nonnull.h into signal.h.
37156         * modules/spawn (Depends-on): Add arg-nonnull.
37157         (Makefile.am): Insert arg-nonnull.h into spawn.h.
37158         * modules/stdio (Depends-on): Add arg-nonnull.
37159         (Makefile.am): Insert arg-nonnull.h into stdio.h.
37160         * modules/stdlib (Depends-on): Add arg-nonnull.
37161         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
37162         * modules/string (Depends-on): Add arg-nonnull.
37163         (Makefile.am): Insert arg-nonnull.h into string.h.
37164         * modules/strings (Depends-on): Add arg-nonnull.
37165         (Makefile.am): Insert arg-nonnull.h into strings.h.
37166         * modules/sys_socket (Depends-on): Add arg-nonnull.
37167         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
37168         * modules/sys_stat (Depends-on): Add arg-nonnull.
37169         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
37170         * modules/sys_time (Depends-on): Add arg-nonnull.
37171         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
37172         * modules/sys_times (Depends-on): Add arg-nonnull.
37173         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
37174         * modules/sys_utsname (Depends-on): Add arg-nonnull.
37175         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
37176         * modules/time (Depends-on): Add arg-nonnull.
37177         (Makefile.am): Insert arg-nonnull.h into time.h.
37178         * modules/unistd (Depends-on): Add arg-nonnull.
37179         (Makefile.am): Insert arg-nonnull.h into unistd.h.
37180         * modules/wchar (Depends-on): Add arg-nonnull.
37181         (Makefile.am): Insert arg-nonnull.h into wchar.h.
37182         * modules/argv-iter (Depends-on): Add arg-nonnull.
37183         * tests/test-canonicalize.c (null_ptr): New function.
37184         (main): Use it.
37185         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
37186         (main): Use it.
37187         * tests/test-memmem.c (null_ptr): New function.
37188         (main): Use it.
37189         Reported by Jim Meyering.
37190
37191 2009-12-10  Bruno Haible  <bruno@clisp.org>
37192
37193         Use spaces for indentation, not tabs.
37194         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
37195         * m4/*.m4: Untabify.
37196         * build-aux/*.h: Untabify.
37197         * tests/**/*.[hc]: Untabify.
37198         * README: New section "Indent with spaces, not TABs", based on
37199         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
37200         * NEWS: Mention the change.
37201
37202 2009-12-10  Bruno Haible  <bruno@clisp.org>
37203
37204         pty test: Fix link error.
37205         * modules/pty-tests (Makefile.am): Add the default LDADD value to
37206         test_pty_LDADD.
37207
37208 2009-12-07  Simon Josefsson  <simon@josefsson.org>
37209
37210         * modules/pty: New file.
37211         * modules/pty-tests: New file.
37212         * m4/pty.m4: New file.
37213         * tests/test-pty.c: New file.
37214         * doc/glibc-headers/pty.texi: Modified.
37215         * doc/glibc-functions/forkpty.texi: Modified.
37216         * doc/glibc-functions/openpty.texi: Modified.
37217
37218 2009-12-10  Bruno Haible  <bruno@clisp.org>
37219
37220         Avoid syntax error in C++ mode.
37221         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
37222
37223 2009-12-10  Bruno Haible  <bruno@clisp.org>
37224
37225         Use sed with option -e.
37226         * gnulib-tool (func_version, func_emit_copyright_notice,
37227         func_emit_initmacro_end, func_import, func_create_testdir): Pass
37228         option -e to sed.
37229         * modules/link-warning (Makefile.am): Likewise.
37230
37231 2009-12-10  Jim Meyering  <meyering@redhat.com>
37232
37233         mgetgroups: do not write bytes beyond end of malloc'd buffer
37234         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
37235         username, we call getgroups with a one-element-shorter buffer,
37236         but still told it the length was original, max_n_groups.
37237
37238 2009-12-09  Eric Blake  <ebb9@byu.net>
37239
37240         cloexec: relax license
37241         * modules/cloexec (Maintainer): Add myself.
37242         (License): Use LGPL, not GPL.
37243
37244         link-warning: optimize generation
37245         * modules/link-warning (Makefile.am): Reduce process usage.
37246
37247 2009-12-09  Bruno Haible  <bruno@clisp.org>
37248
37249         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
37250         workaround was added on 2009-11-17.
37251
37252 2009-12-09  Jim Meyering  <meyering@redhat.com>
37253             Bruno Haible  <bruno@clisp.org>
37254
37255         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
37256         * modules/link-warning (Makefile.am): Make the comment-removing sed
37257         command more robust in the face of bootstrap-prepended comment lines.
37258
37259 2009-12-09  Bruno Haible  <bruno@clisp.org>
37260
37261         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
37262         most one group.
37263
37264 2009-12-09  Simon Josefsson <simon@josefsson.org>
37265             Bruno Haible  <bruno@clisp.org>
37266
37267         * build-aux/link-warning.h: Add copyright notice.
37268         * modules/link-warning (Makefile.am): Generate link-warning.h from
37269         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37270         * NEWS: Mention change in link-warning module.
37271         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37272         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37273         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37274         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37275         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37276         * modules/math (Makefile.am): Add dependency to math.h.
37277         * modules/search (Makefile.am): Add dependency to search.h.
37278         * modules/signal (Makefile.am): Add dependency to signal.h.
37279         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37280         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37281         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37282         * modules/string (Makefile.am): Add dependency to string.h.
37283         * modules/strings (Makefile.am): Add dependency to strings.h.
37284         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
37285         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
37286         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
37287         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
37288         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
37289         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
37290         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
37291         * modules/unistd (Makefile.am): Add dependency to unistd.h.
37292         * modules/wchar (Makefile.am): Add dependency to wchar.h.
37293
37294 2009-12-09  Bruno Haible  <bruno@clisp.org>
37295
37296         fchdir: Optimize away rpl_fstat when possible.
37297         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
37298         REPLACE_OPEN_DIRECTORY.
37299         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
37300
37301 2009-12-09  Bruno Haible  <bruno@clisp.org>
37302
37303         * lib/fchdir.c: Update comment.
37304
37305 2009-12-09  Bruno Haible  <bruno@clisp.org>
37306
37307         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
37308
37309 2009-12-08  Eric Blake  <ebb9@byu.net>
37310
37311         fchdir: avoid memory leak on re-registration.
37312         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
37313
37314 2009-12-08  Jim Meyering  <meyering@redhat.com>
37315
37316         init.sh: avoid Solaris 10 /bin/sh portability problem
37317         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
37318         sourced script:
37319           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
37320           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
37321           bar
37322         tests/init.sh relied on that, accepting a --set-path=DIR argument,
37323         and two tests used that idiom.
37324         * tests/init.sh: Update suggested usage comments.
37325         (path_prepend_): New function, to be used in place
37326         of the --src-path=DIR option.
37327         (setup_): Move PATH-prepending code into path_prepend_.
37328         * tests/test-pread.sh: Adapt to new usage.
37329         * tests/test-xalloc-die.sh: Likewise.
37330
37331 2009-12-08  Simon Josefsson  <simon@josefsson.org>
37332
37333         * doc/gnulib.texi (Glibc pty.h): Add.
37334         * doc/glibc-functions/forkpty.texi: Add.
37335         * doc/glibc-functions/openpty.texi: Add.
37336         Suggested by Bruno Haible.
37337
37338 2009-12-08  Eric Blake  <ebb9@byu.net>
37339
37340         fchdir: fix logic bugs
37341         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
37342         * tests/test-fchdir.c (main): Enhance test.
37343         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
37344         is in use.
37345
37346         dup2: fix logic bugs
37347         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
37348         REPLACE_DUP2 to decide when rpl_dup2 is needed.
37349         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
37350         exists.
37351         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
37352
37353 2009-12-07  Eric Blake  <ebb9@byu.net>
37354
37355         unlink: fix m4 detection
37356         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
37357
37358         unistd-safer: add unit test
37359         * modules/unistd-safer-tests: New file.
37360         * tests/test-dup-safer.c: Likewise.
37361         * tests/test-cloexec.c (setmode): Avoid compiler warning.
37362         * tests/test-dup2.c (setmode): Likewise.
37363         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
37364
37365         cloexec: preserve text vs. binary across dup_cloexec
37366         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
37367         mode.
37368         * modules/dup2-tests (Depends-on): Add binary-io.
37369         * modules/cloexec-tests (Depends-on): Likewise.
37370         * tests/test-dup2.c (setmode, is_mode): New helpers.
37371         (main): Add tests that translation mode is preserved.
37372         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
37373         Reported by Bruno Haible.
37374
37375         mgetgroups: reduce duplicate listings
37376         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
37377         resulting array.
37378         * tests/test-chown.h (test_chown): Simplify client.
37379         * tests/test-lchown.h (test_lchown): Likewise.
37380
37381 2009-12-06  Bruno Haible  <bruno@clisp.org>
37382
37383         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
37384         value.
37385
37386 2009-12-06  Bruno Haible  <bruno@clisp.org>
37387
37388         * lib/progname.c: Include stdio.h, stdlib.h.
37389         (set_program_name): Reject a NULL argument.
37390
37391 2009-12-05  Eric Blake  <ebb9@byu.net>
37392
37393         pipe2-safer: new module
37394         * modules/pipe2-safer: New file.
37395         * lib/unistd-safer.h (pipe2_safer): New prototype.
37396         * lib/unistd--.h (pipe2): New wrapper.
37397         * lib/pipe-safer.c (pipe2_safer): New function.
37398         * modules/pipe (Depends-on): Add pipe2-safer.
37399         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
37400
37401         stdlib-safer: preserve cloexec flag for mkostemp[s]
37402         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
37403         fd_safer_flag.
37404
37405         unistd-safer: allow preservation of cloexec status via flag
37406         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
37407         prototypes.
37408         * lib/dup-safer.c (dup_safer_flag): New function.
37409         * lib/fd-safer.c (fd_safer_flag): Likewise.
37410         * modules/cloexec (configure.ac): Set witness.
37411
37412         test-dup2: enhance test
37413         * modules/dup2-tests (Depends-on): Add cloexec.
37414         * tests/test-dup2.c (main): Enhance test.
37415
37416         cloexec: add dup_cloexec
37417         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
37418         header and comments.
37419         * lib/cloexec.c (set_cloexec_flag): Add comments.
37420         (dup_cloexec): New function, with mingw implementation borrowed
37421         from...
37422         * lib/w32spawn.h (dup_noinherit): ...here.
37423         * modules/execute (Depends-on): Add cloexec.
37424         * modules/pipe (Depends-on): Likewise.
37425         * modules/cloexec (Depends-on): Add dup2.
37426         * modules/cloexec-tests (Files): New file.
37427         * tests/test-cloexec.c: Likewise.
37428
37429         test-xalloc-die: fix test for mingw
37430         * modules/xalloc-die-tests (Files): Add tests/init.sh.
37431         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
37432         directory and .exe suffix off argv[0] output.
37433
37434         test-fseeko: fix test for mingw
37435         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
37436         than undefining fseek, so test will pass on mingw.
37437
37438 2009-12-05  Bruno Haible  <bruno@clisp.org>
37439
37440         * lib/progname.h (set_program_name): Clarify specification.
37441         * lib/progname.c (set_program_name): Likewise.
37442         Reported by Jim Meyering.
37443
37444 2009-12-05  Jim Meyering  <meyering@redhat.com>
37445
37446         maint.mk: backslash-escape parens in default regexp
37447         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
37448         backslash-escape the literal parentheses.
37449
37450         maint.mk: news-date-check: use grep -E
37451         * top/maint.mk (today): Define a Make variable, not a...
37452         (news-date-check): ...shell variable.
37453         (news-date-regexp): Use the Make variable.
37454         Use grep's -E option.  Change the failing diagnostic to mention
37455         the variable, $(news-date-regexp).
37456
37457 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
37458
37459         maintainer-makefile: allow customization of NEWS entry format
37460         * top/maint.mk (news-date-regexp): New overridable variable.
37461         (news-date-check): Use it.
37462
37463 2009-12-04  Eric Blake  <ebb9@byu.net>
37464
37465         mgetgroups: add xgetgroups, and avoid ENOSYS failures
37466         * lib/mgetgroups.h (xgetgroups): New prototype.
37467         * lib/mgetgroups.c (xgetgroups): New wrapper.
37468         (mgetgroups): Handle ENOSYS.
37469         * modules/mgetgroups (Depends-on): Add realloc.
37470         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
37471
37472         mgetgroups: avoid argument promotion issues with -1
37473         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
37474         for invalid gid_t.
37475         * tests/test-chown.h (getegid, test_chown): Likewise.
37476         * tests/test-lchown.h (getegid, test_lchown): Likewise.
37477
37478 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
37479
37480         exclude: Fix header file problems.
37481         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
37482
37483 2009-12-01  Jim Meyering  <meyering@redhat.com>
37484
37485         fts: fts_open: do not let an empty string cause immediate failure
37486         This is required in support of GNU rm, for which the command
37487         "rm A '' B" must process and remove both A and B, in spite of
37488         the empty string argument.
37489         * lib/fts.c (fts_open): Do not let the presence of an empty string
37490         cause fts_open to fail immediately.  Most fts-using tools must be
37491         able to process all arguments, in order, and can be expected to
37492         diagnose such arguments themselves.
37493
37494 2009-11-30  Eric Blake  <ebb9@byu.net>
37495
37496         utimens: fix compilation error
37497         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
37498         Declare variable at right scope.
37499
37500 2009-11-29  Jim Meyering  <meyering@redhat.com>
37501
37502         bootstrap: handle perl-5.11's changed --version output
37503         * build-aux/bootstrap (get_version): Handle perl separately,
37504         since perl-5.11's --version output is different.
37505
37506 2009-11-28  Jim Meyering  <meyering@redhat.com>
37507
37508         userspec: depend on the inttostr module, too
37509         * modules/userspec (Depends-on): Add inttostr.
37510
37511         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
37512         * lib/userspec.c (parse_with_separator): Do not accept a user ID
37513         number of MAXUID when it evaluates to (uid_t) -1.
37514         Likewise for group ID.  Reported by Matt McCutchen in
37515         <http://savannah.gnu.org/bugs/?28113>
37516
37517         userspec: reformat to use spaces, not TABs
37518         * lib/userspec.c: Expand TABs to spaces.
37519         Add Emacs' "indent-tabs-mode: nil" hint.
37520
37521 2009-11-27  Eric Blake  <ebb9@byu.net>
37522
37523         getopt-gnu: flush out another BSD bug
37524         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
37525         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
37526         flush out BSD bug.
37527         * tests/test-getopt.h (test_getopt): End lists with NULL.
37528         * tests/test-getopt_long.h (test_getopt_long): Likewise.
37529         (test_getopt_long_posix): Enhance test.
37530         * modules/getopt-posix-tests (Depends-on): Add stdbool.
37531         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
37532         getopt-gnu.
37533         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37534         Likewise.
37535
37536 2009-11-27  Simon Josefsson  <simon@josefsson.org>
37537
37538         * modules/idpriv-droptemp-tests (Notice): Fix text.
37539
37540 2009-11-27  Jim Meyering  <meyering@redhat.com>
37541
37542         test-xalloc-die: avoid spurious failure due to libtool argv difference
37543         In a libtool-enabled project, this test would fail due to a difference
37544         in the emitted program name, e.g.,
37545         -test-xalloc-die: memory exhausted
37546         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
37547         Use program to avoid that.
37548         * modules/xalloc-die-tests (Depends-on): Add progname.
37549         * tests/test-xalloc-die.c: Include progname.h".
37550         (program_name): Remove decl.
37551         (main): Call set_program_name.
37552         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
37553
37554 2009-11-26  Richard Jones  <rjones@redhat.com>
37555
37556         w32sock: leave win32 error in place.
37557         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
37558
37559 2009-11-26  Eric Blake  <ebb9@byu.net>
37560
37561         init.sh: suggest to use skip_ and fail_ functions in comments
37562         * tests/init.sh: Add a sentence.
37563
37564 2009-11-25  Bruno Haible  <bruno@clisp.org>
37565
37566         init.sh: add documentation in comments
37567         * tests/init.sh: Add some developer and user documentation.
37568
37569 2009-11-26  Jim Meyering  <meyering@redhat.com>
37570
37571         init.sh: accommodate even those who specify bogus srcdir manually
37572         * tests/init.sh: Normally, srcdir is guaranteed by automake and
37573         configure-time tests to be sanitized, so that there is no need to
37574         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
37575         (with no double quotes) suffices.  However, since tests may be
37576         invoked manually, and since you may explicitly set srcdir to the
37577         name of a directory containing spaces, do quote its uses here.
37578         * tests/test-pread.sh: Likewise.
37579         Suggested by Bruno Haible.
37580
37581         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
37582         * tests/test-pread.sh: Write no data into the pipe, because
37583         test-pread actually reads none.  This avoids a diagnostic,
37584         "bash: echo: write error: Broken pipe", that arises in the unusual
37585         event something is ignoring SIGPIPE, and might be interpreted
37586         as some sort of failure.  Reported by Bruno Haible.
37587
37588 2009-11-25  Jim Meyering  <meyering@redhat.com>
37589
37590         test-pread: cover failure with ESPIPE and EINVAL
37591         * tests/test-pread.c (main): Test for failure, too.
37592         * tests/test-pread.sh: Invoke with stdin on a pipe.
37593         Suggested by Eric Blake.
37594
37595         pread: improvement and fix
37596         * modules/pread (Depends-on): Depend on lseek, for portability to
37597         e.g., mingw.  Suggested by Eric Blake.
37598         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
37599
37600         unistd.in.h: correct declaration of pread
37601         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
37602         Reported by Richard W.M. Jones.
37603
37604         test-pread.sh: distribute the test script
37605         * modules/pread-tests (Files): Include test-pread.sh.
37606
37607         test-pread.sh: clean up
37608         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
37609         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
37610         That is unnecessary, since it's always ".".
37611         Suggestion from Eric Blake.
37612
37613         test-pread.sh: make executable
37614         * tests/test-pread.sh: Set executable bit.
37615         Reported by Eric Blake.
37616
37617         correct typo in test-pread.sh
37618         * tests/test-pread.sh: Add #! line.
37619
37620         test pread
37621         * tests/test-pread.c: New file.
37622         * tests/test-pread.sh: Likewise.
37623         * modules/pread-tests: Likewise.
37624
37625         pread: new module
37626         * modules/pread: New file.
37627         * lib/unistd.in.h (pread): Define/declare.
37628         * lib/pread.c (pread): New file.
37629         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
37630         * modules/unistd (Makefile.am): Substitute witnesses.
37631         * doc/posix-functions/pread.texi (pread): Update.
37632         * MODULES.html.sh: Add pread.
37633
37634 2009-11-25  Jim Meyering  <meyering@redhat.com>
37635
37636         tests/init.sh: new file to be used via most *.sh tests
37637         * tests/init.sh: New file.
37638
37639 2009-11-25  Eric Blake  <ebb9@byu.net>
37640
37641         utimens: work around older Linux failure with symlinks
37642         * lib/utimens.c (lutimensat_works_really): New variable.
37643         (fdutimens, lutimens): Use it to manage kernels that support
37644         nanosecond times on files, but not on symlinks.
37645         Reported by OndÅ™ej Vašík.
37646
37647         utimes: fix configure grammar
37648         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
37649
37650 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
37651
37652         regex: Fix fastmap for multibyte character ranges.
37653         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
37654         characters when a multibyte character range is included.
37655
37656 2009-11-22  Andy Wingo  <wingo@pobox.com>
37657
37658         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
37659         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
37660
37661 2009-11-24  Bruno Haible  <bruno@clisp.org>
37662
37663         doc: Most *_l functions exist in MacOS X 10.5.
37664         * doc/posix-functions/duplocale.texi: Update platforms list.
37665         * doc/posix-functions/freelocale.texi: Likewise.
37666         * doc/posix-functions/newlocale.texi: Likewise.
37667         * doc/posix-functions/uselocale.texi: Likewise.
37668         * doc/posix-functions/isalnum_l.texi: Likewise.
37669         * doc/posix-functions/isalpha_l.texi: Likewise.
37670         * doc/posix-functions/isblank_l.texi: Likewise.
37671         * doc/posix-functions/iscntrl_l.texi: Likewise.
37672         * doc/posix-functions/isdigit_l.texi: Likewise.
37673         * doc/posix-functions/isgraph_l.texi: Likewise.
37674         * doc/posix-functions/islower_l.texi: Likewise.
37675         * doc/posix-functions/isprint_l.texi: Likewise.
37676         * doc/posix-functions/ispunct_l.texi: Likewise.
37677         * doc/posix-functions/isspace_l.texi: Likewise.
37678         * doc/posix-functions/isupper_l.texi: Likewise.
37679         * doc/posix-functions/iswalnum_l.texi: Likewise.
37680         * doc/posix-functions/iswalpha_l.texi: Likewise.
37681         * doc/posix-functions/iswblank_l.texi: Likewise.
37682         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37683         * doc/posix-functions/iswctype_l.texi: Likewise.
37684         * doc/posix-functions/iswdigit_l.texi: Likewise.
37685         * doc/posix-functions/iswgraph_l.texi: Likewise.
37686         * doc/posix-functions/iswlower_l.texi: Likewise.
37687         * doc/posix-functions/iswprint_l.texi: Likewise.
37688         * doc/posix-functions/iswpunct_l.texi: Likewise.
37689         * doc/posix-functions/iswspace_l.texi: Likewise.
37690         * doc/posix-functions/iswupper_l.texi: Likewise.
37691         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37692         * doc/posix-functions/isxdigit_l.texi: Likewise.
37693         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
37694         * doc/posix-functions/strcasecmp_l.texi: Likewise.
37695         * doc/posix-functions/strcoll_l.texi: Likewise.
37696         * doc/posix-functions/strfmon_l.texi: Likewise.
37697         * doc/posix-functions/strftime_l.texi: Likewise.
37698         * doc/posix-functions/strncasecmp_l.texi: Likewise.
37699         * doc/posix-functions/strxfrm_l.texi: Likewise.
37700         * doc/posix-functions/tolower_l.texi: Likewise.
37701         * doc/posix-functions/toupper_l.texi: Likewise.
37702         * doc/posix-functions/towctrans_l.texi: Likewise.
37703         * doc/posix-functions/towlower_l.texi: Likewise.
37704         * doc/posix-functions/towupper_l.texi: Likewise.
37705         * doc/posix-functions/wcscoll_l.texi: Likewise.
37706         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37707         * doc/posix-functions/wctrans_l.texi: Likewise.
37708         * doc/posix-functions/wctype_l.texi: Likewise.
37709         * doc/glibc-functions/strptime_l.texi: Likewise.
37710         * doc/glibc-functions/strtod_l.texi: Likewise.
37711         * doc/glibc-functions/strtof_l.texi: Likewise.
37712         * doc/glibc-functions/strtol_l.texi: Likewise.
37713         * doc/glibc-functions/strtold_l.texi: Likewise.
37714         * doc/glibc-functions/strtoll_l.texi: Likewise.
37715         * doc/glibc-functions/strtoul_l.texi: Likewise.
37716         * doc/glibc-functions/strtoull_l.texi: Likewise.
37717         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37718         * doc/glibc-functions/wcstod_l.texi: Likewise.
37719         * doc/glibc-functions/wcstof_l.texi: Likewise.
37720         * doc/glibc-functions/wcstol_l.texi: Likewise.
37721         * doc/glibc-functions/wcstold_l.texi: Likewise.
37722         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37723         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37724         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37725
37726 2009-11-24  Bruno Haible  <bruno@clisp.org>
37727
37728         duplocale: Fix logic bug.
37729         * lib/duplocale.c: Don't include <langinfo.h>.
37730         (_NL_LOCALE_NAME): Remove macro.
37731         (rpl_duplocale): Use setlocale instead of nl_langinfo.
37732         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
37733
37734 2009-11-23  Jim Meyering  <meyering@redhat.com>
37735
37736         test-update-copyright: don't hard-code /usr/bin/perl
37737         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
37738         perl to print the current year.  Gilles Espinasse reported that
37739         the replaced use of perl was hard-coded as /usr/bin/perl.
37740
37741 2009-11-23  Bruno Haible  <bruno@clisp.org>
37742
37743         duplocale: Add support for glibc 2.3.x.
37744         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
37745
37746 2009-11-22  Bruno Haible  <bruno@clisp.org>
37747
37748         vasnprintf: Tiny optimization.
37749         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
37750         MacOS X.
37751
37752 2009-11-22  Bruno Haible  <bruno@clisp.org>
37753
37754         Tests for module 'duplocale'.
37755         * modules/duplocale-tests: New file.
37756         * tests/test-duplocale.c: New file.
37757
37758         New module 'duplocale'.
37759         * m4/duplocale.m4: New file.
37760         * lib/locale.in.h (duplocale): New declaration.
37761         * lib/duplocale.c: New file.
37762         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
37763         gl_LOCALE_H_DEFAULTS): New macros.
37764         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
37765         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
37766         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
37767         REPLACE_DUPLOCALE.
37768         * modules/duplocale: New file.
37769         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
37770
37771 2009-11-22  Bruno Haible  <bruno@clisp.org>
37772
37773         * modules/locale-tests (configure.ac): Test for newlocale function.
37774         * tests/test-locale.c: When the system has extended locale functions,
37775         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
37776
37777         locale: Make locale_t available when possible.
37778         * lib/locale.in.h: Include <xlocale.h> when it exists.
37779         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
37780         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
37781         * modules/locale (Depends-on): Add extensions.
37782         (Makefile.am): Also substitute HAVE_XLOCALE_H.
37783         * doc/posix-headers/locale.texi: Document the problem with locale_t.
37784
37785 2009-11-22  Bruno Haible  <bruno@clisp.org>
37786
37787         Add comments.
37788         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
37789         invocation.
37790         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
37791         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37792         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37793
37794 2009-11-22  Bruno Haible  <bruno@clisp.org>
37795
37796         error: account for the possibility of freopen (stdout).
37797         * lib/error.c: Include <unistd.h>.
37798         (flush_stdout): New function, extracted from error and error_at_line.
37799         Determine stdout's fd dynamically.
37800         (error, error_at_line): Invoke flush_stdout.
37801         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
37802         * modules/error (Depends-on): Add unistd.
37803
37804 2009-11-22  Bruno Haible  <bruno@clisp.org>
37805
37806         diffseq: Add comment.
37807         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
37808
37809 2009-11-22  Jim Meyering  <meyering@redhat.com>
37810
37811         c-stack: avoid defining an unused static function
37812         * lib/c-stack.c (find_stack_direction): Do not define this function
37813         when it will not be used.
37814
37815         diffseq: avoid spurious gcc warnings
37816         * lib/diffseq.h (IF_LINT2): Define.
37817         (compareseq): Use it to initialize two members of "part".
37818         This avoids two used-uninitialized warnings.
37819
37820 2009-11-21  Jim Meyering  <meyering@redhat.com>
37821
37822         c-stack: avoid "ignoring return value of `write'" warning
37823         * lib/c-stack.c: Include "ignore-value.h".
37824         (die): Explicitly ignore each write return value.
37825         * modules/c-stack (Depends-on): Add ignore-value.
37826
37827 2009-11-21  Bruno Haible  <bruno@clisp.org>
37828
37829         diffseq: reduce scope of variable 'best'.
37830         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
37831         variable, earlier used for two different purposes.
37832
37833 2009-11-21  Jim Meyering  <meyering@redhat.com>
37834
37835         diffseq: remove useless assignment to "best"
37836         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
37837         assignment.  At that point "best" is already guaranteed to be zero.
37838
37839 2009-11-20  Eric Blake  <ebb9@byu.net>
37840
37841         build: mention ftp redirector in release announcements
37842         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
37843         values that used to come from cfg.mk; mention FTP redirect URL.
37844         * build-aux/announce-gen: Mention the mirror list.
37845         Suggested by Karl Berry.
37846
37847         nanosleep: improve port to mingw
37848         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
37849         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
37850         LIB_NANOSLEEP, but only when needed.
37851         * modules/select (Link): Document LIBSOCKET.
37852         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
37853         enough.
37854
37855         nanosleep: work around cygwin bug
37856         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
37857         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
37858         bug.
37859         (getnow): Delete, not needed.
37860         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
37861         LIB_CLOCK_GETTIME.
37862         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
37863         clock-time, gettime.
37864         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
37865         bug.
37866         * modules/nanosleep-tests: New test.
37867         * tests/test-nanosleep.c: New file.
37868
37869         sleep: work around cygwin bug
37870         * lib/sleep.c (rpl_sleep): Work around the bug.
37871         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
37872         (gl_PREREQ_SLEEP): Delete unused macro.
37873         * modules/sleep (Depends-on): Add verify.
37874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37875         * modules/unistd (Makefile.am): Substitute witness.
37876         * lib/unistd.in.h (sleep): Update prototype.
37877         * doc/posix-functions/sleep.texi (sleep): Document the bug.
37878         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
37879         * modules/sleep-tests (Depends-on): Check for alarm.
37880
37881 2009-11-20  Jim Meyering  <meyering@redhat.com>
37882
37883         maint.mk: improve sc_prohibit_magic_number_exit
37884         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
37885         so it does not match uses like System.exit(1).
37886         Add comments showing how to correct all offenders.
37887
37888 2009-11-19  Eric Blake  <ebb9@byu.net>
37889
37890         xalloc-die-tests: add missing library
37891         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
37892
37893         test-xvasprintf: silence compiler warnings
37894         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
37895         empty string from gcc.
37896
37897 2009-11-19  Jim Meyering  <meyering@redhat.com>
37898
37899         xfreopen: new module, from coreutils
37900         * modules/xfreopen: New module.
37901         * lib/xfreopen.c: New file.
37902         * lib/xfreopen.h: New file.
37903         * MODULES.html.sh (File stream based Input/Output"): Add it.
37904
37905 2009-11-19  Eric Blake  <ebb9@byu.net>
37906
37907         manywarnings: depend on warnings
37908         * modules/manywarnings (Depends-on): Add warnings.
37909
37910         build: avoid compiler warnings
37911         * lib/select.c (rpl_select): Delete unused variable.
37912         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
37913
37914 2009-11-18  Eric Blake  <ebb9@byu.net>
37915
37916         tests: avoid false negative with --with-packager
37917         * tests/test-version-etc.sh: Discard packager information.
37918         * tests/test-argp-version-etc-1.sh: Likewise.
37919         Reported by Mike Frysinger.
37920
37921         utimens: fix regression on Solaris
37922         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
37923         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
37924         can only change fd timestamps via futimesat.  Instead, use an
37925         additional witness macro to avoid BSD bug.
37926         Reported by Jim Meyering.
37927
37928 2009-11-17  Eric Blake  <ebb9@byu.net>
37929
37930         usleep: use it to simplify tests
37931         * modules/stat-time-tests (Depends-on): Add usleep.
37932         (configure.ac): Drop usleep check.
37933         * modules/chown-tests (Depends-on, configure.ac): Likewise.
37934         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
37935         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
37936         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
37937         * modules/openat-tests (Depends-on, configure.ac): Likewise.
37938         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
37939         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
37940         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
37941         Likewise.
37942         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
37943         * tests/test-lchown.h (nap): Likewise.
37944         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
37945         * tests/test-stat-time.c (nap): Likewise.
37946         * tests/test-utimens-common.h (nap): Update comments.
37947
37948         usleep: new module
37949         * modules/usleep: New file.
37950         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
37951         * lib/usleep.c (usleep): Likewise.
37952         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37953         * modules/unistd (Makefile.am): Substitute witnesses.
37954         * lib/unistd.in.h (usleep): Add declaration.
37955         * doc/pastposix-functions/usleep.texi (usleep): Document this.
37956         * MODULES.html.sh (Date and time): Likewise.
37957         * modules/usleep-tests (Depends-on): New test.
37958         * tests/test-usleep.c: New file.
37959
37960         chown: work around OpenBSD bug
37961         * lib/chown.c (rpl_chown): Work around the bug.
37962         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
37963         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
37964         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
37965         * modules/chown (Depends-on): Add stdbool.
37966         * modules/lchown (Depends-on): Likewise.
37967         * doc/posix-functions/chown.texi (chown): Document the bug.
37968         * doc/posix-functions/lchown.texi (lchown): Likewise.
37969         * tests/test-lchown.h (test_chown): Relax test.
37970
37971         mkstemp: avoid conflict with C++ keyword template
37972         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
37973         * lib/mkostemp.c (mkostemp): Likewise.
37974         * lib/mkostemps.c (mkostemps): Likewise.
37975         * lib/mkstemp.c (mkstemp): Likewise.
37976         * lib/mkstemps.c (mkstemps): Likewise.
37977
37978         xalloc-die-tests: optimize
37979         * tests/test-xalloc-die.sh: Reduce number of processes.
37980
37981 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37982
37983         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
37984         patch from ludo@gnu.org (Ludovic Courtès).
37985
37986 2009-11-17  Jim Meyering  <meyering@redhat.com>
37987
37988         version-etc: use proper license string
37989         * modules/version-etc (License): Use LGPL, not LGPLv3+.
37990         * modules/version-etc-fsf: Likewise.
37991
37992 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37993
37994         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
37995         printed to stdout.  Deal with EOL differences.
37996
37997 2009-11-17  Eric Blake  <ebb9@byu.net>
37998
37999         unsetenv: work around Solaris bug
38000         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
38001         * lib/unsetenv.c (rpl_unsetenv): Work around it.
38002         Reported by Jim Meyering.
38003
38004         vasnprintf: avoid compiler warnings
38005         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
38006         variables.
38007         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
38008
38009 2009-11-17  Simon Josefsson  <simon@josefsson.org>
38010
38011         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
38012         settings since xalloc-die is no longer the self test,
38013         xalloc-die.sh is.
38014
38015 2009-11-17  Jim Meyering  <meyering@redhat.com>
38016
38017         test-xalloc-die.sh: make the code agree with the commit log
38018         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
38019         at the end, just in case you happen to have a test-xalloc-die
38020         program in some other PATH directory.
38021
38022         test-xalloc-die.sh: fix a portability bug
38023         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
38024         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
38025         Otherwise, argv[0] (as often seen in diagnostics) would be too
38026         system-dependent, sometimes with, and sometimes without the leading "./".
38027
38028         version-etc-fsf: relax license to LGPLv3+
38029         * modules/version-etc-fsf (License): Relax license.
38030
38031 2009-11-16  Eric Blake  <ebb9@byu.net>
38032
38033         xalloc-die-tests: avoid printing null pointer
38034         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
38035         shell script.
38036         * tests/test-xalloc-die.c (program_name): Declare.
38037         * tests/test-xalloc-die.sh (tmpfiles): New file.
38038
38039         setenv, unsetenv: work around various bugs
38040         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
38041         (setenv) [HAVE_SETENV]: Work around bugs.
38042         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
38043         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
38044         for bugs.
38045         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
38046         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
38047         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
38048         * modules/stdlib (Makefile.am): Update substitutions.
38049         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
38050         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
38051         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
38052         * modules/setenv-tests: New test.
38053         * modules/unsetenv-tests: Likewise.
38054         * tests/test-setenv.c: New file.
38055         * tests/test-unsetenv.c: Likewise.
38056
38057 2009-11-16  Jim Meyering  <meyering@redhat.com>
38058
38059         version-etc: relax license to LGPLv3+
38060         * modules/version-etc (License): Relax license.
38061
38062         better AC_REQUIRE expanded-before-required-warning avoidance
38063         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
38064         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
38065         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
38066         which is no longer needed.
38067
38068 2009-11-16  Eric Blake  <ebb9@byu.net>
38069
38070         test-freading: clean up temporary file
38071         * tests/test-freading.c (main): Remove file on success, and use
38072         ASSERT more liberally.
38073         Reported by Jim Meyering.
38074
38075 2009-11-16  Jim Meyering  <meyering@redhat.com>
38076
38077         avoid new AC_REQUIRE expanded-before-required warnings
38078         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
38079         merely using it.
38080         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
38081         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
38082
38083 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38084
38085         * tests/test-xalloc-die.c: New file.
38086         * modules/xalloc-die-tests: New file.
38087         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
38088         XFAIL_TESTS so it can be appended by modules.
38089
38090 2009-11-15  Simon Josefsson  <simon@josefsson.org>
38091
38092         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
38093         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
38094
38095 2009-11-14  Eric Blake  <ebb9@byu.net>
38096
38097         fnmatch: avoid compiler warning
38098         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
38099         to silence compiler warning about mismatch signedness in ?:.
38100         Reported by Robert Millan.
38101
38102         intprops: add double-inclusion guard
38103         * lib/intprops.h: Allow idempotent includes.
38104         Suggested by Bruce Korb.
38105
38106         openat: detect Solaris fchownat bug
38107         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
38108         penalizing glibc chownat when only lchownat is broken.
38109         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
38110         trailing slash bugs.
38111         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
38112         * modules/openat-tests (Files): Include more files.
38113         (Depends-on): Add mgetgroups, sleep, stat-time.
38114         (configure.ac): Add additional checks.
38115         (Makefile.am): Build new test.
38116         * tests/test-fchownat.c: New file.
38117
38118         lchown: detect Solaris and FreeBSD bug
38119         * lib/lchown.c (rpl_lchown): Work around bug.
38120         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
38121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38122         * modules/unistd (Makefile.am): Populate it.
38123         * lib/unistd.in.h (lchown): Update declaration.
38124         * doc/posix-functions/lchown.texi (lchown): Document the bug.
38125         * modules/lchown-tests: New file.
38126         * tests/test-lchown.h (test_lchown): Likewise.
38127         * tests/test-lchown.c (main): Likewise.
38128
38129         chown: detect Solaris and FreeBSD bug
38130         * lib/chown.c (rpl_chown): Work around bug.
38131         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
38132         (gl_PREREQ_CHOWN): Delete.
38133         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
38134         * modules/unistd (Makefile.am): Populate it.
38135         * lib/unistd.in.h (chown): Update declaration.
38136         * lib/lchown.c (chown): Update client.
38137         * modules/lchown (Depends-on): Add lstat.
38138         * doc/posix-functions/chown.texi (chown): Document the bug.
38139         * doc/posix-functions/getgroups.texi (getgroups): Document
38140         getgroups pitfall.
38141         * modules/chown-tests: New file.
38142         * tests/test-chown.h (test_chown): Likewise.
38143         * tests/test-chown.c (main): Likewise.
38144
38145 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
38146
38147         gnulib-tool: correctly detect absence of m4 directories
38148         * gnulib-tool: Avoid extra newline on data passed to wc -l.
38149
38150 2009-11-14  Jim Meyering  <meyering@redhat.com>
38151
38152         maint.mk: Prohibit inclusion of "xalloc.h" without use.
38153         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38154
38155 2009-11-14  John W. Eaton  <jwe@gnu.org>
38156
38157         strftime.h: wrap funtion declaration in extern "C" block
38158         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
38159
38160 2009-11-13  Eric Blake  <ebb9@byu.net>
38161
38162         getgroups: avoid compiler warning
38163         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
38164
38165         getgroups: work around FreeBSD bug
38166         * lib/getgroups.c (rpl_getgroups): Work around the bug.
38167         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
38168         * doc/posix-functions/getgroups.texi (getgroups): Document it.
38169         * tests/test-getgroups.c (main): Fix buffer overrun.
38170
38171         getgroups: avoid compilation failure
38172         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
38173         * modules/getgroups (Depends-on): Add stdint.
38174
38175 2009-11-13  Jim Meyering  <meyering@redhat.com>
38176
38177         test-getgroups: avoid compilation failure
38178         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
38179
38180 2009-11-13  Eric Blake  <ebb9@byu.net>
38181
38182         mgetgroups: new module, taken from coreutils
38183         * modules/mgetgroups: New file.
38184         * lib/mgetgroups.h: Likewise.
38185         * lib/mgetgroups.c (mgetgroups): Likewise.
38186         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
38187         * MODULES.html.sh (Users and groups): Mention it.
38188
38189         getgroups: don't expose GETGROUPS_T to user
38190         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
38191         an element at a time if GETGROUPS_T is wrong size.
38192         * lib/getugroups.h (getugroups): Change signature.
38193         * lib/unistd.in.h (getgroups): Likewise.
38194         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
38195         signature needs fixing.
38196         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
38197         AC_TYPE_GETGROUPS.
38198         * modules/group-member (Depends-on): Add getgroups.
38199         * lib/group-member.c (group_info, get_group_info): Use gid_t.
38200         (group_member): Rely on getgroups replacement.
38201         * lib/getugroups.c (getugroups): Use gid_t.
38202         * tests/test-getgroups.c (main): Likewise.
38203         * NEWS: Mention the signature change.
38204         * doc/posix-functions/getgroups.texi (getgroups): Mention the
38205         problem with signature.
38206         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
38207         GETGROUPS_T is still useful for setgroups.
38208
38209         getgroups, getugroups: provide stubs for mingw
38210         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
38211         * lib/getugroups.c (getugroups): Likewise.
38212         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
38213         function.  Modernize replacement scheme.
38214         (gl_PREREQ_GETGROUPS): Delete.
38215         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
38216         * modules/getgroups (configure.ac): Declare witness.
38217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
38218         * modules/unistd (Depends-on): Substitute witness.
38219         * lib/unistd.in.h (getgroups): Declare replacement.
38220
38221         getgroups: avoid calling exit
38222         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
38223         drop xalloc.
38224         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
38225         dependencies.
38226         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
38227         exiting, in the rare case of malloc failure.
38228
38229         getgroups: fix logic error
38230         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
38231         has more than 20 groups.
38232         * modules/getgroups-tests: New test.
38233         * tests/test-getgroups.c: New file.
38234
38235 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38236
38237         * tests/test-base64.c: Improve.
38238
38239 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38240
38241         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
38242         Blake <ebb9@byu.net>.
38243
38244 2009-11-13  Simon Josefsson  <simon@josefsson.org>
38245
38246         * tests/test-xvasprintf.c: Add %s%s related checks.
38247
38248 2009-11-12  Eric Blake  <ebb9@byu.net>
38249
38250         version-etc: match standards.texi style
38251         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
38252         and use <> only for URLs.
38253
38254 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
38255
38256         fts: do not fail on a submount during traversal
38257         * lib/fts.c (fts_build): Read the stat info again after opening
38258         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
38259         Original report at http://bugzilla.redhat.com/501848.
38260
38261 2009-11-12  Jim Meyering  <meyering@redhat.com>
38262
38263         bootstrap: sync from coreutils
38264         * build-aux/bootstrap (bootstrap_epilogue): New function.
38265         Use git_modules_config in one more place.  This make bootstrap's
38266         --gnulib-srcdir option more useful for testing.
38267
38268         bootstrap: generalize autoheader check
38269         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38270         AC_CONFIG_HEADERS.
38271
38272 2009-11-11  Eric Blake  <ebb9@byu.net>
38273
38274         mkfifoat: use new modules for Solaris and BSD bugs
38275         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38276         * lib/mkfifoat.c (mknodat): Split...
38277         * lib/mknodat.c (mknodat): ...into new file.
38278         * modules/mkfifoat (Files): Ship new file.
38279         (Depends-on): Add mkfifo, mknod.
38280         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38281         (Depends-on): Add symlink.
38282         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38283         redundant with test_mkfifo.h.
38284         (do_mkfifoat, do_mknodat): New helpers.
38285
38286         mknod: new module
38287         * modules/mknod: New file.
38288         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
38289         * lib/mknod.c (mknod): Likewise.
38290         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38291         defaults.
38292         * modules/sys_stat (Makefile.am): Substitute them.
38293         * lib/sys_stat.in.h (mknod): Declare replacement.
38294         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38295         Document it.
38296         * doc/posix-functions/mknod.texi (mknod): Likewise.
38297         * modules/mknod-tests: New test.
38298         * tests/test-mknod.c: Likewise.
38299
38300         mkfifo: new module
38301         * modules/mkfifo: New file.
38302         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38303         * lib/mkfifo.c (mkfifo): Likewise.
38304         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38305         defaults.
38306         * modules/sys_stat (Makefile.am): Substitute them.
38307         * lib/sys_stat.in.h (mkfifo): Declare replacement.
38308         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38309         Document it.
38310         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
38311         * modules/mkfifo-tests: New test.
38312         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
38313         from test-mkfifoat.c.
38314         * tests/test-mkfifo.c: New file.
38315
38316         readlink: detect FreeBSD bug
38317         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
38318         slash on symlink.
38319         * doc/posix-functions/readlink.texi (readlink): Document the bug.
38320         * tests/test-readlink.h (test_readlink): Enhance test.
38321
38322         symlink: detect FreeBSD bug
38323         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
38324         slash on symlink.
38325         * doc/posix-functions/symlink.texi (symlink): Document the bug.
38326         * tests/test-symlink.h (test_symlink): Enhance test.
38327
38328 2009-11-10  Eric Blake  <ebb9@byu.net>
38329
38330         link: detect FreeBSD bug
38331         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
38332         symlink.
38333         * doc/posix-functions/link.texi (link): Document the bug.
38334         * tests/test-link.h (test_link): Enhance test.
38335         * tests/test-linkat.c (main): Update caller.
38336
38337         unlink, remove: detect FreeBSD bug
38338         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
38339         slash on symlink.
38340         * doc/posix-functions/unlink.texi (unlink): Document the bug.
38341         * doc/posix-functions/remove.texi (remove): Likewise.
38342         * tests/test-unlink.h (test_unlink): Enhance test.
38343         * tests/test-remove.c (main): Likewise.
38344
38345 2009-11-09  Eric Blake  <ebb9@byu.net>
38346
38347         rename: detect FreeBSD bug
38348         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
38349         slash on symlink.
38350         * modules/renameat-tests (Depends-on): Add filenamecat.
38351         * tests/test-rename.h (test_rename): Allow one more errno.
38352         * tests/test-renameat.c (main): Likewise.
38353         * doc/posix-functions/rename.texi (rename): Document the bug.
38354
38355         open: detect FreeBSD bug
38356         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
38357         symlink.
38358         * doc/posix-functions/open.texi (open): Document the bug.
38359         * doc/posix-functions/utimes.texi (utimes): Likewise.
38360         * tests/test-open.h (test_open): Add parameters, and test symlink
38361         handling.
38362         * tests/test-open.c (main): Adjust caller.
38363         * tests/test-fcntl-safer.c (main): Likewise.
38364         * modules/open-tests (Depends-on): Add stdbool, symlink.
38365         * modules/fcntl-safer-tests (Depends-on): Likewise.
38366         * tests/test-openat.c (main): Add test-open tests.
38367
38368         stat: detect FreeBSD bug
38369         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
38370         symlink.
38371         * doc/posix-functions/stat.texi (stat): Document the bug.
38372         * tests/test-stat.h (test_stat_func): Add argument.
38373         * tests/test-stat.c (main): Adjust caller.
38374         * tests/test-fstatat.c (main): Likewise.
38375         * modules/stat-tests (Depends-on): Add stdbool, symlink.
38376         Reported by Jim Meyering.
38377
38378 2009-11-09  James Youngman  <jay@gnu.org>
38379
38380         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
38381         * lib/strftime.c: Correct placement of #include "ignore-value.h".
38382
38383 2009-11-08  Jim Meyering  <meyering@redhat.com>
38384
38385         utimens: remove invalid futimesat call
38386         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
38387         It used the file descriptor of the target file as the DIR_FD
38388         parameter and NULL as the file name.  That caused failure with
38389         errno == EFAULT on FreeBSD-8.0-rc2
38390
38391 2009-11-07  Eric Blake  <ebb9@byu.net>
38392
38393         fflush, freadseek: use fseeko, not fseek
38394         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
38395         (clear_ungetc_buffer): Avoid potential problems on large files.
38396         * lib/freadseek.c (freadseek): Likewise.
38397         * modules/freadseek (Depends-on): Add fseeko.
38398         * modules/fseek (configure.ac): Set a witness.
38399         * tests/test-fflush.c (main): Use fseeko.
38400         * tests/test-fpurge.c (fseek): Disable link warning.
38401         * tests/test-freadable.c (fseek): Likewise.
38402         * tests/test-freading.c (fseek): Likewise.
38403         * tests/test-fseeko.c (fseek): Likewise.
38404         * tests/test-ftell.c (fseek): Likewise.
38405         * tests/test-ftello.c (fseek): Likewise.
38406         * tests/test-fwritable.c (fseek): Likewise.
38407         * tests/test-fwriting.c (fseek): Likewise.
38408
38409 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38410
38411         * modules/memchr (Depends-on): Drop getpagesize dependency.
38412
38413 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38414
38415         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
38416         Reported by Ludovic Courtès.
38417         * build-aux/pmccabe2html: Improve example usage.
38418         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
38419
38420 2009-11-06  Jim Meyering  <meyering@redhat.com>
38421
38422         do-release-commit-and-tag: New module.
38423         Automate the release-commit and tag process.
38424         * build-aux/do-release-commit-and-tag: New script, from coreutils.
38425         * modules/do-release-commit-and-tag: New file.
38426         * MODULES.html.sh (Support for maintaining and releasing): Add it.
38427
38428 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38429
38430         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
38431         because test-select.c uses inet_pton.
38432
38433 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38434
38435         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
38436         GETADDRINFO_LIB.  Bump serial number.
38437         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
38438         Suggested by Eric Blake <ebb9@byu.net>.
38439
38440 2009-11-05  Eric Blake  <ebb9@byu.net>
38441
38442         strtod: detect darwin bug
38443         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
38444         Reported by Leo Davis.
38445
38446         freopen-safer: new module
38447         * modules/freopen-safer: New module.
38448         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
38449         * lib/freopen-safer.c (freopen_safer): New file.
38450         * lib/stdio-safer.h (freopen_safer): New declaration.
38451         * lib/stdio--.h (freopen): New override.
38452         * MODULES.html.sh (File stream based Input/Output): Mention it.
38453         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
38454         freopen-safer module.
38455         * doc/posix-functions/stderr.texi (stderr): Likewise.
38456         * doc/posix-functions/stdin.texi (stdin): Likewise.
38457         * doc/posix-functions/stdout.texi (stdout): Likewise.
38458         * modules/freopen-safer-tests: New test.
38459         * tests/test-reopen-safer.c: New file.
38460
38461 2009-11-05  Jim Meyering  <meyering@redhat.com>
38462
38463         maint.mk: Prohibit inclusion of "close-stream.h" without use.
38464         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38465
38466 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38467
38468         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
38469
38470 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38471
38472         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
38473
38474 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38475
38476         Fix link error.
38477         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38478         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38479
38480 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38481
38482         * tests/test-func.c: Also test value of __func__.
38483
38484 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38485
38486         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
38487         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
38488
38489 2009-11-05  Bruno Haible  <bruno@clisp.org>
38490
38491         Fix link error.
38492         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38493         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38494         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
38495
38496 2009-11-05  Bruno Haible  <bruno@clisp.org>
38497
38498         Tests for module 'inet_pton'.
38499         * modules/inet_pton-tests: New file.
38500         * tests/test-inet_pton.c: New file.
38501
38502 2009-11-05  Bruno Haible  <bruno@clisp.org>
38503
38504         Tests for module 'inet_ntop'.
38505         * modules/inet_ntop-tests: New file.
38506         * tests/test-inet_ntop.c: New file.
38507
38508 2009-11-04  Eric Blake  <ebb9@byu.net>
38509
38510         stdlib-safer: wrap all mkstemp variants
38511         * modules/mkostemp (configure.ac): Set witness.
38512         * modules/mkostemps (configure.ac): Likewise.
38513         * modules/mkstemps (configure.ac): Likewise.
38514         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
38515         (mkstemps_safer): Wrap more functions.
38516         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
38517         wrapping.
38518         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
38519         (mkstemps_safer): Implement the wrappers.
38520
38521         mkstemps, mkostemps: new modules
38522         * modules/mkostemps: New module.
38523         * modules/mkstemps: Likewise.
38524         * lib/mkostemps.c (mkostemps): New file.
38525         * lib/mkstemps.c (mkstemps): Likewise.
38526         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
38527         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
38528         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
38529         * modules/stdlib (Makefile.am): Substitute them.
38530         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
38531         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
38532         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
38533         * doc/gnulib.texi (Glibc stdlib.h): Include them.
38534         * MODULES.html.sh (File system functions): Mention them.
38535
38536         tempname: resync from glibc
38537         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
38538         same values for __GT_FILE as glibc.  Abort even when assertions
38539         are disabled.
38540         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
38541         match its value otherwise.  Allow idempotent inclusion.
38542         * lib/mkdtemp.c (mkdtemp): Adjust caller.
38543         * lib/mkostemp.c (mkostemp): Likewise.
38544         * lib/mkstemp.c (mkstemp): Likewise.
38545         * lib/tmpfile.c (tmpfile): Likewise.
38546         * NEWS: Document this.
38547
38548         utimens: fix use of futimens on older Linux
38549         * lib/utimens.c (fdutimens): Use updated, rather than original,
38550         timespec to avoid bug in older Linux kernel.
38551         Reported by Simon Josefsson.
38552
38553 2009-11-04  Bruno Haible  <bruno@clisp.org>
38554
38555         Make num_processors more flexible and consistent.
38556         * lib/nproc.h (enum nproc_query): New type.
38557         (num_processors): Add a 'query' argument.
38558         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
38559         (num_processors): Add a 'query' argument. Test the value of the
38560         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
38561         mingw, count the number of CPUs available for the current process.
38562         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
38563         Check for sched_getaffinity and sched_getaffinity_np.
38564         * modules/nproc (Depends-on): Add c-ctype, extensions.
38565         * NEWS: Mention the change.
38566
38567 2009-11-03  Bruno Haible  <bruno@clisp.org>
38568
38569         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
38570
38571 2009-11-03  Jim Meyering  <meyering@redhat.com>
38572
38573         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
38574         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
38575         if it is defined.
38576
38577 2009-11-02  Eric Blake  <ebb9@byu.net>
38578
38579         mktime, timegm: share common declaration
38580         * lib/mktime-internal.h: New file.
38581         * lib/mktime.c: Use it rather than open-coding a declaration.
38582         * lib/timegm.c: Likewise.
38583         * modules/mktime (Files): Ship it.
38584         * modules/timegm (Files): Likewise.
38585         Suggested by Bruno Haible.
38586
38587         test-update-copyright: update test to match script changes
38588         * tests/test-update-copyright.sh: Avoid hard-coding perl
38589         location.  Don't update *.bak created by earlier runs.
38590
38591 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
38592             Simon Josefsson  <simon@josefsson.org>
38593             Bruno Haible  <bruno@clisp.org>
38594
38595         Fix link error on Solaris 8.
38596         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
38597         also in libnsl. Define also INET_PTON_LIB.
38598         * modules/inet_pton (Link): New section.
38599
38600 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38601             Bruno Haible  <bruno@clisp.org>
38602
38603         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
38604         * modules/inet_ntop (Link): New section.
38605         Reported by Boyan Kasarov <bkasarov@gmail.com>.
38606
38607 2009-11-02  Eric Blake  <ebb9@byu.net>
38608
38609         maint: avoid compiler warnings in m4 macros
38610         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
38611         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
38612
38613 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38614
38615         * m4/pmccabe2html.m4: Remove file.
38616         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
38617         function.  Change maintainer.
38618         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
38619         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
38620         Courtès).
38621
38622 2009-10-31  Eric Blake  <ebb9@byu.net>
38623
38624         fseeko: fix m4 regression
38625         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
38626         regression from 2009-10-27.
38627         Reported by Ralf Wildenhues.
38628
38629 2009-10-31  Jim Meyering  <meyering@redhat.com>
38630
38631         inttostr: aesthetics and improved (compile-time) safety
38632         Define inttype_is_signed rather than inttype_is_unsigned,
38633         since the sole use is via "#if inttype_is_signed".
38634         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
38635         inttype_is_unsigned.
38636         * lib/offtostr.c (inttype_is_signed): Likewise.
38637         * lib/uinttostr.c (inttype_is_signed): Likewise.
38638         * lib/umaxtostr.c (inttype_is_signed): Likewise.
38639         * lib/inttostr.c (inttostr): Use verify to cross-check the
38640         inttype_is_signed value and the signedness of the actual type.
38641         * modules/inttostr (Depends-on): Add verify.
38642
38643 2009-10-30  Eric Blake  <ebb9@byu.net>
38644
38645         build: avoid compiler warnings
38646         * lib/fchmodat.c (lchmod): Mark unused variables.
38647         * lib/getopt.c (_getopt_initialize): Likewise.
38648         * lib/mktime.c (__mktime_internal): Provide prototype.
38649         * lib/inttostr.c (inttostr): Avoid compiler warning even with
38650         older gcc that do not understand #pragma GCC diagnostic.
38651         * lib/uinttostr.c (inttype_is_unsigned): Define.
38652         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
38653
38654 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
38655
38656         stat: fix compilation on AIX
38657         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
38658         only see struct stat64.
38659
38660 2009-10-30  Eric Blake  <ebb9@byu.net>
38661
38662         exclude: make more robust
38663         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
38664         rather than masking a coding bug.
38665         Suggested by Bruno Haible.
38666
38667 2009-10-30  Jim Meyering  <meyering@redhat.com>
38668
38669         perl scripts: remove #!/usr/bin/perl in favor of more portable...
38670         Rather than putting #!/usr/bin/perl on the first line,
38671         start with a variant of what's recommended by "man perlrun" that
38672         invokes the first "perl" program from your shell's search path.
38673         * build-aux/gitlog-to-changelog: Replace #!... as above.
38674         Add a "Local Variables" perl mode setting.
38675         Prompted by a patch from Ludovic Courtès.
38676         Improved by Eric Blake.
38677         * build-aux/useless-if-before-free: Likewise.
38678         * build-aux/announce-gen: Likewise.
38679         * build-aux/update-copyright: Likewise.
38680
38681 2009-10-29  Eric Blake  <ebb9@byu.net>
38682
38683         filenamecat-lgpl: adjust clients
38684         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
38685         filenamecat.
38686         * modules/renameat (Depends-on): Likewise.
38687
38688         filenamecat: split into filenamecat-lgpl
38689         * modules/filenamecat-lgpl: New module.
38690         * modules/filenamecat (Files): Move library-safe files into
38691         filenamecat-lgpl.
38692         (Depends-on): Add filenamecat-lgpl.
38693         (configure.ac): Declare witness.
38694         * lib/filenamecat.h (file_name_concat): Only declare when using
38695         GPL module.
38696         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
38697         Move...
38698         * lib/filenamecat-lgpl.c: ...into new file.
38699         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
38700         (gl_FILE_NAME_CONCAT): Use it.
38701         * MODULES.html.sh (File system functions): Mention new module.
38702
38703         argp: avoid memory leak
38704         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
38705         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
38706         base_name, since the latter malloc()s and can call exit().
38707         Leak introduced 2006-07-03.
38708
38709         dirname-lgpl: adjust clients that don't need full dirname
38710         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
38711         * modules/filenamecat (Depends-on): Likewise.
38712         * modules/linkat (Depends-on): Likewise.
38713         * modules/mkancesdirs (Depends-on): Likewise.
38714         * modules/mkdir (Depends-on): Likewise.
38715         * modules/openat (Depends-on): Likewise.
38716         * modules/savewd (Depends-on): Likewise.
38717         * modules/rename (Depends-on): Likewise.
38718         (License): Relax license.
38719         * modules/mkdir-tests (Depends-on): Drop progname.
38720         (Makefile.am): Delete unneeded LDADD.
38721         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
38722
38723         dirname: split into dirname-lgpl
38724         * modules/dirname-lgpl: New module.
38725         * modules/dirname (Files): Move library-safe files into
38726         dirname-lgpl.
38727         (Depends-on): Add dirname-lgpl.
38728         (configure.ac): Declare witness.
38729         * modules/double-slash-root (License): Relax license.
38730         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
38731         module.
38732         * lib/dirname.c (dir_len, mdir_name): Move...
38733         * lib/dirname-lgpl.c: ...into new file.
38734         * lib/basename.c (last_component, base_len): Move...
38735         * lib/basename-lgpl.c: ...into new file.
38736         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
38737         (gl_DIRNAME): Use it.
38738         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
38739         Mention new module.
38740         * modules/dirname-tests (Depends-on): Add progname.
38741         * tests/test-dirname.c (program_name): Delete.
38742
38743         mkdir: make safe for libraries
38744         * modules/mkdir (Depends-on): Drop xalloc.
38745         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
38746         exit.
38747
38748         tests: avoid some compiler warnings
38749         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
38750         literals.
38751         * tests/test-memchr.c (main): Avoid type mismatch.
38752         * tests/test-arpa_inet.c (main): Avoid unused parameters.
38753         * tests/test-base64.c (main): Likewise.
38754         * tests/test-getdelim.c (main): Likewise.
38755         * tests/test-gethostname.c (main): Likewise.
38756         * tests/test-getline.c (main): Likewise.
38757         * tests/test-netinet_in.c (main): Likewise.
38758         * tests/test-select.c (open_server_socket, main): Likewise.
38759         * tests/test-select-stdin.c (main): Likewise.
38760         * tests/test-sockets.c (main): Likewise.
38761         * tests/test-strsignal.c (main): Likewise.
38762         * tests/test-sys_select.c (main): Likewise.
38763         * tests/test-sys_socket.c (main): Likewise.
38764         * tests/test-u64.c (main): Likewise.
38765         * tests/test-xfprintf-posix.c (main): Likewise.
38766         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
38767
38768         sockets: avoid compiler warning
38769         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
38770
38771         maint: detect usage(1) and other suspicious exits
38772         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
38773
38774 2009-10-29  Jim Meyering  <meyering@redhat.com>
38775
38776         timespec: long-to-int truncation could make timespec_cmp malfunction
38777         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
38778         a multiple of 2^32 nanoseconds as no difference.
38779
38780 2009-10-28  Jim Meyering  <meyering@redhat.com>
38781
38782         fprintftime: wrap macro code argument in "do {...} while(0)"
38783         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
38784         cpy macro must be a statement that can be followed by a semicolon.
38785         Now that the else clause contains a comment and is hence longer
38786         than one line, I require curly braces.  That in turn requires
38787         that we wrap this code block in the standard do...while(0).
38788
38789         fprintftime: remove stray semicolon from previous change
38790         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
38791
38792         fprintftime: avoid a warning about ignored fwrite return value
38793         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
38794         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
38795         that is unsafe.
38796         * modules/fprintftime (Depends-on): Add ignore-value.
38797
38798         exclude: avoid an unwarranted warning
38799         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
38800
38801 2009-10-27  Eric Blake  <ebb9@byu.net>
38802
38803         fseek: avoid compilation failure when fflush is replaced
38804         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
38805         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
38806         module is in use.
38807         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
38808         module is not in use; since REPLACE_FSEEK worked otherwise.
38809         (GNULIB_FTELLO): Likewise for ftell.
38810         Reported by Ian Beckwith and others.
38811
38812 2009-10-27  Bruno Haible  <bruno@clisp.org>
38813
38814         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
38815         Reported by Jim Meyering.
38816
38817 2009-10-27  Jim Meyering  <jim@meyering.net>
38818             Bruno Haible  <bruno@clisp.org>
38819
38820         Avoid warning despite dropping the return value of fwrite.
38821         * lib/unicodeio.c: Include ignore-value.h.
38822         (fwrite_success_callback): Explicitly ignore fwrite's return value.
38823         * modules/unicodeio (Depends-on): Add ignore-value.
38824
38825 2009-10-26  Eric Blake  <ebb9@byu.net>
38826
38827         areadlinkat: fix fallback path
38828         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
38829         pointer and zero.
38830
38831 2009-10-22  Pádraig Brady  <P@draigBrady.com>
38832
38833         Use a better IO block size for modern systems
38834         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
38835         * lib/md2.c: Likewise.
38836         * lib/md4.c: Likewise.
38837         * lib/md5.c: Likewise.
38838         * lib/sha1.c: Likewise.
38839         * lib/sha256.c: Likewise.
38840         * lib/sha512.c: Likewise.
38841
38842 2009-10-22  Eric Blake  <ebb9@byu.net>
38843
38844         tests: avoid several compiler warnings
38845         * tests/test-getcwd.c (main): Avoid buffer underflow.
38846         * tests/test-getdate.c (main): String literals are not safe with
38847         putenv, so use setenv.  Declare unused argument.
38848         * modules/getdate-tests (Depends-on): Add setenv.
38849         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
38850         problems with string literals in char *.
38851         * tests/test-hash.c (main): Avoid shadowing declaration.
38852         (insert_new): Treat string literals as char const *.
38853         * tests/test-getopt.h (test_getopt): Likewise.
38854         (getopt_loop): Alter types to minimize casting elsewhere.
38855         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
38856         (test_getopt_long_posix): Likewise.
38857         (do_getopt_long): Add wrapper to minimize casting.
38858         * tests/test-atexit.c (clear_temp_file): Use void.
38859         * tests/test-areadlink-with-size.c (main): Declare unused
38860         arguments.
38861         * tests/test-areadlink.c (main): Likewise.
38862         * tests/test-areadlinkat-with-size.c (main): Likewise.
38863         * tests/test-areadlinkat.c (main): Likewise.
38864         * tests/test-canonicalize-lgpl.c (main): Likewise.
38865         * tests/test-canonicalize.c (main): Likewise.
38866         * tests/test-dirent-safer.c (main): Likewise.
38867         * tests/test-dirname.c (main): Likewise.
38868         * tests/test-dup2.c (main): Likewise.
38869         * tests/test-fchdir.c (main): Likewise.
38870         * tests/test-fcntl-h.c (main): Likewise.
38871         * tests/test-fcntl-safer.c (main): Likewise.
38872         * tests/test-fdopendir.c (main): Likewise.
38873         * tests/test-fdutimensat.c (main): Likewise.
38874         * tests/test-fflush.c (main): Likewise.
38875         * tests/test-filenamecat.c (main): Likewise.
38876         * tests/test-filevercmp.c (main): Likewise.
38877         * tests/test-fopen-safer.c (main): Likewise.
38878         * tests/test-fopen.c (main): Likewise.
38879         * tests/test-fpending.c (main): Likewise.
38880         * tests/test-fpurge.c (main): Likewise.
38881         * tests/test-freading.c (main): Likewise.
38882         * tests/test-fstatat.c (main): Likewise.
38883         * tests/test-fsync.c (main): Likewise.
38884         * tests/test-futimens.c (main): Likewise.
38885         * tests/test-getndelim2.c (main): Likewise.
38886         * tests/test-gettimeofday.c (main): Likewise.
38887         * tests/test-getopt.c (main): Likewise.
38888         * tests/test-i-ring.c (main): Likewise.
38889         * tests/test-inttypes.c (main): Likewise.
38890         * tests/test-link.c (main): Likewise.
38891         * tests/test-lstat.c (main): Likewise.
38892         * tests/test-math.c (main): Likewise.
38893         * tests/test-md5.c (main): Likewise.
38894         * tests/test-memchr2.c (main): Likewise.
38895         * tests/test-memrchr.c (main): Likewise.
38896         * tests/test-mkdir.c (main): Likewise.
38897         * tests/test-mkdirat.c (main): Likewise.
38898         * tests/test-mkfifoat.c (main): Likewise.
38899         * tests/test-open.c (main): Likewise.
38900         * tests/test-openat-safer.c (main): Likewise.
38901         * tests/test-openat.c (main): Likewise.
38902         * tests/test-quotearg.c (main): Likewise.
38903         * tests/test-rawmemchr.c (main): Likewise.
38904         * tests/test-readlink.c (main): Likewise.
38905         * tests/test-remove.c (main): Likewise.
38906         * tests/test-rename.c (main): Likewise.
38907         * tests/test-renameat.c (main): Likewise.
38908         * tests/test-rmdir.c (main): Likewise.
38909         * tests/test-sha1.c (main): Likewise.
38910         * tests/test-signal.c (main): Likewise.
38911         * tests/test-sigaction.c (main): Likewise.
38912         * tests/test-stat.c (main): Likewise.
38913         * tests/test-stat-time.c (main): Likewise.
38914         * tests/test-stddef.c (main): Likewise.
38915         * tests/test-stdint.c (main): Likewise.
38916         * tests/test-stdio.c (main): Likewise.
38917         * tests/test-stdlib.c (main): Likewise.
38918         * tests/test-strchrnul.c (main): Likewise.
38919         * tests/test-strerror.c (main): Likewise.
38920         * tests/test-string.c (main): Likewise.
38921         * tests/test-strtod.c (main): Likewise.
38922         * tests/test-strverscmp.c (main): Likewise.
38923         * tests/test-symlink.c (main): Likewise.
38924         * tests/test-symlinkat.c (main): Likewise.
38925         * tests/test-sys_stat.c (main): Likewise.
38926         * tests/test-sys_time.c (main): Likewise.
38927         * tests/test-time.c (main): Likewise.
38928         * tests/test-unistd.c (main): Likewise.
38929         * tests/test-unlink.c (main): Likewise.
38930         * tests/test-unlinkat.c (main): Likewise.
38931         * tests/test-utimens.c (main): Likewise.
38932         * tests/test-utimensat.c (main): Likewise.
38933         * tests/test-version-etc.c (main): Likewise.
38934         * tests/test-wchar.c (main): Likewise.
38935         * tests/test-wctype.c (main): Likewise.
38936         * tests/test-xprintf-posix.c (main): Likewise.
38937         * tests/test-posixtm.c (main): Likewise.
38938         (STREQ): Delete unused macro.
38939         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
38940         shadowed variables.
38941         * tests/test-memchr.c (main): Likewise.
38942
38943 2009-10-21  Eric Blake  <ebb9@byu.net>
38944
38945         areadlinkat: avoid failure on older glibc
38946         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
38947         rather than mis-comparing 0 against FUNC_RESULT of char*.
38948
38949 2009-10-21  Bruno Haible  <bruno@clisp.org>
38950
38951         * modules/stpncpy (License): Relicense under LGPLv2+.
38952         Reported by David Lutterkort <lutter@redhat.com>.
38953
38954 2009-10-20  Eric Blake  <ebb9@byu.net>
38955
38956         utimensat: work around Solaris 9 bug
38957         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
38958         has trailing slash bugs.
38959         * tests/test-lutimens.h (test_lutimens): Enhance test.
38960         * tests/test-utimens.h (test_utimens): Likewise.
38961         * doc/posix-functions/utime.texi (utime): Enhance documentation.
38962         * doc/posix-functions/utimes.texi (utimes): Likewise.
38963         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38964         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
38965         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
38966         * doc/posix-functions/futimens.texi (futimens): Likewise.
38967
38968         fdutimensat: new module
38969         * modules/fdutimensat: New file.
38970         * lib/fdutimensat.c (fdutimensat): Likewise.
38971         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
38972         * MODULES.html.sh (File system functions): Mention module.
38973         * modules/fdutimensat-tests: New test.
38974         * tests/test-fdutimensat.c: Likewise.
38975
38976         doc: regenerate INSTALL
38977         * doc/INSTALL: Reflect recent autoconf update.
38978         * doc/INSTALL.ISO: Likewise.
38979         * doc/INSTALL.UTF-8: Likewise.
38980
38981 2009-10-20  Pádraig Brady  <P@draigBrady.com>
38982
38983         acl: warn if ACL support is not detected
38984         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
38985
38986 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
38987
38988         * lib/nproc.h: Add extern "C" block for C++.
38989
38990 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
38991             Bruno Haible  <bruno@clisp.org>
38992
38993         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
38994         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
38995         * doc/posix-functions/isalpha.texi: Likewise.
38996         * doc/posix-functions/isblank.texi: Likewise.
38997         * doc/posix-functions/iscntrl.texi: Likewise.
38998         * doc/posix-functions/isdigit.texi: Likewise.
38999         * doc/posix-functions/isgraph.texi: Likewise.
39000         * doc/posix-functions/islower.texi: Likewise.
39001         * doc/posix-functions/isprint.texi: Likewise.
39002         * doc/posix-functions/ispunct.texi: Likewise.
39003         * doc/posix-functions/isspace.texi: Likewise.
39004         * doc/posix-functions/isupper.texi: Likewise.
39005         * doc/posix-functions/isxdigit.texi: Likewise.
39006
39007 2009-10-18  Bruno Haible  <bruno@clisp.org>
39008
39009         Tests for module 'isblank'.
39010         * modules/isblank-tests: New file.
39011         * tests/test-isblank.c: New file.
39012
39013         New module 'isblank'.
39014         * lib/isblank.c: New file.
39015         * m4/isblank.m4: New file.
39016         * modules/isblank: New file.
39017         * doc/posix-functions/isblank.texi: Mention the new module.
39018
39019 2009-10-18  Bruno Haible  <bruno@clisp.org>
39020
39021         New module 'ctype'.
39022         * lib/ctype.in.h: New file.
39023         * m4/ctype.m4: New file.
39024         * modules/ctype: New file.
39025         * doc/posix-headers/ctype.texi: Mention the new module.
39026
39027 2009-10-18  Jim Meyering  <meyering@redhat.com>
39028
39029         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
39030         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
39031         right after its initialization, rather than farther down.
39032         Keeping these in close proximity makes it easier to ensure
39033         that each such variable is initialized.  E.g.,
39034
39035             LIB_CLOCK_GETTIME=
39036             AC_SUBST([LIB_CLOCK_GETTIME])
39037
39038         This change also increments these serial numbers.
39039         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
39040         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39041         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39042
39043 2009-10-18  Bruno Haible  <bruno@clisp.org>
39044
39045         Don't let environment variables perturb build.
39046         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
39047         (gl_PREREQ_GETHRXTIME): ... not here.
39048
39049 2009-10-18  Bruno Haible  <bruno@clisp.org>
39050
39051         Avoid symlink attack in localcharset module.
39052         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
39053         (O_NOFOLLOW): Define fallback.
39054         (get_charset_aliases): Don't open the file if it is a symbolic link.
39055         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
39056         gl_FCNTL_H.
39057         (gl_FCNTL_H): Require it.
39058         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
39059         * modules/localcharset (Files): Add m4/fcntl_h.m4.
39060         Reported by Fergal Glynn <fglynn@veracode.com>.
39061
39062 2009-10-18  Bruno Haible  <bruno@clisp.org>
39063
39064         Implement nproc for mingw.
39065         * lib/nproc.c: Include <windows.h>
39066         (num_processors): On native Windows platforms, try GetSystemInfo.
39067
39068 2009-10-18  Bruno Haible  <bruno@clisp.org>
39069
39070         Implement nproc for IRIX.
39071         * lib/nproc.c: Include <sys/sysmp.h>.
39072         (num_processors): On IRIX systems, try sysmp.
39073         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
39074
39075 2009-10-18  Bruno Haible  <bruno@clisp.org>
39076
39077         Implement nproc for HP-UX.
39078         * lib/nproc.c: Include <sys/pstat.h>
39079         (num_processors): On HP-UX systems, try pstat_getdynamic.
39080         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
39081         pstat_getdynamic.
39082
39083 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
39084             Bruno Haible  <bruno@clisp.org>
39085
39086         Implement nproc for NetBSD, OpenBSD.
39087         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
39088         (ARRAY_SIZE): New macro.
39089         (num_processors): On BSD systems, try sysctl of HW_NCPU.
39090         * m4/nproc.m4: New file.
39091         * modules/nproc (Files): Add m4/nproc.m4.
39092         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
39093         (Makefile.am): Instead, augment lib_SOURCES.
39094
39095 2009-10-18  Bruno Haible  <bruno@clisp.org>
39096
39097         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
39098         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
39099         sys/param.h.
39100
39101 2009-10-16  Eric Blake  <ebb9@byu.net>
39102
39103         utimensat: new module
39104         * modules/utimensat: New file.
39105         * lib/utimensat.c (utimensat): Likewise.
39106         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39107         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
39108         so we can work around Linux bugs.
39109         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39110         * modules/sys_stat (Makefile.am): Substitute them.
39111         * lib/sys_stat.in.h (utimensat): Declare it.
39112         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39113         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39114         * modules/utimensat-tests: New test.
39115         * tests/test-utimensat.c: Likewise.
39116
39117         utimens: let lutimens work on non-symlinks
39118         * lib/utimens.c (lutimens): Fall back to utimens rather than
39119         failing with ENOSYS, when file is not a symlink.
39120         (utimens): Reduce redirection.
39121         * tests/test-lutimens.h (test_lutimens): Update test to cover
39122         non-symlinks.
39123         * tests/test-utimens.h (test_utimens): Update test to cover
39124         symlinks.
39125         * tests/test-utimens.c (main): Update caller.
39126
39127         utimens: cache whether utimensat syscall works
39128         * lib/utimens.c (utimensat_works_really): New cache variable.
39129         (fdutimens, lutimens): Use it to avoid failing syscall.
39130
39131         test-stat-time, test-utimens: improve portability
39132         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
39133         ext4 on alpha, and for cygwin.
39134         * tests/test-utimens-common.h: New file.
39135         (nap): Factor delays into single function.
39136         * tests/test-lutimens.h (test_lutimens): Use new header.
39137         * tests/test-futimens.h (test_futimens): Likewise.
39138         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
39139         timestamps to occur from same machine, as was done previously for
39140         test_utimens.
39141         * modules/utimens-tests (Files): Ship new file.
39142         * modules/futimens-tests (Files): Likewise.
39143         Reported in part by Jim Meyering.
39144
39145         sys_stat: sort replacement declarations
39146         * lib/sys_stat.in.h: Sort declarations.
39147         * lib/futimens.c (futimens): Fix typo.
39148
39149 2009-10-15  Jim Meyering  <meyering@redhat.com>
39150
39151         don't let environment settings perturb build
39152         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
39153         could cause a configure-time and/or build-time malfunction.
39154         Typically, a configure-time function-in-library test is performed
39155         via code like this:
39156
39157           LIB_VAR=
39158           AC_SUBST([LIB_VAR])
39159           prefix_saved_LIBS=$LIBS
39160             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
39161                        [test "$ac_cv_search_FUNC" = "none required" ||
39162                         LIB_VAR=$ac_cv_search_FUNC])
39163           LIBS=$prefix_saved_LIBS
39164
39165         However, in each of the files affected by this change, the LIB_VAR=
39166         initialization was omitted.  Thus, when set in the environment, its
39167         value would propagate into generated Makefiles when FUNC is not found
39168         in LIB_NAME.
39169         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
39170         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39171         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
39172
39173 2009-10-14  Eric Blake  <ebb9@byu.net>
39174
39175         fchdir: avoid infinite recursion in mingw
39176         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
39177         recursing.
39178
39179         test-stat-time: port to mingw
39180         * tests/test-stat-time.c (force_unlink): Return a value.
39181         (test_ctime) [W32]: Fix compilation error.
39182         (nap): Don't call usleep with too large an argument.  Use
39183         force_unlink.
39184         * doc/pastposix-functions/usleep.texi (usleep): Document the
39185         portability issue.
39186
39187 2009-10-13  Jim Meyering  <meyering@redhat.com>
39188
39189         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
39190         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
39191         * modules/pipe-filter-ii: Likewise.
39192         * modules/sys_socket-tests: Likewise.
39193         * modules/tsearch-tests: Likewise.
39194         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
39195         (check): Depend on it.
39196
39197 2009-10-12  Eric Blake  <ebb9@byu.net>
39198
39199         utimens-tests: port to NFS file systems
39200         * tests/test-utimens.h (test_utimens): Refactor utimecmp
39201         comparisons to avoid spurious failures from timestamp drift
39202         between NFS machines.
39203
39204 2009-10-12  Eric Blake  <ebb9@byu.net>
39205
39206         stat-time-tests: minor cleanups
39207         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
39208         * tests/test-stat-time.c (nap): Separate assignment from call.
39209         Suggested by Paolo Bonzini and Bruno Haible.
39210
39211         sys_stat: guarantee struct timespec
39212         * lib/sys_stat.in.h (includes): Always include <time.h>
39213         * modules/sys_stat (Depends-on): Add time.
39214         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
39215         mode_t permission values.
39216         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
39217         get at subsecond timestamps.
39218
39219 2009-10-10  Eric Blake  <ebb9@byu.net>
39220
39221         futimens: new module
39222         * modules/futimens: New file.
39223         * lib/futimens.c (futimens): Likewise.
39224         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
39225         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
39226         we can work around Linux bugs.
39227         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39228         * modules/sys_stat (Makefile.am): Substitute them.
39229         * lib/sys_stat.in.h (futimens): Declare it.
39230         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39231         * doc/posix-functions/futimens.texi (futimens): Likewise.
39232         * modules/futimens-tests: New test.
39233         * tests/test-futimens.c: Likewise.
39234
39235         utimens: introduce fdutimens
39236         * lib/utimens.h (fdutimens): New prototype.
39237         * lib/utimens.c (gl_futimens): Move guts...
39238         (fdutimens): ...to new interface.
39239         * tests/test-utimens.c (do_fdutimens): Use it.
39240
39241         utimens: add UTIME_NOW and UTIME_OMIT support
39242         * lib/utimens.c (validate_timespec, update_timespec): New helper
39243         functions.
39244         (gl_futimens, lutimens): Use them.
39245         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
39246         stdbool, sys_stat.
39247         (Link): Mention resulting library dependency.
39248         * modules/utimecmp (Link): Likewise.
39249         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
39250         (Makefile.am): Pick up library dependency.
39251         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
39252         definition.
39253         * tests/test-sys_stat.c: Test the definitions.
39254         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
39255         * NEWS: Document library dependency.
39256
39257         utimecmp: support symlink timestamps
39258         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
39259         hashing when possible.  Use pathconf when available.
39260         (SYSCALL_RESOLUTION): Recognize tighter resolution.
39261         * modules/utimecmp (Depends-on): Add lstat.
39262
39263         utimens: add lutimens interface
39264         * lib/utimens.c (lutimens): New function.
39265         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39266         * lib/utimens.h (lutimens): Declare new interface.
39267         * tests/test-utimens.c (main): Enhance test.
39268         * tests/test-lutimens.h (test_lutimens): New file.
39269         * modules/utimens-tests (Files): Distribute it.
39270         (Depends-on): Add symlink.
39271         (configure.ac): Check for usleep.
39272
39273         utimens: validate futimens usage
39274         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39275         fewer syscalls on failure later on.  Avoid compiler warning on
39276         mingw.
39277         * modules/utimens (Depends-on): Add dup2.
39278
39279         utimens: add test
39280         * modules/utimens-tests: New test.
39281         * tests/test-utimens.h: New file.
39282         * tests/test-futimens.h: Likewise.
39283         * tests/test-utimens.c: Likewise.
39284
39285         doc: mention timestamp portability issues
39286         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
39287         instead.
39288         * doc/posix-functions/utime.texi (utime): Likewise.
39289         * doc/posix-functions/utimes.texi (utimes): Likewise.
39290         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
39291         instead.
39292         * doc/posix-functions/futimens.texi (futimens): Mention utimens
39293         module.
39294         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39295         Mention weakness with symlink timestamps.
39296         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
39297         to utimensat/futimens instead.
39298         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
39299
39300         test-dup2: enhance test
39301         * tests/test-dup2.c (main): Also check AT_FDCWD.
39302
39303         test-stat-time: avoid more spurious failures
39304         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
39305         xfs; and avoid race if the two timestamps cross quantization edge.
39306
39307         relocatable: prefer 'file system' over 'filesystem'
39308         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
39309         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
39310         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
39311         * doc/relocatable.texi (Enabling Relocatability): Likewise.
39312         * lib/relocatable.c (compute_curr_prefix): Likewise.
39313
39314 2009-10-10  Jim Meyering  <meyering@redhat.com>
39315
39316         stat-time-tests: check for the usleep function
39317         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
39318
39319 2009-10-10  Bruno Haible  <bruno@clisp.org>
39320
39321         * modules/xnanosleep: Put the Link section after the Include section.
39322
39323 2009-10-09  Eric Blake  <ebb9@byu.net>
39324
39325         dup2: work around FreeBSD 6.1 bug
39326         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
39327         * doc/posix-functions/dup2.texi (dup2): Document it.
39328         Reported by Nelson H. F. Beebe and Jim Meyering.
39329
39330         test-stat-time: port to buggy NFS clients
39331         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
39332         (test_ctime): Also skip test if mtime and ctime are skewed.
39333
39334         maint: prefer 'file system' over 'filesystem'
39335         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39336         * doc/posix-functions/lstat.texi (lstat): Likewise.
39337         * lib/file-has-acl.c (file_has_acl): Likewise.
39338         * lib/fwriteerror.c [TEST]: Likewise.
39339         * tests/test-areadlink.h (test_areadlink): Likewise.
39340         * tests/test-areadlinkat-with-size.c (main): Likewise.
39341         * tests/test-areadlinkat.c (main): Likewise.
39342         * tests/test-canonicalize-lgpl.c (main): Likewise.
39343         * tests/test-canonicalize.c (main): Likewise.
39344         * tests/test-fstatat.c (main): Likewise.
39345         * tests/test-linkat.c (main): Likewise.
39346         * tests/test-lstat.h (test_lstat_func): Likewise.
39347         * tests/test-mkdir.h (test_mkdir): Likewise.
39348         * tests/test-readlink.h (test_readlink): Likewise.
39349         * tests/test-remove.c (main): Likewise.
39350         * tests/test-rename.h (test_rename): Likewise.
39351         * tests/test-renameat.c (main): Likewise.
39352         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39353         * tests/test-symlink.h (test_symlink): Likewise.
39354         * tests/test-symlinkat.c (main): Likewise.
39355         * tests/test-unlink.h (test_unlink_func): Likewise.
39356         * tests/test-unlinkat.c (main): Likewise.
39357
39358         maint: make realtime library usage explicit
39359         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
39360         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
39361         * modules/settime (Link): Likewise.
39362         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
39363
39364         test-stat-time: speed up execution
39365         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
39366         warning on mingw.
39367         (nap): New helper function.
39368         (prepare_test): Use it to reduce sleep time.
39369         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
39370         execution.
39371         * modules/stat-time-tests (configure.ac): Check for usleep.
39372
39373 2009-10-09  Jim Meyering  <meyering@redhat.com>
39374
39375         selinux-h: always use getfilecon wrappers
39376         * lib/getfilecon.c: New file.
39377         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
39378         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
39379         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
39380         (fgetfilecon): Provide a stub.
39381         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
39382         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
39383         file unconditionally.
39384         When <selinux/selinux.h> is found, arrange to use wrappers.
39385         * modules/selinux-h (Files): Add getfilecon.c.
39386         (Makefile.am): Substitute include-next-related bits
39387         into the now-always-generated selinux/selinux.h file.
39388         * doc/glibc-functions/lgetfilecon.texi: New file.
39389         * doc/glibc-functions/fgetfilecon.texi: New file.
39390         * doc/glibc-functions/getfilecon.texi: New file.
39391         * doc/glibc-functions/getfilecon-desc.texi: New file.
39392         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
39393         which to pull in the new files.
39394         * MODULES.html.sh (Misc): Add selinux-h.
39395
39396 2009-10-08  Jim Meyering  <meyering@redhat.com>
39397
39398         unistd: fix comment typo
39399         * lib/unistd.in.h (euidaccess): Fix a comment typo.
39400
39401 2009-10-08  Eric Blake  <ebb9@byu.net>
39402
39403         areadlink: use SIZE_MAX consistently
39404         * modules/areadlink (Depends-on): Add stdint.
39405         * modules/areadlink-with-size (Depends-on): Likewise.
39406         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
39407         gives NULL; drop sys/types, since unistd gives size_t; and add
39408         stdint for SIZE_MAX.
39409         (SIZE_MAX): Rely on headers.
39410         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
39411         and add stdint.
39412         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
39413         (SIZE_MAX): Likewise.
39414         (INITIAL_BUF_SIZE): Turn into enum.
39415         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
39416
39417 2009-10-08  Jim Meyering  <meyering@redhat.com>
39418
39419         areadlinkat: avoid compilation failure
39420         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
39421         Fix typo in comment.
39422
39423 2009-10-07  Eric Blake  <ebb9@byu.net>
39424
39425         areadlinkat-with-size: new module
39426         * modules/areadlinkat-with-size: New module.
39427         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
39428         * lib/areadlink.h (areadlinkat): Declare it.
39429         * MODULES.html.sh (File system functions): Mention it.
39430         * modules/areadlinkat-with-size-tests: New test.
39431         * tests/test-areadlinkat-with-size.c: New file.
39432
39433         xreadlinkat: new module
39434         * modules/xreadlinkat: New module.
39435         * lib/xreadlinkat.c (xreadlinkat): New file.
39436         * lib/xreadlink.h (xreadlinkat): Declare it.
39437         * MODULES.html.sh (File system functions): Mention it.
39438
39439         areadlinkat: new module
39440         * lib/at-func.c (FUNC_FAIL): New define.
39441         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
39442         * modules/areadlinkat: New module.
39443         * lib/linkat.c (areadlinkat): Move...
39444         * lib/areadlinkat.c (areadlinkat): ...to new file.
39445         * lib/areadlink.h (areadlinkat): Declare it.
39446         * modules/linkat (Depends-on): Add areadlinkat.
39447         * MODULES.html.sh (File system functions): Mention it.
39448         * modules/areadlinkat-tests: New test.
39449         * tests/test-areadlinkat.c: New file.
39450
39451         areadlink, areadlink-with-size: add tests
39452         * modules/areadlink-tests: New test.
39453         * modules/areadlink-with-size-tests: Likewise.
39454         * tests/test-areadlink.h: New file.
39455         * tests/test-areadlink.c: Likewise.
39456         * tests/test-areadlink-with-size.c: Likewise.
39457
39458         maint: minor cleanups
39459         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
39460         _UNUSED_PARAMETER_ instead.
39461         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
39462         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
39463         * modules/linkat-tests (Files): Distribute test-link.h.
39464
39465         openat, utimens: whitespace cleanup
39466         * lib/openat.c: Prefer space throughout, rather than mix of 8
39467         spaces vs. tabs.
39468         * lib/at-func.c: Likewise.
39469         * lib/utimens.c: Likewise.
39470
39471         openat: avoid using wrong fd
39472         * lib/openat.c (openat_permissive): Reject user's fd if saving the
39473         working directory chooses same fd.
39474         * lib/at-func.c (AT_FUNC_NAME): Likewise.
39475
39476         mkdir, mkdirat: fix cygwin 1.5.x bug
39477         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
39478         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
39479         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
39480         bug.
39481         (gl_PREREQ_MKDIR): Delete unused macro.
39482         * modules/mkdir (Files): Track file rename.
39483         (configure.ac): Update macro name.
39484         * modules/openat (Depends-on): Add mkdir.
39485         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
39486
39487         mkdir, mkdirat: add tests
39488         * modules/mkdir-tests: New test.
39489         * tests/test-mkdir.h: New file.
39490         * tests/test-mkdir.c: Likewise.
39491         * tests/test-mkdirat.c: Likewise.
39492         * modules/openat-tests (Files): Add new files.
39493         (Makefile.am): Run new test.
39494
39495 2009-10-06  Eric Blake  <ebb9@byu.net>
39496
39497         doc: tweak *at function documentation
39498         * doc/posix-functions/faccessat.texi (faccessat): Mention
39499         known issue with replacement.
39500         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
39501         * doc/posix-functions/linkat.texi (linkat): Likewise.
39502         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
39503         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
39504         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39505         * doc/posix-functions/renameat.texi (renameat): Likewise.
39506         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39507
39508         openat: fix GNU/Hurd bug in unlinkat
39509         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
39510         broken.
39511         * doc/posix-functions/unlink.texi (unlink): Document this.
39512         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
39513
39514         fdopendir: fix GNU/Hurd bug
39515         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
39516         allowing non-directory fds.
39517         * lib/fdopendir.c (rpl_fdopendir): Work around it.
39518         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
39519         * modules/dirent (Makefile.am): Substitute it.
39520         * lib/dirent.in.h (fdopendir): Declare replacement.
39521         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
39522         * tests/test-fdopendir.c (main): Test something other than
39523         /dev/null, since on Hurd that behaves like a directory.
39524
39525         test-symlink: port to GNU/Hurd
39526         * tests/test-symlink.h (test_symlink): Relax expected errno.
39527
39528         doc: tweak more cygwin information
39529         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
39530         now compatible with glibc.
39531         * doc/posix-functions/getopt.texi (getopt): Likewise.
39532
39533         getopt-gnu: add another test
39534         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
39535         guarantee behavior relied on by m4.
39536         * tests/test-getopt.c (main): Use it.
39537         * modules/getopt-posix-tests (Depends-on): Add setenv.
39538         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
39539
39540         getopt: fix compilation on darwin
39541         * lib/getopt.in.h (includes): Leave breadcrumbs during system
39542         include.
39543         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
39544         Reported by Ludovic Courtès.
39545
39546 2009-10-06  Bruno Haible  <bruno@clisp.org>
39547
39548         * modules/size_max (Description): Discourage its use.
39549         Reported by Simon Josefsson.
39550
39551 2009-10-06  Jim Meyering  <meyering@redhat.com>
39552
39553         linkat: avoid compilation failure
39554         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
39555
39556 2009-10-05  Eric Blake  <ebb9@byu.net>
39557
39558         linkat: support Linux 2.6.17
39559         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
39560         linkat on Linux, but allow cache variable override.
39561         * lib/linkat.c (rpl_linkat): Define override.
39562         * modules/linkat (Depends-on): Add symlinkat.
39563         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
39564         * modules/unistd (Makefile.am): Substitute it.
39565         * lib/unistd.in.h (linkat): Declare replacement.
39566         Reported by Pádraig Brady.
39567
39568         quotearg: port test to systems with C.UTF-8 locale
39569         * tests/test-quotearg.c (struct result_strings): Add another
39570         member, differentiating between C.ASCII and C.UTF-8 handling.
39571         (compare_strings): Add parameter.
39572         (main): Adjust all callers.
39573
39574         getopt: avoid clash with FreeBSD _getopt_internal
39575         * lib/getopt.in.h (_getopt_internal): Override the name.
39576         * lib/getopt_int.h (includes): Pick up any overrides.
39577         Reported by Reuben Thomas.
39578
39579         hash: allow C89 compilation
39580         * lib/hash.c (check_tuning): Move declaration before statement.
39581         Reported by Reuben Thomas.
39582
39583 2009-10-05  Karl Berry  <karl@gnu.org>
39584
39585         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
39586
39587 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
39588             Bruno Haible  <bruno@clisp.org>
39589
39590         * lib/uname.c (uname): Use a table-driven algorithm to compute
39591         Windows NT versions.
39592
39593 2009-10-04  Bruno Haible  <bruno@clisp.org>
39594
39595         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
39596         program_invocation_short_name.
39597         * modules/progname (configure.ac): Test for presence of
39598         program_invocation_short_name.
39599         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39600
39601 2009-10-04  Bruno Haible  <bruno@clisp.org>
39602
39603         * lib/progname.c (set_program_name): Fix comment.
39604         Reported by Jim Meyering.
39605
39606 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39607             Bruno Haible  <bruno@clisp.org>
39608
39609         * lib/uname.c: Include <string.h>.
39610         (uname): Do only one call to GetVersionEx in the common case.
39611
39612 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39613             Bruno Haible  <bruno@clisp.org>
39614
39615         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
39616         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
39617         (uname): Add support for Windows CE and various non-x86 CPU types.
39618
39619 2009-10-03  Bruno Haible  <bruno@clisp.org>
39620
39621         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
39622         invocation to tests/configure.ac.
39623         Reported by Ian Beckwith <ianb@erislabs.net>.
39624
39625 2009-10-02  Eric Blake  <ebb9@byu.net>
39626
39627         fchdir: avoid compiler warning
39628         * lib/fchdir.c (canonicalize_file_name)
39629         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
39630
39631         test-open: support mingw errno values
39632         * tests/test-open.h (test_open): Relax test.
39633         * tests/test-fopen.h (test_fopen): Likewise.
39634         * tests/test-openat-safer.c (main): Likewise.
39635
39636         open: fix opening directory on mingw
39637         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
39638
39639         test-open: on GNU/Hurd, /dev/null is a directory
39640         * tests/test-fopen.h (main): Rename...
39641         (test_fopen): ...to this.  Use a guaranteed non-directory when
39642         confirming open behavior on trailing slash.
39643         * tests/test-openat-safer.c (main): Likewise.
39644         * tests/test-open.h (main): Likewise....
39645         (test_open): ...to this.
39646         * tests/test-fopen.c (main): Adjust caller.
39647         * tests/test-fopen-safer.c (main): Likewise.
39648         * tests/test-open.c (main): Likewise.
39649         * tests/test-fcntl-safer.c (main): Likewise.
39650         Reported by Samuel Thibault.
39651
39652         rename, fchdir: don't ignore chdir failure
39653         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
39654         * lib/rename.c (rpl_rename) [W32]: Likewise.
39655         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
39656         an empty destination directory if source cannot be renamed,
39657         although there is still possibility for failure.
39658         * doc/posix-functions/rename.texi (rename): Document the race.
39659         Reported by Jim Meyering.
39660
39661         maint: cleanup whitespace in recent commits
39662         * lib/rename.c (rpl_rename): Remove tabs.
39663         * tests/test-link.h (test_link): Likewise.
39664         * lib/fchdir.c (get_name): Likewise.
39665         Reported by Jim Meyering.
39666
39667 2009-10-02  Ben Pfaff  <blp@gnu.org>
39668
39669         relocatable-prog-wrapper: Add missing dependency on
39670         double-slash-root.
39671         * modules/relocatable-prog-wrapper: Add dependency.
39672         Reported by Ian Beckwith <ianb@erislabs.net>.
39673
39674 2009-10-02  Eric Blake  <ebb9@byu.net>
39675
39676         renameat: fix Solaris bugs
39677         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
39678         needed fixing.
39679         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
39680         * modules/stdio (Makefile.am): Substitute it.
39681         * lib/stdio.in.h (renameat): Declare replacement.
39682         * lib/renameat.c (rpl_renameat): Implement fix.
39683
39684         renameat: new module
39685         * modules/renameat: New file.
39686         * lib/renameat.c (renameat): Likewise.
39687         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
39688         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39689         * modules/stdio (Makefile.am): Substitute them.
39690         * lib/stdio.in.h (renameat): Declare it.
39691         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39692         * doc/posix-functions/renameat.texi (renameat): Likewise.
39693         * modules/renameat-tests: New test.
39694         * tests/test-renameat.c: Likewise.
39695
39696         rename: fix mingw bugs
39697         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
39698         directory overwrite bugs.
39699
39700         rename: fix another cygwin 1.5 bug
39701         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
39702         checks.
39703         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
39704         unnecessary cygwin workarounds.  Also work around bug with moving
39705         full directory onto an empty one.
39706         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
39707
39708         rename-dest-slash: merge into rename module
39709         * modules/rename-dest-slash (Status): Mark obsolete.
39710         (Depends-on): Add rename.
39711         (Files): Let rename do it all.
39712         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
39713         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
39714         * m4/rename-dest-slash.m4: ...so this file can be deleted.
39715         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
39716         * lib/rename.c (rpl_rename): Update comments.
39717
39718         rename: fix cygwin 1.5.x bugs
39719         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
39720         * lib/rename.c (rpl_rename): Work around them.
39721         * modules/rename (Depends-on): Add same-inode.
39722
39723         rename: fix Solaris 10 bug
39724         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39725         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
39726         was the only bug.
39727
39728         rename: fix Solaris 9 bug
39729         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
39730         on non-directory.  Avoid calling exit.
39731         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
39732         strdup.
39733         * modules/rename-tests (Depends-on): Drop lstat.
39734         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39735         (gl_PREREQ_RENAME): Delete unused macro.
39736
39737         rename-dest-slash: fix NetBSD bug
39738         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
39739         links.
39740         * modules/rename-dest-slash (Depends-on): Add same-inode.
39741
39742         rename-tests: new test, exposes several platform bugs
39743         * modules/rename-tests: New file.
39744         * tests/test-rename.h: Likewise.
39745         * tests/test-rename.c: Likewise.
39746         * doc/posix-functions/rename.texi (rename): Improve documentation,
39747         including bugs that will eventually be fixed in gnulib.
39748
39749 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
39750
39751         * lib/uname.c: Include <stdlib.h>
39752         (uname): Assume version info is available.
39753
39754 2009-10-02  Jim Meyering  <meyering@redhat.com>
39755
39756         gnu-web-doc-update: correct --help output
39757         * build-aux/gnu-web-doc-update: Make --help output relevant.
39758
39759         gnu-web-doc-update: add standard options
39760         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
39761
39762         gnu-web-doc-update: New module.
39763         Use this script to automatically update the on-line web documentation
39764         for your GNU project at http://www.gnu.org/software/$pkg/manual/
39765         * modules/gnu-web-doc-update: New file, from coreutils.
39766         * build-aux/gnu-web-doc-update: New script.
39767
39768 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
39769
39770         link: LoadLibrary is not needed.
39771         * lib/link.c: Use GetModuleHandle.
39772
39773 2009-10-01  Eric Blake  <ebb9@byu.net>
39774
39775         getopt: bump serial number
39776         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
39777         change.
39778
39779         tests: tighten link, rmdir, and remove tests
39780         * tests/test-link.h (includes): No need to use <config.h> here.
39781         Clean up if directory hard link was created, otherwise test for
39782         trailing '.'.
39783         * tests/test-linkat.c (main): Simplify.
39784         * tests/test-remove.c (main): Enhance test for trailing '.'.
39785         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39786
39787 2009-10-01  Jim Meyering  <meyering@redhat.com>
39788
39789         maint.mk: requiring "make major" was annoying, for a "minor" release.
39790         What is intended is "stable", to contrast with alpha and beta,
39791         so require "make stable", not "make major".
39792         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
39793         (get_tool_versions): Likewise.
39794         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
39795
39796 2009-09-30  Ben Pfaff  <blp@gnu.org>
39797
39798         Fix broken build of replacement for Windows tmpfile().
39799         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
39800         flags argument added along with the 'mkostemp' module.
39801
39802 2009-09-28  Bruno Haible  <bruno@clisp.org>
39803
39804         Avoid identifier clash with POSIX function 'remove' defined as a macro.
39805         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
39806         to 'remove_elt'.
39807         (gl_list_remove): Update.
39808         * lib/gl_list.c (gl_list_remove): Update.
39809         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
39810         to 'remove_elt'.
39811         (gl_oset_remove): Update.
39812         * lib/gl_list.c (gl_oset_remove): Update.
39813         Reported by Eric Blake.
39814
39815 2009-09-28  Eric Blake  <ebb9@byu.net>
39816
39817         doc: mention yet more cygwin 1.7 status
39818         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
39819         cygwin.
39820         * doc/glibc-functions/execvpe.texi (execvpe): New file.
39821         * doc/gnulib.texi (Glibc unistd.h): Mention it.
39822
39823         argp: fix test failure
39824         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
39825         that are not upper-case.  Pass correct range to tolower.
39826
39827 2009-09-27  Jim Meyering  <meyering@redhat.com>
39828
39829         test-yesno: work around sparc-dash here-document infelicity
39830         Without this change, the literal \177 byte in a here document
39831         would make dash 0.5.5.1-3 access uninitialized memory.
39832         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
39833         Instead, use a marker, "@", and filter through tr to create the desired
39834         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
39835
39836 2009-09-27  Bruno Haible  <bruno@clisp.org>
39837
39838         Disable untested support for new flavours of ACLs on AIX.
39839         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
39840         progress.
39841         * lib/set-mode-acl.c (qset_acl): Likewise.
39842
39843 2008-12-07  Bruno Haible  <bruno@clisp.org>
39844
39845         Add support for new flavours of ACLs on AIX. (Untested.)
39846         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
39847         (file_has_acl): Add support for newer AIX.
39848         * lib/set-mode-acl.c (qset_acl): Likewise.
39849         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
39850         Rainer Tammer <tammer@tammer.net>.
39851
39852 2009-09-26  Eric Blake  <ebb9@byu.net>
39853
39854         argp: fix compilation of getopt
39855         * lib/getopt.in.h (includes): Use different guard than glibc.
39856         Reported by Sergey Poznyakoff.
39857
39858         doc: mention more cygwin 1.7 status
39859         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
39860         bug.
39861         * doc/posix-functions/execl.texi (execl): Likewise.
39862         * doc/posix-functions/execle.texi (execle): Likewise.
39863         * doc/posix-functions/execlp.texi (execlp): Likewise.
39864         * doc/posix-functions/execv.texi (execv): Likewise.
39865         * doc/posix-functions/execve.texi (execve): Likewise.
39866         * doc/posix-functions/execvp.texi (execvp): Likewise.
39867         * doc/glibc-functions/canonicalize_file_name.texi
39868         (canonicalize_file_name): Cygwin 1.7 now provides this.
39869         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
39870         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
39871         on AT_SYMLINK_NOFOLLOW.
39872
39873 2009-09-24  Eric Blake  <ebb9@byu.net>
39874
39875         test-linkat: make test more robust
39876         * tests/test-linkat.c (main): Avoid collision with EEXIST.
39877
39878         getopt: fix inclusion guards for cygwin
39879         * modules/getopt-posix (Depends-on): Add include-next.
39880         (Makefile.am): Substitute more items in replacement header.
39881         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
39882         <getopt.h>.
39883         * lib/getopt.in.h (includes): Use split inclusion guard, and
39884         prefer <getopt.h> over include <unistd.h> when one is present.
39885         (option): Also override name of 'struct option'.
39886
39887         same-inode: revert prior change; it is not yet ready
39888         * NEWS: Undo mention of this change.
39889         * lib/same-inode.h (same-inode.h): Undo tri-state change.
39890         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39891         * lib/cycle-check.c (cycle_check): Likewise.
39892         * lib/same.c (same_name): Likewise.
39893         * lib/at-func2.c (at_func2): Likewise.
39894
39895 2009-09-23  Eric Blake  <ebb9@byu.net>
39896
39897         linkat: new module
39898         * modules/linkat: New file.
39899         * lib/at-func2.c (at_func2): Likewise.
39900         * lib/linkat.c (linkat): Likewise.
39901         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
39902         * lib/openat-priv.h (at_func2): Add declaration.
39903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39904         * modules/unistd (Makefile.am): Substitute them.
39905         * lib/unistd.in.h (linkat): Declare it.
39906         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39907         * doc/posix-functions/linkat.texi (linkat): Likewise.
39908         * doc/posix-functions/link.texi (link): Tweak wording.
39909         * tests/test-link.c (main): Move guts...
39910         * tests/test-link.h (test_link): ...into new file.
39911         * modules/linkat-tests: New test.
39912         * tests/test-linkat.c: Likewise.
39913         * modules/link-tests (Files): Ship new file.
39914         (Depends-on): Add stdbool.
39915
39916         dirname: add library-safe mdir_name
39917         * lib/dirname.h (mdir_name): New prototype.
39918         * lib/dirname.c (dir_name): Move guts...
39919         (mdir_name): ...to new function that avoids xalloc_die.
39920
39921         fchdir: another mingw fix
39922         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
39923         * lib/fchdir.c (get_name): New helper method; skips canonicalize
39924         on mingw (where it has not yet been ported), and make it optional
39925         elsewhere.
39926         (_gl_register_fd): Use it.
39927
39928         same-inode: make SAME_INODE tri-state, to port to mingw
39929         * NEWS: Mention this change.
39930         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
39931         st_ino always being 0.
39932         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39933         * lib/cycle-check.c (cycle_check): Likewise.
39934         * lib/same.c (same_name): Likewise.
39935
39936         lstat: avoid mingw compilation error
39937         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
39938         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
39939         lstat ourselves.
39940         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
39941         was adequate.
39942         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
39943         the checks for lstat.
39944         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
39945
39946         link: fix test failure on Solaris 9
39947         * lib/link.c (rpl_link): Don't assume link will catch bogus
39948         trailing slash on source.
39949
39950         test-symlinkat: enhance test
39951         * tests/test-readlink.c (main): Move guts...
39952         * tests/test-readlink.h (test_readlink): ...into new file.
39953         * tests/test-symlink.c (main): Move guts...
39954         * tests/test-symlink.h (test_symlink): ...into new file.
39955         * tests/test-symlinkat.c (main): Use new files for further
39956         coverage.
39957         (do_symlink, do_readlink): New helper functions.
39958         * modules/symlink-tests (Files): Ship new file.
39959         (Depends-on): Add stdbool.
39960         * modules/readlink-tests (Files): Ship new file.
39961         (Depends-on): Add stdbool.
39962         * modules/symlinkat-tests (Files): Use new files.
39963
39964 2009-09-23  Eric Blake  <ebb9@byu.net>
39965
39966         readlink: document portability issue with symlink length
39967         * doc/posix-functions/lstat.texi (lstat): Mention that some file
39968         systems have bogus st_size on symlinks, and mention the
39969         areadlink-with-size module.
39970         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39971         * doc/posix-functions/readlink.texi (readlink): Mention the
39972         areadlink module, and ERANGE failure.
39973         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39974         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
39975
39976         readlink: fix Solaris 9 bug with trailing slash
39977         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
39978         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
39979         * doc/posix-functions/readlink.texi (readlink): Document this.
39980         * modules/readlink-tests: New test.
39981         * tests/test-readlink.c: Likewise.
39982
39983         readlink: fix cygwin 1.5.x bug with return type
39984         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
39985         * lib/unistd.in.h (readlink): Use ssize_t.
39986         * lib/readlink.c (readlink): Likewise.
39987         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39988         * modules/unistd (Makefile.am): Substitute it.
39989         * lib/unistd.in.h (readlink): Declare replacement.
39990         * doc/posix-functions/readlink.texi (readlink): Document this.
39991
39992         symlink: use throughout gnulib
39993         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
39994         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
39995         symlink is not used.
39996         * modules/symlinkat (Depends-on): Add symlink.
39997         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
39998         * modules/canonicalize-tests (Depends-on): Likewise.
39999         * modules/lstat-tests (Depends-on): Likewise.
40000         * modules/openat-tests (Depends-on): Likewise.
40001         * modules/remove-tests (Depends-on): Likewise.
40002         * modules/rmdir-tests (Depends-on): Likewise.
40003         * modules/unlink-tests (Depends-on): Likewise.
40004         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
40005         * tests/test-canonicalize.c (symlink): Likewise.
40006         * tests/test-fstatat.c (symlink): Likewise.
40007         * tests/test-lstat.c (symlink): Likewise.
40008         * tests/test-remove.c (symlink): Likewise.
40009         * tests/test-rmdir.c (symlink): Likewise.
40010         * tests/test-unlink.c (symlink): Likewise.
40011         * tests/test-unlinkat.c (symlink): Likewise.
40012
40013         symlink: new module, for Solaris 9 bug
40014         * modules/symlink: New file.
40015         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
40016         * lib/symlink.c: Likewise.
40017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40018         * modules/unistd (Makefile.am): Substitute them.
40019         * lib/unistd.in.h (symlink): Declare replacement.
40020         * MODULES.html.sh (File system functions): Mention it.
40021         * doc/posix-functions/symlink.texi (symlink): Likewise.
40022         * modules/symlink-tests: New test.
40023         * tests/test-symlink.c: Likewise.
40024
40025 2009-09-23  Bruno Haible  <bruno@clisp.org>
40026
40027         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
40028         when needed.
40029         Test case: gnulib-tool --import --with-tests atexit inttypes.
40030         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
40031
40032 2009-09-23  Bruno Haible  <bruno@clisp.org>
40033
40034         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
40035         subcommand, not in a subshell.
40036
40037 2009-09-22  Eric Blake  <ebb9@byu.net>
40038
40039         unistd: sort replacement declarations
40040         * lib/unistd.in.h: Sort declarations.
40041
40042         open, openat: minor optimization
40043         * lib/open.c (open): If open succeeded, len is non-zero.
40044         * lib/openat.c (rpl_openat): Likewise.
40045
40046         link-follow: ensure correct result
40047         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
40048         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
40049         distinguish between possible failures.
40050
40051 2009-09-21  Eric Blake  <ebb9@byu.net>
40052
40053         fts: avoid compiler warning
40054         * lib/fts.c (dirent_inode_sort_may_be_useful)
40055         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
40056
40057 2009-09-19  Bruno Haible  <bruno@clisp.org>
40058
40059         * lib/progreloc.c (canonicalize_file_name): New declaration.
40060
40061 2009-09-19  Eric Blake  <ebb9@byu.net>
40062
40063         link: fix quoting
40064         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
40065
40066         openat: fix openat bugs on Solaris 9
40067         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
40068         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
40069         * modules/openat (Depends-on): Add open.
40070         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
40071         * modules/fcntl-h (Makefile.am): Substitute it.
40072         * lib/fcntl.in.h (openat): Declare replacement.
40073         * doc/posix-functions/openat.texi (openat): Document this.
40074
40075         openat: move fstatat and unlinkat into correct files
40076         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
40077         compiled.
40078         * lib/openat.c (fstatat, unlinkat): Move...
40079         * lib/fstatat.c (fstatat): ...into correct files.
40080         * lib/unlinkat.c (unlinkat): Likewise.
40081
40082         openat: fix unlinkat bugs on Solaris 9
40083         * lib/unlinkat.c (unlinkat): New file.
40084         * modules/openat (Depends-on): Add unlink.
40085         (Files): Distribute it.
40086         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
40087         trailing slash behavior is broken.
40088         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40089         * modules/unistd (Makefile.am): Substitute it.
40090         * lib/unistd.in.h (unlinkat): Declare replacement.
40091         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
40092
40093         openat: fix fstatat bugs on Solaris 9
40094         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
40095         stat.
40096         * doc/posix-functions/fstatat.texi (fstatat): Document this.
40097
40098         test-unlinkat: enhance test, to expose Solaris 9 bug
40099         * tests/test-unlink.c (main): Factor guts...
40100         * tests/test-unlink.h (test_rmdir_func): ...into new file.
40101         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
40102         * tests/test-rmdir.c (main): Adjust caller.
40103         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
40104         (unlinker): New helper function.
40105         (rmdirat): Enhance check.
40106         * modules/rmdir-tests (Depends-on): Add stdbool.
40107         * modules/unlink-tests (Depends-on): Likewise.
40108         (Files): Add test-unlink.h.
40109         * modules/openat-tests (Files): Likewise.
40110         (Depends-on): Add unlinkdir.
40111
40112         test-fstatat: new test, to expose Solaris 9 bugs
40113         * tests/test-stat.c (main): Factor guts...
40114         * tests/test-stat.h (test_stat_func): ...into new file.
40115         * tests/test-lstat.c (main): Factor guts...
40116         * tests/test-lstat.h (test_lstat_func): ...into new file.
40117         * tests/test-fstatat.c: New file.
40118         * modules/stat-tests (Files): Add test-stat.h.
40119         * modules/lstat-tests (Files): Add test-lstat.h.
40120         (Depends-on): Add stdbool.
40121         * modules/openat-tests (Depends-on): Add pathmax.
40122         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
40123         (Makefile.am): Run new test.
40124
40125         remove: new module, for mingw and Solaris 9 bugs
40126         * modules/remove: New file.
40127         * lib/remove.c: Likewise.
40128         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
40129         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
40130         * modules/stdio (Makefile.am): Use them.
40131         * lib/stdio.in.h (remove): Declare replacement.
40132         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40133         * doc/posix-functions/remove.texi (remove): Likewise.
40134         * modules/remove-tests: New test.
40135         * tests/test-remove.c: Likewise.
40136
40137         unlink: new module, for Solaris 9 bug
40138         * modules/unlink: New file.
40139         * lib/unlink.c: Likewise.
40140         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
40141         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40142         * modules/unistd (Makefile.am): Use them.
40143         * lib/unistd.in.h (stat): Declare replacement.
40144         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40145         * doc/posix-functions/unlink.texi (unlink): Likewise.
40146         * modules/unlink-tests: New test.
40147         * tests/test-unlink.c: Likewise.
40148
40149         lstat: fix Solaris 9 bug
40150         * lib/lstat.c (lstat): Also check for trailing slash on
40151         non-symlink, non-directories.  Use stat module to simplify logic.
40152         * doc/posix-functions/lstat.texi (lstat): Document it.
40153         * modules/lstat-tests (Depends-on): Add errno, same-inode.
40154         (configure.ac): Check for symlink.
40155         * tests/test-lstat.c (main): Add more tests.
40156
40157         stat: add as dependency to other modules
40158         * modules/chown (Depends-on): Add stat.
40159         * modules/euidaccess (Depends-on): Likewise.
40160         * modules/fchdir (Depends-on): Likewise.
40161         * modules/isdir (Depends-on): Likewise.
40162         * modules/link (Depends-on): Likewise.
40163         * modules/lstat (Depends-on): Likewise.
40164         * modules/mkdir-p (Depends-on): Likewise.
40165         * modules/modechange (Depends-on): Likewise.
40166         * modules/open (Depends-on): Likewise.
40167         * modules/readlink (Depends-on): Likewise.
40168         * modules/same (Depends-on): Likewise.
40169
40170         stat: fix Solaris 9 bug
40171         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
40172         slash.
40173         * lib/stat.c (rpl_stat): Work around it.
40174         * doc/posix-functions/stat.texi (stat): Update documentation.
40175
40176         stat: new module, for mingw bug
40177         * modules/stat: New file.
40178         * lib/stat.c: Likewise.
40179         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
40180         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40181         * modules/sys_stat (Makefile.am): Use them.
40182         * lib/sys_stat.in.h (stat): Declare replacement.
40183         * lib/openat.c (fstatat): Deal with lstat and stat being function
40184         macros.
40185         * modules/openat (Depends-on): Add inline.
40186         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
40187         * doc/posix-functions/stat.texi (stat): Likewise.
40188         * modules/stat-tests: New test.
40189         * tests/test-stat.c: Likewise.
40190
40191 2009-09-19  Jim Meyering  <meyering@redhat.com>
40192
40193         syntax-check: detect unnecessary inclusion of canonicalize.h
40194         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
40195
40196 2009-09-19  Eric Blake  <ebb9@byu.net>
40197
40198         canonicalize-lgpl: adjust clients to use correct header
40199         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40200         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
40201         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
40202         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
40203         * lib/progreloc.c (includes): Likewise.
40204
40205 2009-09-19  Jim Meyering  <meyering@redhat.com>
40206
40207         test-posixtm.c: correct a comment
40208         * tests/test-posixtm.c: Correct first-line comment.
40209         Spotted by Eric Blake.
40210
40211 2009-09-16  Jim Meyering  <meyering@redhat.com>
40212
40213         posixtm-tests: make T const-correct; add a test case
40214         * tests/test-posixtm.c (T): Declare const.
40215         Add a test for -(2^31+1).
40216         Remove useless can-succeed-only-in-2002 test.
40217
40218         posixtm-tests: adjust the sole failing test
40219         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
40220         expected output matches what mktime now produces.  Cross-checked via
40221         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
40222
40223         posixtm: move #ifdef'd tests into a new module
40224         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
40225         * tests/test-posixtm.c: ... this new file.
40226         * modules/posixtm-tests: New module.
40227
40228 2009-09-19  Eric Blake  <ebb9@byu.net>
40229
40230         openat: simplify use of at-func.c
40231         * lib/at-func.c (includes): Include prerequisites here, to
40232         simplify requirements on client files.
40233         * lib/openat-priv.h: Add double-inclusion guard.
40234         * lib/faccessat.c (includes): Simplify.
40235         * lib/fchmodat.c (includes): Likewise.
40236         * lib/fchownat.c (includes): Likewise.
40237         * lib/mkdirat.c (includes): Likewise.
40238         * lib/mkfifoat.c (includes): Likewise.
40239         * lib/symlinkat.c (includes): Likewise.
40240
40241         openat: allow return of fd 0
40242         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
40243         * modules/save-cwd (Depends-on): Replace fcntl-safer with
40244         unistd-safer.
40245         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
40246         <fcntl.h>; this module does not leak fds.
40247         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
40248         must be allowed to return 0, leaving openat_safer to add the
40249         safety.
40250         (openat_permissive): Avoid writing to just-opened fd 2 if
40251         restoring the current directory fails.
40252         * lib/openat-die.c (openat_restore_fail): Add comment.
40253         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
40254         (save_cwd): Guarantee safe fd, but without use of open_safer.
40255         * tests/test-openat.c: New test.
40256         * modules/openat-tests (Files, Makefile.am): Distribute and build
40257         new file.
40258
40259         relocatable-prog-wrapper: fix build
40260         * modules/relocatable-prog-wrapper (Files): Update name of
40261         canonicalize m4 file, broken on 2009-09-17.
40262         Reported by emad hajjar <aleppos@hotmail.com>.
40263
40264 2009-09-19  Bruno Haible  <bruno@clisp.org>
40265
40266         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40267         * lib/safe-alloc.c: Likewise.
40268         Reported by Ian Beckwith <ianb@erislabs.net>.
40269
40270 2009-09-18  Bruno Haible  <bruno@clisp.org>
40271
40272         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40273         Reported by <erobles@sensacd.com.mx>.
40274
40275 2009-09-17  Eric Blake  <ebb9@byu.net>
40276
40277         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40278         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40279         slashes when checking if last component is missing.
40280         * tests/test-canonicalize.c (main): Test this.
40281
40282         canonicalize, canonicalize-lgpl: honor // if distinct from /
40283         * modules/canonicalize (Files): Add double-slash-root.m4.
40284         * modules/canonicalize-lgpl (Files): Likewise.
40285         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40286         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
40287         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
40288         fallback definition.
40289         (canonicalize_filename_mode): Use it to protect //.
40290         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
40291         (__realpath): Likewise.
40292         * tests/test-canonicalize.c (main): Test this.
40293         * tests/test-canonicalize-lgpl.c (main): Likewise.
40294         * modules/canonicalize-tests (Depends-on): Add same-inode.
40295         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40296
40297         canonicalize-lgpl: fix glibc bug with trailing slash
40298         * m4/canonicalize-lgpl.m4: Move contents...
40299         * m4/canonicalize.m4: ...here.
40300         (gl_CANONICALIZE_LGPL): Factor realpath check...
40301         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
40302         glibc 2.3.5 bug, fixed 2005-04-27.
40303         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
40304         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
40305         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
40306         * modules/canonicalize-lgpl (Files): Manage file rename.
40307         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40308         * modules/stdlib (Makefile.am): Substitute witness.
40309         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
40310         is needed.
40311         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
40312         replacement is required.
40313         * lib/canonicalize.c (canonicalize_file_name): Likewise.
40314         * doc/glibc-functions/canonicalize_file_name.texi
40315         (canonicalize_file_name): Document this.
40316         * doc/posix-functions/realpath.texi (realpath): Likewise.
40317
40318         canonicalize-lgpl: reject non-directory with trailing slash
40319         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
40320         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
40321         catches failures in glibc 2.3.5.
40322         * tests/test-canonicalize.c (main): Likewise.
40323
40324         canonicalize-lgpl: use native realpath if it works
40325         * lib/canonicalize-lgpl.c (realpath): Guard with
40326         FUNC_REALPATH_WORKS.
40327         * lib/stdlib.in.h (realpath): Make declaration optional based on
40328         HAVE_REALPATH.
40329         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
40330         native realpath works.
40331         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40332         * modules/stdlib (Makefile.am): Substitute witness.
40333
40334         canonicalize, canonicalize-lgpl: use <stdlib.h>
40335         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
40336         (Include): Mention <stdlib.h>.
40337         (configure.ac): Mention functions we provide.
40338         * modules/canonicalize (configure.ac): Likewise.
40339         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
40340         realpath if canonicalize_file_name is missing.
40341         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
40342         * modules/stdlib (Makefile.am): Substitute witnesses.
40343         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
40344         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
40345         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
40346         * NEWS: Document this.
40347         * doc/glibc-functions/canonicalize_file_name.texi
40348         (canonicalize_file_name): Likewise.
40349         * doc/posix-functions/realpath.texi (realpath): Likewise.
40350         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
40351
40352         test-canonicalize: consolidate into single C program
40353         * tests/test-canonicalize.sh: Delete; move setup into...
40354         * tests/test-canonicalize.c (main): ...the program, making it
40355         easier to run in debugger.  Add some tests.
40356         * modules/canonicalize-tests (Files): Remove unused file.
40357         (Depends-on): Add progname.
40358         (configure.ac, Makefile.am): Simplify.
40359
40360         test-canonicalize-lgpl: consolidate into single C program
40361         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
40362         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
40363         easier to run in debugger.  Add some tests.
40364         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
40365         (configure.ac, Makefile.am): Simplify.
40366
40367         canonicalize: avoid resolvepath
40368         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
40369         unnecessary checks.
40370         * lib/canonicalize.c (includes): Simplify.
40371         (canonicalize_file_name): Drop resolvepath implementation.
40372         * modules/canonicalize (Depends-on): Drop filenamecat.
40373
40374         canonicalize: don't lose errno
40375         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
40376         over calls to free.
40377
40378         canonicalize: simplify errno handling
40379         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
40380         assignment.
40381
40382         canonicalize, canonicalize-lgpl: update module dependencies
40383         * modules/canonicalize (Depends-on): Add extensions, lstat,
40384         pathmax, stdlib.
40385         (Files): Drop pathmax.h.
40386         (configure.ac): Adjust macro name.
40387         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
40388         lstat, stdlib, sys_stat.
40389         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
40390         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
40391         extensions.
40392         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
40393         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
40394         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
40395         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
40396         declaration, if available.
40397         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
40398         we can rely on the readlink module.
40399         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
40400         (includes): Use <unistd.h> unconditionally.
40401
40402 2009-09-17  Eric Blake  <ebb9@byu.net>
40403
40404         maint: make Include sections of modules consistent
40405         * modules/alloca: Use only header name; no need to list #include.
40406         * modules/alloca-opt: Likewise.
40407         * modules/arpa_inet: Likewise.
40408         * modules/canon-host: Likewise.
40409         * modules/configmake: Likewise.
40410         * modules/dirent: Likewise.
40411         * modules/eealloc: Likewise.
40412         * modules/environ: Likewise.
40413         * modules/fchdir: Likewise.
40414         * modules/fcntl: Likewise.
40415         * modules/fcntl-h: Likewise.
40416         * modules/gethrxtime: Likewise.
40417         * modules/gettime: Likewise.
40418         * modules/ignore-value: Likewise.
40419         * modules/inet_ntop: Likewise.
40420         * modules/inet_pton: Likewise.
40421         * modules/inttypes: Likewise.
40422         * modules/isnand-nolibm: Likewise.
40423         * modules/isnanf-nolibm: Likewise.
40424         * modules/mbchar: Likewise.
40425         * modules/mbfile: Likewise.
40426         * modules/mbiter: Likewise.
40427         * modules/mbuiter: Likewise.
40428         * modules/netdb: Likewise.
40429         * modules/netinet_in: Likewise.
40430         * modules/nproc: Likewise.
40431         * modules/pagealign_alloc: Likewise.
40432         * modules/poll: Likewise.
40433         * modules/printf-frexp: Likewise.
40434         * modules/pthread: Likewise.
40435         * modules/putenv: Likewise.
40436         * modules/random_r: Likewise.
40437         * modules/relocatable-prog: Likewise.
40438         * modules/search: Likewise.
40439         * modules/select: Likewise.
40440         * modules/selinux-h: Likewise.
40441         * modules/settime: Likewise.
40442         * modules/signal: Likewise.
40443         * modules/size_max: Likewise.
40444         * modules/socklen: Likewise.
40445         * modules/ssize_t: Likewise.
40446         * modules/stdarg: Likewise.
40447         * modules/stdbool: Likewise.
40448         * modules/stddef: Likewise.
40449         * modules/stdint: Likewise.
40450         * modules/stdio: Likewise.
40451         * modules/stdlib: Likewise.
40452         * modules/string: Likewise.
40453         * modules/strings: Likewise.
40454         * modules/sys_file: Likewise.
40455         * modules/sys_ioctl: Likewise.
40456         * modules/sys_select: Likewise.
40457         * modules/sys_socket: Likewise.
40458         * modules/sys_stat: Likewise.
40459         * modules/sys_time: Likewise.
40460         * modules/sys_times: Likewise.
40461         * modules/sys_utsname: Likewise.
40462         * modules/sys_wait: Likewise.
40463         * modules/sysexits: Likewise.
40464         * modules/time: Likewise.
40465         * modules/times: Likewise.
40466         * modules/tmpfile: Likewise.
40467         * modules/trim: Likewise.
40468         * modules/unistd: Likewise.
40469         * modules/wchar: Likewise.
40470         * modules/wctype: Likewise.
40471
40472 2009-09-17  Bruno Haible  <bruno@clisp.org>
40473
40474         Make getdate.y compile on QNX and NetBSD 5 / i386.
40475         * m4/getdate.m4 (gl_GETDATE): Conditionally define
40476         TIME_T_FITS_IN_LONG_INT.
40477         * lib/getdate.y (long_time_t): New type.
40478         (relative_time): Change type of 'seconds' field to long_time_t.
40479         (get_date): Update types of local variables. Check against overflow
40480         during conversion from long_time_t to time_t.
40481         Reported by Matt Kraai <kraai@ftbfs.org>
40482         and Hasso Tepper <hasso@netbsd.org>.
40483
40484 2009-09-17  Bruno Haible  <bruno@clisp.org>
40485
40486         * modules/COPYING: Update copyright years.
40487         * modules/README: Likeiwse.
40488         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
40489         Reported by Ian Beckwith <ianb@erislabs.net>.
40490
40491 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40492
40493         * users.txt: Update references for gnuit package.
40494
40495 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40496
40497         * m4/getdelim.m4: Fix typo in copyright line.
40498
40499 2009-09-17  Bruno Haible  <bruno@clisp.org>
40500
40501         * lib/atoll.c: Use the standard header with GPL copyright.
40502         * lib/argz.in.h: Likewise.
40503         * lib/glob.c: Likewise.
40504         * lib/glob-libc.h: Likewise.
40505         * lib/random_r.c: Likewise.
40506         * lib/siglist.h: Likewise.
40507         * lib/strsignal.c: Likewise.
40508         Reported by Ian Beckwith <ianb@erislabs.net>.
40509
40510 2009-09-17  Eric Blake  <ebb9@byu.net>
40511
40512         rmdir: ensure correct dependency order
40513         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
40514
40515 2009-09-17  Bruno Haible  <bruno@clisp.org>
40516
40517         Disable assertion that fails on NetBSD 5 / i386.
40518         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
40519         Reported by Sam Steingold <sds@gnu.org>
40520         and Hasso Tepper <hasso@netbsd.org>.
40521
40522 2009-09-16  Eric Blake  <ebb9@byu.net>
40523
40524         unlinkdir: port to mingw
40525         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
40526         on which no one can unlink a directory.
40527
40528         stdlib: sort witness names
40529         * modules/stdlib (Makefile.am): Sort replacements.
40530         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40531         * lib/stdlib.in.h: Likewise.
40532
40533         parse-duration-tests: avoid link failure
40534         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
40535         LIBINTL.
40536         Reported by Tom G. Christensen.
40537
40538         openat-tests: ensure unlinkat behaves like rmdir
40539         * tests/test-rmdir.c (main): Factor guts...
40540         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
40541         * modules/rmdir-tests (Files): Ship new file.
40542         * modules/openat-tests: New test.
40543         * tests/test-unlinkat.c: Likewise.
40544
40545         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
40546         * modules/rmdir-errno (Status, Notice): Now obsolete.
40547
40548         rmdir: work around cygwin 1.5.x and mingw bugs
40549         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
40550         * lib/rmdir.c (rmdir): Work around it.
40551         * modules/rmdir (Status, Notice): No longer obsolete.
40552         (Files): Add dos.m4.
40553         (Depends-on): Add unistd.
40554         (configure.ac): Set witnesses.
40555         (License): Relax to LGPLv2+.
40556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
40557         * modules/unistd (Makefile.am): Substitute witnesses.
40558         * lib/unistd.in.h (rmdir): Declare replacement.
40559         * doc/posix-functions/rmdir.texi (rmdir): Document this.
40560         * modules/rmdir-tests: New tests.
40561         * tests/test-rmdir.c: Likewise.
40562
40563 2009-09-15  Eric Blake  <ebb9@byu.net>
40564
40565         fchdir: improve use of replacement functions
40566         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
40567         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
40568         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
40569         REPLACE_CLOSEDIR.
40570         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
40571         * modules/sys_stat (Makefile.am): Substitute correct witness.
40572         * modules/dirent (Makefile.am): Likewise.
40573         * modules/unistd (Makefile.am): Likewise.
40574         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
40575         * lib/unistd.in.h (dup): Likewise.
40576         * lib/sys_stat.in.h (fstat): Likewise.
40577
40578         maint: ignore gnulib-tool temp files
40579         * .gitignore: Ignore files created during gnulib-tool --test.
40580
40581 2009-09-13  Jim Meyering  <meyering@redhat.com>
40582
40583         posixtm: don't reject a time that specify "60" as the number of seconds
40584         * lib/posixtm.c (posixtime): The code to reject invalid dates
40585         would also reject a time specified with the .60 suffix.
40586         But POSIX allows that, in order to accommodate leap seconds.
40587         So don't reject it.
40588         (main): Adjust tests accordingly.
40589         * modules/posixtm (Depends-on): Add stpcpy.
40590
40591 2009-09-11  Jim Meyering  <meyering@redhat.com>
40592
40593         announce-gen: include [$release_type] in emitted Subject:
40594         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
40595         e.g., [stable] in the emitted Subject: line.
40596
40597 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40598
40599         Remove obsolete macros from several modules.
40600         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
40601         obsolete Autoconf macros with their modern counterparts.
40602         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
40603         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
40604         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
40605         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
40606         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
40607         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40608         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40609         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40610         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
40611         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
40612         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40613         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40614         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
40615         * m4/sockets.m4 (gl_SOCKETS): Likewise.
40616         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
40617         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
40618         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40619         * m4/time_r.m4 (gl_TIME_R): Likewise.
40620         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
40621         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
40622         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40623
40624         Fix copyright header in build-aux scripts.
40625         * build-aux/git-version-gen: Fix copyright header to match GPLv3
40626         recommendation.
40627         * build-aux/ncftpput-ftp: Likewise.
40628         * build-aux/update-copyright: Likewise.
40629
40630 2009-09-09  Eric Blake  <ebb9@byu.net>
40631
40632         test-link: allow Linux choice of errno
40633         * tests/test-link.c (main): Relax test for alternate error.
40634
40635         strndup: fix improper m4 caching
40636         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
40637         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
40638         (gl_PREREQ_STRNDUP): Delete.
40639         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
40640         * modules/string (Makefile.am): Substitute it.
40641         * lib/string.in.h (strndup): Modernize prototype.
40642
40643         getcwd: port to mingw
40644         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
40645         different from the POSIX assumptions made throughout the getcwd
40646         module; fortunately, the mingw getcwd does not need replacement.
40647         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
40648         * modules/getcwd-tests: New test.
40649         * tests/test-getcwd.c: Likewise.
40650
40651         link: fix platform bugs
40652         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
40653         * lib/link.c (link): Work around them.  Fix related mingw bug.
40654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
40655         * modules/unistd (Makefile.am): Substitute it.
40656         * lib/unistd.in.h (link): Declare replacement.
40657         * doc/posix-functions/link.texi (link): Document this.
40658         * modules/link (Depends-on): Add strdup-posix, sys_stat.
40659
40660         test-link: consolidate into single C program, test more cases
40661         * tests/test-link.sh: Delete.
40662         * tests/test-link.c: Test more error conditions.  Exposes bugs on
40663         at least Cygwin and Solaris.
40664         * modules/link-tests (Files): Remove unused file.
40665         (Depends-on): Add errno, sys_stat.
40666         (Makefile.am): Simplify.
40667
40668 2009-09-08  Bruno Haible  <bruno@clisp.org>
40669
40670         Work around towlower, towupper bug on mingw.
40671         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
40672         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
40673         * doc/posix-functions/towlower.texi: Mention the mingw bug.
40674         * doc/posix-functions/towupper.texi: Likewise.
40675         Reported by Eric Blake.
40676
40677 2009-09-08  Jim Meyering  <meyering@redhat.com>
40678
40679         build: don't try to run autoheader if we don't use it
40680         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
40681         is not used in configure.ac.
40682
40683 2009-09-08  Eric Blake  <ebb9@byu.net>
40684
40685         euidaccess: fix compilation error
40686         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
40687
40688         rawmemchr: relax license
40689         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
40690         okay.
40691         Reported by Jim Meyering.
40692
40693         mkfifoat: new module
40694         * modules/mkfifoat: New file.
40695         * lib/mkfifoat.c: Likewise.
40696         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
40697         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40698         * modules/sys_stat (Makefile.am): Use them.
40699         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
40700         * MODULES.html.sh (File system functions): Mention module.
40701         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40702         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40703         * modules/mkfifoat-tests: New test.
40704         * tests/test-mkfifoat.c: Likewise.
40705
40706         strchrnul: relax license
40707         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
40708         okay.
40709         Reported by Jim Meyering.
40710
40711 2009-09-08  Eric Blake  <ebb9@byu.net>
40712
40713         fstatat: fix compilation on Solaris
40714         * lib/fstatat.c (includes): Add fcntl.h.
40715         Reported by Pádraig Brady.
40716
40717 2009-09-07  Eric Blake  <ebb9@byu.net>
40718
40719         rename: modernize replacement
40720         * modules/rename (Depends-on): Add stdio.
40721         (configure.ac): Declare witness.
40722         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
40723         stdio take care of replacement.
40724         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40725         * modules/stdio (Makefile.am): Substitute them.
40726         * lib/stdio.in.h (rename): Declare replacement.
40727         * lib/rename.c (includes): Allow cross-compilation to non-windows
40728         machines.
40729         * doc/posix-functions/rename.texi (rename): Improve
40730         documentation.
40731
40732         stdio: sort witness names
40733         * modules/stdio (Makefile.am): Sort replacements.
40734         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40735         * lib/stdio.in.h: Likewise.
40736
40737         getcwd: minor cleanups
40738         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
40739         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
40740
40741         openat: provide more convenience names
40742         * modules/faccessat (configure.ac): Add C witness.
40743         * lib/unistd.in.h (readlinkat): Fix typo.
40744         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
40745         convenience wrappers.
40746         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
40747         wrappers in syntax checks.
40748
40749 2009-09-06  Eric Blake  <ebb9@byu.net>
40750
40751         doc: fix comments in recent patches
40752         * lib/faccessat.c: Mention correct function.
40753         * lib/fchmodat.c: Likewise.
40754         * lib/fchownat.c: Likewise.
40755         * lib/symlinkat.c: Likewise.
40756         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
40757         constants.
40758
40759         faccessat, symlinkat: continue cleanup of previous patch
40760         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
40761         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40762         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
40763         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
40764         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
40765         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
40766         set.
40767
40768 2009-09-06  Bruno Haible  <bruno@clisp.org>
40769
40770         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
40771         (fstatat): Declare if GNULIB_FSTATAT is set.
40772         (mkdirat): Declare if GNULIB_MKDIRAT is set.
40773         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
40774         (unlinkat): Declare if GNULIB_UNLINKAT is set.
40775         * modules/fcntl-h (Files): Remove m4/openat.m4.
40776         * modules/sys_stat (Files): Remove m4/openat.m4.
40777         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
40778         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
40779         * modules/unistd (Files): Remove m4/openat.m4.
40780         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
40781         GNULIB_OPENAT.
40782         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
40783         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
40784         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
40785         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
40786         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
40787         gl_OPENAT_DEFAULTS.
40788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
40789         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
40790         Don't require gl_OPENAT_DEFAULTS.
40791         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
40792         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
40793         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
40794         (gl_OPENAT_DEFAULTS): Remove macro.
40795
40796 2009-09-06  Bruno Haible  <bruno@clisp.org>
40797
40798         * modules/openat (configure.ac): Remove unneeded witness.
40799
40800 2009-09-06  Bruno Haible  <bruno@clisp.org>
40801
40802         Set errno to ENOSYS when a function is entirely unsupported.
40803         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
40804         EOPNOTSUPP.
40805         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40806         * modules/chown (Depends-on): Remove errno.
40807
40808 2009-09-06  Bruno Haible  <bruno@clisp.org>
40809
40810         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
40811
40812 2009-09-06  Bruno Haible  <bruno@clisp.org>
40813
40814         * lib/sys_stat.in.h: Fix preprocessor command indentation.
40815
40816 2009-09-06  Ben Pfaff  <blp@gnu.org>
40817             Bruno Haible  <bruno@clisp.org>
40818
40819         Work around a glibc bug in strtok_r.
40820         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
40821         Undefine if UNDEFINE_STRTOK_R is set.
40822         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
40823         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40824         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
40825         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
40826         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
40827         UNDEFINE_STRTOK_R.
40828         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
40829
40830 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
40831
40832         exclude: minor fix
40833         * lib/exclude.c: Include wctype.h
40834
40835 2009-09-06  Akim Demaille  <demaille@gostai.com>
40836
40837         bootstrap: improve error message
40838         * build-aux/bootstrap (find_tool): Upon failure, report the list
40839         of candidates.
40840         Honor the initial value of the envvar.
40841
40842 2009-09-05  Eric Blake  <ebb9@byu.net>
40843
40844         symlinkat: new module
40845         * modules/symlinkat: New file.
40846         * lib/symlinkat.c: Likewise.
40847         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
40848         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40849         * modules/unistd (Makefile.am): Use them.
40850         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
40851         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
40852         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
40853         * MODULES.html.sh (File system functions): Mention module.
40854         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40855         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40856         * modules/symlinkat-tests: New test.
40857         * tests/test-symlinkat.c: Likewise.
40858
40859         test-openat-safer: add more checks
40860         * tests/test-openat-safer.c (main): Check more code paths.
40861
40862 2009-09-05  Jim Meyering  <meyering@redhat.com>
40863
40864         syntax-check: detect unnecessary inclusion of openat.h
40865         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
40866
40867 2009-09-05  Bruno Haible  <bruno@clisp.org>
40868
40869         Support towlower, towupper.
40870         * doc/posix-functions/towlower.texi: Mention module wctype.
40871         * doc/posix-functions/towupper.texi: Likewise.
40872         * lib/wctype.in.h (towlower, towupper): New functions.
40873         * tests/test-wctype.c: Include stdio.h, stdlib.h.
40874         (ASSERT): New macro.
40875         (e): New variable.
40876         (main): Test also towlower, towupper. Test WEOF argument.
40877         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40878
40879 2009-09-05  Bruno Haible  <bruno@clisp.org>
40880
40881         Fix conversion behaviour when the input is invalid.
40882         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
40883         mark occurring in first pass of indirect conversion.
40884         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
40885         input.
40886         Found by clang's static analyzer.
40887
40888 2009-09-05  Bruno Haible  <bruno@clisp.org>
40889
40890         * tests/test-striconveh.c (main): Test indirect conversion on platforms
40891         where direct conversion is possible.
40892
40893 2009-09-04  Eric Blake  <ebb9@byu.net>
40894
40895         openat: fail with ENOENT on empty name
40896         * lib/openat-proc.c (openat_proc_name): Special-case the empty
40897         buffer.
40898
40899         link-follow: fix logic bug in prior patch
40900         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
40901         reversed sense of yes and no in prior patch.  Avoid confusing
40902         compilation failure with desired semantics.
40903
40904         link-follow: accomodate mingw and cross-compilation
40905         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
40906         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
40907         cross-compilation results to -1, to make linkat easier to
40908         implement when cross-compiling.  Trivially support mingw.
40909         * modules/link-follow (configure.ac): Call new name.
40910         * NEWS: Mention this.
40911
40912 2009-09-03  Eric Blake  <ebb9@byu.net>
40913
40914         faccessat: compile replacement
40915         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
40916         needed.
40917
40918         fts: fix compilation error
40919         * lib/fts.c (includes): Re-add "openat.h", for
40920         openat_needs_fchdir.
40921
40922         faccessat: new module
40923         * modules/faccessat: New file.
40924         * lib/faccessat.c: Likewise.
40925         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40926         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40927         * modules/unistd (Makefile.am): Use it.
40928         * lib/unistd.in.h (faccessat): Declare it.
40929         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
40930         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
40931         * MODULES.html.sh (File system functions): Mention it.
40932         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
40933         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40934
40935         euidaccess: prefer POSIX over non-standard implementation
40936         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
40937         * lib/euidaccess.c (euidaccess): Use it if available.
40938
40939         openat: make template easier to use
40940         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
40941         AT_FUNC_F2 to be undefined.
40942         (VALIDATE_FLAG): New macro; use it to reject bad flags.
40943         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
40944         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
40945         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
40946         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
40947         Likewise.
40948         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
40949         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
40950         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
40951         Likewise.
40952
40953         openat: declare in POSIX headers
40954         * NEWS: Mention this.
40955         * modules/openat (configure.ac): Declare witnesses.
40956         (Depends-on): Add fcntl-h, sys_stat, unistd.
40957         (Include): Mention correct headers.
40958         * modules/fcntl-h (Depends-on): Add link-warning.
40959         (Files): Add openat.m4.
40960         (Makefile.am): Substitute witnesses.
40961         * modules/sys_stat (Files, Makefile.am): Likewise.
40962         * modules/unistd (Files, Makefile.am): Likewise.
40963         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
40964         (gl_OPENAT_DEFAULTS): New macro.
40965         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
40966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
40967         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
40968         (SYS_STAT_H): Remove unused variable.
40969         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
40970         * lib/fcntl--.h (includes): Remove unneeded header.
40971         * lib/openat-safer.c (includes): Likewise.
40972         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
40973         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
40974         appropriate headers.
40975         (__OPENAT_PREFIX): Delete.
40976         * lib/fcntl.in.h (openat): Provide declaration.
40977         (AT_FDCWD): Fix Solaris bug.
40978         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
40979         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
40980         * lib/fchmodat.c (includes):  Adjust to find declaration.
40981         * lib/fchownat.c (includes): Likewise.
40982         * lib/mkdirat.c (includes): Likewise.
40983         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
40984         still visible.
40985
40986 2009-09-02  Eric Blake  <ebb9@byu.net>
40987
40988         errno: use consistently
40989         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
40990         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
40991         * lib/canonicalize.c (ELOOP): Likewise.
40992         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
40993         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
40994         * lib/lchown.c (EOPNOTSUPP): Likewise.
40995         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
40996         * lib/savewd.c (ESTALE): Likewise.
40997         * lib/settime.c (ENOSYS): Likewise.
40998         * lib/utimens.c (ENOSYS): Likewise.
40999         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
41000         * lib/chdir-safer.c (ELOOP): Likewise.
41001         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
41002         * modules/c-stack (Depends-on): Add errno.
41003         * modules/canonicalize (Depends-on): Likewise.
41004         * modules/chdir-safer (Depends-on): Likewise.
41005         * modules/fdopendir (Depends-on): Likewise.
41006         * modules/inet_ntop (Depends-on): Likewise.
41007         * modules/inet_pton (Depends-on): Likewise.
41008         * modules/lchown (Depends-on): Likewise.
41009         * modules/openat (Depends-on): Likewise.
41010         * modules/savewd (Depends-on): Likewise.
41011         * modules/settime (Depends-on): Likewise.
41012         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
41013
41014         fts: avoid leaking fds
41015         * modules/fts (Depends-on): Add cloexec.
41016         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
41017         flag.
41018
41019         fts: make directory fds more robust
41020         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
41021         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
41022
41023         backupfile, chdir-long, fts, savedir: make safer
41024         * lib/backupfile.c (includes): Use "dirent--.h", since
41025         numbered_backup can write to stderr during readdir.
41026         * lib/savedir.c (includes): Likewise.
41027         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
41028         emulation can write to stderr on failure.
41029         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
41030         * lib/getcwd.c: Document why opendir_safer is unused.
41031         * lib/glob.c: Likewise.
41032         * lib/scandir.c: Likewise.
41033         * lib/openat-proc.c: Likewise, for open_safer.
41034         * modules/backupfile (Depends-on): Add dirent-safer.
41035         * modules/savedir (Depends-on): Likewise.
41036         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
41037         * modules/chdir-long (Depends-on): Add openat-safer.
41038
41039         openat-safer: new module
41040         * modules/openat-safer: New file.
41041         * lib/openat-safer.c: Likewise.
41042         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
41043         * lib/fcntl-safer.h (openat_safer): Declare.
41044         * lib/fcntl--.h (openat): Override.
41045         * MODULES.html.sh (File descriptor based I/O): Mention it.
41046         * lib/openat.h: Add double-inclusion guards.
41047         * lib/openat.c (includes): Only include "fcntl-safer.h", not
41048         "fcntl--.h", so we can implement openat.
41049         * modules/openat-safer-tests: New test.
41050         * tests/test-openat-safer.c: New file.
41051
41052         dirent-safer: new module
41053         * modules/dirent-safer: New file.
41054         * lib/dirent--.h: Likewise.
41055         * lib/dirent-safer.h: Likewise.
41056         * lib/opendir-safer.c: Likewise.
41057         * m4/dirent-safer.m4: Likewise.
41058         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
41059         * modules/dirent-safer-tests: New test.
41060         * tests/test-dirent-safer.c: New file.
41061         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
41062
41063         fdopendir: optimize on mingw
41064         * lib/unistd.in.h (_gl_directory_name): New prototype.
41065         * lib/fchdir.c (_gl_directory_name): Implement it.
41066         (fchdir): Use it to simplify implementation.
41067         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
41068         fchdir, when available, to avoid calling [f]chdir().
41069
41070         fdopendir: split into its own module
41071         * lib/openat.c (fdopendir): Move...
41072         * lib/fdopendir.c: ...into new file.
41073         * modules/fdopendir: New module.
41074         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
41075         * modules/openat (Depends-on): Add fdopendir.
41076         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
41077         fdopendir here.
41078         * modules/savedir (Depends-on): Only need fdopendir, not full
41079         openat.
41080         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
41081         * lib/openat.h (fdopendir): Drop prototype.
41082         * lib/dirent.in.h (fdopendir): Provide prototype.
41083         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
41084         * modules/dirent (Makefile.am): Substitute them.
41085         * MODULES.html.sh (File system functions): Mention it.
41086         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
41087         * modules/fdopendir-tests: New file.
41088         * tests/test-fdopendir.c: Likewise.
41089
41090         fchdir: use more consistent macro convention
41091         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
41092         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
41093         REPLACE_FCHDIR, rather than relying on config.h macros.
41094         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
41095         inside a single make-time REPLACE_FCHDIR block, rather than using
41096         the config.h FCHDIR_REPLACEMENT.
41097         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
41098         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
41099         Manage fstat replacement.
41100         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
41101         REPLACE_FCHDIR.
41102         * modules/sys_stat (Files): Add m4/unistd_h.m4.
41103         (Makefile.am): Substitute REPLACE_FCHDIR.
41104         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
41105         FCHDIR_REPLACEMENT.
41106         * lib/dup-safer.c (dup_safer): Likewise.
41107         * lib/dup2.c (rpl_dup2): Likewise.
41108         * lib/dup3.c (rpl_dup3): Likewise.
41109         * lib/open.c (rpl_open): Likewise.
41110
41111         fchdir: simplify error handling, and support dup3
41112         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
41113         stdbool, malloc-posix, realloc-posix.
41114         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
41115         (ensure_dirs_slot): Return false on allocation failure.
41116         (rpl_dup2): Delete.
41117         (_gl_register_dup): New function.
41118         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
41119         (_gl_register_fd): Close fd on allocation failure.
41120         * lib/fcntl.in.h (_gl_register_fd): Update signature.
41121         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
41122         prototype.
41123         (rpl_dup2_fchdir): Delete prototype.
41124         * lib/open.c (open): Update caller.
41125         * lib/dup2.c (dup2): Track fchdir metadata.
41126         * lib/dup3.c (dup3): Likewise.
41127         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
41128         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
41129
41130 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41131
41132         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
41133         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
41134         don't pass arguments to AC_OUTPUT.
41135
41136 2009-09-02  Bruno Haible  <bruno@clisp.org>
41137
41138         * modules/mkdtemp (License): Relicense under LGPLv2+.
41139         Reported by Paolo Bonzini.
41140
41141 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41142
41143         Replace uses of obsolete autoconf macros in Jim's modules.
41144         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
41145         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
41146         can evoke a warning from autoconf when run with -Wobsolete
41147         enabled.  They were declared obsolete for good reasons (see
41148         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
41149         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
41150         should not continue using the deprecated macros.
41151         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
41152         obsolete Autoconf macros with modern counterparts.
41153         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
41154         * m4/dos.m4 (gl_AC_DOS): Likewise.
41155         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
41156         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
41157         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
41158         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
41159         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
41160         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
41161         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
41162         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
41163         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
41164         Likewise.
41165         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
41166         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
41167         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
41168         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
41169         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41170         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
41171
41172 2009-09-01  Eric Blake  <ebb9@byu.net>
41173
41174         fchdir: fix off-by-one bug in previous patch
41175         * lib/fchdir.c (rpl_fstat): Use correct bounds.
41176         (_gl_unregister_fd): Delete useless if.
41177
41178 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
41179
41180         maint.mk: sort the list of syntax-check rules
41181         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
41182         easier to get a sense of progress when the rules are run sequentially
41183         and take a long time.
41184
41185 2009-09-01  Simon Josefsson  <simon@josefsson.org>
41186
41187         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
41188         * modules/netinet_in: Likewise.
41189         * modules/sys_file: Likewise.
41190         * modules/sys_ioctl: Likewise.
41191         * modules/sys_select: Likewise.
41192         * modules/sys_socket: Likewise.
41193         * modules/sys_stat: Likewise.
41194         * modules/sys_time: Likewise.
41195         * modules/sys_times: Likewise.
41196         * modules/sys_utsname: Likewise.
41197         * modules/sys_wait: Likewise.
41198
41199 2009-09-01  Jim Meyering  <meyering@redhat.com>
41200
41201         fts: help ensure that return values are not ignored
41202         * lib/fts_.h (__GNUC_PREREQ): Define.
41203         (__attribute_warn_unused_result__): Define.
41204         (fts_children, fts_close, fts_open, fts_read): Declare with
41205         __attribute_warn_unused_result__.
41206
41207         fts: fts_close now fails also when closing a dir file descriptor fails
41208         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
41209         and propagate to caller, along with errno.
41210
41211         announce-gen: correct formatting in --help output
41212         * build-aux/announce-gen (usage): Move the one-line description in
41213         --help output "up", to where it belongs, just after Usage:.
41214
41215 2009-08-31  Eric Blake  <ebb9@byu.net>
41216
41217         fchdir: port to mingw
41218         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
41219         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
41220         opened, then use a substitute.
41221         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
41222         replacement.
41223         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
41224         (_gl_register_fd): No need to check stat if open already filters
41225         all directories.
41226         (fchdir): Fix error condition to match POSIX.
41227         * modules/fchdir (Depends-on): Add sys_stat.
41228         * doc/posix-functions/open.texi (open): Document the limitation.
41229         * modules/fchdir-tests: New file.
41230         * tests/test-fchdir.c: Likewise.
41231
41232         canonicalize: allow cross-testing from cygwin to mingw
41233         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
41234         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
41235         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
41236         Likewise.
41237         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
41238         target does not support symlinks.
41239         * tests/test-canonicalize-lgpl.sh: Likewise.
41240
41241         chown: avoid compilation warning on mingw
41242         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
41243         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
41244         mingw.
41245         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
41246         * modules/chown (Depends-on): Add errno.
41247
41248 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
41249
41250         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
41251         command.
41252
41253 2009-08-31  Jim Meyering  <meyering@redhat.com>
41254
41255         canonicalize: remove useless initialization
41256         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
41257         initialization of local, "end".
41258
41259 2009-08-30  Bruno Haible  <bruno@clisp.org>
41260
41261         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
41262         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
41263         ENOSYS.
41264
41265 2009-08-30  Bruno Haible  <bruno@clisp.org>
41266
41267         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41268         /usr/xpg4/bin/tr when it exists.
41269         * tests/test-pipe-filter-gi1.sh: Likewise.
41270
41271 2009-08-30  Bruno Haible  <bruno@clisp.org>
41272
41273         Work around deficient /usr/bin/id program on Solaris.
41274         * tests/test-file-has-acl.sh (ID): New variable.
41275         * tests/test-set-mode-acl.sh (ID): Likewise.
41276         * tests/test-copy-acl.sh (ID): Likewise.
41277         * tests/test-copy-file.sh (ID): Likewise.
41278
41279 2009-08-30  Bruno Haible  <bruno@clisp.org>
41280
41281         New module 'xstriconveh'.
41282         * lib/xstriconveh.h: New file.
41283         * lib/xstriconveh.c: New file.
41284         * modules/xstriconveh: New file.
41285
41286 2009-08-30  Bruno Haible  <bruno@clisp.org>
41287
41288         Make it easier to use mem_cd_iconveh.
41289         * lib/striconveh.h (iconveh_t): New type.
41290         (iconveh_open, iconveh_close): New declarations.
41291         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41292         with a single 'const iconveh_t *' argument.
41293         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
41294         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41295         with a single 'const iconveh_t *' argument.
41296         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
41297         * tests/test-striconveh.c (main): Update.
41298         * NEWS: Mention the change.
41299
41300 2009-08-30  Bruno Haible  <bruno@clisp.org>
41301
41302         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
41303         problem.
41304
41305 2009-08-30  Bruno Haible  <bruno@clisp.org>
41306
41307         Work around iconv_open problem on Solaris.
41308         * lib/iconv_open-solaris.gperf: New file.
41309         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
41310         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
41311         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
41312         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
41313         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
41314         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
41315
41316 2009-08-29  Jim Meyering  <meyering@redhat.com>
41317
41318         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
41319         * top/maint.mk (cvs-check): Remove target; it was just an alias
41320         to the better-named vc-diff-check.
41321         (maintainer-distcheck): Remove rule.  It was used only from
41322         the (alpha/beta/major) target, and all of its commands but one
41323         were coreutils-specific.
41324         (vc-dist): Remove rule.
41325         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
41326         Run vc-diff-check, not vc-dist.
41327         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
41328
41329 2009-08-27  Bruno Haible  <bruno@clisp.org>
41330
41331         * tests/test-bitrotate.c (main): Remove test that uses a shift count
41332         of 0.
41333
41334 2009-08-27  Bruno Haible  <bruno@clisp.org>
41335
41336         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
41337         compilers.
41338         * doc/func.texi: Document the SunPRO C bug.
41339
41340 2009-08-27  Bruno Haible  <bruno@clisp.org>
41341
41342         Fix link error on Solaris.
41343         * tests/test-parse-duration.c (xstrdup): Remove function.
41344
41345 2009-08-26  Pádraig Brady  <P@draigbrady.com>
41346
41347         ignore-value: handle pointer types, too
41348         * lib/ignore-value.h (__attribute__): Remove definition.
41349         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
41350         of a more concise and more-often effective "(void) i" statement.
41351         (ignore_ptr): New function to suppress warnings from functions that
41352         return pointers, and to make it explicit that one function doesn't
41353         handle all cases.
41354
41355 2009-08-25  Bruno Haible  <bruno@clisp.org>
41356
41357         dup2: work around a Linux bug.
41358         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
41359         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
41360         * doc/posix-functions/dup2.texi: Mention the Linux bug.
41361         Reported by Simon Josefsson.
41362
41363 2009-08-25  Jim Meyering  <meyering@redhat.com>
41364
41365         libguestfs uses gnulib
41366         * users.txt: Add libguestfs.
41367
41368 2009-08-24  Eric Blake  <ebb9@byu.net>
41369
41370         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
41371         * lib/pipe2.c (includes): Add binary-io.h.
41372         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
41373
41374 2009-08-24  Bruno Haible  <bruno@clisp.org>
41375
41376         Tolerate declared but missing accept4 syscall.
41377         * lib/accept4.c (accept4): Invoke original accept4 function first, if
41378         available.
41379         * lib/sys_socket.in.h (accept4): If the function is already present,
41380         override it.
41381         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
41382         * modules/accept4 (Makefile.am): Compile accept4.c always.
41383         Reported by Paolo Bonzini and Eric Blake.
41384
41385 2009-08-23  Bruno Haible  <bruno@clisp.org>
41386
41387         New module 'accept4'.
41388         * lib/sys_socket.in.h (accept4): New declaration.
41389         * lib/accept4.c: New file.
41390         * m4/accept4.m4: New file.
41391         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41392         GNULIB_ACCEPT4, HAVE_ACCEPT4.
41393         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
41394         HAVE_ACCEPT4.
41395         * modules/accept4: New file.
41396         * doc/glibc-functions/accept4.texi: Mention the new module.
41397
41398 2009-08-24  Jim Meyering  <meyering@redhat.com>
41399
41400         progname: also set global program_invocation_name, when possible
41401         Before this change, a libtool-enabled program that calls glibc's
41402         error function would report the program name as
41403         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
41404         * modules/progname (configure.ac): Check for a declaration of
41405         program_invocation_name.
41406         * lib/progname.c:  Include <errno.h>.
41407         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
41408         Set program_invocation_name.
41409
41410 2009-08-23  Bruno Haible  <bruno@clisp.org>
41411
41412         * lib/dup3.c: Include <string.h>.
41413
41414 2009-08-23  Bruno Haible  <bruno@clisp.org>
41415
41416         * lib/dup3.c (dup3): Test only once whether the system actually exists.
41417         * lib/pipe2.c (pipe2): Likewise.
41418         Suggested by Eric Blake.
41419
41420 2009-08-23  Bruno Haible  <bruno@clisp.org>
41421
41422         Tolerate declared but missing dup3 syscall.
41423         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
41424         * lib/unistd.in.h (dup3): If the function is already present,
41425         override it.
41426         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
41427         * modules/dup3 (Makefile.am): Compile dup3.c always.
41428         Reported by Paolo Bonzini.
41429
41430 2009-08-23  Bruno Haible  <bruno@clisp.org>
41431
41432         Tolerate declared but missing pipe2 syscall.
41433         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
41434         available.
41435         * lib/unistd.in.h (pipe2): If the function is already present,
41436         override it.
41437         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
41438         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
41439         Reported by Paolo Bonzini.
41440
41441 2009-08-23  Bruno Haible  <bruno@clisp.org>
41442
41443         * lib/pipe2.c (pipe2): Move #ifs inside function.
41444
41445 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41446
41447         quotearg: document limitations of quote_these_too
41448         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
41449         those limitations are created.
41450         * lib/quotearg.h (set_char_quoting): Document that digits and
41451         letters that are special after backslash are not permitted.
41452         (quotearg_char): Cross-reference set_char_quoting documentation.
41453
41454 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
41455
41456         quotearg: implement custom_quoting_style
41457         * lib/quotearg.c: (struct quoting_options): Add left_quote and
41458         right_quote fields.
41459         (set_custom_quoting): New public function.
41460         (quotearg_buffer_restyled): Add left_quote and right_quote
41461         arguments, handle them very much like locale quoting, and update
41462         all uses.
41463         (quotearg_n_custom): New public function.
41464         (quotearg_n_custom_mem): New public function.
41465         (quotearg_custom): New public function.
41466         (quotearg_custom_mem): New public function.
41467         * lib/quotearg.h: Prototype and document new public functions.
41468         (enum quoting_style): For escape_quoting_style and
41469         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
41470         ignored even though they're otherwise like c_quoting_style.
41471         Add custom_quoting_style member and document with comparison to
41472         clocale_quoting_style.
41473         * tests/test-quotearg.c (custom_quotes): New array.
41474         (custom_results): New array.
41475         (main): Extend to test custom quoting.
41476
41477 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41478
41479         quotearg: fix right quote escaping when it's in quote_these_too
41480         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
41481         quote, be sure to prepend only one backslash.
41482         * tests/test-quotearg.c (use_quote_double_quotes): New function.
41483         (main): Test it.
41484
41485 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41486
41487         quotearg-tests: test escaping of embedded locale quotes
41488         * tests/test-quotearg.c (struct result_strings): Add member for
41489         new input.
41490         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
41491         (inputs): Add new input.
41492         (results_g): Add expected results.
41493         (flag_results): Likewise.
41494         (locale_results): Likewise.
41495         (compare_strings): Check those.
41496
41497 2009-08-23  Bruno Haible  <bruno@clisp.org>
41498
41499         Tests for module 'dup3'.
41500         * modules/dup3-tests: New file.
41501         * tests/test-dup3.c: New file.
41502
41503         New module 'dup3'.
41504         * lib/unistd.in.h (dup3): New declaration.
41505         * lib/dup3.c: New file.
41506         * m4/dup3.m4: New file.
41507         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
41508         HAVE_DUP3.
41509         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
41510         * modules/dup3: New file.
41511         * doc/glibc-functions/dup3.texi: Mention the new module.
41512
41513 2009-08-23  Bruno Haible  <bruno@clisp.org>
41514
41515         Tweak the dup2 test.
41516         * tests/test-dup2.c (main): Create the test file empty. Verify that an
41517         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
41518         the test file is still empty. Fix argument order of lseek.
41519
41520 2009-08-23  Bruno Haible  <bruno@clisp.org>
41521
41522         Avoid test link errors when the modules getopt-gnu, gettext are used.
41523         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
41524         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41525
41526 2009-08-23  Bruno Haible  <bruno@clisp.org>
41527
41528         Fix getdtablesize() on mingw.
41529         * lib/getdtablesize.c (getdtablesize): Implement differently.
41530         * lib/unistd.in.h (getdtablesize): Improve comment.
41531
41532 2009-08-23  Bruno Haible  <bruno@clisp.org>
41533
41534         New module 'mkostemp'.
41535         Based on Ulrich Drepper's 2007-08-10 change in glibc.
41536         * lib/stdlib.in.h (mksotemp): New declaration.
41537         * lib/mkostemp.c: New file, from glibc with modifications.
41538         * lib/tempname.h (GT_FILE): Remove outdated comment.
41539         (gen_tempname): Add flags argument.
41540         * lib/tempname.c (__GT_BIGFILE): Remove macro.
41541         (__GT_FILE): Map to 1.
41542         (small_open, large_open): Remove macros.
41543         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
41544         * lib/mkstemp.c (mkstemp): Update.
41545         * lib/mkdtemp.c (mkdtemp): Likewise.
41546         * m4/mkostemp.m4: New file.
41547         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
41548         HAVE_MKOSTEMP.
41549         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
41550         HAVE_MKOSTEMP.
41551         * modules/mkostemp: New file, based on modules/mkstemp.
41552         * doc/glibc-functions/mkostemp.texi: Mention the new module.
41553         * NEWS: Mention the change.
41554
41555 2009-08-23  Bruno Haible  <bruno@clisp.org>
41556
41557         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
41558         Reported by Eric Blake.
41559
41560 2009-08-23  Bruno Haible  <bruno@clisp.org>
41561
41562         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
41563         Reported by Eric Blake.
41564
41565 2009-08-23  Bruno Haible  <bruno@clisp.org>
41566
41567         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
41568         * modules/pipe2 (Depends-on): Likewise.
41569
41570 2009-08-23  Eric Blake  <ebb9@byu.net>
41571
41572         fcntl-h: add O_TTY_INIT support
41573         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
41574         * tests/test-fcntl-h.c (o): Test it.
41575         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41576
41577         fcntl-h: rename from fcntl, in preparation for fcntl(2)
41578         * modules/fcntl: Move <fcntl.h> header replacement...
41579         * modules/fcntl-h: ...to new name, so as not to collide with
41580         like-named function.
41581         * tests/test-fcntl.c: Rename...
41582         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
41583         * modules/fcntl-tests: Rename...
41584         * modules/fcntl-h-tests: ...to this.  Update test file name.
41585         * modules/chdir-long (Depends-on): Update clients.
41586         * modules/chdir-safer (Depends-on): Likewise.
41587         * modules/fcntl-safer (Depends-on): Likewise.
41588         * modules/fts (Depends-on): Likewise.
41589         * modules/mkancesdirs (Depends-on): Likewise.
41590         * modules/mkdir-p (Depends-on): Likewise.
41591         * modules/open (Depends-on): Likewise.
41592         * modules/savewd (Depends-on): Likewise.
41593         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
41594         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41595
41596 2009-08-22  Bruno Haible  <bruno@clisp.org>
41597
41598         * modules/binary-io (License): Relicense under LGPL.
41599         * modules/pipe2 (License): Likewise.
41600
41601 2009-08-22  Bruno Haible  <bruno@clisp.org>
41602
41603         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
41604         return value.
41605         * lib/pipe-filter-gi.c (filter_init): Likewise.
41606         Reported by Eric Blake.
41607
41608 2009-08-22  Bruno Haible  <bruno@clisp.org>
41609
41610         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
41611         * modules/pipe (Depends-on): Add pipe2.
41612
41613 2009-08-22  Bruno Haible  <bruno@clisp.org>
41614
41615         Tests for module 'pipe2'.
41616         * modules/pipe2-tests: New file.
41617         * tests/test-pipe2.c: New file.
41618
41619         New module 'pipe2'.
41620         * lib/unistd.in.h (pipe2): New declaration.
41621         * lib/pipe2.c: New file.
41622         * m4/pipe2.m4: New file.
41623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
41624         HAVE_PIPE2.
41625         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
41626         * modules/pipe2: New file.
41627         * doc/glibc-functions/pipe2.texi: Mention the new module.
41628
41629 2009-08-22  Bruno Haible  <bruno@clisp.org>
41630
41631         Reference some new glibc functions.
41632         * doc/glibc-functions/accept4.texi: New file.
41633         * doc/glibc-functions/dup3.texi: New file.
41634         * doc/glibc-functions/mkostemp.texi: New file.
41635         * doc/glibc-functions/pipe2.texi: New file.
41636         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
41637         (Glibc sys/socket.h): Refer to accept4.
41638         (Glibc unistd.h): Refer to dup3, pipe2.
41639         Reported by Eric Blake.
41640
41641 2009-08-22  Jim Meyering  <meyering@redhat.com>
41642             Bruno Haible  <bruno@clisp.org>
41643
41644         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
41645         This makes it so packages using automake-1.11's silent-rules option
41646         can print e.g., a single "GEN    configmake.h" line, rather than
41647         the 30+ statements that perform the job.  If you want to see the
41648         actual commands, you can still run "make V=1".
41649         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
41650         so that make output is abbreviated when those variables are defined
41651         appropriately.
41652         * modules/argz: Likewise.
41653         * modules/arpa_inet: Likewise.
41654         * modules/byteswap: Likewise.
41655         * modules/configmake: Likewise.
41656         * modules/dirent: Likewise.
41657         * modules/errno: Likewise.
41658         * modules/fcntl: Likewise.
41659         * modules/float: Likewise.
41660         * modules/fnmatch: Likewise.
41661         * modules/getopt-posix: Likewise.
41662         * modules/glob: Likewise.
41663         * modules/iconv_open: Likewise.
41664         * modules/inttypes: Likewise.
41665         * modules/localcharset: Likewise.
41666         * modules/locale: Likewise.
41667         * modules/math: Likewise.
41668         * modules/netdb: Likewise.
41669         * modules/netinet_in: Likewise.
41670         * modules/poll: Likewise.
41671         * modules/posix_spawnp-tests: Likewise.
41672         * modules/sched: Likewise.
41673         * modules/search: Likewise.
41674         * modules/selinux-h: Likewise.
41675         * modules/signal: Likewise.
41676         * modules/spawn: Likewise.
41677         * modules/stdarg: Likewise.
41678         * modules/stdbool: Likewise.
41679         * modules/stddef: Likewise.
41680         * modules/stdint: Likewise.
41681         * modules/stdio: Likewise.
41682         * modules/stdlib: Likewise.
41683         * modules/string: Likewise.
41684         * modules/strings: Likewise.
41685         * modules/sys_file: Likewise.
41686         * modules/sys_ioctl: Likewise.
41687         * modules/sys_select: Likewise.
41688         * modules/sys_socket: Likewise.
41689         * modules/sys_stat: Likewise.
41690         * modules/sys_time: Likewise.
41691         * modules/sys_times: Likewise.
41692         * modules/sys_utsname: Likewise.
41693         * modules/sys_wait: Likewise.
41694         * modules/sysexits: Likewise.
41695         * modules/time: Likewise.
41696         * modules/unistd: Likewise.
41697         * modules/wchar: Likewise.
41698         * modules/wctype: Likewise.
41699
41700 2009-08-22  Jim Meyering  <meyering@redhat.com>
41701
41702         announce-gen: detect write failure
41703         * build-aux/announce-gen: Add Coda at end.
41704         Remove equivalent-but-more-verbose block at top.
41705
41706 2009-08-19  Akim Demaille  <demaille@gostai.com>
41707
41708         bootstrap: --help to stdout.
41709         * bootstrap (usage): Don't send --help to stderr.
41710         Use a here doc instead of a long string.
41711
41712 2009-08-21  Eric Blake  <ebb9@byu.net>
41713
41714         test-popen-safer: split from test-popen
41715         * tests/test-popen.c (main): Move...
41716         * tests/test-popen.h: ...into new file.
41717         * tests/test-popen-safer2.c: New file.
41718         * modules/popen-tests (Files): Add test-popen.h.
41719         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
41720         Suggested by Bruno Haible.
41721
41722         test-fcntl-safer: split from test-open
41723         * tests/test-open.c (main): Move...
41724         * tests/test-open.h: ...into new file.
41725         * tests/test-fcntl-safer.c: New file.
41726         * modules/open-tests (Files): Add test-open.h.
41727         * modules/fcntl-safer-tests: New file.
41728         Suggested by Bruno Haible.
41729
41730         test-fopen-safer: split from test-fopen
41731         * tests/test-fopen.c (main): Move...
41732         * tests/test-fopen.h: ...into new file.
41733         * tests/test-fopen-safer.c: New file.
41734         * modules/fopen-tests (Files): Add test-fopen.h.
41735         * modules/fopen-safer-tests: New file.
41736         Suggested by Bruno Haible.
41737
41738 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41739
41740         popen-safer: test O_CLOEXEC at run-time.
41741         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
41742
41743 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41744
41745         fcntl: move more flags to the header
41746         * lib/cloexec.c: Do not define FD_CLOEXEC here.
41747         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
41748         * lib/fcntl.in.h: Do both things here.
41749
41750 2009-08-21  Jim Meyering  <meyering@redhat.com>
41751
41752         consistently remove $@-t before redirecting to it
41753         * modules/argz: Remove $@-t and $@ before redirecting to the former.
41754         * modules/alloca-opt: Likewise.
41755         * modules/byteswap: Likewise.
41756         * modules/fnmatch: Likewise.
41757         * modules/getopt-posix: Likewise.
41758         * modules/glob: Likewise.
41759         * modules/poll: Likewise.
41760         * modules/posix_spawnp-tests: Likewise.
41761         * modules/sys_socket: Likewise.
41762         * modules/sysexits: Likewise.
41763
41764 2009-08-21  Eric Blake  <ebb9@byu.net>
41765
41766         popen: simplify access to original popen
41767         * lib/popen.c (rpl_popen): No need to worry about popen being a
41768         macro.
41769         Reported by Bruno Haible.
41770
41771 2009-08-20  Eric Blake  <ebb9@byu.net>
41772
41773         build: avoid some compiler warnings
41774         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
41775         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
41776         type.
41777         (new_exclude_segment, excluded_file_pattern_p)
41778         (excluded_file_name_p): Reduce scope.
41779         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
41780         old-style declaration.
41781
41782 2009-08-20  Simon Josefsson  <simon@josefsson.org>
41783
41784         * tests/test-exclude1.sh: Handle Windows EOL.
41785         * tests/test-exclude2.sh: Likewise.
41786         * tests/test-exclude3.sh: Likewise.
41787         * tests/test-exclude4.sh: Likewise.
41788         * tests/test-exclude5.sh: Likewise.
41789         * tests/test-exclude6.sh: Likewise.
41790         * tests/test-exclude7.sh: Likewise.
41791
41792 2009-08-19  Akim Demaille  <demaille@gostai.com>
41793
41794         bootstrap: find sha1sum when named gsha1sum.
41795         * bootstrap (find_tool): New.
41796         ($SHA1SUM): New.
41797         Use it.
41798
41799 2009-08-20  Jim Meyering  <meyering@redhat.com>
41800
41801         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
41802         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
41803         expression that converts "." in a file name to "\." in the resulting
41804         regexp.  Start with a dummy statement, so that prior shell variable
41805         definitions are expanded portably.  Reported by Simon Josefsson.
41806
41807 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
41808
41809         Fix polling for writeability of a screen buffer.
41810         * lib/poll.c: Distinguish input and screen buffers for the
41811         Win32 implementation.
41812         * lib/select.c: Likewise.
41813
41814 2009-08-19  Eric Blake  <ebb9@byu.net>
41815
41816         popen-safer: prevent popen from clobbering std descriptors
41817         * modules/popen-safer: New file.
41818         * lib/popen-safer.c: Likewise.
41819         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
41820         * lib/stdio--.h (popen): Provide override.
41821         * lib/stdio-safer.h (popen_safer): Provide declaration.
41822         * tests/test-popen.c (includes): Partially test this.
41823         * modules/popen-safer-tests: New file, for more tests.
41824         * tests/test-popen-safer.c: Likewise.
41825         * MODULES.html.sh (file stream based Input/Output): Mention it.
41826
41827         tests: test some of the *-safer modules
41828         * modules/fopen-safer (Depends-on): Add fopen.
41829         * modules/fcntl-safer (Depends-on): Add fcntl.
41830         * modules/stdlib-safer (Depends-on): Add stdlib.
41831         (configure.ac): Set indicator.
41832         * modules/unistd-safer (configure.ac): Likewise.
41833         * modules/tmpfile-safer (configure.ac): Likewise.
41834         (Depends-on): Add tmpfile.
41835         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
41836         active.
41837         * tests/test-fopen.c (includes): Test safer versions when they are
41838         in use.
41839         * tests/test-open.c (includes): Likewise.
41840
41841         popen: fix cygwin 1.5 bug when stdin closed
41842         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
41843         * modules/popen: New file.
41844         * modules/popen-tests: Likewise.
41845         * tests/test-popen.c: Likewise.
41846         * m4/popen.m4: Likewise.
41847         * lib/popen.c: Likewise.
41848         * lib/stdio.in.h (popen): New declaration.
41849         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
41850         * modules/stdio (Makefile.am): Likewise.
41851         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
41852
41853 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
41854
41855         maint.mk: give full control over update-copyright exclusions
41856         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
41857         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
41858         (update-copyright): Don't force inclusion of top-level
41859         ChangeLog.  Don't force exclusion of all COPYING files, but make
41860         them the default exclusion instead.
41861
41862 2009-08-16  Bruno Haible  <bruno@clisp.org>
41863
41864         Fix test failures on Solaris 10.
41865         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
41866         tests when Solaris iconv() is used.
41867         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41868         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41869         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41870         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41871         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41872
41873 2009-08-16  Bruno Haible  <bruno@clisp.org>
41874
41875         Fix test failures on Solaris 10.
41876         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
41877         'tr' program and pass it as first argument.
41878         * tests/test-pipe-filter-gi1.sh: Likewise.
41879         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
41880         program as first argument.
41881         * tests/test-pipe-filter-gi1.c (main): Likewise.
41882
41883 2009-08-16  Eric Blake  <ebb9@byu.net>
41884
41885         fpurge: fix previous commits
41886         * modules/fpurge (Makefile.am): Make replacement conditional,
41887         partially reverting 2007-04-29 change; missed in previous
41888         attempt.
41889         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
41890         is missing.
41891
41892 2009-08-16  Bruno Haible  <bruno@clisp.org>
41893
41894         Clarify fpurge's effect on the file position.
41895         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
41896         * tests/test-fpurge.c (main): Make a second pass for checking the file
41897         position.
41898
41899 2009-08-16  Bruno Haible  <bruno@clisp.org>
41900
41901         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
41902         declaration of fpurge is missing.
41903         * tests/test-fpurge.c (main): Check that the file has not more contents
41904         than expected. Close the file before removing it.
41905
41906 2009-08-15  Eric Blake  <ebb9@byu.net>
41907
41908         fpurge: don't wrap working cygwin implementation
41909         * lib/fpurge.c (fpurge): Fix comment typo.
41910         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
41911         1.7 to avoid replacement.
41912         * tests/test-fpurge.c (main): Enhance test.
41913
41914 2009-08-15  Eric Blake  <ebb9@byu.net>
41915         and Jim Meyering  <meyering@redhat.com>
41916
41917         test-update-copyright: skip if perl is insufficient
41918         * tests/test-update-copyright.sh: Failure to run maintainer tool
41919         should not cause testsuite failure on cygwin 1.5.
41920
41921 2009-08-14  Eric Blake  <ebb9@byu.net>
41922
41923         doc: mention more functions added in cygwin 1.7.0
41924         * doc/posix-headers/limits.texi (limits.h): Update for recent
41925         cygwin additions.
41926         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
41927         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
41928         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
41929         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
41930         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
41931
41932 2009-08-14  Eric Blake  <ebb9@byu.net>
41933
41934         maint.mk: simplify update-copyright rule
41935         * top/maint.mk (update-copyright-local): Delete, and document how
41936         to do it in cfg.mk instead.
41937         (update-copyright-exclude-regexp): Delete, and document how to do
41938         it in .x-update-copyright instead.
41939         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
41940         exclude ChangeLog.
41941
41942 2009-08-14  Bruno Haible  <bruno@clisp.org>
41943
41944         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
41945
41946 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41947
41948         maint.mk: support update-copyright-env
41949         * top/maint.mk (update-copyright-env): Define place-holder.
41950         (update-copyright): Expand $(update-copyright-env) before
41951         invoking update-copyright.
41952
41953 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41954
41955         update-copyright: implement forced reformatting
41956         * build-aux/update-copyright: Implement and document
41957         UPDATE_COPYRIGHT_FORCE.
41958         * tests/test-update-copyright.sh: Test it.
41959
41960 2009-08-14  Eric Blake  <ebb9@byu.net>
41961         and Bruno Haible  <bruno@clisp.org>
41962
41963         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
41964         * tests/test-locale.c: Revert previous patch related to NULL.
41965         * tests/test-stdio.c: Likewise.
41966         * tests/test-stdlib.c: Likewise.
41967         * tests/test-string.c: Likewise.
41968         * tests/test-unistd.c: Likewise.
41969         * modules/time-tests (Depends-on): Add verify.
41970         * modules/wchar-tests (Depends-on): Likewise.
41971         * tests/test-time.c: Test for NULL compliance.
41972         * tests/test-wchar.c: Likewise.
41973         * modules/locale (Depends-on): Add stddef.
41974         * modules/stdio (Depends-on): Likewise.
41975         * modules/stdlib (Depends-on): Likewise.
41976         * modules/string (Depends-on): Likewise.
41977         * modules/time (Depends-on): Likewise.
41978         * modules/unistd (Depends-on): Likewise.
41979         * modules/wchar (Depends-on): Likewise.
41980         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
41981         * lib/stdlib.in.h (includes): Likewise.
41982         * lib/string.in.h (includes): Likewise.
41983         * lib/time.in.h (includes): Likewise.
41984         * lib/unistd.in.h (includes): Likewise.
41985         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
41986         replaced.
41987         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41988         * m4/stddef_h.m4: New file.
41989         * modules/stddef: Likewise.
41990         * lib/stddef.in.h: Likewise.
41991         * modules/stddef-tests: Likewise.
41992         * tests/test-stddef.c: Likewise.
41993         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
41994         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
41995         * doc/posix-headers/locale.texi (locale.h): Likewise.
41996         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
41997         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
41998         * doc/posix-headers/string.texi (string.h): Likewise.
41999         * doc/posix-headers/time.texi (time.h): Likewise.
42000         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
42001         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
42002
42003 2009-08-14  Eric Blake  <ebb9@byu.net>
42004
42005         doc: improve git diff of texinfo files
42006         * .gitattributes: Add rule for *.texi files, with hint on how to
42007         use it.
42008         Copied from m4, and based on a report by Bruno Haible.
42009
42010 2009-08-14  Bruno Haible  <bruno@clisp.org>
42011
42012         Disable multithread support by default on Cygwin 1.5.x for real.
42013         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
42014
42015 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
42016
42017         update-copyright: much ado about intervals
42018         * build-aux/update-copyright: Implement and document
42019         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
42020         of copyright year intervals.
42021         Also, document UPDATE_COPYRIGHT_YEAR.
42022         * tests/test-update-copyright.sh: Test it.
42023
42024         update-copyright: convert 2-digit to 4-digit years
42025         * build-aux/update-copyright: Implement and document.
42026         * tests/test-update-copyright.sh: Update.
42027
42028 2009-08-14  Jim Meyering  <meyering@redhat.com>
42029
42030         test-exclude: avoid coreutils "make check" failure
42031         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
42032         just as in test-argmatch.c.
42033
42034 2009-08-13  Eric Blake  <ebb9@byu.net>
42035
42036         test-dup2: fix bad assumption
42037         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
42038         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
42039
42040         test-version-etc: fix CRLF portability issue
42041         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
42042         recognize \r.
42043         * tests/test-argp-version-etc-1.sh: Likewise.
42044
42045         getopt: update client modules
42046         * modules/argp (Depends-on): Use getopt-gnu.
42047         * modules/git-merge-changelog (Depends-on): Likewise.
42048         * modules/long-options (Depends-on): Likewise.
42049         * modules/xstrtol (Depends-on): Likewise.
42050
42051 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42052
42053         * tests/test-version-etc.sh: Don't fail on different
42054         project/version.  Don't fail on CRLF differences.  Rewrite to use
42055         multiple -e instead of multiple sed forks, suggested by Eric Blake
42056         <ebb9@byu.net>.
42057         * tests/test-argp-version-etc-1.sh: Likewise.
42058
42059 2009-08-13  Simon Josefsson  <simon@josefsson.org>
42060
42061         * tests/test-version-etc.sh: Don't fail on different
42062         project/version.
42063
42064 2009-08-12  Bruno Haible  <bruno@clisp.org>
42065
42066         Tests for modules 'getopt-posix', 'getopt-gnu'.
42067         * modules/getopt-posix-tests: New file.
42068         * tests/test-getopt.c: New file.
42069         * tests/test-getopt.h: New file.
42070         * tests/test-getopt_long.h: New file.
42071
42072         New modules 'getopt-posix', 'getopt-gnu'.
42073         * modules/getopt-gnu: New file, renamed from modules/getopt.
42074         * modules/getopt-posix: New file.
42075         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
42076         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
42077         (gl_GETOPT): Remove macro.
42078         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
42079         Disable the test against BSD systems that declare optreset. Test
42080         against mingw bug. Test against lack of support of optional arguments
42081         on many platforms.
42082         * doc/glibc-headers/getopt.texi: Update module name and list of
42083         relevant platforms.
42084         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
42085         'getopt-gnu' and more portability problems.
42086         * NEWS: Mention the changes.
42087
42088 2009-08-12  Bruno Haible  <bruno@clisp.org>
42089
42090         Ensure that optarg etc. get declared by <unistd.h>.
42091         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
42092         AC_USE_SYSTEM_EXTENSIONS.
42093         * modules/getopt (Depends-on): Add 'extensions'.
42094
42095 2009-08-12  Bruno Haible  <bruno@clisp.org>
42096
42097         Avoid test link errors.
42098         * modules/pipe-filter-ii-tests (Makefile.am): Define
42099         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
42100         * modules/pipe-filter-gi-tests (Makefile.am): Define
42101         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
42102         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42103
42104 2009-08-12  Bruno Haible  <bruno@clisp.org>
42105
42106         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
42107         gl_GETOPT_SUBSTITUTE before.
42108         (gl_GETOPT): Use it.
42109         * m4/argp.m4 (gl_ARGP): Update.
42110         Reported by Sergey Poznyakoff.
42111
42112         * m4/getopt.m4: Reorder macros.
42113         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
42114         (gl_GETOPT_SUBSTITUTE): Remove macro.
42115
42116 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42117
42118         Minor improvement in gitlog-to-changelog
42119
42120         * build-aux/gitlog-to-changelog: New option `--format' makes
42121         output format string configurable.
42122
42123 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
42124
42125         Optimize exclude: use hash tables for non-wildcard patterns.
42126
42127         * lib/exclude.c: Include hash.h and mbuiter.h
42128         (struct exclude_pattern, exclude_segment): New data types.
42129         (struct exclude): Rewrite.
42130         (fnmatch_pattern_has_wildcards): New function.
42131         (new_exclude_segment, free_exclude_segment): New functions.
42132         (excluded_file_pattern_p, excluded_file_name_p): New functions.
42133         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
42134         * lib/exclude.h (is_fnmatch_pattern): New prototype.
42135         * modules/exclude: Depend on hash and mbuiter.
42136
42137         * modules/exclude-tests: New file.
42138         * tests/test-exclude.c: New file.
42139         * tests/test-exclude1.sh: New file.
42140         * tests/test-exclude2.sh: New file.
42141         * tests/test-exclude3.sh: New file.
42142         * tests/test-exclude4.sh: New file.
42143         * tests/test-exclude5.sh: New file.
42144         * tests/test-exclude6.sh: New file.
42145         * tests/test-exclude7.sh: New file.
42146
42147 2009-08-12  Bruno Haible  <bruno@clisp.org>
42148
42149         Ensure that getopt() gets declared by <unistd.h>.
42150         * lib/unistd.in.h: Conditionally include getopt.h.
42151         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
42152         Set GNULIB_UNISTD_H_GETOPT.
42153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42154         GNULIB_UNISTD_H_GETOPT.
42155         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
42156
42157 2009-08-12  Bruno Haible  <bruno@clisp.org>
42158
42159         Clarify logic.
42160         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
42161         gl_replace_getopt instead of GETOPT_H.
42162
42163 2009-08-12  Bruno Haible  <bruno@clisp.org>
42164
42165         * m4/getopt.m4: Add comments.
42166
42167 2009-08-12  Bruno Haible  <bruno@clisp.org>
42168
42169         Disable multithread support by default on Cygwin 1.5.x.
42170         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
42171         set gl_use_threads=no if not specified otherwise.
42172
42173 2009-08-11  Bruno Haible  <bruno@clisp.org>
42174
42175         Avoid compilation error on NetBSD 5.0.
42176         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
42177         * tests/test-stdio.c: Likewise.
42178         * tests/test-stdlib.c: Likewise.
42179         * tests/test-string.c: Likewise.
42180         * tests/test-unistd.c: Likewise.
42181         Reported by Greg Troxel <gdt@ir.bbn.com>
42182         at <https://savannah.gnu.org/support/?106973>.
42183
42184 2009-08-11  Bruno Haible  <bruno@clisp.org>
42185
42186         * modules/dup2-tests (Depends-on): Remove close.
42187
42188         Undo 2009-07-19 commit.
42189         * modules/acl-tests (Depends-on): Remove close.
42190         * modules/binary-io-tests (Depends-on): Likewise.
42191         * modules/closein-tests (Depends-on): Likewise.
42192         * modules/flock-tests (Depends-on): Likewise.
42193         * modules/fsync-tests (Depends-on): Likewise.
42194         * modules/lseek-tests (Depends-on): Likewise.
42195         * modules/pipe-tests (Depends-on): Likewise.
42196         * modules/posix_spawn-tests (Depends-on): Likewise.
42197         * modules/posix_spawnp-tests (Depends-on): Likewise.
42198         * modules/stat-time-tests (Depends-on): Likewise.
42199         * modules/yesno-tests (Depends-on): Likewise.
42200
42201 2009-08-10  Bruno Haible  <bruno@clisp.org>
42202
42203         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
42204
42205 2009-08-10  Bruno Haible  <bruno@clisp.org>
42206
42207         Fix a gcc warning.
42208         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
42209
42210 2009-08-10  Bruno Haible  <bruno@clisp.org>
42211
42212         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
42213         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
42214         not only the first time.
42215         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
42216         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
42217         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
42218         is 1, not only the the first time.
42219
42220 2009-08-10  Bruno Haible  <bruno@clisp.org>
42221
42222         Make it possible to use module 'gethostname' without module 'close'.
42223         * lib/unistd.in.h (close): Evoke a link error only if
42224         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42226         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42227         * modules/unistd (Makefile.am): Substitute
42228         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42229         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
42230         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
42231         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
42232         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42233         * modules/sys_ioctl (Makefile.am): Substitute
42234         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42235         * modules/socket (configure.ac): On native Windows, set
42236         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
42237         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
42238         Reported by Sam Steingold <sds@gnu.org>.
42239
42240 2009-08-10  Bruno Haible  <bruno@clisp.org>
42241
42242         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
42243         * modules/ioctl (configure.ac): Likewise.
42244
42245 2009-08-10  Bruno Haible  <bruno@clisp.org>
42246
42247         Avoid collision between gnulib wrapper and libintl wrapper.
42248         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
42249         already defined in intl/printf.c.
42250         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
42251         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
42252
42253 2009-08-09  Bruno Haible  <bruno@clisp.org>
42254
42255         Make <sys/select.h> really self-contained, also on Solaris 10.
42256         * lib/sys_select.in.h: Include <string.h>.
42257         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
42258         Solaris 10 problem.
42259         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
42260         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
42261         Reported by Jim Meyering.
42262
42263 2009-08-09  Bruno Haible  <bruno@clisp.org>
42264
42265         Avoid warnings from 'aclocal' that are due to a use of macro name
42266         AM_XGETTEXT_OPTION that is not defined in automake.
42267         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42268         automake.
42269         * modules/error (configure.ac): Likewise.
42270         * modules/propername (configure.ac): Likewise.
42271         * modules/vasprintf (configure.ac): Likewise.
42272         * modules/verror (configure.ac): Likewise.
42273         * modules/xprintf (configure.ac): Likewise.
42274         * modules/xvasprintf (configure.ac): Likewise.
42275
42276 2009-08-08  Bruno Haible  <bruno@clisp.org>
42277
42278         Avoid compilation error in C++ mode.
42279         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42280         Reported by Sam Steingold <sds@gnu.org>.
42281
42282 2009-08-08  Bruno Haible  <bruno@clisp.org>
42283
42284         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
42285         for the various Unix platforms.
42286         * doc/posix-headers/limits.texi: Update platforms list regarding
42287         HOST_NAME_MAX.
42288         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42289
42290 2009-08-07  Jim Meyering  <meyering@redhat.com>
42291
42292         selinux-at: fix typo in a comment
42293         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
42294         Spotted by Paolo Bonzini.
42295
42296         selinux-at: remove redundant m4 code, add documentation
42297         * modules/selinux-at (configure.ac): Remove redundant code.
42298         LIB_SELINUX is already set via the dependent module, selinux-h.
42299         (Include): Add quotes around selinux-at.h.
42300         * lib/selinux-at.h: Add documentation.
42301         Reported by Bruno Haible in
42302         http://marc.info/?l=gnulib-bug&m=124958988300749
42303
42304 2009-08-07  Bruno Haible  <bruno@clisp.org>
42305
42306         Avoid link error on MacOS X 10.3 and 10.4.
42307         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
42308         on non-ELF systems.
42309         * lib/argp-pv.c (argp_program_version): Likewise.
42310         Reported by Simon Josefsson.
42311
42312 2009-08-07  Simon Josefsson  <simon@josefsson.org>
42313
42314         * tests/test-version-etc.sh: Use $EXEEXT.
42315
42316 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
42317
42318         update-copyright: update documentation to point to maint.mk
42319         * build-aux/update-copyright: Here.
42320
42321 2009-08-06  Jim Meyering  <meyering@redhat.com>
42322
42323         maint.mk: support update-copyright-local
42324         * top/maint.mk (update-copyright-local): Define place-holder.
42325         (update-copyright): Depend on $(update-copyright-local).
42326
42327 2009-08-06  Jim Meyering  <meyering@redhat.com>
42328
42329         selinux-at: new module
42330         Initially written for coreutils, this module will soon be
42331         used by findutils, too.
42332         * MODULES.html.sh [Misc]: Add selinux-at.
42333         * lib/selinux-at.h: New file, from coreutils.
42334         * lib/selinux-at.c: Likewise.
42335         * modules/selinux-at: Likewise.
42336         (License): Change from LGPL to GPL, since it depends
42337         on the GPL'd openat module.
42338
42339         doc: update README
42340         * README: Remove references to cogito.
42341         Remove cvs-repo-updating instructions from 2007.
42342         Don't imply that CVS is better if you have limited disk space.
42343
42344 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42345
42346         update-copyright: support C-style comments
42347         * build-aux/update-copyright: Implement and document.
42348         * tests/test-update-copyright.sh: Test.
42349
42350 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42351
42352         update-copyright: support omitted "(C)"
42353         * build-aux/update-copyright: Implement and document.  Also,
42354         allow variable whitespace before "(C)".
42355         * tests/test-update-copyright.sh: Test.
42356
42357 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42358
42359         update-copyright: don't trip on non-FSF copyright statements
42360         * build-aux/update-copyright: Fix so that the first correctly
42361         formatted FSF copyright statement is recognized no matter what
42362         appears before it.  Update documentation.
42363         * tests/test-update-copyright.sh: Test that.
42364
42365 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42366
42367         update-copyright: clean up code a little
42368         * build-aux/update-copyright: Append "_re" to the name of any
42369         variable holding a regular expression.
42370         Replace "old" and "new" with "stmt" in variable names.
42371         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
42372         handled correctly.
42373         Format code more consistently.
42374
42375 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42376
42377         update-copyright-tests: improve portability
42378         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
42379         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
42380
42381 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42382
42383         update-copyright: support @copyright{} and &copy;
42384         * build-aux/update-copyright: Implement and document.
42385         * tests/test-update-copyright.sh: Test.
42386
42387 2009-08-04  Jim Meyering  <meyering@redhat.com>
42388
42389         update-copyright-tests: correctly test EOL=\r\n handling
42390         * tests/test-update-copyright.sh: Put \r at the end of some lines
42391         for the dos-eol tests.  Based on a patch by Joel E. Denny.
42392
42393         maint.mk: make update-copyright exclusion list more configurable
42394         * top/maint.mk (update-copyright): Default to excluding COPYING,
42395         but allow an override, in case someone does want to update that file.
42396
42397         maint.mk: don't update copyright date in COPYING
42398         * top/maint.mk (update-copyright): Exclude COPYING.
42399
42400         maint.mk: add a copyright-updating rule
42401         * top/maint.mk (update-copyright): New rule.
42402         Derived from coreutils/Makefile.am.
42403
42404         update-copyright: rename some variables
42405         * build-aux/update-copyright: Rename a few variables for clarity.
42406         Tweak syntax.  List Joel E. Denny as coauthor.
42407
42408 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42409
42410         update-copyright: fix bug for 2-digit last year and add tests
42411         * build-aux/update-copyright: Fix bug.
42412         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
42413         specified.
42414         * modules/update-copyright-tests: New
42415         * tests/test-update-copyright.sh: New.
42416
42417 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42418
42419         update-copyright: handle leading tabs in line prefix
42420         * build-aux/update-copyright: Count leading tabs as 8 spaces
42421         when computing margin.  This helps with the formatting of
42422         ChangeLogs, for example.
42423         Fix documentation a little.
42424
42425 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42426
42427         update-copyright: support EOL=\r\n
42428         * build-aux/update-copyright: Implement that.
42429
42430 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42431
42432         update-copyright: automatically format copyright statements
42433         * build-aux/update-copyright: Implement that.
42434         Also, be a little more predictable and safer by always failing
42435         when the full copyright format is not perfectly recognized as an
42436         unbroken whole.  Discussed at
42437         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
42438         Rewrite documentation.
42439
42440 2009-08-03  Bruno Haible  <bruno@clisp.org>
42441
42442         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
42443
42444 2009-08-02  Bruno Haible  <bruno@clisp.org>
42445
42446         Tests for module 'uname'.
42447         * modules/uname-tests: New file.
42448         * tests/test-uname.c: New file.
42449
42450         New module 'uname'.
42451         * lib/uname.c: New file.
42452         * m4/uname.m4: New file.
42453         * modules/uname: New file.
42454         * doc/posix-functions/uname.texi: Mention the new module.
42455
42456 2009-08-02  Bruno Haible  <bruno@clisp.org>
42457
42458         Tests for module 'sys_utsname'.
42459         * modules/sys_utsname-tests: New file.
42460         * tests/test-sys_utsname.c: New file.
42461
42462         New module 'sys_utsname'.
42463         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
42464         * m4/sys_utsname_h.m4: New file.
42465         * modules/sys_utsname: New file.
42466         * doc/posix-headers/sys_utsname.texi: Mention the new module.
42467
42468 2009-08-02  Bruno Haible  <bruno@clisp.org>
42469
42470         Implicitly initialize the sockets library.
42471         * lib/gethostname.c: Include sockets.h.
42472         (rpl_gethostname): Invoke gl_sockets_startup.
42473         * lib/socket.c: Include sockets.h.
42474         (rpl_socket): Invoke gl_sockets_startup.
42475         * modules/gethostname (Depends-on): Add sockets.
42476         * modules/socket (Depends-on): Likewise.
42477         * tests/test-poll.c: Don't include sockets.h.
42478         (main): Don't invoke gl_sockets_startup.
42479         * tests/test-select.c: Don't include sockets.h.
42480         (main): Don't invoke gl_sockets_startup.
42481
42482 2009-08-02  Bruno Haible  <bruno@clisp.org>
42483
42484         Allow multiple calls to gl_sockets_startup.
42485         * lib/sockets.c (initialized_sockets_version): New variable.
42486         (gl_sockets_startup): Do nothing if already called for this or a higher
42487         version.
42488         (gl_sockets_cleanup): Reset initialized_sockets_version.
42489
42490 2009-08-03  Simon Josefsson  <simon@josefsson.org>
42491
42492         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
42493         different project/version.
42494
42495 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
42496             Bruno Haible  <bruno@clisp.org>
42497
42498         Tests for module 'pipe-filter-gi'.
42499         * modules/pipe-filter-gi-tests: New file.
42500         * tests/test-pipe-filter-gi1.sh: New file.
42501         * tests/test-pipe-filter-gi1.c: New file.
42502         * tests/test-pipe-filter-gi2.sh: New file.
42503         * tests/test-pipe-filter-gi2-main.c: New file.
42504         * tests/test-pipe-filter-gi2-child.c: New file.
42505
42506         New module 'pipe-filter-gi'.
42507         * lib/pipe-filter-gi.c: New file.
42508         * modules/pipe-filter-gi: New file.
42509
42510 2009-08-02  Bruno Haible  <bruno@clisp.org>
42511             Paolo Bonzini  <bonzini@gnu.org>
42512
42513         Tests for module 'pipe-filter-ii'.
42514         * modules/pipe-filter-ii-tests: New file.
42515         * tests/test-pipe-filter-ii1.sh: New file.
42516         * tests/test-pipe-filter-ii1.c: New file.
42517         * tests/test-pipe-filter-ii2.sh: New file.
42518         * tests/test-pipe-filter-ii2-main.c: New file.
42519         * tests/test-pipe-filter-ii2-child.c: New file.
42520
42521         New module 'pipe-filter-ii'.
42522         * lib/pipe-filter.h: New file.
42523         * lib/pipe-filter-ii.c: New file.
42524         * lib/pipe-filter-aux.h: New file.
42525         * modules/pipe-filter-ii: New file.
42526
42527 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42528
42529         * lib/gc-libgcrypt.c: Change copyright to FSF.
42530         * lib/gc-gnulib.c: Likewise.
42531
42532 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
42533
42534         * lib/gethostname.c: Include limits.h.
42535
42536 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42537             Bruno Haible  <bruno@clisp.org>
42538
42539         Ensure HOST_NAME_MAX as part of the gethostname module.
42540         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
42541         define also HOST_NAME_MAX.
42542         * tests/test-gethostname.c: Include <limits.h>.
42543         (main): Check also HOST_NAME_MAX.
42544         * doc/posix-headers/limits.texi: Document the mingw problem.
42545
42546 2009-08-02  Bruno Haible  <bruno@clisp.org>
42547
42548         * lib/gethostname.c (gethostname): Fix handling of large len argument.
42549         Add comments.
42550
42551 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42552
42553         * lib/gethostname.c: Add Windows wrapper.
42554         * m4/gethostname.m4: Look for gethostname in -lws2_32.
42555         * modules/gethostname: Depend on sys_socket & errno, for also
42556         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
42557         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
42558
42559 2009-07-31  Jim Meyering  <meyering@redhat.com>
42560
42561         getloadavg: fix symbol name in comment
42562         * lib/getloadavg.c: Correct a typo I introduced when adding
42563         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
42564         Matt Kraai spotted the problem.
42565
42566 2009-07-29  Matt Kraai  <mkraai@beckman.com>
42567
42568         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
42569         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
42570         code also if ! defined N_NAME_POINTER.
42571         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
42572         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
42573         but the n_name member is a 12-byte array.
42574
42575 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
42576
42577         update-copyright: generalize comment handling
42578         * build-aux/update-copyright: Handle copyright statements
42579         within more comment styles.
42580         Document usage.
42581         Report any file with an external copyright holder or parse failure.
42582
42583 2009-07-29  Jim Meyering  <meyering@redhat.com>
42584
42585         mktime: correct setting of REPLACE_MKTIME
42586         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
42587
42588         update-copyright: new module
42589         * modules/update-copyright: New file.
42590         * build-aux/update-copyright: New file.
42591         * MODULES.html.sh (maint+release support): Add update-copyright.
42592
42593 2009-07-27  Bruno Haible  <bruno@clisp.org>
42594
42595         Fix compilation error when <ctime> is used and mktime is replaced.
42596         * lib/time.in.h (mktime): New declaration.
42597         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
42598         REPLACE_MKTIME instead of defining mktime in config.h.
42599         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
42600         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
42601         Reported by Ross McFarland <rwmcfa1@neces.com>.
42602
42603 2009-07-27  Bruno Haible  <bruno@clisp.org>
42604
42605         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
42606         Reported by Matt Kraai <mkraai@beckman.com>.
42607
42608 2009-07-25  Jim Meyering  <meyering@redhat.com>
42609
42610         maint.mk: avoid warnings about missing files
42611         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
42612         diagnostic when .prev-version does not exist.
42613         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
42614         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
42615         nonexistent cfg.mk.
42616         Suggestions from Simon Josefsson.
42617
42618 2009-07-25  Bruno Haible  <bruno@clisp.org>
42619
42620         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
42621         defined as macros. Needed on QNX 6.4.1.
42622         Reported by Matt Kraai <mkraai@beckman.com>.
42623
42624 2009-07-23  Jim Meyering  <meyering@redhat.com>
42625
42626         maint.mk: invoke "make dist" with a working value of XZ_OPT
42627         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
42628
42629 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
42630
42631         Make fseeko.c compile on QNX.
42632         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
42633
42634 2009-07-22  Peter Simons  <simons@cryp.to>
42635
42636         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
42637         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
42638         * lib/md4.h: Likewise.
42639         * lib/md5.h: Likewise.
42640         * lib/sha1.h: Likewise.
42641         * lib/sha256.h: Likewise.
42642         * lib/sha512.h: Likewise.
42643
42644         tests-sha1: don't assign literal string to 'char *' variable
42645         * tests/test-sha1.c (main): Declare locals with "const" to match
42646         attributes of the right hand side.
42647
42648 2009-07-21  Eric Blake  <ebb9@byu.net>
42649
42650         dup2: fix more mingw problems
42651         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
42652         fd to itself.
42653         * doc/posix-functions/dup2.texi (dup2): Document the bug.
42654         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
42655         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
42656         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
42657         care of mingw bugs.
42658
42659 2009-07-21  Jim Meyering  <meyering@redhat.com>
42660
42661         vc-list-files: avoid failure when /bin/sh is dash
42662         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
42663         On some Debian based systems, /bin/sh is a symlink to dash, and running
42664         this command would omit the "/" following each 'tests' prefix:
42665           dash -x build-aux/vc-list-files -C . tests
42666         That is because bash and dash work differently:
42667           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
42668           bash ok
42669           dash odd
42670
42671 2009-07-21  Eric Blake  <ebb9@byu.net>
42672
42673         dup2-tests: test previous patch
42674         * modules/dup2-tests: New file.
42675         * tests/test-dup2.c: Likewise.
42676         * tests/test-open.c (main): Avoid unspecified behavior.
42677         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
42678         test.
42679
42680         dup2: work around mingw and cygwin 1.5 bug
42681         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
42682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42683         * modules/unistd (Makefile.am): Substitute it.
42684         * lib/unistd.in.h (dup2): Declare the replacement.
42685         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
42686         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
42687         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
42688         * modules/execute (Depends-on): Add dup2.
42689         * modules/fseterr (Depends-on): Likewise.
42690         * modules/pipe (Depends-on): Likewise.
42691         * modules/posix_spawn-internal (Depends-on): Likewise.
42692
42693 2009-07-21  Bruno Haible  <bruno@clisp.org>
42694
42695         * modules/.gitattributes: New file.
42696
42697 2009-07-20  Bruno Haible  <bruno@clisp.org>
42698
42699         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
42700         (main): Use it.
42701
42702 2009-07-20  Eric Blake  <ebb9@byu.net>
42703
42704         test-pipe: make a bit more robust.
42705         * tests/test-pipe.c (myerr): Allow error messages regardless of
42706         what we do to stderr.
42707         (test_pipe): Rearrange to avoid deadlock.
42708         (child_main): Try a larger read, to ensure we avoided deadlock.
42709         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
42710         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
42711         if misused.
42712
42713 2009-07-19  Jim Meyering  <meyering@redhat.com>
42714
42715         fts: avoid false-positive cycle-detection
42716         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
42717         for each new command line argument.
42718
42719 2009-07-19  Bruno Haible  <bruno@clisp.org>
42720
42721         Fix build error on mingw with the modules sys_select and unistd.
42722         * modules/acl-tests (Depends-on): Add close.
42723         * modules/binary-io-tests (Depends-on): Likewise.
42724         * modules/closein-tests (Depends-on): Likewise.
42725         * modules/flock-tests (Depends-on): Likewise.
42726         * modules/fsync-tests (Depends-on): Likewise.
42727         * modules/lseek-tests (Depends-on): Likewise.
42728         * modules/pipe-tests (Depends-on): Likewise.
42729         * modules/posix_spawn-tests (Depends-on): Likewise.
42730         * modules/posix_spawnp-tests (Depends-on): Likewise.
42731         * modules/stat-time-tests (Depends-on): Likewise.
42732         * modules/yesno-tests (Depends-on): Likewise.
42733
42734 2009-07-19  Bruno Haible  <bruno@clisp.org>
42735
42736         Unify conditionals.
42737         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
42738         macros, not at the compiler macros.
42739         * lib/pipe.c: Likewise.
42740         * lib/execute.c: Likewise.
42741         * lib/spawni.c: Likewise.
42742
42743 2009-07-19  Bruno Haible  <bruno@clisp.org>
42744
42745         Fix handling of closed stdin/stdout/stderr on mingw.
42746         * lib/w32spawn.h: Include unistd.h.
42747         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
42748         file descriptor with O_NOINHERIT flag.
42749         (fd_safer_noinherit): New function, based on fd-safer.c.
42750         (dup_safer_noinherit): New function, based on dup-safer.c.
42751         (undup_safer_noinherit): New function.
42752         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
42753         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
42754         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
42755         instead of fd_safer.
42756         * tests/test-pipe.c: Include <windows.h>.
42757         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
42758         result.
42759
42760         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
42761         from main.
42762         (test_pipe): Pass an extra argument for disambiguation.
42763         (main): Invoke parent_main or child_main.
42764
42765         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
42766         consistently.
42767
42768 2009-07-18  Eric Blake  <ebb9@byu.net>
42769
42770         test-pipe: fix mingw build
42771         * tests/test-pipe.c (main): Avoid fcntl on mingw.
42772
42773 2009-07-18  Bruno Haible  <bruno@clisp.org>
42774
42775         * modules/pipe-tests (Makefile.am): Fix typo.
42776
42777 2009-07-18  Eric Blake  <ebb9@byu.net>
42778
42779         error: fix mingw build
42780         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
42781         Reported by Bruno Haible.
42782
42783         error: avoid undefined use of stdout
42784         * lib/error.c (error, error_at_line): Check that fd 1 is open
42785         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
42786         is handling faults and the close_stdout module wants to report the
42787         detection of closed stdout as an error.
42788
42789 2009-07-17  Eric Blake  <ebb9@byu.net>
42790
42791         pipe: be robust in face of closed fds
42792         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
42793         should cause child to misbehave.
42794         * modules/pipe-tests: New module.
42795         * tests/test-pipe.c: New file.
42796         * tests/test-pipe.sh: New file.
42797         Reported by Akim Demaille.
42798
42799 2009-07-14  Bruno Haible  <bruno@clisp.org>
42800
42801         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
42802         Reported by anonymous kc.
42803
42804 2009-07-07  Jim Meyering  <meyering@redhat.com>
42805
42806         maint.mk: don't look for translatable strings in *.m4 or *.mk
42807         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
42808         when searching for translatable strings.
42809
42810 2009-07-05  Jim Meyering  <meyering@redhat.com>
42811
42812         remove superfluous parentheses in STREQ definition
42813         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
42814         * lib/getugroups.c (STREQ): Likewise.
42815         * lib/fnmatch.c (STREQ): Likewise.
42816         Spotted by Bruno Haible.
42817
42818 2009-07-04  Jim Meyering  <meyering@redhat.com>
42819
42820         argv-iter: new module
42821         * MODULES.html.sh: Add argv-iter.
42822         * lib/argv-iter.c, lib/argv-iter.h: New files.
42823         * modules/argv-iter: New file.
42824         * modules/argv-iter-tests: New file.
42825         * tests/test-argv-iter.c: Test it.
42826
42827 2009-07-04  Bruno Haible  <bruno@clisp.org>
42828
42829         Fix assertion.
42830         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
42831         contains more exact copies of a given entry than file2, leave the extra
42832         copies unpaired rather than aborting.
42833         Reported by Eric Blake.
42834
42835 2009-07-02  Bruno Haible  <bruno@clisp.org>
42836
42837         Speedup git-merge-changelog for git cherry-pick.
42838         * lib/git-merge-changelog.c (struct entries_mapping): New type.
42839         (entries_mapping_get): New function, extracted from compute_mapping.
42840         (entries_mapping_reverse_get): New function.
42841         (compute_mapping): Add a 'full' argument. Return the result in a
42842         'struct entries_mapping'.
42843         (main): Update. Access the mappings through entries_mapping_get.
42844         Reported by Eric Blake.
42845
42846 2009-07-02  Bruno Haible  <bruno@clisp.org>
42847
42848         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
42849         best_i.
42850
42851 2009-07-02  Bruno Haible  <bruno@clisp.org>
42852
42853         Speed up approximate search for matching ChangeLog entries.
42854         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
42855         argument. Call fstrcmp_bounded instead of fstrcmp.
42856         (compute_mapping, try_split_merged_entry, main): Update callers.
42857
42858 2009-07-02  Bruno Haible  <bruno@clisp.org>
42859
42860         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
42861
42862 2009-06-30  Bruno Haible  <bruno@clisp.org>
42863
42864         Reduce the number of uc_is_cased calls.
42865         * lib/unicase.h (casing_suffix_context_t): Add
42866         'first_char_except_ignorable' field.
42867         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
42868         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
42869         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
42870         Update initializer.
42871         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
42872         case-ignorable characters.
42873         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
42874         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
42875         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
42876         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
42877         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
42878
42879 2009-06-30  Bruno Haible  <bruno@clisp.org>
42880
42881         Tests for module 'unicase/ignorable'.
42882         * modules/unicase/ignorable-tests: New file.
42883         * tests/unicase/test-ignorable.c: New file, generated by
42884         gen-uni-tables.
42885
42886         Tests for module 'unicase/cased'.
42887         * modules/unicase/cased-tests: New file.
42888         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
42889         * tests/unicase/test-predicate-part1.h: New file, derived from
42890         tests/unictype/test-predicate-part1.h.
42891         * tests/unicase/test-predicate-part2.h: New file, same as
42892         tests/unictype/test-predicate-part2.h.
42893
42894         Fix evaluation of "Before C" condition of FINAL_SIGMA.
42895         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
42896         (output_casing_properties): New function.
42897         (main): Call it.
42898         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
42899         * lib/unicase/cased.c: Include unictype/bitmap.h.
42900         (uc_is_cased): Define through a bitmap lookup.
42901         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
42902         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
42903         (uc_is_case_ignorable): Define through a bitmap lookup.
42904         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
42905         lib/unictype/bitmap.h.
42906         (Depends-on): Add inline. Clean up.
42907         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
42908         lib/unictype/bitmap.h.
42909         (Depends-on): Add inline. Clean up.
42910         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
42911         recognition.
42912         * tests/unicase/test-u16-tolower.c (main): Likewise.
42913         * tests/unicase/test-u32-tolower.c (main): Likewise.
42914
42915 2009-06-30  Bruno Haible  <bruno@clisp.org>
42916
42917         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
42918         * lib/unicase/u16-casemap.c: Likewise.
42919         * lib/unicase/u32-casemap.c: Likewise.
42920
42921 2009-06-29  Bruno Haible  <bruno@clisp.org>
42922
42923         Define u32_casefold as a wrapper around u32_ct_casefold.
42924         * lib/unicase/u32-casefold.c: Update.
42925         * modules/unicase/u32-casefold (Depends-on): Add
42926         unicase/u32-ct-casefold, unicase/empty-prefix-context,
42927         unicase/empty-suffix-context. Clean up.
42928
42929         Define u16_casefold as a wrapper around u16_ct_casefold.
42930         * lib/unicase/u16-casefold.c: Update.
42931         * modules/unicase/u16-casefold (Depends-on): Add
42932         unicase/u16-ct-casefold, unicase/empty-prefix-context,
42933         unicase/empty-suffix-context. Clean up.
42934
42935         Define u8_casefold as a wrapper around u8_ct_casefold.
42936         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
42937         * lib/unicase/u8-casefold.c: Update.
42938         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
42939         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42940
42941         Define u32_totitle as a wrapper around u32_ct_totitle.
42942         * lib/unicase/u32-totitle.c: Update.
42943         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
42944         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42945
42946         Define u16_totitle as a wrapper around u16_ct_totitle.
42947         * lib/unicase/u16-totitle.c: Update.
42948         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
42949         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42950
42951         Define u8_totitle as a wrapper around u8_ct_totitle.
42952         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
42953         functions.
42954         (FUNC): Delegate to U_CT_TOTITLE.
42955         * lib/unicase/u8-totitle.c: Update.
42956         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
42957         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42958
42959         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
42960         invocation.
42961         * modules/unicase/u32-tolower (Depends-on): Add
42962         unicase/empty-prefix-context, unicase/empty-suffix-context.
42963
42964         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
42965         invocation.
42966         * modules/unicase/u16-tolower (Depends-on): Add
42967         unicase/empty-prefix-context, unicase/empty-suffix-context.
42968
42969         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
42970         * modules/unicase/u8-tolower (Depends-on): Add
42971         unicase/empty-prefix-context, unicase/empty-suffix-context.
42972
42973         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
42974         invocation.
42975         * modules/unicase/u32-toupper (Depends-on): Add
42976         unicase/empty-prefix-context, unicase/empty-suffix-context.
42977
42978         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
42979         invocation.
42980         * modules/unicase/u16-toupper (Depends-on): Add
42981         unicase/empty-prefix-context, unicase/empty-suffix-context.
42982
42983         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
42984         * modules/unicase/u8-toupper (Depends-on): Add
42985         unicase/empty-prefix-context, unicase/empty-suffix-context.
42986
42987         New module 'unicase/u32-ct-casefold'.
42988         * lib/unicase/u32-ct-casefold.c: New file.
42989         * modules/unicase/u32-ct-casefold: New file.
42990
42991         New module 'unicase/u16-ct-casefold'.
42992         * lib/unicase/u16-ct-casefold.c: New file.
42993         * modules/unicase/u16-ct-casefold: New file.
42994
42995         New module 'unicase/u8-ct-casefold'.
42996         * lib/unicase/u8-ct-casefold.c: New file.
42997         * lib/unicase/u-ct-casefold.h: New file, derived from
42998         lib/unicase/u-casefold.h.
42999         * modules/unicase/u8-ct-casefold: New file.
43000
43001         New module 'unicase/u32-ct-totitle'.
43002         * lib/unicase/u32-ct-totitle.c: New file.
43003         * modules/unicase/u32-ct-totitle: New file.
43004
43005         New module 'unicase/u16-ct-totitle'.
43006         * lib/unicase/u16-ct-totitle.c: New file.
43007         * modules/unicase/u16-ct-totitle: New file.
43008
43009         New module 'unicase/u8-ct-totitle'.
43010         * lib/unicase/u8-ct-totitle.c: New file.
43011         * lib/unicase/u-ct-totitle.h: New file, derived from
43012         lib/unicase/u-totitle.h.
43013         * modules/unicase/u8-ct-totitle: New file.
43014
43015         New module 'unicase/u32-ct-tolower'.
43016         * lib/unicase/u32-ct-tolower.c: New file.
43017         * modules/unicase/u32-ct-tolower: New file.
43018
43019         New module 'unicase/u16-ct-tolower'.
43020         * lib/unicase/u16-ct-tolower.c: New file.
43021         * modules/unicase/u16-ct-tolower: New file.
43022
43023         New module 'unicase/u8-ct-tolower'.
43024         * lib/unicase/u8-ct-tolower.c: New file.
43025         * modules/unicase/u8-ct-tolower: New file.
43026
43027         New module 'unicase/u32-ct-toupper'.
43028         * lib/unicase/u32-ct-toupper.c: New file.
43029         * modules/unicase/u32-ct-toupper: New file.
43030
43031         New module 'unicase/u16-ct-toupper'.
43032         * lib/unicase/u16-ct-toupper.c: New file.
43033         * modules/unicase/u16-ct-toupper: New file.
43034
43035         New module 'unicase/u8-ct-toupper'.
43036         * lib/unicase/u8-ct-toupper.c: New file.
43037         * modules/unicase/u8-ct-toupper: New file.
43038
43039         Add context arguments to u*_casemap functions.
43040         * lib/unicase/unicasemap.h: Include unicase.h.
43041         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
43042         suffix_context arguments.
43043         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
43044         functions.
43045         (FUNC): Add prefix_context and suffix_context arguments. Use
43046         uc_is_cased and uc_is_case_ignorable.
43047         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
43048         * lib/unicase/u16-casemap.c: Likewise.
43049         * lib/unicase/u32-casemap.c: Likewise.
43050         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
43051         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43052         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
43053         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43054         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
43055         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
43056
43057         New module 'unicase/u32-suffix-context'.
43058         * lib/unicase/u32-suffix-context.c: New file.
43059         * modules/unicase/u32-suffix-context: New file.
43060
43061         New module 'unicase/u16-suffix-context'.
43062         * lib/unicase/u16-suffix-context.c: New file.
43063         * modules/unicase/u16-suffix-context: New file.
43064
43065         New module 'unicase/u8-suffix-context'.
43066         * lib/unicase/u8-suffix-context.c: New file.
43067         * lib/unicase/u-suffix-context.h: New file.
43068         * modules/unicase/u8-suffix-context: New file.
43069
43070         New module 'unicase/empty-suffix-context'.
43071         * lib/unicase/empty-suffix-context.c: New file.
43072         * modules/unicase/empty-suffix-context: New file.
43073
43074         New module 'unicase/u32-prefix-context'.
43075         * lib/unicase/u32-prefix-context.c: New file.
43076         * modules/unicase/u32-prefix-context: New file.
43077
43078         New module 'unicase/u16-prefix-context'.
43079         * lib/unicase/u16-prefix-context.c: New file.
43080         * modules/unicase/u16-prefix-context: New file.
43081
43082         New module 'unicase/u8-prefix-context'.
43083         * lib/unicase/u8-prefix-context.c: New file.
43084         * lib/unicase/u-prefix-context.h: New file.
43085         * lib/unicase/context.h: New file.
43086         * modules/unicase/u8-prefix-context: New file.
43087
43088         New module 'unicase/empty-prefix-context'.
43089         * lib/unicase/empty-prefix-context.c: New file.
43090         * modules/unicase/empty-prefix-context: New file.
43091
43092         New module 'unicase/ignorable'.
43093         * lib/unicase/ignorable.c: New file.
43094         * modules/unicase/ignorable: New file.
43095
43096         New module 'unicase/cased'.
43097         * lib/unicase/caseprop.h: New file.
43098         * lib/unicase/cased.c: New file.
43099         * modules/unicase/cased: New file.
43100
43101         New functions for case mapping of substrings.
43102         * lib/unicase.h (casing_prefix_context_t): New type.
43103         (unicase_empty_prefix_context): New variable.
43104         (u8_casing_prefix_context, u16_casing_prefix_context,
43105         u32_casing_prefix_context, u8_casing_prefixes_context,
43106         u16_casing_prefixes_context, u32_casing_prefixes_context): New
43107         declarations.
43108         (casing_suffix_context_t): New type.
43109         (unicase_empty_suffix_context): New variable.
43110         (u8_casing_suffix_context, u16_casing_suffix_context,
43111         u32_casing_suffix_context, u8_casing_suffixes_context,
43112         u16_casing_suffixes_context, u32_casing_suffixes_context,
43113         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
43114         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
43115         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
43116         declarations.
43117
43118 2009-06-28  Jim Meyering  <meyering@redhat.com>
43119
43120         boostrap: indent only with spaces
43121         * build-aux/bootstrap: Indent only with spaces, never TABs.
43122
43123         bootstrap: split long lines
43124         * build-aux/bootstrap: Keep line length < 80.
43125
43126         bootstrap: sync from coreutils
43127         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
43128         just as autoreconf does.  Verify a list of prerequisite
43129         package-name,version-number pairs if defined in bootstrap.conf.
43130         Refer to README-prereq, if prerequisites are not satisfied.
43131
43132 2009-06-27  Eric Blake  <ebb9@byu.net>
43133
43134         tests: add test for bogus NULL definition
43135         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
43136         * tests/test-stdlib.c: Likewise.
43137         * tests/test-string.c: Likewise.
43138         * tests/test-locale.c: Likewise.
43139         * tests/test-unistd.c: Likewise.
43140         * modules/stdio-tests (Depends-on): Add verify.
43141         * modules/stdlib-tests (Depends-on): Likewise.
43142         * modules/string-tests (Depends-on): Likewise.
43143         * modules/locale-tests (Depends-on): Likewise.
43144         * modules/unistd-tests (Depends-on): Likewise.
43145
43146 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
43147
43148         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
43149         self-explaining comment.
43150         * m4/selinux-selinux-h: Update serial.
43151         (gl_LIBSELINUX): New macro, adding a warning for missing development
43152         packages to code extracted from...
43153         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
43154         Add warning for missing development packages here, too.
43155
43156 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
43157
43158         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
43159
43160 2009-06-25  Eric Blake  <ebb9@byu.net>
43161
43162         version-etc: fix regression
43163         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
43164         gcc.
43165         (version_etc): Use it, to catch bugs with trailing NULL.
43166         * lib/version-etc.c (version_etc_arn): Delete unused argument.
43167         (version_etc_va): Fix logic bug.
43168         * modules/version-etc-tests: Add test.
43169         * tests/test-version-etc.c: New file.
43170         * tests/test-version-etc.sh: Likewise.
43171
43172 2009-06-25  Sam Steingold  <sds@gnu.org>
43173
43174         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
43175         mbtowc declaration.
43176
43177 2009-06-25  Eric Blake  <ebb9@byu.net>
43178
43179         fpurge: migrate into <stdio.h>
43180         * lib/fpurge.h: Delete...
43181         * lib/stdio.in.h (fpurge): ...and declare here, instead.
43182         * lib/fpurge.c (fpurge): Change declaring header.
43183         * modules/fpurge (Files): Drop deleted file.
43184         (Depends-on): Add stdio.
43185         (configure.ac): Set witness.
43186         * modules/stdio (Makefile.am): Support fpurge macros.
43187         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43188         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
43189         * lib/fflush.c: Update client.
43190         * tests/test-fpurge.c: Likewise.
43191         * NEWS: Mention the change.
43192
43193 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43194
43195         * lib/argp-version-etc.c (program_authors): Add const
43196         qualifier.
43197         * lib/version-etc.c: Fix typos in the comments.
43198         * modules/argp-version-etc: Depends on version-etc.
43199
43200 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43201
43202         argp-version-etc: new module.
43203
43204         * lib/argp-version-etc.c: New file.
43205         * lib/argp-version-etc.h: New file.
43206         * modules/argp-version-etc: New file.
43207         * modules/argp-version-etc-tests: New file.
43208         * tests/test-argp-version-etc.c: New test.
43209         * tests/test-argp-version-etc-1.sh: New test.
43210
43211 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
43212
43213         Provide additional interfaces and documentation for version-etc
43214         module.
43215
43216         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
43217         interfaces.
43218         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
43219         prototypes.
43220
43221 2009-06-24  Bruno Haible  <bruno@clisp.org>
43222
43223         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
43224         HAVE_LIB${NAME} macro.
43225         Reported by Sam Steingold <sds@gnu.org>.
43226
43227 2009-06-23  Simon Josefsson  <simon@josefsson.org>
43228
43229         * modules/hash-tests (test_hash_LDADD): Link to libintl when
43230         needed.
43231
43232 2009-06-21  Bruno Haible  <bruno@clisp.org>
43233
43234         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
43235         work.
43236         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
43237         together with LIB${NAME}, LTLIB${NAME}.
43238         Reported by Sam Steingold <sds@gnu.org>.
43239
43240 2009-06-20  Jim Meyering  <meyering@redhat.com>
43241
43242         tests: make sc_require_test_exit_idiom more generic
43243         * top/maint.mk (Exit_witness_file): New overridable variable.
43244         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
43245         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
43246
43247 2009-06-19  Jim Meyering  <meyering@redhat.com>
43248
43249         hash: reverse order of src/dst parameters in an internal interface
43250         * lib/hash.c (transfer_entries): Reverse order of parameters to
43251         put DST before SRC.  Adjust callers.
43252
43253         tests: test-hash: avoid wholesale duplication
43254         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
43255         Instead, use a loop and add a single conditional.
43256
43257         tests: test-hash: allow seed selection via a command line argument
43258         * tests/test-hash.c (get_seed): New function.
43259         (main): Use it.
43260
43261 2009-06-19  Eric Blake  <ebb9@byu.net>
43262
43263         hash: avoid memory leak on allocation failure
43264         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
43265         failure.  Factor repeated algorithm...
43266         (transfer_entries): ...into new helper routine.
43267         (hash_delete): React to hash_rehash return value.
43268
43269         hash: reduce memory pressure in hash_rehash no-op case
43270         * lib/hash.c (next_prime): Avoid overflow.
43271         (hash_initialize): Factor bucket size computation...
43272         (compute_bucket_size): ...into new helper function.
43273         (hash_rehash): Use new function and open coding to reduce memory
43274         pressure, and avoid a memory leak in USE_OBSTACK code.
43275         Reported by Jim Meyering.
43276
43277 2009-06-18  Eric Blake  <ebb9@byu.net>
43278
43279         hash: make rotation more obvious
43280         * modules/hash (Depends-on): Add bitrotate and stdint.
43281         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43282         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43283         (SIZE_MAX): Rely on headers for definition.
43284         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
43285         (raw_hasher): Use rotr_sz.
43286         Suggested by Jim Meyering.
43287
43288         hash: fix memory leak in last patch
43289         * lib/hash.c (hash_rehash): Avoid memory leak.
43290
43291         hash: avoid no-op rehashing
43292         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
43293
43294         hash: provide default callback functions
43295         * lib/hash.c (raw_hasher, raw_comparator): New functions.
43296         (hash_initialize): Use them as defaults.
43297         * tests/test-hash.c (main): Test this.
43298
43299         hash: minor optimization
43300         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
43301         when possible.
43302         (hash_initialize): Document this promise.
43303         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
43304         * tests/test-hash.c (hash_compare_strings): Test this.
43305
43306 2009-06-18  Bruno Haible  <bruno@clisp.org>
43307
43308         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
43309         going to be replaced anyway.
43310
43311 2009-06-18  Bruno Haible  <bruno@clisp.org>
43312
43313         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
43314         in one place.
43315         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
43316         be replaced anyway.
43317
43318 2009-06-18  Eric Blake  <ebb9@byu.net>
43319
43320         hash: check for resize before insertion
43321         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
43322         threshold before insertion, so that a pathological hash_rehash
43323         that fills every bucket can still trigger another rehash.
43324
43325 2009-06-18  Jim Meyering  <meyering@redhat.com>
43326
43327         hash-tests: add a loop around the small tests
43328         * tests/test-hash.c (main): Repeat small tests with selected
43329         small initial table sizes.
43330
43331 2009-06-17  Eric Blake  <ebb9@byu.net>
43332
43333         hash: minor cleanups
43334         * lib/hash.h (hash_entry): Make opaque, by moving...
43335         * lib/hash.c (hash_entry): ...here.
43336         (hash_insert): Clarify restrictions on what can be inserted.
43337         (hash_get_next): Clarify when it is safe to remove an element
43338         during traversal.
43339         (check_tuning): Skip verification when tuning is known safe.
43340         (hash_initialize): Clarify restrictions on tuning.
43341
43342 2009-06-17  Jim Meyering  <jim@meyering.net>
43343         and Eric Blake  <ebb9@byu.net>
43344
43345         hash-tests: new module
43346         * modules/hash-tests: New file.
43347         * tests/test-hash.c: New file.
43348
43349 2009-06-17  Eric Blake  <ebb9@byu.net>
43350
43351         strstr-simple: document new module
43352         * MODULES.html.sh: Document new module.
43353
43354         strstr, strcasestr: replace on platforms with broken memchr
43355         * modules/strstr: Split into...
43356         * modules/strstr-simple: ...new module that does not care about
43357         performance, but does care about glibc bug.
43358         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
43359         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
43360         if platform memchr is broken, per Debian bug 521737.
43361         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
43362         memchr.
43363         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
43364         * doc/posix-functions/strstr.texi (strstr): Document the fix.
43365         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43366         * modules/mountlist (Depends-on): Add strstr-simple.
43367         * modules/gen-uni-tables (Depends-on): Likewise.
43368         * modules/argz (Depends-on): Add strstr.
43369
43370 2009-06-17  Bruno Haible  <bruno@clisp.org>
43371
43372         * modules/posix_spawn-internal (Depends-on): Add errno.
43373
43374 2009-06-17  Bruno Haible  <bruno@clisp.org>
43375
43376         Define missing ESTALE on Interix 3.5.
43377         * lib/errno.in.h (ESTALE): Assign a value if missing.
43378         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
43379         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
43380         missing.
43381         * doc/posix-headers/errno.texi: Mention the Interix bug.
43382         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
43383
43384 2009-06-15  Eric Blake  <ebb9@byu.net>
43385
43386         memchr, memchr2: add valgrind exception
43387         * lib/memchr.valgrind: New file.
43388         * lib/memchr2.valgrind: New file.
43389         * modules/memchr (Files): Distribute valgrind file.
43390         * modules/memchr2 (Files): Likewise.
43391
43392         docs: memchr is no longer obsolete
43393         * MODULES.html.sh: Move memchr from obsolete to string.h section.
43394         * lib/string.in.h (memchr): Simplify logic.
43395
43396 2009-06-14  Jim Meyering  <meyering@redhat.com>
43397
43398         link-follow: fix the "checking..." message to not mention trailing slash
43399         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
43400         never considered trailing slashes.
43401
43402 2009-06-14  Bruno Haible  <bruno@clisp.org>
43403
43404         * m4/memchr.m4: Mention also the bug on IA-64.
43405         * doc/posix-functions/memchr.texi: Likewise.
43406
43407 2009-06-12  Eric Blake  <ebb9@byu.net>
43408
43409         memchr: detect broken x86_64 and alpha implementations
43410         * modules/memchr-tests (Depends-on): Move mmap detection...
43411         * modules/memchr (Depends-on): ...here.
43412         (configure.ac): Set indicator.
43413         * lib/string.in.h (memchr): Declare replacement.
43414         * modules/string (Makefile.am): Trigger replacement.
43415         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43416         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
43417         bugs.
43418         * doc/posix-functions/memchr.texi (memchr): Document the bug.
43419         * modules/getpagesize (License): Relax license.
43420
43421 2009-06-11  Bruno Haible  <bruno@clisp.org>
43422
43423         * lib/idpriv.h: Add more references.
43424
43425 2009-06-08  Bruno Haible  <bruno@clisp.org>
43426
43427         Tests for module 'idpriv-droptemp'.
43428         * modules/idpriv-droptemp-tests: New file.
43429         * tests/test-idpriv-droptemp.sh: New file.
43430         * tests/test-idpriv-droptemp.su.sh: New file.
43431         * tests/test-idpriv-droptemp.c: New file.
43432
43433         New module 'idpriv-droptemp'.
43434         * lib/idpriv-droptemp.c: New file.
43435         * modules/idpriv-droptemp: New file.
43436
43437 2009-06-08  Bruno Haible  <bruno@clisp.org>
43438
43439         Tests for module 'idpriv-drop'.
43440         * modules/idpriv-drop-tests: New file.
43441         * tests/test-idpriv-drop.sh: New file.
43442         * tests/test-idpriv-drop.su.sh: New file.
43443         * tests/test-idpriv-drop.c: New file.
43444
43445         New module 'idpriv-drop'.
43446         * lib/idpriv.h: New file.
43447         * lib-idpriv-drop.c: New file.
43448         * m4/idpriv.m4: New file.
43449         * modules/idpriv-drop: New file.
43450
43451 2009-06-08  Bruno Haible  <bruno@clisp.org>
43452
43453         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
43454         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43455         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43456         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43457         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43458         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43459         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43460
43461 2009-06-08  Eric Blake  <ebb9@byu.net>
43462
43463         test-strstr: use memory fence, when possible
43464         * tests/test-strstr.c (main): Use memory fence, in order to be
43465         more likely to trigger Debian bug 521737.
43466         * modules/strstr-tests (Files): Pull in additional files.
43467
43468         memchr: no longer obsolete, for wider field testing
43469         * modules/memchr (Status, Notice): Delete, this module is no
43470         longer obsolete.
43471         * modules/vasnprintf (Depends-on): Add memchr.
43472
43473 2009-06-07  Jim Meyering  <meyering@redhat.com>
43474
43475         hash: declare some functions with the warn_unused_result attribute
43476         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
43477
43478 2009-06-07  Bruno Haible  <bruno@clisp.org>
43479
43480         * tests/test-alignof.c: Don't test int64_t if it does not exist.
43481         Reported by Eric Blake.
43482
43483 2009-06-06  Eric Blake  <ebb9@byu.net>
43484
43485         test-alignof: fix typo with long double
43486         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
43487         compiler error.
43488
43489 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
43490
43491         Escape non-texinfo { and }s.
43492         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
43493         markup error.
43494
43495 2009-06-04  Jim Meyering  <meyering@redhat.com>
43496
43497         gitlog-to-changelog: don't infloop on an empty commit log
43498         * build-aux/gitlog-to-changelog: Warn about an empty log message.
43499         Reported by Boris Petersen <transacid@centerim.org>.
43500
43501 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
43502
43503         version-etc: extend for packagers
43504         Add three new configure options, intended for packagers:
43505           --with-packager="packager name"
43506           --with-packager-version="packager-specific version"
43507           --with-packager-bug-reports="packager bug reporting"
43508         An example with coreutils:
43509           $ ./configure \
43510             --with-packager=Gentoo \
43511             --with-packager-bug-report=http://bugs.gentoo.org/ \
43512             --with-packager-version="patchset 1.6"
43513           $ ./src/ls --version | head -n2
43514           ls (GNU coreutils) 7.1-dirty
43515           Packaged by Gentoo (patchset 1.6)
43516         Note that the bug reporting info via --help doesn't show up because
43517         coreutils uses its own custom emit_bug_reporting_address() implementation
43518         in src/system.h.  If it didn't, it'd look like:
43519           $ ./src/ls --help | tail -n4
43520           Report bugs to <bug-coreutils@gnu.org>.
43521           Report Gentoo bugs to <http://bugs.gentoo.org/>.
43522           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
43523           General help using GNU software: <http://www.gnu.org/gethelp/>.
43524         * lib/version-etc.c: Print new information, if provided.
43525         * m4/version-etc.m4: New file.
43526         * modules/version-etc (Files): Add m4/version-etc.m4.
43527         (configure.ac): Add gl_VERSION_ETC.
43528
43529 2009-05-31  Bruno Haible  <bruno@clisp.org>
43530
43531         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
43532         and 'int64_t'.
43533         * modules/alignof-tests (Dependencies): Add stdint.
43534         Reported by Eric Blake.
43535
43536 2009-05-31  Bruno Haible  <bruno@clisp.org>
43537
43538         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
43539         restriction due to compiler bugs.
43540         Reported by Eric Blake.
43541
43542 2009-05-31  Simon Josefsson  <simon@josefsson.org>
43543             Bruno Haible  <bruno@clisp.org>
43544
43545         Fix test-alignof failure.
43546         * lib/alignof.h (alignof_slot): New macro.
43547         (alignof_type): New macro, with the same semantics as the previous
43548         'alignof'.
43549         (alignof): Alias to alignof_slot.
43550         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
43551         check that the results are usable as constant expressions.
43552
43553 2009-05-31  Bruno Haible  <bruno@clisp.org>
43554
43555         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
43556         * tests/test-memchr.c (main): Check that memchr does not read past the
43557         first occurrence of the byte.
43558         * tests/test-strstr.c (main): Update comment.
43559         Suggested by Eric Blake.
43560
43561 2009-05-30  Bruno Haible  <bruno@clisp.org>
43562
43563         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
43564         detail how to use dumpbin.
43565         Reported by David Byron <dbyron@dbyron.com>.
43566
43567 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43568
43569         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
43570
43571 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43572
43573         * m4/manywarnings.m4: Add GCC 4.4 warnings.
43574
43575 2009-05-28  Bruno Haible  <bruno@clisp.org>
43576
43577         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
43578         build-aux/ files.
43579
43580 2009-05-28  Simon Josefsson  <simon@josefsson.org>
43581
43582         * gnulib-tool (func_import): Transform license on build-aux/ files too.
43583
43584 2009-05-27  Simon Josefsson  <simon@josefsson.org>
43585
43586         * gnulib-tool (sed_transform_main_lib_file)
43587         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
43588         regexps.
43589
43590 2009-05-26  Simon Josefsson  <simon@josefsson.org>
43591
43592         * tests/test-strstr.c: Add another self-test.
43593         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
43594         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
43595
43596 2009-05-23  Bruno Haible  <bruno@clisp.org>
43597
43598         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
43599         change.
43600
43601 2009-05-21  Bruno Haible  <bruno@clisp.org>
43602
43603         Simplify use of mode_t varargs.
43604         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
43605         uses 'mode_t' or 'int'.
43606         * lib/openat.c (openat): Likewise.
43607         * lib/open-safer.c (open_safer): Likewise.
43608         * m4/mode_t.m4: New file.
43609         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
43610         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
43611         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
43612         * modules/open (Files): Add m4/mode_t.m4.
43613         * modules/openat (Files): Likewise.
43614         * modules/fcntl-safer (Files): Likewise.
43615         Suggested by Eric Blake.
43616
43617 2009-05-21  Pádraig Brady  <P@draigbrady.com>
43618
43619         * doc/glibc-functions/fallocate.texi: New file.
43620         * doc/gnulib.texi: Include it.
43621
43622 2009-05-21  Eric Blake  <ebb9@byu.net>
43623             Bruno Haible  <bruno@clisp.org>
43624
43625         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
43626         invocations.
43627         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43628
43629 2009-05-21  Eric Blake  <ebb9@byu.net>
43630             Bruno Haible  <bruno@clisp.org>
43631
43632         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
43633         include_next. Fix of 2008-11-20 commit.
43634         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
43635         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
43636         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
43637         NEXT_MATH_H.
43638         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
43639         instead of NEXT_MATH_H.
43640
43641 2009-05-21  Bruno Haible  <bruno@clisp.org>
43642
43643         Avoid redefinition warnings for SIZE_MAX.
43644         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
43645         Reported by Simon Josefsson.
43646
43647 2009-05-21  Bruno Haible  <bruno@clisp.org>
43648
43649         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
43650         AC_CACHE_VAL.
43651
43652 2009-05-20  Bruno Haible  <bruno@clisp.org>
43653
43654         Make zeroptr.h work on mingw.
43655         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
43656         mprotect.
43657         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
43658         * modules/memchr2-tests (configure.ac): Likewise.
43659         * modules/memcmp-tests (configure.ac): Likewise.
43660         * modules/memmem-tests (configure.ac): Likewise.
43661         * modules/memrchr-tests (configure.ac): Likewise.
43662         Reported by Simon Josefsson.
43663
43664 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43665
43666         * tests/test-glob.c: Include string.h for strcmp prototype.
43667
43668 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43669
43670         * modules/getdelim (Depends-on): Add explicit stdint, although it
43671         was implicitly already pulled in via realloc-posix.
43672         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
43673
43674 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43675
43676         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
43677         G. Christensen" <tgc@jupiterrise.com>.
43678         * m4/sys_socket_h.m4: Check for sa_family_t.
43679         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
43680         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
43681         * tests/test-sys_socket.c: Check that sa_family_t works.
43682
43683 2009-05-18  Eric Blake  <ebb9@byu.net>
43684
43685         maint.mk: allow gnulib_dir in VPATH build
43686         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
43687
43688 2009-05-15  Jim Meyering  <meyering@redhat.com>
43689
43690         maint.mk: Give gnulib_dir a default definition.
43691         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
43692         Thus, most packages no longer need to specify this variable in cfg.mk
43693
43694 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
43695
43696         rename.m4: fix typos that would make non-mingw cross-configure fail
43697         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
43698
43699 2009-05-13  Eric Blake  <ebb9@byu.net>
43700
43701         mmap-anon: avoid out-of-order autoconf expansion
43702         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
43703         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
43704         * modules/memchr-tests (Depends-on): Add extensions.
43705         * modules/memchr2-tests (Depends-on): Add extensions.
43706         * modules/memcmp-tests (Depends-on): Add extensions.
43707         * modules/memmem-tests (Depends-on): Add extensions.
43708         * modules/memrchr-tests (Depends-on): Add extensions.
43709
43710 2009-05-13  Bruno Haible  <bruno@clisp.org>
43711
43712         Make some tests ISO C 99 compliant.
43713         * tests/zerosize-ptr.h: New file.
43714         * tests/test-memchr.c: Include zerosize-ptr.h.
43715         (main): Use a zero-size object pointer instead of NULL.
43716         * tests/test-memchr2.c: Include zerosize-ptr.h.
43717         (main): Use a zero-size object pointer instead of NULL.
43718         * tests/test-memcmp.c: Include zerosize-ptr.h.
43719         (main): Use a zero-size object pointer instead of NULL.
43720         * tests/test-memmem.c: Include zerosize-ptr.h.
43721         (main): Use a zero-size object pointer instead of NULL.
43722         * tests/test-memrchr.c: Include zerosize-ptr.h.
43723         (main): Use a zero-size object pointer instead of NULL.
43724         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
43725         m4/mmap-anon.m4.
43726         (Depends-on): Add getpagesize.
43727         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43728         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
43729         m4/mmap-anon.m4.
43730         (Depends-on): Add getpagesize.
43731         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43732         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
43733         m4/mmap-anon.m4.
43734         (Depends-on): Add getpagesize.
43735         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43736         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
43737         m4/mmap-anon.m4.
43738         (Depends-on): Add getpagesize.
43739         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43740         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
43741         m4/mmap-anon.m4.
43742         (Depends-on): Add getpagesize.
43743         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43744
43745 2009-05-12  Bruno Haible  <bruno@clisp.org>
43746
43747         Tests for module 'alignof'.
43748         * modules/alignof-tests: New file.
43749         * tests/test-alignof.c: New file.
43750
43751 2009-05-12  Bruno Haible  <bruno@clisp.org>
43752
43753         Fix alignof macro.
43754         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
43755         vendor compilers that are always correct.
43756
43757 2009-05-12  Bruno Haible  <bruno@clisp.org>
43758
43759         Make the MAP_ANONYMOUS detection work on HP-UX 11.
43760         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
43761         not whether its fully works.
43762
43763 2009-05-12  Bruno Haible  <bruno@clisp.org>
43764
43765         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
43766
43767 2009-05-12  Jim Meyering  <meyering@redhat.com>
43768
43769         * top/maint.mk: Adjust backslash alignment.
43770
43771 2009-05-11  Simon Josefsson  <simon@josefsson.org>
43772
43773         * top/maint.mk: Make $(srcdir)/build-aux configurable.
43774
43775 2009-05-11  Eric Blake  <ebb9@byu.net>
43776
43777         argp: avoid undefined behavior
43778         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
43779         macros.
43780
43781 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43782
43783         * tests/test-vc-list-files-git.sh: Do git config of user.email and
43784         user.name to prevent git commit from complaining.
43785
43786 2009-05-10  Bruno Haible  <bruno@clisp.org>
43787
43788         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
43789         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
43790         it rewrites every file name only once.
43791         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
43792
43793 2009-05-08  Bruno Haible  <bruno@clisp.org>
43794
43795         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
43796         instead of 'max'.
43797
43798 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43799
43800         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
43801         sockaddr_storage test.
43802
43803 2009-05-07  Simon Josefsson  <simon@josefsson.org>
43804
43805         * modules/sys_socket (Makefile.am): Substitute
43806         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
43807         * m4/sys_socket_h.m4: Check for sockaddr_storage.
43808         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
43809         * tests/test-sys_socket.c: Check sockaddr_storage.
43810
43811 2009-05-08  Bruno Haible  <bruno@clisp.org>
43812
43813         New module 'alignof'.
43814         * lib/alignof.h: New file.
43815         * modules/alignof: New file.
43816
43817 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43818             Bruno Haible  <bruno@clisp.org>
43819
43820         Fix test-file-has-acl on FreeBSD.
43821         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
43822         mask is implicitly added.
43823         * tests/test-file-has-acl.c: Include <signal.h>.
43824         (main): Terminate the test after 5 seconds.
43825         * modules/acl-tests (configure.ac): Check for alarm function.
43826
43827 2009-05-04  Bruno Haible  <bruno@clisp.org>
43828
43829         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
43830         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
43831         * modules/errno (configure.ac): Drop AC_REQUIRE.
43832         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
43833         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
43834
43835 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43836
43837         * modules/glob-tests: New module.
43838         * tests/test-glob.c: Add.
43839
43840 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43841
43842         * modules/fnmatch-tests: New module.
43843         * tests/test-fnmatch.c: Add.
43844
43845 2009-05-04  Eric Blake  <ebb9@byu.net>
43846
43847         maint: make the new no-submodule-changes rule VPATH-safe
43848         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
43849
43850 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43851             Bruno Haible  <bruno@clisp.org>
43852
43853         acl: Fix infinite loop on FreeBSD.
43854         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
43855         of return value from acl_get_entry.
43856         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
43857         Likewise.
43858
43859 2009-05-03  Bruno Haible  <bruno@clisp.org>
43860
43861         * lib/acl-internal.h (acl_entries): Clarify return value.
43862         * lib/acl_entries.c (acl_entries): Likewise.
43863
43864 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43865
43866         Bug fix in acl module.
43867         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
43868
43869 2009-05-03  Bruno Haible  <bruno@clisp.org>
43870
43871         Create gperf-generated file in the source dir, not in the build dir.
43872         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
43873         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
43874         * modules/unicase/locale-language (unicase/locale-languages.h):
43875         Likewise.
43876         * modules/unicase/special-casing (unicase/special-casing-table.h):
43877         Likewise.
43878         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
43879         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
43880         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
43881         Reported by Ralf Wildenhues.
43882
43883 2009-05-03  Bruno Haible  <bruno@clisp.org>
43884
43885         * modules/fnmatch (Description, configure.ac): Taken from
43886         fnmatch-posix.
43887         * modules/fnmatch-posix: Turn into a symbolic reference to the
43888         'fnmatch' module, and deprecate.
43889         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
43890
43891 2009-05-03  Bruno Haible  <bruno@clisp.org>
43892
43893         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
43894         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
43895         Reported by Ralf Wildenhues.
43896
43897 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43898
43899         * m4/fnmatch.m4: Fix fnmatch re-define.
43900
43901 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43902
43903         priv-set: new module and tests; adapt write-any-file
43904         * lib/priv-set.c: New file.
43905         * lib/priv-set.h: New file.
43906         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
43907         * lib/write-any-file.c: Simplify by using priv-set module.
43908         * m4/priv-set.m4: New file.
43909         * modules/priv-set: New file.
43910         * modules/unlinkdir: Add dependency on priv-set module.
43911         * modules/write-any-file: Likewise.
43912
43913         Tests for module 'priv-set'.
43914         * modules/priv-set-tests: New file.
43915         * tests/test-priv-set.c: New file.
43916
43917 2009-05-03  Jim Meyering  <meyering@redhat.com>
43918             Bruno Haible  <bruno@clisp.org>
43919
43920         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
43921         use the converted UTF-8 variant of the name instead.
43922
43923 2009-05-03  Jim Meyering  <meyering@redhat.com>
43924
43925         tests: tighten some getdate tests
43926         * tests/test-getdate.c (main): Tighten tests: require equality,
43927         not just greater than.  Set TZ envvar to UTC0.
43928
43929 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
43930
43931         getdate: correctly interpret "next monday" when run on a Monday
43932         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
43933         that e.g., "next tues" (when run on a tuesday) results in a date
43934         that is one week in the future, and not today's date.
43935         I.e., add a week when the wday is the same as the current one.
43936         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
43937         and earlier by Martin Bernreuther and Jan Minář.
43938         * tests/test-getdate.c (main): Check that "next DAY" is always in
43939         the future and that "last DAY" is always in the past.
43940
43941 2009-05-02  Jim Meyering  <meyering@redhat.com>
43942
43943         build: ensure that a release build fails when a submodule is unclean
43944         * top/maint.mk (no-submodule-changes): New rule.
43945         (alpha beta major): Depend on it.
43946
43947 2009-05-02  Bruno Haible  <bruno@clisp.org>
43948
43949         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
43950         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
43951         shell variable gl_fnmatch_required to detect which variant is
43952         requested.
43953         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
43954         gl_FUNC_FNMATCH_POSIX.
43955         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
43956         exclude fnmatch-posix.
43957
43958 2009-05-02  Bruno Haible  <bruno@clisp.org>
43959
43960         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
43961         * modules/mbsrtowcs (License): Change to LGPLv2+.
43962         * modules/strnlen1 (License): Likewise.
43963         Reported by Simon Josefsson.
43964
43965 2009-05-02  Bruno Haible  <bruno@clisp.org>
43966
43967         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
43968         "cross".
43969         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
43970         gnulib-tool was called with option --source-base=lib.
43971
43972 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43973
43974         Use automake *-local hooks without commands, for extensibility.
43975         * modules/localcharset (Makefile.am): Rename install-exec-local
43976         rule to install-exec-localcharset, and make it a prerequisite of
43977         install-exec-local.  Likewise, rename the uninstall-local rule to
43978         uninstall-localcharset, and make it a prerequisite of the former.
43979
43980 2009-05-01  Bruno Haible  <bruno@clisp.org>
43981
43982         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
43983         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
43984         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
43985         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
43986         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
43987         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
43988         m4/locale-zh.m4, m4/codeset.m4.
43989
43990         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
43991         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
43992         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
43993         m4/locale-zh.m4.
43994
43995         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
43996         REPLACE_WCRTOMB if mbstate_t must be replaced.
43997         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
43998         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
43999
44000 2009-05-01  Bruno Haible  <bruno@clisp.org>
44001
44002         Avoid compiler warnings when redefining macros defined by <libintl.h>.
44003         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
44004         dngettext, dcngettext, textdomain, bindtextdomain,
44005         bind_textdomain_codeset): Undefine before redefining.
44006
44007 2009-04-30  Bruno Haible  <bruno@clisp.org>
44008
44009         Fix bug introduced on 2009-04-25.
44010         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
44011         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
44012         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
44013         is defined.
44014         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
44015         is defined.
44016         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
44017         is defined.
44018         Reported by Elbert_Pol <elbert.pol@gmail.com>.
44019
44020 2009-04-28  Bruno Haible  <bruno@clisp.org>
44021
44022         Comment tweaks.
44023         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
44024         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
44025         * lib/unicase.h (u*_casexfrm): Likewise.
44026         Reported by Paolo Bonzini.
44027
44028 2009-04-28  Bruno Haible  <bruno@clisp.org>
44029
44030         Fix a compilation error.
44031         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
44032         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
44033         Reported by Jim Meyering.
44034
44035 2009-04-27  Bruno Haible  <bruno@clisp.org>
44036
44037         New module 'libunistring'.
44038         * modules/libunistring: New file.
44039         * m4/libunistring.m4: New file.
44040         * MODULES.html.sh (Unicode string functions): Add it.
44041
44042 2009-04-27  Eric Blake  <ebb9@byu.net>
44043
44044         maint.mk: allow package-specific header to provide <config.h>
44045         * top/maint.mk (sc_require_config_h): New variable.
44046         (sc_require_config_h, sc_require_config_h_first): Use it.
44047
44048 2009-04-27  Simon Josefsson  <simon@josefsson.org>
44049
44050         * top/maint.mk (sc_avoid_if_before_free): Except
44051         useless-if-before-free script.
44052
44053 2009-04-27  Eric Blake  <ebb9@byu.net>
44054
44055         maintainer-makefile: depend on all required helper scripts
44056         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
44057         useless-if-before-free.
44058         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
44059         version, rather than assuming gnulib checkout is available.
44060         Reported by Simen Josefsson.
44061
44062 2009-04-26  Bruno Haible  <bruno@clisp.org>
44063
44064         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
44065         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
44066         "../" or "..".
44067
44068 2009-04-26  Bruno Haible  <bruno@clisp.org>
44069
44070         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
44071         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
44072         AC_LIB_HAVE_LINKFLAGS.
44073
44074 2009-04-26  Bruno Haible  <bruno@clisp.org>
44075
44076         Simplify calling convention of u*_conv_from_encoding.
44077         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
44078         u32_conv_from_encoding): Expect a resultbuf argument and return the
44079         result directly as a pointer.
44080         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
44081         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
44082         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
44083         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
44084         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
44085         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44086         Update.
44087         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
44088         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
44089         * lib/vasnprintf.c (VASNPRINTF): Update.
44090         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
44091         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
44092         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
44093         * NEWS: Mention the change.
44094
44095 2009-04-26  Bruno Haible  <bruno@clisp.org>
44096
44097         Simplify calling convention of u*_conv_to_encoding.
44098         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
44099         u32_conv_to_encoding): Expect a resultbuf argument and return the
44100         result directly as a pointer.
44101         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44102         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
44103         freeing scaled_offsets if mem_iconveha failed.
44104         * lib/unicase/u-casexfrm.h (FUNC): Update.
44105         * lib/uninorm/u-normxfrm.h (FUNC): Update.
44106         * lib/vasnprintf.c (VASNPRINTF): Update.
44107         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
44108         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
44109         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
44110         * NEWS: Mention the change.
44111
44112 2009-04-26  Bruno Haible  <bruno@clisp.org>
44113
44114         Avoid test failures on AIX and OSF/1.
44115         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
44116         malloc(0).
44117         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
44118         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
44119         Likewise.
44120         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
44121         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
44122         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
44123         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
44124         * doc/posix-functions/malloc.texi: Document the portability problem
44125         related to malloc(0).
44126
44127 2009-04-26  Bruno Haible  <bruno@clisp.org>
44128
44129         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
44130         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
44131         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
44132
44133 2009-04-25  Bruno Haible  <bruno@clisp.org>
44134
44135         Avoid link error when creating a namespace clean library.
44136         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
44137         as macro with arguments if already defined as an alias.
44138         * lib/signbitf.c (gl_signbitf): Don't undefine.
44139         * lib/signbitd.c (gl_signbitd): Don't undefine.
44140         * lib/signbitl.c (gl_signbitl): Don't undefine.
44141
44142 2009-04-25  Jim Meyering  <meyering@redhat.com>
44143
44144         vc-list-files: fix another quoting bug
44145         * build-aux/vc-list-files: Avoid sed backslash expansion
44146         of pathological directory names.
44147
44148 2009-04-25  Eric Blake  <ebb9@byu.net>
44149
44150         vc-list-files: fix shell quoting error
44151         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
44152         timestamp.
44153
44154 2009-04-25  Jim Meyering  <meyering@redhat.com>
44155
44156         vc-list-files: restore lost functionality with subdir argument
44157         * build-aux/vc-list-files: When given a non-"." sub-directory
44158         argument, substitute the $dir/ prefix back onto each resulting name.
44159         Otherwise, coreutils' root_tests check would fail.
44160
44161 2009-04-24  Eric Blake  <ebb9@byu.net>
44162
44163         vc-list-files: ignore git symlinks
44164         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
44165         than ls-files, to ignore git symlinks.
44166
44167         maint.mk: import improvements from m4
44168         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
44169         (move_if_change): Delete unused macro.
44170         (news-date-check, vc-diff-check): Support VPATH builds.
44171         (announcement): Likewise.  Split --bootstrap-tools list...
44172         (boostrap-tools): ...into separate list, which can be overridden
44173         in cfg.mk.
44174         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
44175         requiring dependency on useless-if-before-free module.
44176         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
44177         Support VPATH builds.
44178
44179 2009-04-24  Jim Meyering  <meyering@redhat.com>
44180
44181         maint.mk: remove coreutils-specific rules and variables
44182         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
44183         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
44184         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
44185
44186         maint.mk: remove obsolete rule
44187         * top/maint.mk (rel-check): Remove rule.
44188         (WGET, WGETFLAGS): Remove now-unused variables.
44189
44190 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44191
44192         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
44193         consistency.
44194
44195         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
44196         '$(PATH_SEPARATOR)' instead of ':'.
44197
44198 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44199
44200         * lib/getopt1.c (main): Use 'const' for static array.
44201
44202 2009-04-24  Simon Josefsson  <simon@josefsson.org>
44203
44204         * top/maint.mk: Sync with coreutils.
44205         * NEWS: Explain incompatibilities.
44206
44207 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44208             Bruno Haible  <bruno@clisp.org>
44209
44210         Fix cross-compilation results.
44211         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
44212         statement, as third argument of AC_TRY_RUN.
44213         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
44214         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
44215         Likewise.
44216         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
44217         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
44218         Likewise.
44219         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
44220         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
44221         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
44222
44223 2009-04-20  Bruno Haible  <bruno@clisp.org>
44224
44225         Avoid test failure on mingw.
44226         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
44227
44228 2009-04-20  Bruno Haible  <bruno@clisp.org>
44229
44230         Avoid compilation error on mingw.
44231         * modules/localename-tests (Depends-on): Add locale.
44232
44233 2009-04-19  Bruno Haible  <bruno@clisp.org>
44234
44235         Support for building a shared library on Windows platforms.
44236         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
44237         (main): Test the presence of UNINORM_NFC here.
44238         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
44239         (main): Test the presence of UNINORM_NFD here.
44240         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
44241         (main): Test the presence of UNINORM_NFKC here.
44242         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
44243         (main): Test the presence of UNINORM_NFKD here.
44244
44245 2009-04-19  Bruno Haible  <bruno@clisp.org>
44246
44247         Avoid a compiler warning.
44248         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
44249         Change type of variable 'sequence'.
44250
44251 2009-04-19  Bruno Haible  <bruno@clisp.org>
44252
44253         * modules/configmake (Makefile.am): When the contents of configmake.h
44254         does not change, arrange to preserve its modification time.
44255
44256 2009-04-17  Simon Josefsson  <simon@josefsson.org>
44257
44258         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
44259         gettext domain.
44260
44261 2009-04-16  Jim Meyering  <meyering@redhat.com>
44262
44263         useless-if-before-free: improve conversion code
44264         * build-aux/useless-if-before-free: Adjust code-in-comment to match
44265         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44266
44267 2009-04-14  Bruno Haible  <bruno@clisp.org>
44268
44269         * modules/fcntl (Depends-on): Add extensions.
44270         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44271
44272 2009-04-12  Ben Pfaff  <blp@gnu.org>
44273
44274         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44275         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44276
44277 2009-03-20  Ben Pfaff  <blp@gnu.org>
44278
44279         Make rename replace existing destinations on Windows.
44280         * m4/rename.m4: Add test for Mingw.
44281         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44282         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44283         * doc/posix-functions/rename.texi: Document.
44284
44285 2009-04-10  Bruno Haible  <bruno@clisp.org>
44286
44287         New include file "iconveh.h".
44288         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
44289         * lib/striconveh.h: Include it.
44290         (enum iconv_ilseq_handler): Remove definition.
44291         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
44292         striconveh.h.
44293         * lib/striconveha.c: Include striconveh.h.
44294         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
44295         * modules/striconveh (Files): Add lib/iconveh.h.
44296         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
44297         lib/striconveh.h.
44298
44299 2009-04-10  Bruno Haible  <bruno@clisp.org>
44300
44301         * lib/uniconv.h: Update comment.
44302
44303 2009-04-10  Bruno Haible  <bruno@clisp.org>
44304
44305         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
44306         always.
44307         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44308         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44309         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44310         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
44311         "unistring-notinline.h", so that the function gets defined always.
44312         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44313         * lib/unistr/u8-uctomb.c: Likewise.
44314         * lib/unistr/u16-mbtouc.c: Likewise.
44315         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44316         * lib/unistr/u16-uctomb.c: Likewise.
44317         * lib/unistr/u32-mbtouc.c: Likewise.
44318         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44319         * lib/unistr/u32-uctomb.c: Likewise.
44320
44321 2009-04-10  Bruno Haible  <bruno@clisp.org>
44322
44323         Mark 'utime' obsolete.
44324         * modules/utime (Status, Notice): New sections.
44325         Suggested by Jim Meyering.
44326
44327         Fix cross-compile guess for utime test.
44328         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
44329         autoconf.
44330         * doc/posix-functions/utime.texi: Give more precisions.
44331         Reported by Jan <ipif@ymail.com>.
44332
44333 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
44334
44335         filevercmp: correct today's change
44336         * lib/filevercmp.c: Also handle coreutils' test inputs.
44337         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
44338
44339         Fix regression in 'filevercmp' module. Thanks Sven Joachim
44340         for reporting it.
44341         * lib/filevercmp.c: Special handle for "", "." and "..".
44342         * tests/test-filevercmp.c: Enlarge the set suite.
44343
44344 2009-04-07  Jim Meyering  <meyering@redhat.com>
44345
44346         useless-if-before-free: show how to remove braced useless free, too
44347         * build-aux/useless-if-before-free: still only in a comment, though.
44348
44349 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
44350
44351         maint.mk: import changes to syntax-check macros from coreutils
44352         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
44353         Use them in the relevant macros.
44354
44355 2009-04-06  Bruno Haible  <bruno@clisp.org>
44356
44357         Fix unportable use of bit-fields.
44358         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
44359         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
44360         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
44361
44362 2009-04-06  Bruno Haible  <bruno@clisp.org>
44363
44364         Avoid test failures on AIX and OSF/1.
44365         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
44366         that malloc(0) = NULL.
44367         * tests/unicase/test-u8-tolower.c (check): Likewise.
44368         * tests/unicase/test-u8-totitle.c (check): Likewise.
44369         * tests/unicase/test-u8-toupper.c (check): Likewise.
44370         * tests/unicase/test-u16-casefold.c (check): Likewise.
44371         * tests/unicase/test-u16-tolower.c (check): Likewise.
44372         * tests/unicase/test-u16-totitle.c (check): Likewise.
44373         * tests/unicase/test-u16-toupper.c (check): Likewise.
44374         * tests/unicase/test-u32-casefold.c (check): Likewise.
44375         * tests/unicase/test-u32-tolower.c (check): Likewise.
44376         * tests/unicase/test-u32-totitle.c (check): Likewise.
44377         * tests/unicase/test-u32-toupper.c (check): Likewise.
44378         * tests/uninorm/test-u8-nfc.c (check): Likewise.
44379         * tests/uninorm/test-u8-nfd.c (check): Likewise.
44380         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
44381         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
44382         * tests/uninorm/test-u16-nfc.c (check): Likewise.
44383         * tests/uninorm/test-u16-nfd.c (check): Likewise.
44384         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
44385         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
44386         * tests/uninorm/test-u32-nfc.c (check): Likewise.
44387         * tests/uninorm/test-u32-nfd.c (check): Likewise.
44388         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
44389         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
44390
44391 2009-04-05  Bruno Haible  <bruno@clisp.org>
44392
44393         Work around an autoconf limitation.
44394         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
44395         comment line if it would be longer than 3 KB.
44396
44397 2009-04-05  Bruno Haible  <bruno@clisp.org>
44398
44399         Avoid test failure with libiconv-1.13.
44400         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
44401         of the expected test results.
44402
44403 2009-04-05  Bruno Haible  <bruno@clisp.org>
44404
44405         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
44406         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
44407         that it should be installed.
44408
44409 2009-04-05  Bruno Haible  <bruno@clisp.org>
44410
44411         * gnulib-tool: New option --copy-file.
44412         (func_usage): Document it.
44413         (func_dest_tmpfilename): Moved out of func_import.
44414         (func_add_file, func_update_file): New functions, extracted from
44415         func_import.
44416         (func_import): Update.
44417
44418 2009-04-05  Karl Berry  <karl@gnu.org>
44419
44420         * README: prominently mention gnulib-tool.
44421         Rearrange sections so getting the code is near the top.
44422
44423 2009-04-05  Bruno Haible  <bruno@clisp.org>
44424
44425         * lib/unicase.h: Mention u*_cmp2.
44426         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44427         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
44428         * lib/unicase/ulc-casecmp.c: Likewise.
44429         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
44430         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
44431         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
44432         unistr/u8-cmp.
44433         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
44434         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
44435         unistr/u16-cmp.
44436         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
44437         unistr/u32-cmp.
44438
44439         * lib/uninorm.h: Mention u*_cmp2.
44440         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44441         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
44442         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
44443         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
44444         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
44445         unistr/u8-cmp.
44446         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
44447         unistr/u16-cmp.
44448         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
44449         unistr/u32-cmp.
44450
44451         New module 'unistr/u32-cmp2'.
44452         * lib/unistr/u32-cmp2.c: New file.
44453         * modules/unistr/u32-cmp2: New file.
44454
44455         New module 'unistr/u16-cmp2'.
44456         * lib/unistr/u16-cmp2.c: New file.
44457         * modules/unistr/u16-cmp2: New file.
44458
44459         New module 'unistr/u8-cmp2'.
44460         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
44461         * lib/unistr/u8-cmp2.c: New file.
44462         * lib/unistr/u-cmp2.h: New file.
44463         * modules/unistr/u8-cmp2: New file.
44464
44465 2009-04-05  Bruno Haible  <bruno@clisp.org>
44466
44467         * lib/unictype.h (uc_property_is_valid): New macro.
44468         * tests/unictype/test-pr_byname.c (main): Use it.
44469
44470         * lib/unistr.h: Doc fixes.
44471         * lib/uniconv.h: Doc fixes.
44472         * lib/unictype.h: Doc fixes.
44473
44474 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
44475
44476         Port coreutils 7.2 to Solaris 8.
44477
44478         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
44479         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
44480         for Solaris 8.  This is a bit of a hack, as it means it's the
44481         caller's responsibility to add -lnsl if needed, but most likely it
44482         won't be needed since only getaddrinfo uses this and getaddrinfo
44483         isn't needed on Solaris 8.
44484
44485         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
44486         problem to Solaris 8 encountered with coreutils 7.2, which
44487         resulted in a message "fnmatch.c:292: warning: passing argument 4
44488         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
44489         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
44490
44491 2009-04-03  Simon Josefsson  <simon@josefsson.org>
44492
44493         * m4/ld-version-script.m4: Add FIXME comment.
44494
44495 2009-04-02  Simon Josefsson  <simon@josefsson.org>
44496
44497         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
44498         SOVERSION variable.
44499
44500 2009-04-02  Bruno Haible  <bruno@clisp.org>
44501
44502         * Makefile (info, html, dvi, pdf): Combine the rules.
44503         Suggested by Jim Meyering.
44504
44505 2009-04-01  Bruno Haible  <bruno@clisp.org>
44506
44507         * Makefile (info, html, dvi, pdf): New targets.
44508         Reported by Reuben Thomas <rrt@sc3d.org>.
44509
44510 2009-04-01  Bruno Haible  <bruno@clisp.org>
44511
44512         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
44513         can be put into PATH.
44514         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
44515
44516 2009-04-01  Bruno Haible  <bruno@clisp.org>
44517
44518         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
44519
44520 2009-04-01  Bruno Haible  <bruno@clisp.org>
44521
44522         Rename module 'visibility'.
44523         * modules/lib-symbol-visibility: Renamed from modules/visibility.
44524         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
44525         * doc/gnulib.texi: Update.
44526         * MODULES.html.sh (Misc): Update.
44527         * NEWS: Mention the change.
44528
44529 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44530
44531         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
44532         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
44533         Eric Blake <ebb9@byu.net> for review.
44534         * MODULES.html.sh: Add lib-msvc-compat.
44535         * doc/gnulib.texi: Link to new section.
44536         * m4/ld-output-def.m4: New file.
44537         * doc/ld-output-def.texi: New file.
44538
44539 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44540
44541         Rename ld-version-script to lib-symbol-versions.  Suggested by
44542         Bruno Haible <bruno@clisp.org>.
44543         * modules/ld-version-script: Renamed to lib-symbol-versions.
44544         * doc/ld-version-script.texi: Fix module name.
44545         * MODULES.html.sh: Add lib-symbol-versions.
44546
44547 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44548
44549         * modules/u64-tests: New file.
44550         * tests/test-u64.c: New file.
44551
44552 2009-03-04  Simon Josefsson  <simon@josefsson.org>
44553
44554         * MODULES.html.sh: Mention u64.
44555         * modules/u64: New module.
44556         * modules/crypto/sha512: Depend on u64 module instead of providing
44557         u64.h.
44558
44559 2009-03-27  Eric Blake  <ebb9@byu.net>
44560
44561         test-strerror: make debugging EAI_SYSTEM easier
44562         * modules/getaddrinfo-tests (Depends-on): Add strerror.
44563         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
44564         failure was EAI_SYSTEM.
44565
44566 2009-03-25  Bruno Haible  <bruno@clisp.org>
44567
44568         Fix a problem with --enable-relocatable on Solaris 7.
44569         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
44570         since 2008-02-24.
44571
44572 2009-03-25  Eric Blake  <ebb9@byu.net>
44573
44574         test-sockets: avoid gcc warning
44575         * tests/test-sockets.c (main): Silence compiler warning.
44576
44577 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
44578
44579         New modules nproc, pthread, contributed by Glen Lenker.
44580
44581         * MODULES.html.sh: Add pthread, nproc.
44582         * lib/nproc.c: New file.
44583         * lib/nproc.h: New file.
44584         * lib/pthread.in.h: New file.
44585         * m4/pthread.m4: New file.
44586         * modules/nproc: New file.
44587         * modules/pthread: New file.
44588
44589 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44590
44591         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
44592         New variable.
44593
44594 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
44595
44596         filevercmp: handle simple~ and numbered.~3~ backup suffixes
44597         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
44598         * tests/test-filevercmp.c: Add tests for backup suffixes.
44599
44600 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44601
44602         * modules/stdlib (Depends-on): Add stdint, needed when defining
44603         struct random_data on, for example, HP-UX 10.20.  Reported by
44604         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44605
44606 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44607
44608         * lib/readline.c (readline): Call fflush on stdout after printing
44609         prompt.
44610
44611 2009-03-20  Bruno Haible  <bruno@clisp.org>
44612
44613         Remove dependency from 'close' module to -lws2_32 on native Windows.
44614         * lib/close-hook.h: New file.
44615         * lib/close-hook.c: New file.
44616         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
44617         w32sock.h.
44618         (_gl_close_fd_maybe_socket): Remove function.
44619         (rpl_close): Invoke execute_all_close_hooks instead of
44620         _gl_close_fd_maybe_socket.
44621         * lib/sockets.c: Include close-hook.h, w32sock.h.
44622         (close_fd_maybe_socket): New function, essentially from lib/close.c.
44623         (close_sockets_hook): New variable.
44624         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
44625         (gl_sockets_cleanup): Unregister it.
44626         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
44627         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
44628         * modules/close-hook: New file.
44629         * modules/close (Files): Remove lib/w32sock.h.
44630         (Depends-on): Add close-hook.
44631         (Link): Remove section.
44632         * modules/sockets (Files): Add lib/w32sock.h.
44633         (Depends-on): Add close-hook.
44634         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
44635         invocation.
44636         * NEWS: Mention that LIB_CLOSE is gone.
44637
44638 2009-03-23  Eric Blake  <ebb9@byu.net>
44639
44640         signal-tests: test previous patch
44641         * tests/test-signal.c: New file.
44642         * modules/signal-tests: Likewise.
44643
44644         signal.h: always support 'volatile sig_atomic_t'
44645         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
44646         (gl_SIGNAL_H_DEFAULTS): Add a default.
44647         * modules/signal (Makefile.am): Substitute if needed.
44648         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
44649         users can blindly add volatile.
44650         * doc/posix-headers/signal.texi (signal.h): Document it.
44651         Reported by Matthew Woehlke.
44652
44653 2009-03-23  Jim Meyering  <meyering@redhat.com>
44654
44655         pathmax: PATH_MAX: use pathconf only when available
44656         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
44657         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
44658         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
44659         This avoids a link failure in a PSP cross-compilation environment
44660         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
44661
44662         * lib/vasnprintf.c (divide): Fix typo in comment.
44663
44664 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44665
44666         * gnulib-tool (func_filter_filelist): Fix comment.
44667
44668 2009-03-20  Bruno Haible  <bruno@clisp.org>
44669
44670         Make sockets.h self-contained.
44671         * lib/sockets.c: Include sockets.h first.
44672         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
44673
44674 2009-03-19  Eric Blake  <ebb9@byu.net>
44675
44676         doc: mention more functions added in cygwin 1.7.0
44677         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
44678         addition.
44679         * doc/posix-functions/log2f.texi: Likewise.
44680
44681 2009-03-19  Jim Meyering  <meyering@redhat.com>
44682
44683         fsusage: avoid syntax error due to statement-before-declaration
44684         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
44685         after all declarations.  Reported by Matthew Woehlke in
44686         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
44687
44688 2009-03-18  Eric Blake  <ebb9@byu.net>
44689
44690         build-aux/compile: sync from automake
44691         * build-aux/compile: New file, from automake.
44692         * config/srclist.txt: Mention build-aux/compile.
44693
44694 2009-03-17  Bruno Haible  <bruno@clisp.org>
44695
44696         * lib/git-merge-changelog.c: Fix typo in comment.
44697         Reported by Reuben Thomas <rrt@sc3d.org>.
44698
44699 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
44700
44701         * m4/regex.m4: update and improve help for
44702         --without-included-regex.
44703
44704 2009-03-17  Simon Josefsson  <simon@josefsson.org>
44705
44706         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
44707         failure on missing include files.
44708
44709 2009-03-17  Eric Blake  <ebb9@byu.net>
44710
44711         doc: mention more functions added in cygwin 1.7.0
44712         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
44713         addition.
44714         * doc/posix-functions/fwscanf.texi: Likewise.
44715         * doc/posix-functions/swprintf.texi: Likewise.
44716         * doc/posix-functions/swscanf.texi: Likewise.
44717         * doc/posix-functions/vfwprintf.texi: Likewise.
44718         * doc/posix-functions/vfwscanf.texi: Likewise.
44719         * doc/posix-functions/vswprintf.texi: Likewise.
44720         * doc/posix-functions/vswscanf.texi: Likewise.
44721         * doc/posix-functions/vwprintf.texi: Likewise.
44722         * doc/posix-functions/vwscanf.texi: Likewise.
44723         * doc/posix-functions/wcscasecmp.texi: Likewise.
44724         * doc/posix-functions/wcsdup.texi: Likewise.
44725         * doc/posix-functions/wcsftime.texi: Likewise.
44726         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44727         * doc/posix-functions/wprintf.texi: Likewise.
44728         * doc/posix-functions/wscanf.texi: Likewise.
44729         * doc/glibc-functions/gethostbyname2.texi: Likewise.
44730
44731 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44732
44733         maint.mk: really add $(AM_MAKEFLAGS)
44734         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
44735         was inadvertently omitted in the last commit.
44736         Spotted by Bruno Haible.
44737
44738         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
44739         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
44740         $(AM_MAKEFLAGS)' rather than plain `make'.
44741
44742         gnulib-tool: execute $MAKE not make
44743         * gnulib-tool: Default $MAKE to 'make'.
44744         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
44745         than make.  Initialize $MAKE in the do-autobuild script.
44746
44747         gnulib-tool: use $MAKE not make in generated files
44748         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
44749         make, in generated files.  Initialize $MAKE in the do-autobuild
44750         script.
44751
44752         * top/GNUmakefile (_have-git-version-gen): Fix typo.
44753
44754         GNUmakefile: disable parallelism only for multiple, recursive targets
44755         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
44756         additions in the Makefile.
44757         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
44758         by Automake.
44759         (.NOTPARALLEL): Only disable parallel builds if multiple targets
44760         are listed on the command line and at least one of them is
44761         listed in $(ALL_RECURSIVE_TARGETS).
44762
44763 2009-03-14  Bruno Haible  <bruno@clisp.org>
44764
44765         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
44766         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
44767         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
44768         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
44769         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
44770         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
44771         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
44772         unistr/u8-uctomb.
44773         * modules/unistr/u8-strchr (Depends-on): Likewise.
44774         * modules/unistr/u8-strrchr (Depends-on): Likewise.
44775         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
44776         unistr/u16-uctomb.
44777         * modules/unistr/u16-strchr (Depends-on): Likewise.
44778         * modules/unistr/u16-strrchr (Depends-on): Likewise.
44779
44780 2009-03-12  Bruno Haible  <bruno@clisp.org>
44781
44782         Work around select() bug on Interix 3.5.
44783         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
44784         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
44785         * m4/select.m4: New file.
44786         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
44787         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
44788         * modules/select (Files): Add m4/select.m4.
44789         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
44790         * modules/nanosleep (Depends-on): Add select.
44791         * modules/poll (Depends-on): Likewise.
44792         * doc/posix-functions/select.texi: Mention the Interix bug.
44793         Reported by Markus Duft <mduft@gentoo.org>.
44794
44795         * lib/select.c: Renamed from lib/winsock-select.c.
44796         * modules/select (Files): Add lib/select.c, remove
44797         lib/winsock-select.c.
44798         (configure.ac): Update.
44799
44800 2009-03-12  Jim Meyering  <meyering@redhat.com>
44801
44802         avoid gcc warnings about unused macro definitions
44803         * lib/readtokens.c (STREQ): Remove unused definition.
44804         * lib/xmalloc.c (SIZE_MAX): Likewise.
44805         * lib/openat-die.c (N_): Likewise.
44806         * lib/mountlist.c (SIZE_MAX): Remove definition.
44807         Instead, include <stdint.h>.
44808         * lib/readutmp.c: Likewise.
44809         * modules/readutmp (Depends-on): Add stdint.
44810         * modules/mountlist (Depends-on): Add stdint.
44811         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
44812
44813 2009-03-10  Bruno Haible  <bruno@clisp.org>
44814
44815         Tests for module 'mbmemcasecoll'.
44816         * modules/mbmemcasecoll-tests: New file.
44817         * tests/test-mbmemcasecoll1.sh: New file.
44818         * tests/test-mbmemcasecoll2.sh: New file.
44819         * tests/test-mbmemcasecoll3.sh: New file.
44820         * tests/test-mbmemcasecoll.c: New file.
44821
44822         New module 'mbmemcasecoll'.
44823         * lib/mbmemcasecoll.h: New file.
44824         * lib/mbmemcasecoll.c: New file.
44825         * modules/mbmemcasecoll: New file.
44826
44827         * tests/test-mbmemcasecmp.h: New file, extracted from
44828         tests/test-mbmemcasecmp.c.
44829         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
44830         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
44831         (main): Update.
44832         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
44833
44834 2009-03-09  Bruno Haible  <bruno@clisp.org>
44835
44836         Tests for module 'mbmemcasecmp'.
44837         * modules/mbmemcasecmp-tests: New file.
44838         * tests/test-mbmemcasecmp1.sh: New file.
44839         * tests/test-mbmemcasecmp2.sh: New file.
44840         * tests/test-mbmemcasecmp3.sh: New file.
44841         * tests/test-mbmemcasecmp.c: New file.
44842
44843         New module 'mbmemcasecmp'.
44844         * lib/mbmemcasecmp.h: New file.
44845         * lib/mbmemcasecmp.c: New file.
44846         * modules/mbmemcasecmp: New file.
44847
44848 2009-03-09  Bruno Haible  <bruno@clisp.org>
44849
44850         Tests for module 'unicase/ulc-casecoll'.
44851         * modules/unicase/ulc-casecoll-tests: New file.
44852         * tests/unicase/test-ulc-casecoll1.sh: New file.
44853         * tests/unicase/test-ulc-casecoll2.sh: New file.
44854         * tests/unicase/test-ulc-casecoll.c: New file.
44855
44856         New module 'unicase/ulc-casecoll'.
44857         * lib/unicase.h (ulc_casecoll): New declaration.
44858         * lib/unicase/ulc-casecoll.c: New file.
44859         * modules/unicase/ulc-casecoll: New file.
44860
44861         New module 'unicase/ulc-casexfrm'.
44862         * lib/unicase.h (ulc_casexfrm): New declaration.
44863         * lib/unicase/ulc-casexfrm.c: New file.
44864         * modules/unicase/ulc-casexfrm: New file.
44865
44866 2009-03-09  Bruno Haible  <bruno@clisp.org>
44867
44868         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
44869         invocations.
44870
44871         * m4/mbscasecmp.m4: Remove file.
44872         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
44873         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
44874
44875         * m4/mbscasestr.m4: Remove file.
44876         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
44877         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
44878
44879         * m4/mbschr.m4: Remove file.
44880         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
44881         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
44882
44883         * m4/mbscspn.m4: Remove file.
44884         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
44885         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
44886
44887         * m4/mbslen.m4: Remove file.
44888         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
44889         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
44890
44891         * m4/mbsncasecmp.m4: Remove file.
44892         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
44893         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
44894
44895         * m4/mbsnlen.m4: Remove file.
44896         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
44897         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
44898
44899         * m4/mbspbrk.m4: Remove file.
44900         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
44901         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
44902
44903         * m4/mbspcasecmp.m4: Remove file.
44904         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
44905         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
44906
44907         * m4/mbsrchr.m4: Remove file.
44908         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
44909         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
44910
44911         * m4/mbssep.m4: Remove file.
44912         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
44913         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
44914
44915         * m4/mbsspn.m4: Remove file.
44916         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
44917         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
44918
44919         * m4/mbsstr.m4: Remove file.
44920         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
44921         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
44922
44923         * m4/mbstok_r.m4: Remove file.
44924         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
44925         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
44926
44927         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
44928
44929         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
44930         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
44931
44932         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
44933
44934 2009-03-08  Bruno Haible  <bruno@clisp.org>
44935
44936         Tests for module 'unicase/ulc-casecmp'.
44937         * modules/unicase/ulc-casecmp-tests: New file.
44938         * tests/unicase/test-ulc-casecmp1.sh: New file.
44939         * tests/unicase/test-ulc-casecmp2.sh: New file.
44940         * tests/unicase/test-ulc-casecmp.c: New file.
44941
44942         New module 'unicase/ulc-casecmp'.
44943         * lib/unicase.h (ulc_casecmp): New declaration.
44944         * lib/unicase/ulc-casecmp.c: New file.
44945         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
44946         'const SRC_UNIT *'.
44947         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
44948         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
44949         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
44950         * modules/unicase/ulc-casecmp: New file.
44951
44952         Tests for module 'unicase/u32-is-cased'.
44953         * modules/unicase/u32-is-cased-tests: New file.
44954         * tests/unicase/test-u32-is-cased.c: New file.
44955
44956         Tests for module 'unicase/u16-is-cased'.
44957         * modules/unicase/u16-is-cased-tests: New file.
44958         * tests/unicase/test-u16-is-cased.c: New file.
44959
44960         Tests for module 'unicase/u8-is-cased'.
44961         * modules/unicase/u8-is-cased-tests: New file.
44962         * tests/unicase/test-u8-is-cased.c: New file.
44963         * tests/unicase/test-is-cased.h: New file.
44964
44965         New module 'unicase/u32-is-cased'.
44966         * lib/unicase/u32-is-cased.c: New file.
44967         * modules/unicase/u32-is-cased: New file.
44968
44969         New module 'unicase/u16-is-cased'.
44970         * lib/unicase/u16-is-cased.c: New file.
44971         * modules/unicase/u16-is-cased: New file.
44972
44973         New module 'unicase/u8-is-cased'.
44974         * lib/unicase/u8-is-cased.c: New file.
44975         * lib/unicase/u-is-cased.h: New file.
44976         * modules/unicase/u8-is-cased: New file.
44977
44978         Tests for module 'unicase/u32-is-casefolded'.
44979         * modules/unicase/u32-is-casefolded-tests: New file.
44980         * tests/unicase/test-u32-is-casefolded.c: New file.
44981
44982         Tests for module 'unicase/u16-is-casefolded'.
44983         * modules/unicase/u16-is-casefolded-tests: New file.
44984         * tests/unicase/test-u16-is-casefolded.c: New file.
44985
44986         Tests for module 'unicase/u8-is-casefolded'.
44987         * modules/unicase/u8-is-casefolded-tests: New file.
44988         * tests/unicase/test-u8-is-casefolded.c: New file.
44989         * tests/unicase/test-is-casefolded.h: New file.
44990
44991         New module 'unicase/u32-is-casefolded'.
44992         * lib/unicase/u32-is-casefolded.c: New file.
44993         * modules/unicase/u32-is-casefolded: New file.
44994
44995         New module 'unicase/u16-is-casefolded'.
44996         * lib/unicase/u16-is-casefolded.c: New file.
44997         * modules/unicase/u16-is-casefolded: New file.
44998
44999         New module 'unicase/u8-is-casefolded'.
45000         * lib/unicase/u8-is-casefolded.c: New file.
45001         * modules/unicase/u8-is-casefolded: New file.
45002
45003         Tests for module 'unicase/u32-is-titlecase'.
45004         * modules/unicase/u32-is-titlecase-tests: New file.
45005         * tests/unicase/test-u32-is-titlecase.c: New file.
45006
45007         Tests for module 'unicase/u16-is-titlecase'.
45008         * modules/unicase/u16-is-titlecase-tests: New file.
45009         * tests/unicase/test-u16-is-titlecase.c: New file.
45010
45011         Tests for module 'unicase/u8-is-titlecase'.
45012         * modules/unicase/u8-is-titlecase-tests: New file.
45013         * tests/unicase/test-u8-is-titlecase.c: New file.
45014         * tests/unicase/test-is-titlecase.h: New file.
45015
45016         New module 'unicase/u32-is-titlecase'.
45017         * lib/unicase/u32-is-titlecase.c: New file.
45018         * modules/unicase/u32-is-titlecase: New file.
45019
45020         New module 'unicase/u16-is-titlecase'.
45021         * lib/unicase/u16-is-titlecase.c: New file.
45022         * modules/unicase/u16-is-titlecase: New file.
45023
45024         New module 'unicase/u8-is-titlecase'.
45025         * lib/unicase/u8-is-titlecase.c: New file.
45026         * modules/unicase/u8-is-titlecase: New file.
45027
45028         Tests for module 'unicase/u32-is-lowercase'.
45029         * modules/unicase/u32-is-lowercase-tests: New file.
45030         * tests/unicase/test-u32-is-lowercase.c: New file.
45031
45032         Tests for module 'unicase/u16-is-lowercase'.
45033         * modules/unicase/u16-is-lowercase-tests: New file.
45034         * tests/unicase/test-u16-is-lowercase.c: New file.
45035
45036         Tests for module 'unicase/u8-is-lowercase'.
45037         * modules/unicase/u8-is-lowercase-tests: New file.
45038         * tests/unicase/test-u8-is-lowercase.c: New file.
45039         * tests/unicase/test-is-lowercase.h: New file.
45040
45041         New module 'unicase/u32-is-lowercase'.
45042         * lib/unicase/u32-is-lowercase.c: New file.
45043         * modules/unicase/u32-is-lowercase: New file.
45044
45045         New module 'unicase/u16-is-lowercase'.
45046         * lib/unicase/u16-is-lowercase.c: New file.
45047         * modules/unicase/u16-is-lowercase: New file.
45048
45049         New module 'unicase/u8-is-lowercase'.
45050         * lib/unicase/u8-is-lowercase.c: New file.
45051         * modules/unicase/u8-is-lowercase: New file.
45052
45053         Tests for module 'unicase/u32-is-uppercase'.
45054         * modules/unicase/u32-is-uppercase-tests: New file.
45055         * tests/unicase/test-u32-is-uppercase.c: New file.
45056
45057         Tests for module 'unicase/u16-is-uppercase'.
45058         * modules/unicase/u16-is-uppercase-tests: New file.
45059         * tests/unicase/test-u16-is-uppercase.c: New file.
45060
45061         Tests for module 'unicase/u8-is-uppercase'.
45062         * modules/unicase/u8-is-uppercase-tests: New file.
45063         * tests/unicase/test-u8-is-uppercase.c: New file.
45064         * tests/unicase/test-is-uppercase.h: New file.
45065
45066         New module 'unicase/u32-is-uppercase'.
45067         * lib/unicase/u32-is-uppercase.c: New file.
45068         * modules/unicase/u32-is-uppercase: New file.
45069
45070         New module 'unicase/u16-is-uppercase'.
45071         * lib/unicase/u16-is-uppercase.c: New file.
45072         * modules/unicase/u16-is-uppercase: New file.
45073
45074         New module 'unicase/u8-is-uppercase'.
45075         * lib/unicase/u8-is-uppercase.c: New file.
45076         * modules/unicase/u8-is-uppercase: New file.
45077
45078         New module 'unicase/u32-is-invariant'.
45079         * lib/unicase/u32-is-invariant.c: New file.
45080         * modules/unicase/u32-is-invariant: New file.
45081
45082         New module 'unicase/u16-is-invariant'.
45083         * lib/unicase/u16-is-invariant.c: New file.
45084         * modules/unicase/u16-is-invariant: New file.
45085
45086         New module 'unicase/u8-is-invariant'.
45087         * lib/unicase/u8-is-invariant.c: New file.
45088         * lib/unicase/invariant.h: New file.
45089         * lib/unicase/u-is-invariant.h: New file.
45090         * modules/unicase/u8-is-invariant: New file.
45091
45092         Tests for module 'unicase/u32-casecoll'.
45093         * modules/unicase/u32-casecoll-tests: New file.
45094         * tests/unicase/test-u32-casecoll.c: New file.
45095
45096         Tests for module 'unicase/u16-casecoll'.
45097         * modules/unicase/u16-casecoll-tests: New file.
45098         * tests/unicase/test-u16-casecoll.c: New file.
45099
45100         Tests for module 'unicase/u8-casecoll'.
45101         * modules/unicase/u8-casecoll-tests: New file.
45102         * tests/unicase/test-u8-casecoll.c: New file.
45103
45104         New module 'unicase/u32-casecoll'.
45105         * lib/unicase/u32-casecoll.c: New file.
45106         * modules/unicase/u32-casecoll: New file.
45107
45108         New module 'unicase/u16-casecoll'.
45109         * lib/unicase/u16-casecoll.c: New file.
45110         * modules/unicase/u16-casecoll: New file.
45111
45112         New module 'unicase/u8-casecoll'.
45113         * lib/unicase/u8-casecoll.c: New file.
45114         * lib/unicase/u-casecoll.h: New file.
45115         * modules/unicase/u8-casecoll: New file.
45116
45117         New module 'unicase/u32-casexfrm'.
45118         * lib/unicase/u32-casexfrm.c: New file.
45119         * modules/unicase/u32-casexfrm: New file.
45120
45121         New module 'unicase/u16-casexfrm'.
45122         * lib/unicase/u16-casexfrm.c: New file.
45123         * modules/unicase/u16-casexfrm: New file.
45124
45125         New module 'unicase/u8-casexfrm'.
45126         * lib/unicase/u8-casexfrm.c: New file.
45127         * lib/unicase/u-casexfrm.h: New file.
45128         * modules/unicase/u8-casexfrm: New file.
45129
45130         Tests for module 'unicase/u32-casecmp'.
45131         * modules/unicase/u32-casecmp-tests: New file.
45132         * tests/unicase/test-u32-casecmp.c: New file.
45133
45134         Tests for module 'unicase/u16-casecmp'.
45135         * modules/unicase/u16-casecmp-tests: New file.
45136         * tests/unicase/test-u16-casecmp.c: New file.
45137
45138         Tests for module 'unicase/u8-casecmp'.
45139         * modules/unicase/u8-casecmp-tests: New file.
45140         * tests/unicase/test-u8-casecmp.c: New file.
45141         * tests/unicase/test-casecmp.h: New file.
45142
45143         New module 'unicase/u32-casecmp'.
45144         * lib/unicase/u32-casecmp.c: New file.
45145         * modules/unicase/u32-casecmp: New file.
45146
45147         New module 'unicase/u16-casecmp'.
45148         * lib/unicase/u16-casecmp.c: New file.
45149         * modules/unicase/u16-casecmp: New file.
45150
45151         New module 'unicase/u8-casecmp'.
45152         * lib/unicase/u8-casecmp.c: New file.
45153         * lib/unicase/u-casecmp.h: New file.
45154         * modules/unicase/u8-casecmp: New file.
45155
45156         Tests for module 'unicase/u32-casefold'.
45157         * modules/unicase/u32-casefold-tests: New file.
45158         * tests/unicase/test-u32-casefold.c: New file.
45159
45160         Tests for module 'unicase/u16-casefold'.
45161         * modules/unicase/u16-casefold-tests: New file.
45162         * tests/unicase/test-u16-casefold.c: New file.
45163
45164         Tests for module 'unicase/u8-casefold'.
45165         * modules/unicase/u8-casefold-tests: New file.
45166         * tests/unicase/test-u8-casefold.c: New file.
45167
45168         New module 'unicase/u32-casefold'.
45169         * lib/unicase/u32-casefold.c: New file.
45170         * modules/unicase/u32-casefold: New file.
45171
45172         New module 'unicase/u16-casefold'.
45173         * lib/unicase/u16-casefold.c: New file.
45174         * modules/unicase/u16-casefold: New file.
45175
45176         New module 'unicase/u8-casefold'.
45177         * lib/unicase/u8-casefold.c: New file.
45178         * lib/unicase/u-casefold.h: New file.
45179         * modules/unicase/u8-casefold: New file.
45180
45181         New module 'unicase/tocasefold'.
45182         * lib/unicase/casefold.h: New file.
45183         * lib/unicase/tocasefold.c: New file.
45184         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
45185         * modules/unicase/tocasefold: New file.
45186
45187         Tests for module 'unicase/u32-totitle'.
45188         * modules/unicase/u32-totitle-tests: New file.
45189         * tests/unicase/test-u32-totitle.c: New file.
45190
45191         Tests for module 'unicase/u16-totitle'.
45192         * modules/unicase/u16-totitle-tests: New file.
45193         * tests/unicase/test-u16-totitle.c: New file.
45194
45195         Tests for module 'unicase/u8-totitle'.
45196         * modules/unicase/u8-totitle-tests: New file.
45197         * tests/unicase/test-u8-totitle.c: New file.
45198
45199         New module 'unicase/u32-totitle'.
45200         * lib/unicase/u32-totitle.c: New file.
45201         * modules/unicase/u32-totitle: New file.
45202
45203         New module 'unicase/u16-totitle'.
45204         * lib/unicase/u16-totitle.c: New file.
45205         * modules/unicase/u16-totitle: New file.
45206
45207         New module 'unicase/u8-totitle'.
45208         * lib/unicase/u8-totitle.c: New file.
45209         * lib/unicase/u-totitle.h: New file.
45210         * modules/unicase/u8-totitle: New file.
45211
45212         Tests for module 'unicase/u32-tolower'.
45213         * modules/unicase/u32-tolower-tests: New file.
45214         * tests/unicase/test-u32-tolower.c: New file.
45215
45216         Tests for module 'unicase/u16-tolower'.
45217         * modules/unicase/u16-tolower-tests: New file.
45218         * tests/unicase/test-u16-tolower.c: New file.
45219
45220         Tests for module 'unicase/u8-tolower'.
45221         * modules/unicase/u8-tolower-tests: New file.
45222         * tests/unicase/test-u8-tolower.c: New file.
45223
45224         New module 'unicase/u32-tolower'.
45225         * lib/unicase/u32-tolower.c: New file.
45226         * modules/unicase/u32-tolower: New file.
45227
45228         New module 'unicase/u16-tolower'.
45229         * lib/unicase/u16-tolower.c: New file.
45230         * modules/unicase/u16-tolower: New file.
45231
45232         New module 'unicase/u8-tolower'.
45233         * lib/unicase/u8-tolower.c: New file.
45234         * modules/unicase/u8-tolower: New file.
45235
45236         Tests for module 'unicase/u32-toupper'.
45237         * modules/unicase/u32-toupper-tests: New file.
45238         * tests/unicase/test-u32-toupper.c: New file.
45239
45240         Tests for module 'unicase/u16-toupper'.
45241         * modules/unicase/u16-toupper-tests: New file.
45242         * tests/unicase/test-u16-toupper.c: New file.
45243
45244         Tests for module 'unicase/u8-toupper'.
45245         * modules/unicase/u8-toupper-tests: New file.
45246         * tests/unicase/test-u8-toupper.c: New file.
45247
45248         New module 'unicase/u32-toupper'.
45249         * lib/unicase/u32-toupper.c: New file.
45250         * modules/unicase/u32-toupper: New file.
45251
45252         New module 'unicase/u16-toupper'.
45253         * lib/unicase/u16-toupper.c: New file.
45254         * modules/unicase/u16-toupper: New file.
45255
45256         New module 'unicase/u8-toupper'.
45257         * lib/unicase/u8-toupper.c: New file.
45258         * modules/unicase/u8-toupper: New file.
45259
45260         New module 'unicase/u32-casemap'.
45261         * lib/unicase/u32-casemap.c: New file.
45262         * modules/unicase/u32-casemap: New file.
45263
45264         New module 'unicase/u16-casemap'.
45265         * lib/unicase/u16-casemap.c: New file.
45266         * modules/unicase/u16-casemap: New file.
45267
45268         New module 'unicase/u8-casemap'.
45269         * lib/unicase/unicasemap.h: New file.
45270         * lib/unicase/u8-casemap.c: New file.
45271         * lib/unicase/u-casemap.h: New file.
45272         * modules/unicase/u8-casemap: New file.
45273
45274         New module 'unicase/special-casing'.
45275         * lib/unicase/special-casing.h: New file.
45276         * lib/unicase/special-casing.c: New file.
45277         * lib/unicase/special-casing-table.gperf: New file, generated by
45278         gen-uni-tables.c.
45279         * modules/unicase/special-casing: New file.
45280
45281         Tests for module 'unicase/locale-language'.
45282         * modules/unicase/locale-language-tests: New file.
45283         * tests/unicase/test-locale-language.sh: New file.
45284         * tests/unicase/test-locale-language.c: New file.
45285
45286         New module 'unicase/locale-language'.
45287         * lib/unicase/locale-language.c: New file.
45288         * lib/unicase/locale-languages.gperf: New file.
45289         * modules/unicase/locale-language: New file.
45290
45291         Generate more tables for case conversion and case folding.
45292         * lib/gen-uni-tables.c (SCC_*): New enum items.
45293         (struct special_casing_rule): New type.
45294         (casing_rules, num_casing_rules, allocated_casing_rules): New
45295         variables.
45296         (add_casing_rule, fill_casing_rules): New functions.
45297         (struct casefold_rule): New type.
45298         (casefolding_rules, num_casefolding_rules,
45299         allocated_casefolding_rules): New variables.
45300         (fill_casefolding_rules): New function.
45301         (unicode_casefold): New variable.
45302         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
45303         sort_casing_rules, output_casing_rules): New functions.
45304         (main): Accept to more arguments: SpecialCasing.txt and
45305         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
45306         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
45307         Output mapping for casefolding.
45308
45309         * lib/unicase.h: Include stdbool.h, uninorm.h.
45310         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
45311         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
45312         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
45313         arguments.
45314         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
45315         resultp arguments.
45316         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
45317         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
45318         resultp arguments.
45319         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
45320         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
45321         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
45322         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
45323         declarations.
45324         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
45325
45326 2009-03-08  Bruno Haible  <bruno@clisp.org>
45327
45328         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45329         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
45330         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
45331         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45332
45333 2009-03-07  Bruno Haible  <bruno@clisp.org>
45334
45335         Adjust u*_normcmp, u*_normcoll API.
45336         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45337         u16_normcoll, u32_normcoll): Change failure conventions.
45338         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
45339         errno and return -1.
45340         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45341
45342 2009-03-07  Bruno Haible  <bruno@clisp.org>
45343
45344         Tests for module 'uninorm/u32-normcoll'.
45345         * modules/uninorm/u32-normcoll-tests: New file.
45346         * tests/uninorm/test-u32-normcoll.c: New file.
45347
45348         Tests for module 'uninorm/u16-normcoll'.
45349         * modules/uninorm/u16-normcoll-tests: New file.
45350         * tests/uninorm/test-u16-normcoll.c: New file.
45351
45352         Tests for module 'uninorm/u8-normcoll'.
45353         * modules/uninorm/u8-normcoll-tests: New file.
45354         * tests/uninorm/test-u8-normcoll.c: New file.
45355
45356 2009-03-07  Bruno Haible  <bruno@clisp.org>
45357
45358         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
45359         tests/uninorm/test-u32-normcmp.c.
45360         * tests/uninorm/test-u32-normcmp.c: Include it.
45361         (test_nonascii): New function, extracted from main. Add some more
45362         tests.
45363         (main): Invoke test_ascii and test_nonascii.
45364         * modules/uninorm/u32-normcmp-tests (Files): Add
45365         tests/uninorm/test-u32-normcmp.h.
45366         (Depends-on): Remove uninorm/u32-normcmp.
45367
45368         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
45369         tests/uninorm/test-u16-normcmp.c.
45370         * tests/uninorm/test-u16-normcmp.c: Include it.
45371         (test_nonascii): New function, extracted from main. Add some more
45372         tests.
45373         (main): Invoke test_ascii and test_nonascii.
45374         * modules/uninorm/u16-normcmp-tests (Files): Add
45375         tests/uninorm/test-u16-normcmp.h.
45376         (Depends-on): Remove uninorm/u16-normcmp.
45377
45378         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
45379         tests/uninorm/test-u8-normcmp.c.
45380         * tests/uninorm/test-u8-normcmp.c: Include it.
45381         (test_nonascii): New function, extracted from main. Add some more
45382         tests.
45383         (main): Invoke test_ascii and test_nonascii.
45384         * modules/uninorm/u8-normcmp-tests (Files): Add
45385         tests/uninorm/test-u8-normcmp.h.
45386         (Depends-on): Remove uninorm/u8-normcmp.
45387
45388 2009-03-07  Bruno Haible  <bruno@clisp.org>
45389
45390         New module 'uninorm/u32-normcoll'.
45391         * lib/uninorm/u32-normcoll.c: New file.
45392         * modules/uninorm/u32-normcoll: New file.
45393
45394         New module 'uninorm/u16-normcoll'.
45395         * lib/uninorm/u16-normcoll.c: New file.
45396         * modules/uninorm/u16-normcoll: New file.
45397
45398         New module 'uninorm/u8-normcoll'.
45399         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
45400         declarations.
45401         * lib/uninorm/u8-normcoll.c: New file.
45402         * lib/uninorm/u-normcoll.h: New file.
45403         * modules/uninorm/u8-normcoll: New file.
45404
45405         New module 'uninorm/u32-normxfrm'.
45406         * lib/uninorm/u32-normxfrm.c: New file.
45407         * modules/uninorm/u32-normxfrm: New file.
45408
45409         New module 'uninorm/u16-normxfrm'.
45410         * lib/uninorm/u16-normxfrm.c: New file.
45411         * modules/uninorm/u16-normxfrm: New file.
45412
45413         New module 'uninorm/u8-normxfrm'.
45414         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
45415         declarations.
45416         * lib/uninorm/u8-normxfrm.c: New file.
45417         * lib/uninorm/u-normxfrm.h: New file.
45418         * modules/uninorm/u8-normxfrm: New file.
45419
45420 2009-03-07  Bruno Haible  <bruno@clisp.org>
45421
45422         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
45423         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
45424         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
45425
45426 2009-03-07  Bruno Haible  <bruno@clisp.org>
45427
45428         New module 'memxfrm'.
45429         * lib/memxfrm.h: New file.
45430         * lib/memxfrm.c: New file.
45431         * modules/memxfrm: New file.
45432
45433 2009-03-07  Bruno Haible  <bruno@clisp.org>
45434
45435         New module 'memcmp2'.
45436         * lib/memcmp2.h: New file.
45437         * lib/memcmp2.c: New file.
45438         * modules/memcmp2: New file.
45439
45440 2009-03-07  Bruno Haible  <bruno@clisp.org>
45441
45442         Tests for module 'uninorm/decomposing-form'.
45443         * modules/uninorm/decomposing-form-tests: New file.
45444         * tests/uninorm/test-decomposing-form.c: New file.
45445
45446         New module 'uninorm/decomposing-form'.
45447         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
45448         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
45449         Add 'decomposing_variant' field.
45450         * lib/uninorm/decomposing-form.c: New file.
45451         * lib/uninorm/nfc.c (uninorm_nfc): Update.
45452         * lib/uninorm/nfd.c (uninorm_nfd): Update.
45453         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
45454         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
45455         * modules/uninorm/decomposing-form: New file.
45456         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
45457         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
45458
45459 2009-03-07  Bruno Haible  <bruno@clisp.org>
45460
45461         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
45462         strings.
45463
45464 2009-03-06  Bruno Haible  <bruno@clisp.org>
45465
45466         Tests for module 'uninorm/u32-normcmp'.
45467         * tests/uninorm/test-u32-normcmp.c: New file.
45468         * modules/uninorm/u32-normcmp-tests: New file.
45469
45470         Tests for module 'uninorm/u16-normcmp'.
45471         * tests/uninorm/test-u16-normcmp.c: New file.
45472         * modules/uninorm/u16-normcmp-tests: New file.
45473
45474         Tests for module 'uninorm/u8-normcmp'.
45475         * tests/uninorm/test-u8-normcmp.c: New file.
45476         * modules/uninorm/u8-normcmp-tests: New file.
45477
45478         New module 'uninorm/u32-normcmp'.
45479         * lib/uninorm/u32-normcmp.c: New file.
45480         * modules/uninorm/u32-normcmp: New file.
45481
45482         New module 'uninorm/u16-normcmp'.
45483         * lib/uninorm/u16-normcmp.c: New file.
45484         * modules/uninorm/u16-normcmp: New file.
45485
45486         New module 'uninorm/u8-normcmp'.
45487         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
45488         declarations.
45489         * lib/uninorm/u8-normcmp.c: New file.
45490         * lib/uninorm/u-normcmp.h: New file.
45491         * modules/uninorm/u8-normcmp: New file.
45492
45493 2009-03-06  Bruno Haible  <bruno@clisp.org>
45494
45495         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
45496         Reported by Eric Blake.
45497
45498 2009-03-06  Eric Blake  <ebb9@byu.net>
45499             Bruno Haible  <bruno@clisp.org>
45500
45501         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
45502         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
45503         condition.
45504         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45505         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
45506         condition.
45507         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45508
45509 2009-03-06  Eric Blake  <ebb9@byu.net>
45510
45511         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
45512         to avoid compiler warnings.
45513         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
45514
45515 2009-03-05  Bruno Haible  <bruno@clisp.org>
45516
45517         * tests/test-ftell.c (main): Disable test beyond end of file on
45518         FreeMiNT.
45519         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45520
45521 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
45522
45523         * lib/filevercmp.c: Move hidden files up in ordering.
45524         * tests/test-filevercmp.c: Add tests for hidden files.
45525
45526 2009-03-04  Bruno Haible  <bruno@clisp.org>
45527
45528         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
45529         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
45530         AM_CFLAGS.
45531         Reported by Simon Josefsson.
45532
45533 2009-03-03  Bruno Haible  <bruno@clisp.org>
45534
45535         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
45536         Reported by Simon Josefsson.
45537
45538         * doc/ld-version-script.texi: Update node reference.
45539
45540 2009-03-03  Bruno Haible  <bruno@clisp.org>
45541
45542         * modules/visibility (License): Change to 'unlimited'.
45543         Suggested by Simon Josefsson.
45544
45545 2009-03-03  Jim Meyering  <meyering@redhat.com>
45546
45547         unlinkdir: cannot_unlink_dir may modify process state
45548         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
45549         it's neither thread-safe nor appropriate for use in a library.
45550
45551 2009-03-03  Eric Blake  <ebb9@byu.net>
45552
45553         test-closein: silence test under Darwin
45554         * tests/test-closein.sh: Ignore stderr from cat, since we don't
45555         care if it dies from EPIPE or EBADF.
45556
45557 2009-03-03  Bruno Haible  <bruno@clisp.org>
45558
45559         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
45560         earlier.
45561         * doc/visibility.texi: Fix @node and @section.
45562
45563 2009-03-03  Simon Josefsson  <simon@josefsson.org>
45564
45565         * doc/gnulib.texi: Link to sections for ld version script and
45566         visibility.
45567         * doc/visibility.texi: Add @node and @section.
45568         * modules/ld-version-script: New module.
45569         * m4/ld-version-script.m4: New file.
45570         * doc/ld-version-script.texi: New file.
45571
45572 2009-03-02  David Lutterkort  <lutter@redhat.com>
45573
45574         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
45575         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45576
45577 2009-03-02  Bruno Haible  <bruno@clisp.org>
45578
45579         * doc/visibility.texi: Mention libtool's -export-symbols option.
45580
45581 2009-03-02  Jim Meyering  <meyering@redhat.com>
45582
45583         announce-gen: new option: --no-print-checksums
45584         * build-aux/announce-gen (usage): Describe it.
45585         (print_checksums): Print a newline here, not in the [*] footnote.
45586         (main): Honor it.
45587
45588 2009-03-01  Bruno Haible  <bruno@clisp.org>
45589
45590         Use socklen_t in the native Windows replacements prototypes.
45591         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
45592         instead of 'int'.
45593         * lib/getsockopt.c (rpl_getsockopt): Likewise.
45594         * lib/setsockopt.c (rpl_setsockopt): Likewise.
45595         * modules/getsockopt (Depends-on): Add socklen.
45596         * modules/setsockopt (Depends-on): Add socklen.
45597
45598 2009-03-01  Bruno Haible  <bruno@clisp.org>
45599
45600         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
45601         least 4.2.
45602
45603 2009-03-01  Eric Blake  <ebb9@byu.net>
45604             Bruno Haible  <bruno@clisp.org>
45605
45606         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
45607         error messages.
45608         * lib/wait-process.c (wait_subprocess): Omit error message about
45609         deadly signal sent to the child of termsigp != NULL.
45610
45611 2009-03-01  Eric Blake  <ebb9@byu.net>
45612
45613         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
45614
45615 2009-03-01  Bruno Haible  <bruno@clisp.org>
45616
45617         Avoid a gcc warning.
45618         * tests/test-sched.c (b): Make global.
45619         Reported by Eric Blake.
45620
45621 2009-01-19  Martin Lambers  <marlam@marlam.de>
45622
45623         Provide POSIX semantics for socket timeout options on W32.
45624         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
45625         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
45626         * modules/setsockopt: Depend on sys_time module for struct timeval.
45627         * modules/getsockopt: Depend on sys_time module for struct timeval.
45628
45629 2009-03-01  Simon Josefsson  <simon@josefsson.org>
45630
45631         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
45632         __USE_GNU, for consistency with netdb.in.h.
45633         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45634
45635 2009-03-01  Bruno Haible  <bruno@clisp.org>
45636
45637         More support for FreeMiNT.
45638         * lib/fseeko.c (rpl_fseeko): Complete last commit.
45639         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45640
45641 2009-03-01  Bruno Haible  <bruno@clisp.org>
45642
45643         More support for FreeMiNT.
45644         * lib/fpurge.c (fpurge): Correct last commit.
45645         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45646
45647 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45648
45649         Fix unportable awk script in vc-list-files.
45650         * build-aux/vc-list-files: In the replacement awk script, use
45651         substr with a second argument of 1, not zero.
45652         Report by Simon Josefsson.
45653
45654 2009-02-28  Bruno Haible  <bruno@clisp.org>
45655
45656         More support for FreeMiNT.
45657         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
45658         to FreeMiNT today.
45659         * lib/fwriting.c (fwriting): Likewise.
45660         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
45661
45662 2009-02-28  Bruno Haible  <bruno@clisp.org>
45663
45664         * tests/test-freadseek.c (main): Disable test beyond end of file on
45665         FreeMiNT.
45666         * tests/test-ftello.c (main): Likewise.
45667         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45668
45669 2009-02-28  Bruno Haible  <bruno@clisp.org>
45670
45671         Add tentative support for FreeMiNT.
45672         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
45673         * lib/fpurge.c (fpurge): Likewise.
45674         * lib/freadable.c (freadable): Likewise.
45675         * lib/freading.c (freading): Likewise.
45676         * lib/freadptr.c (freadptr): Likewise.
45677         * lib/freadseek.c (freadptrinc): Likewise.
45678         * lib/fseeko.c (rpl_fseeko): Likewise.
45679         * lib/fseterr.c (fseterr): Likewise.
45680         * lib/fwritable.c (fwritable): Likewise.
45681         * lib/fwriting.c (fwriting): Likewise.
45682         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
45683         Hourihane.
45684         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45685
45686 2009-02-28  Bruno Haible  <bruno@clisp.org>
45687
45688         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
45689         SIGCHLD.
45690         Reported by Jim Meyering.
45691
45692 2009-02-28  Bruno Haible  <bruno@clisp.org>
45693
45694         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
45695         Mention the results of these tests on various platforms.
45696         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
45697         order.
45698         * doc/posix-functions/printf.texi: Likewise.
45699         * doc/posix-functions/snprintf.texi: Likewise.
45700         * doc/posix-functions/sprintf.texi: Likewise.
45701         * doc/posix-functions/vfprintf.texi: Likewise.
45702         * doc/posix-functions/vprintf.texi: Likewise.
45703         * doc/posix-functions/vsnprintf.texi: Likewise.
45704         * doc/posix-functions/vsprintf.texi: Likewise.
45705         * doc/glibc-functions/obstack_printf.texi: Likewise.
45706         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45707
45708 2009-02-28  Bruno Haible  <bruno@clisp.org>
45709
45710         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
45711         Reported by Loïc Minier <lool@dooz.org>.
45712
45713 2009-02-27  Bruno Haible  <bruno@clisp.org>
45714
45715         * gnulib-tool (func_import): Make the sed expression used to create the
45716         sed script for updating the .gitignore file POSIX compliant.
45717         Reported by Eric Blake.
45718
45719 2009-02-27  Bruno Haible  <bruno@clisp.org>
45720
45721         * gnulib-tool (sed): Don't alias as "sed --posix".
45722         Reported by Eric Blake.
45723
45724 2009-02-27  Bruno Haible  <bruno@clisp.org>
45725
45726         Avoid test link errors.
45727         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
45728         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
45729         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
45730         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
45731         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45732
45733 2009-02-27  Bruno Haible  <bruno@clisp.org>
45734
45735         Avoid spurious "(cached)" in configure output.
45736         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
45737         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
45738         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45739         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45740         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45741         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
45742         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45743         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
45744         Reported by Eric Blake.
45745
45746 2009-02-27  Eric Blake  <ebb9@byu.net>
45747
45748         printf: fix regression in previous patch
45749         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
45750
45751 2009-02-27  Bruno Haible  <bruno@clisp.org>
45752
45753         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
45754         value.
45755         * lib/stdint.in.h: Likewise.
45756         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
45757
45758 2009-02-27  Eric Blake  <ebb9@byu.net>
45759
45760         doc: mention more functions added in cygwin 1.7.0
45761         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
45762         addition.
45763         * doc/posix-functions/open_wmemstream.texi: Likewise.
45764         * doc/posix-functions/wcsnlen.texi: Likewise.
45765         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45766         * doc/posix-functions/wcstod.texi: Likewise.
45767         * doc/posix-functions/wcstof.texi: Likewise.
45768         * doc/posix-functions/wcstoimax.texi: Likewise.
45769         * doc/posix-functions/wcstok.texi: Likewise.
45770         * doc/posix-functions/wcstoumax.texi: Likewise.
45771
45772         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
45773         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
45774         * doc/posix-functions/fprintf.texi: Update.
45775         * doc/posix-functions/printf.texi: Update.
45776         * doc/posix-functions/snprintf.texi: Update.
45777         * doc/posix-functions/sprintf.texi: Update.
45778         * doc/posix-functions/vfprintf.texi: Update.
45779         * doc/posix-functions/vprintf.texi: Update.
45780         * doc/posix-functions/vsnprintf.texi: Update.
45781         * doc/posix-functions/vsprintf.texi: Update.
45782         * doc/glibc-functions/obstack_printf.texi: Update.
45783         * doc/glibc-functions/obstack_vprintf.texi: Update.
45784
45785 2009-02-26  Eric Blake  <ebb9@byu.net>
45786
45787         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
45788         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
45789         compilation bug by using runtime conversion.
45790         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
45791         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
45792         * modules/ceill-tests (Files): Use nan.h.
45793         * modules/floorl-tests (Files): Likewise.
45794         * modules/frexpl-tests (Files): Likewise.
45795         * modules/isnanl-tests (Files): Likewise.
45796         * modules/ldexpl-tests (Files): Likewise.
45797         * modules/roundl-tests (Files): Likewise.
45798         * modules/truncl-tests (Files): Likewise.
45799         * tests/test-ceill.c (main): Use a working NaN.
45800         * tests/test-floorl.c (main): Likewise.
45801         * tests/test-frexpl.c (main): Likewise.
45802         * tests/test-isnan.c (test_long_double): Likewise.
45803         * tests/test-isnanl.h (main): Likewise.
45804         * tests/test-ldexpl.h (main): Likewise.
45805         * tests/test-roundl.h (main): Likewise.
45806         * tests/test-truncl.h (main): Likewise.
45807         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
45808
45809 2009-02-26  Eric Blake  <ebb9@byu.net>
45810             Bruno Haible  <bruno@clisp.org>
45811
45812         Work around a *printf bug with %ls on Solaris.
45813         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
45814         precision is specified, sprintf stops converting the wide string
45815         argument when the number of bytes that have been produced by this
45816         conversion equals or exceeds the precision.
45817         * doc/posix-functions/fprintf.texi: Update.
45818         * doc/posix-functions/printf.texi: Update.
45819         * doc/posix-functions/snprintf.texi: Update.
45820         * doc/posix-functions/sprintf.texi: Update.
45821         * doc/posix-functions/vfprintf.texi: Update.
45822         * doc/posix-functions/vprintf.texi: Update.
45823         * doc/posix-functions/vsnprintf.texi: Update.
45824         * doc/posix-functions/vsprintf.texi: Update.
45825         * doc/glibc-functions/obstack_printf.texi: Update.
45826         * doc/glibc-functions/obstack_vprintf.texi: Update.
45827
45828 2009-02-26  Eric Blake  <ebb9@byu.net>
45829
45830         stdlib: favor compiler check of random.h
45831         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
45832         to avoid an ObjC random.h installed by Swarm.
45833
45834 2009-02-26  Bruno Haible  <bruno@clisp.org>
45835
45836         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
45837         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
45838         Reported by Gary V. Vaughan <gary@gnu.org>.
45839
45840 2009-02-26  Bruno Haible  <bruno@clisp.org>
45841
45842         Fix *printf behaviour regarding the %ls directive.
45843         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
45844         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
45845         NEED_PRINTF_DIRECTIVE_LS.
45846         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
45847         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45848         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45849         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
45850         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
45851         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
45852         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45853         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45854         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45855         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45856         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45857         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
45858         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45859         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45860         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45861         * doc/posix-functions/fprintf.texi: Update.
45862         * doc/posix-functions/printf.texi: Update.
45863         * doc/posix-functions/snprintf.texi: Update.
45864         * doc/posix-functions/sprintf.texi: Update.
45865         * doc/posix-functions/vfprintf.texi: Update.
45866         * doc/posix-functions/vprintf.texi: Update.
45867         * doc/posix-functions/vsnprintf.texi: Update.
45868         * doc/posix-functions/vsprintf.texi: Update.
45869         * doc/glibc-functions/obstack_printf.texi: Update.
45870         * doc/glibc-functions/obstack_vprintf.texi: Update.
45871         Reported by Eric Blake.
45872
45873 2009-02-25  Bruno Haible  <bruno@clisp.org>
45874
45875         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
45876         with known value.
45877         Reported by Gary V. Vaughan <gary@gnu.org>.
45878
45879 2009-02-25  Bruno Haible  <bruno@clisp.org>
45880
45881         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
45882         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
45883         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
45884         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
45885         Reported by Gary V. Vaughan <gary@gnu.org>.
45886
45887 2009-02-25  Bruno Haible  <bruno@clisp.org>
45888
45889         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
45890         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
45891         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
45892         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
45893         Reported by Gary V. Vaughan <gary@gnu.org>.
45894
45895 2009-02-25  Eric Blake  <ebb9@byu.net>
45896
45897         tests: skip fseek/ftell tests if ungetc is broken
45898         * m4/ungetc.m4: New file.
45899         * modules/fseek-tests: Split test, so ungetc dependency is
45900         separate from rest of test.
45901         * modules/fseeko-tests: Likewise.
45902         * modules/ftell-tests: Likewise.
45903         * modules/ftello-tests: Likewise.
45904         * tests/test-fseek.c (main): Isolate ungetc dependency.
45905         * tests/test-fseeko.c (main): Likewise.
45906         * tests/test-ftell.c (main): Likewise.
45907         * tests/test-ftello.c (main): Likewise.
45908         * tests/test-fseek2.sh: New file.
45909         * tests/test-fseeko2.sh: Likewise.
45910         * tests/test-ftell2.sh: Likewise.
45911         * tests/test-ftello2.sh: Likewise.
45912
45913 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
45914
45915         test-getaddrinfo: fix usage of skip return code 77
45916         * tests/test-gettaddrinfo.c: Return skip code 77 only
45917         for first occurance of skip (4x77 is not 77)
45918
45919 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
45920
45921         strtod: avoid C99 decl-after-statement
45922         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
45923
45924 2009-02-24  Eric Blake  <ebb9@byu.net>
45925
45926         strtod: detect HP-UX 11.31 bug
45927         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
45928         Reported by Gary V. Vaughan.
45929
45930 2009-02-23  Bruno Haible  <bruno@clisp.org>
45931
45932         Fix invalid read past end of memory block.
45933         * lib/vasnprintf.c (DCHAR_SET): Define.
45934         (local_wcslen): Define only when needed.
45935         (local_strnlen, local_wcsnlen): New functions.
45936         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
45937         directives that involve a conversion ourselves.
45938         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
45939         wcsnlen, mbrtowc, wcrtomb.
45940         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
45941         * tests/test-vasprintf-posix.c (test_function): Likewise.
45942         * tests/test-snprintf-posix.h (test_function): Likewise.
45943         * tests/test-sprintf-posix.h (test_function): Likewise.
45944         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45945
45946 2009-02-22  Bruno Haible  <bruno@clisp.org>
45947
45948         Implement new clarified decomposition of Hangul syllables.
45949         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
45950         of type LTV, return only a pairwise decomposition.
45951         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
45952         Likewise.
45953         * tests/uninorm/test-decomposition.c (main): Updated expected result.
45954         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
45955         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
45956
45957 2009-02-22  Bruno Haible  <bruno@clisp.org>
45958
45959         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
45960         zero-length results and shrink excess allocated memory.
45961         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
45962         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
45963         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
45964         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
45965         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
45966         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
45967         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
45968         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
45969         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
45970         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
45971         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
45972         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
45973
45974 2009-02-21  Bruno Haible  <bruno@clisp.org>
45975
45976         * doc/gnulib.texi: Include safe-alloc.texi earlier.
45977         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
45978         spaces after a period. Put a space between a macro name and its
45979         argument list. Trivial rewordings.
45980         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
45981         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
45982         (main): Return 0 explicitly.
45983
45984 2009-02-21  Bruno Haible  <bruno@clisp.org>
45985
45986         Tests for module 'uninorm/filter'.
45987         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
45988         * modules/uninorm/filter-tests: New file.
45989
45990         New module 'uninorm/filter'.
45991         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
45992         uninorm_filter_flush, uninorm_filter_free): New declarations.
45993         * lib/uninorm/uninorm-filter.c: New file.
45994         * modules/uninorm/filter: New file.
45995
45996 2009-02-21  Bruno Haible  <bruno@clisp.org>
45997
45998         Tests for module 'uninorm/nfkc'.
45999         * tests/uninorm/test-nfkc.c: New file.
46000         * tests/uninorm/test-u8-nfkc.c: New file.
46001         * tests/uninorm/test-u16-nfkc.c: New file.
46002         * tests/uninorm/test-u32-nfkc.c: New file.
46003         * tests/uninorm/test-u32-nfkc-big.sh: New file.
46004         * tests/uninorm/test-u32-nfkc-big.c: New file.
46005         * modules/uninorm/nfkc-tests: New file.
46006
46007         New module 'uninorm/nfkc'.
46008         * lib/uninorm/nfkc.c: New file.
46009         * modules/uninorm/nfkc: New file.
46010
46011         Tests for module 'uninorm/nfkd'.
46012         * tests/uninorm/test-nfkd.c: New file.
46013         * tests/uninorm/test-u8-nfkd.c: New file.
46014         * tests/uninorm/test-u16-nfkd.c: New file.
46015         * tests/uninorm/test-u32-nfkd.c: New file.
46016         * tests/uninorm/test-u32-nfkd-big.sh: New file.
46017         * tests/uninorm/test-u32-nfkd-big.c: New file.
46018         * modules/uninorm/nfkd-tests: New file.
46019
46020         New module 'uninorm/nfkd'.
46021         * lib/uninorm/nfkd.c: New file.
46022         * modules/uninorm/nfkd: New file.
46023
46024         Tests for module 'uninorm/nfc'.
46025         * tests/uninorm/test-nfc.c: New file.
46026         * tests/uninorm/test-u8-nfc.c: New file.
46027         * tests/uninorm/test-u16-nfc.c: New file.
46028         * tests/uninorm/test-u32-nfc.c: New file.
46029         * tests/uninorm/test-u32-nfc-big.sh: New file.
46030         * tests/uninorm/test-u32-nfc-big.c: New file.
46031         * modules/uninorm/nfc-tests: New file.
46032
46033         New module 'uninorm/nfc'.
46034         * lib/uninorm/nfc.c: New file.
46035         * modules/uninorm/nfc: New file.
46036
46037         Tests for module 'uninorm/nfd'.
46038         * tests/uninorm/test-nfd.c: New file.
46039         * tests/uninorm/test-u8-nfd.c: New file.
46040         * tests/uninorm/test-u16-nfd.c: New file.
46041         * tests/uninorm/test-u32-nfd.c: New file.
46042         * tests/uninorm/test-u32-nfd-big.sh: New file.
46043         * tests/uninorm/test-u32-nfd-big.c: New file.
46044         * tests/uninorm/test-u32-normalize-big.h: New file.
46045         * tests/uninorm/test-u32-normalize-big.c: New file.
46046         * tests/uninorm/NormalizationTest.txt: New file, created from
46047         Unicode 5.1.0 NormalizationTest.txt.
46048         * modules/uninorm/nfd-tests: New file.
46049
46050         New module 'uninorm/nfd'.
46051         * lib/uninorm/nfd.c: New file.
46052         * modules/uninorm/nfd: New file.
46053
46054         New module 'uninorm/u32-normalize'.
46055         * lib/uninorm/u32-normalize.c: New file.
46056         * modules/uninorm/u32-normalize: New file.
46057
46058         New module 'uninorm/u16-normalize'.
46059         * lib/uninorm/u16-normalize.c: New file.
46060         * modules/uninorm/u16-normalize: New file.
46061
46062         New module 'uninorm/u8-normalize'.
46063         * lib/uninorm/u8-normalize.c: New file.
46064         * lib/uninorm/normalize-internal.h: New file.
46065         * lib/uninorm/u-normalize-internal.h: New file.
46066         * modules/uninorm/u8-normalize: New file.
46067
46068         New module 'uninorm/decompose-internal'.
46069         * lib/uninorm/decompose-internal.c: New file.
46070         * modules/uninorm/decompose-internal: New file.
46071
46072         Tests for module 'uninorm/composition'.
46073         * tests/uninorm/test-composition.c: New file.
46074         * modules/uninorm/composition-tests: New file.
46075
46076         New module 'uninorm/composition'.
46077         * lib/uninorm/composition.c: New file.
46078         * lib/uninorm/composition-table.gperf: New file, generated by
46079         gen-uni-tables.
46080         * modules/uninorm/composition: New file.
46081
46082         Tests for module 'uninorm/compat-decomposition'.
46083         * tests/uninorm/test-compat-decomposition.c: New file.
46084         * modules/uninorm/compat-decomposition-tests: New file.
46085
46086         New module 'uninorm/compat-decomposition'.
46087         * lib/uninorm/decompose-internal.h: New file.
46088         * lib/uninorm/compat-decomposition.c: New file.
46089         * modules/uninorm/compat-decomposition: New file.
46090
46091         Tests for module 'uninorm/canonical-decomposition'.
46092         * tests/uninorm/test-canonical-decomposition.c: New file.
46093         * modules/uninorm/canonical-decomposition-tests: New file.
46094
46095         New module 'uninorm/canonical-decomposition'.
46096         * lib/uninorm/canonical-decomposition.c: New file.
46097         * modules/uninorm/canonical-decomposition: New file.
46098
46099         Tests for module 'uninorm/decomposition'.
46100         * tests/uninorm/test-decomposition.c: New file.
46101         * modules/uninorm/decomposition-tests: New file.
46102
46103         New module 'uninorm/decomposition'.
46104         * lib/uninorm/decomposition.c: New file.
46105         * modules/uninorm/decomposition: New file.
46106
46107         New module 'uninorm/decomposition-table'.
46108         * lib/uninorm/decomposition-table.h: New file.
46109         * lib/uninorm/decomposition-table.c: New file.
46110         * lib/uninorm/decomposition-table1.h: New file, generated by
46111         gen-uni-tables.
46112         * lib/uninorm/decomposition-table2.h: New file, generated by
46113         gen-uni-tables.
46114         * modules/uninorm/decomposition-table: New file.
46115
46116         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
46117         (UC_DECOMP_*): New enumeration items.
46118         (get_decomposition): New function.
46119         (struct decomp_table): New type.
46120         (output_decomposition, output_decomposition_tables): New functions.
46121         (unicode_composition_exclusions): New variable.
46122         (fill_composition_exclusions, debug_output_composition_tables): New
46123         functions.
46124         (main): Accept one more argument. Invoke fill_composition_exclusions.
46125         Output decomposition and composition tables.
46126
46127         New module 'uninorm/base'.
46128         * lib/uninorm.h: New file.
46129         * lib/unictype.h: Update comment.
46130         * modules/uninorm/base: New file.
46131
46132 2009-02-21  David Lutterkort  <lutter@redhat.com>
46133
46134         Tests for module 'safe-alloc'.
46135         * tests/test-safe-alloc.c: New file.
46136         * modules/safe-alloc-tests: New file.
46137
46138         New module 'safe-alloc'.
46139         * lib/safe-alloc.h: New file.
46140         * lib/safe-alloc.c: New file.
46141         * m4/safe-alloc.m4: New file.
46142         * modules/safe-alloc: New file.
46143         * doc/safe-alloc.texi: New file.
46144         * doc/gnulib.texi: Include it.
46145         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
46146         safe-alloc.
46147
46148 2009-02-18  Bruno Haible  <bruno@clisp.org>
46149
46150         Fix link error on non-glibc systems.
46151         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
46152         variable.
46153         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46154
46155 2009-02-18  Jim Meyering  <meyering@redhat.com>
46156
46157         fts: avoid used-uninitialized error due to recent change
46158         * lib/fts.c (fts_read): Guard uses of the new member,
46159         parent->fts_n_dirs_remaining, since it's not relevant for
46160         the parent of a directory specified on the command-line.
46161
46162 2009-02-17  James Youngman  <jay@gnu.org>
46163             Bruno Haible  <bruno@clisp.org>
46164
46165         * m4/include_next.m4: Reformulate comment.
46166
46167 2009-02-16  Jim Meyering  <meyering@redhat.com>
46168
46169         fts: add #if guards so that the fts_lgpl module still builds
46170         * lib/fts.c: Guard just-added hash-table-using parts with
46171         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
46172         Reported by Simon Josefsson.
46173
46174 2009-02-15  Bruno Haible  <bruno@clisp.org>
46175
46176         * modules/array-mergesort-tests: New file.
46177         * tests/test-array-mergesort.c: New file.
46178
46179         New module 'array-mergesort'.
46180         * modules/array-mergesort: New file.
46181         * lib/array-mergesort.h: New file.
46182
46183 2009-02-15  Bruno Haible  <bruno@clisp.org>
46184
46185         Fix 2009-02-07 commit.
46186         * lib/gen-uni-tables.c (output_predicate, output_category,
46187         output_combclass, output_bidi_category, output_decimal_digit,
46188         output_digit, output_numeric, output_mirror, output_scripts,
46189         output_ident_category, output_simple_mapping): Fix format directives.
46190         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
46191
46192 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
46193
46194         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
46195         fixes are available from IBM.
46196
46197 2009-02-13  Jim Meyering  <meyering@redhat.com>
46198
46199         fts: arrange not to stat non-directories in more cases
46200         This makes GNU find (when it doesn't need to stat each file)
46201         *much* more efficient at traversing reiserfs file systems.
46202         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
46203         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
46204         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
46205         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
46206         (leaf_optimization_applies): New function.
46207         (LCO_hash, LCO_compare): New helper functions.
46208         (link_count_optimize_ok): New function.
46209         (fts_stat): Initialize new member (if dir).
46210         (fts_read): Decrement parent's fts_n_dirs_remaining count if
46211         we've just stat'ed a directory.  Skip the stat call when possible.
46212         ---
46213         Note this AFS-related exchange:
46214         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
46215         and note find's pioctl call in find/fstype.c.
46216         But that is necessary only if you want to enable the
46217         optimization for AFS, and for now, I don't.
46218
46219         fts: move a function definition "up" (no semantic change)
46220         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
46221         "up" to precede upcoming use of a related function.
46222
46223 2009-02-11  Jim Meyering  <meyering@redhat.com>
46224
46225         fts: correct internal computation of nlinks (optimization-related)
46226         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
46227         whether the current entry is a directory, so don't test it.
46228
46229 2009-02-10  Bruno Haible  <bruno@clisp.org>
46230
46231         Tests for module 'uniwbrk/ulc-wordbreaks'.
46232         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
46233         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
46234         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
46235
46236         Tests for module 'uniwbrk/u32-wordbreaks'.
46237         * modules/uniwbrk/u32-wordbreaks-tests: New file.
46238         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
46239
46240         Tests for module 'uniwbrk/u16-wordbreaks'.
46241         * modules/uniwbrk/u16-wordbreaks-tests: New file.
46242         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
46243
46244         Tests for module 'uniwbrk/u8-wordbreaks'.
46245         * modules/uniwbrk/u8-wordbreaks-tests: New file.
46246         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
46247
46248 2009-02-10  Bruno Haible  <bruno@clisp.org>
46249
46250         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
46251         property.
46252         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
46253         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
46254         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
46255
46256 2009-02-10  Simon Josefsson  <simon@josefsson.org>
46257
46258         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
46259         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
46260
46261 2009-02-10  Bruno Haible  <bruno@clisp.org>
46262
46263         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
46264         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
46265         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46266         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46267         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46268         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46269
46270 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46271
46272         * lib/sockets.h (gl_fd_to_handle): New function.
46273
46274         * tests/test-sockets.c: Call gl_fd_to_handle.
46275
46276 2009-02-09  Bruno Haible  <bruno@clisp.org>
46277
46278         * doc/havelib.texi: Document the conventions on bi-arch systems.
46279
46280 2009-02-08  Bruno Haible  <bruno@clisp.org>
46281
46282         Document the AC_LIB_LINKFLAGS macro.
46283         * doc/havelib.texi: New file, mostly written on 2005-05-24.
46284         * doc/gnulib.texi: Include it.
46285
46286 2009-02-08  Bruno Haible  <bruno@clisp.org>
46287
46288         Fix wrong order of sections, compared to TOC.
46289         * doc/gnulib.texi: Include relocatable-maint.texi after the
46290         "Regular expressions" node, not before.
46291
46292 2009-02-08  Bruno Haible  <bruno@clisp.org>
46293
46294         Tests for module 'unicase/totitle'.
46295         * modules/unicase/totitle-tests: New file.
46296
46297         Tests for module 'unicase/tolower'.
46298         * modules/unicase/tolower-tests: New file.
46299
46300         Tests for module 'unicase/toupper'.
46301         * modules/unicase/toupper-tests: New file.
46302         * tests/unicase/test-mapping-part1.h: New file.
46303         * tests/unicase/test-mapping-part2.h: New file.
46304
46305         New module 'unicase/totitle'.
46306         * modules/unicase/totitle: New file.
46307         * lib/unicase/totitle.c: New file.
46308
46309         New module 'unicase/tolower'.
46310         * modules/unicase/tolower: New file.
46311         * lib/unicase/tolower.c: New file.
46312
46313         New module 'unicase/toupper'.
46314         * modules/unicase/toupper: New file.
46315         * lib/unicase/toupper.c: New file.
46316         * lib/unicase/simple-mapping.h: New file.
46317
46318         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
46319         (mapping_table): New structure.
46320         (output_simple_mapping): New function.
46321         (main): Invoke output_simple_mapping_test and output_simple_mapping.
46322         * modules/gen-uni-tables (Description): Update.
46323         * lib/unicase/toupper.h: New file, automatically generated by
46324         gen-uni-tables.
46325         * lib/unicase/tolower.h: New file, automatically generated by
46326         gen-uni-tables.
46327         * lib/unicase/totitle.h: New file, automatically generated by
46328         gen-uni-tables.
46329         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
46330         gen-uni-tables.
46331         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
46332         gen-uni-tables.
46333         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
46334         gen-uni-tables.
46335
46336         New module 'unicase/base'.
46337         * modules/unicase/base: New file.
46338         * lib/unicase.h: New file.
46339
46340 2009-02-08  Bruno Haible  <bruno@clisp.org>
46341
46342         New module 'uniwbrk/ulc-wordbreaks'.
46343         * modules/uniwbrk/ulc-wordbreaks: New file.
46344         * lib/uniwbrk/ulc-wordbreaks.c: New file.
46345
46346         New module 'uniwbrk/u32-wordbreaks'.
46347         * modules/uniwbrk/u32-wordbreaks: New file.
46348         * lib/uniwbrk/u32-wordbreaks.c: New file.
46349
46350         New module 'uniwbrk/u16-wordbreaks'.
46351         * modules/uniwbrk/u16-wordbreaks: New file.
46352         * lib/uniwbrk/u16-wordbreaks.c: New file.
46353
46354         New module 'uniwbrk/u8-wordbreaks'.
46355         * modules/uniwbrk/u8-wordbreaks: New file.
46356         * lib/uniwbrk/u8-wordbreaks.c: New file.
46357         * lib/uniwbrk/u-wordbreaks.h: New file.
46358
46359         New module 'uniwbrk/table'.
46360         * modules/uniwbrk/table: New file.
46361         * lib/uniwbrk/wbrktable.h: New file.
46362         * lib/uniwbrk/wbrktable.c: New file.
46363
46364         New module 'uniwbrk/wordbreak-property'.
46365         * modules/uniwbrk/wordbreak-property: New file.
46366         * lib/uniwbrk/wordbreak-property.c: New file.
46367
46368         * lib/gen-uni-tables.c (WBP_*): New enum items.
46369         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
46370         (unicode_org_wbp): New variable.
46371         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
46372         New functions.
46373         (wbp_table): New structure.
46374         (output_wbp, output_wbrk_tables): New functions.
46375         (main): Accept additional argument. Invoke fill_org_wbp,
46376         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
46377         output_wbrk_tables.
46378         * modules/gen-uni-tables (Description): Update.
46379         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
46380         gen-uni-tables.
46381
46382         New module 'uniwbrk/base'.
46383         * modules/uniwbrk/base: New file.
46384         * lib/uniwbrk.h: New file.
46385
46386 2009-02-08  Bruno Haible  <bruno@clisp.org>
46387
46388         Update to Unicode 5.1.0.
46389         * lib/gen-uni-tables.c (is_property_alphabetic): Include
46390         U+2185..U+2188.
46391         (is_property_default_ignorable_code_point): Don't include characters
46392         of category Cc or Cs and not-a-characters.
46393         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
46394         U+0D79, U+109E, U+109F, U+A60C.
46395         * lib/unictype/bidi_of.h: Regenerated.
46396         * lib/unictype/blocks.h: Regenerated.
46397         * lib/unictype/categ_C.h: Regenerated.
46398         * lib/unictype/categ_Cf.h: Regenerated.
46399         * lib/unictype/categ_Cn.h: Regenerated.
46400         * lib/unictype/categ_L.h: Regenerated.
46401         * lib/unictype/categ_Ll.h: Regenerated.
46402         * lib/unictype/categ_Lm.h: Regenerated.
46403         * lib/unictype/categ_Lo.h: Regenerated.
46404         * lib/unictype/categ_Lu.h: Regenerated.
46405         * lib/unictype/categ_M.h: Regenerated.
46406         * lib/unictype/categ_Mc.h: Regenerated.
46407         * lib/unictype/categ_Me.h: Regenerated.
46408         * lib/unictype/categ_Mn.h: Regenerated.
46409         * lib/unictype/categ_N.h: Regenerated.
46410         * lib/unictype/categ_Nd.h: Regenerated.
46411         * lib/unictype/categ_Nl.h: Regenerated.
46412         * lib/unictype/categ_No.h: Regenerated.
46413         * lib/unictype/categ_P.h: Regenerated.
46414         * lib/unictype/categ_Pd.h: Regenerated.
46415         * lib/unictype/categ_Pe.h: Regenerated.
46416         * lib/unictype/categ_Pf.h: Regenerated.
46417         * lib/unictype/categ_Pi.h: Regenerated.
46418         * lib/unictype/categ_Po.h: Regenerated.
46419         * lib/unictype/categ_Ps.h: Regenerated.
46420         * lib/unictype/categ_S.h: Regenerated.
46421         * lib/unictype/categ_Sk.h: Regenerated.
46422         * lib/unictype/categ_Sm.h: Regenerated.
46423         * lib/unictype/categ_So.h: Regenerated.
46424         * lib/unictype/categ_of.h: Regenerated.
46425         * lib/unictype/combining.h: Regenerated.
46426         * lib/unictype/ctype_alnum.h: Regenerated.
46427         * lib/unictype/ctype_alpha.h: Regenerated.
46428         * lib/unictype/ctype_graph.h: Regenerated.
46429         * lib/unictype/ctype_lower.h: Regenerated.
46430         * lib/unictype/ctype_print.h: Regenerated.
46431         * lib/unictype/ctype_punct.h: Regenerated.
46432         * lib/unictype/ctype_upper.h: Regenerated.
46433         * lib/unictype/decdigit.h: Regenerated.
46434         * lib/unictype/digit.h: Regenerated.
46435         * lib/unictype/mirror.h: Regenerated.
46436         * lib/unictype/numeric.h: Regenerated.
46437         * lib/unictype/pr_alphabetic.h: Regenerated.
46438         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
46439         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
46440         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
46441         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
46442         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
46443         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
46444         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
46445         * lib/unictype/pr_combining.h: Regenerated.
46446         * lib/unictype/pr_dash.h: Regenerated.
46447         * lib/unictype/pr_decimal_digit.h: Regenerated.
46448         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
46449         * lib/unictype/pr_deprecated.h: Regenerated.
46450         * lib/unictype/pr_diacritic.h: Regenerated.
46451         * lib/unictype/pr_extender.h: Regenerated.
46452         * lib/unictype/pr_format_control.h: Regenerated.
46453         * lib/unictype/pr_grapheme_base.h: Regenerated.
46454         * lib/unictype/pr_grapheme_extend.h: Regenerated.
46455         * lib/unictype/pr_grapheme_link.h: Regenerated.
46456         * lib/unictype/pr_id_continue.h: Regenerated.
46457         * lib/unictype/pr_id_start.h: Regenerated.
46458         * lib/unictype/pr_ideographic.h: Regenerated.
46459         * lib/unictype/pr_ignorable_control.h: Regenerated.
46460         * lib/unictype/pr_lowercase.h: Regenerated.
46461         * lib/unictype/pr_math.h: Regenerated.
46462         * lib/unictype/pr_numeric.h: Regenerated.
46463         * lib/unictype/pr_other_alphabetic.h: Regenerated.
46464         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
46465         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
46466         * lib/unictype/pr_other_id_continue.h: Regenerated.
46467         * lib/unictype/pr_other_lowercase.h: Regenerated.
46468         * lib/unictype/pr_other_math.h: Regenerated.
46469         * lib/unictype/pr_punctuation.h: Regenerated.
46470         * lib/unictype/pr_sentence_terminal.h: Regenerated.
46471         * lib/unictype/pr_soft_dotted.h: Regenerated.
46472         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
46473         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
46474         * lib/unictype/pr_unified_ideograph.h: Regenerated.
46475         * lib/unictype/pr_uppercase.h: Regenerated.
46476         * lib/unictype/pr_xid_continue.h: Regenerated.
46477         * lib/unictype/pr_xid_start.h: Regenerated.
46478         * lib/unictype/pr_zero_width.h: Regenerated.
46479         * lib/unictype/scripts.h: Regenerated.
46480         * lib/unictype/scripts_byname.gperf: Regenerated.
46481         * lib/unictype/sy_java_ident.h: Regenerated.
46482         * lib/unilbrk/lbrkprop1.h: Regenerated.
46483         * lib/unilbrk/lbrkprop2.h: Regenerated.
46484         * tests/unictype/test-categ_C.c: Regenerated.
46485         * tests/unictype/test-categ_Cf.c: Regenerated.
46486         * tests/unictype/test-categ_Cn.c: Regenerated.
46487         * tests/unictype/test-categ_L.c: Regenerated.
46488         * tests/unictype/test-categ_Ll.c: Regenerated.
46489         * tests/unictype/test-categ_Lm.c: Regenerated.
46490         * tests/unictype/test-categ_Lo.c: Regenerated.
46491         * tests/unictype/test-categ_Lu.c: Regenerated.
46492         * tests/unictype/test-categ_M.c: Regenerated.
46493         * tests/unictype/test-categ_Mc.c: Regenerated.
46494         * tests/unictype/test-categ_Me.c: Regenerated.
46495         * tests/unictype/test-categ_Mn.c: Regenerated.
46496         * tests/unictype/test-categ_N.c: Regenerated.
46497         * tests/unictype/test-categ_Nd.c: Regenerated.
46498         * tests/unictype/test-categ_Nl.c: Regenerated.
46499         * tests/unictype/test-categ_No.c: Regenerated.
46500         * tests/unictype/test-categ_P.c: Regenerated.
46501         * tests/unictype/test-categ_Pd.c: Regenerated.
46502         * tests/unictype/test-categ_Pe.c: Regenerated.
46503         * tests/unictype/test-categ_Pf.c: Regenerated.
46504         * tests/unictype/test-categ_Pi.c: Regenerated.
46505         * tests/unictype/test-categ_Po.c: Regenerated.
46506         * tests/unictype/test-categ_Ps.c: Regenerated.
46507         * tests/unictype/test-categ_S.c: Regenerated.
46508         * tests/unictype/test-categ_Sk.c: Regenerated.
46509         * tests/unictype/test-categ_Sm.c: Regenerated.
46510         * tests/unictype/test-categ_So.c: Regenerated.
46511         * tests/unictype/test-ctype_alnum.c: Regenerated.
46512         * tests/unictype/test-ctype_alpha.c: Regenerated.
46513         * tests/unictype/test-ctype_graph.c: Regenerated.
46514         * tests/unictype/test-ctype_lower.c: Regenerated.
46515         * tests/unictype/test-ctype_print.c: Regenerated.
46516         * tests/unictype/test-ctype_punct.c: Regenerated.
46517         * tests/unictype/test-ctype_upper.c: Regenerated.
46518         * tests/unictype/test-decdigit.h: Regenerated.
46519         * tests/unictype/test-digit.h: Regenerated.
46520         * tests/unictype/test-numeric.h: Regenerated.
46521         * tests/unictype/test-pr_alphabetic.c: Regenerated.
46522         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
46523         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
46524         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
46525         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
46526         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
46527         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
46528         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
46529         * tests/unictype/test-pr_combining.c: Regenerated.
46530         * tests/unictype/test-pr_dash.c: Regenerated.
46531         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
46532         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
46533         * tests/unictype/test-pr_deprecated.c: Regenerated.
46534         * tests/unictype/test-pr_diacritic.c: Regenerated.
46535         * tests/unictype/test-pr_extender.c: Regenerated.
46536         * tests/unictype/test-pr_format_control.c: Regenerated.
46537         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
46538         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
46539         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
46540         * tests/unictype/test-pr_id_continue.c: Regenerated.
46541         * tests/unictype/test-pr_id_start.c: Regenerated.
46542         * tests/unictype/test-pr_ideographic.c: Regenerated.
46543         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
46544         * tests/unictype/test-pr_lowercase.c: Regenerated.
46545         * tests/unictype/test-pr_math.c: Regenerated.
46546         * tests/unictype/test-pr_numeric.c: Regenerated.
46547         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
46548         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
46549         Regenerated.
46550         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
46551         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
46552         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
46553         * tests/unictype/test-pr_other_math.c: Regenerated.
46554         * tests/unictype/test-pr_punctuation.c: Regenerated.
46555         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
46556         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
46557         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
46558         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
46559         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
46560         * tests/unictype/test-pr_uppercase.c: Regenerated.
46561         * tests/unictype/test-pr_xid_continue.c: Regenerated.
46562         * tests/unictype/test-pr_xid_start.c: Regenerated.
46563         * tests/unictype/test-pr_zero_width.c: Regenerated.
46564
46565         Update to Unicode 5.1.0.
46566         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
46567         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
46568         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
46569         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
46570         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
46571         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
46572         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
46573         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
46574         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
46575         (nonspacing_table_ind): Update.
46576         * tests/uniwidth/test-uc_width2.sh: Update expected result.
46577
46578         Update to Unicode 5.1.0.
46579         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
46580         code transform.
46581         * lib/uniname/uniname.c (unicode_character_name,
46582         unicode_name_character): Add the range 0x1Fxxx to the code transform.
46583         * lib/uniname/uninames.h: Regenerated.
46584         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
46585
46586 2009-02-07  Bruno Haible  <bruno@clisp.org>
46587
46588         Merge gen-ctype and gen-lbrk into a single program.
46589         * lib/gen-uni-tables.c: New file, incorporating
46590         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
46591         Add directory prefixes to the names of the generated files.
46592         * lib/unictype/gen-ctype.c: Remove file.
46593         * lib/unilbrk/gen-lbrk.c: Remove file.
46594         * modules/gen-uni-tables: New file.
46595         * modules/unictype/gen-ctype: Remove file.
46596         * modules/unilbrk/gen-lbrk: Remove file.
46597
46598 2009-02-07  Bruno Haible  <bruno@clisp.org>
46599
46600         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
46601
46602         New module 'unistr/u32-strcoll'.
46603         * modules/unistr/u32-strcoll: New file.
46604         * lib/unistr/u32-strcoll.c: New file.
46605
46606         New module 'unistr/u16-strcoll'.
46607         * modules/unistr/u16-strcoll: New file.
46608         * lib/unistr/u16-strcoll.c: New file.
46609
46610         New module 'unistr/u8-strcoll'.
46611         * modules/unistr/u8-strcoll: New file.
46612         * lib/unistr/u8-strcoll.c: New file.
46613         * lib/unistr/u-strcoll.h: New file.
46614
46615 2009-02-07  Bruno Haible  <bruno@clisp.org>
46616
46617         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
46618         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46619         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46620         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
46621         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
46622         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
46623
46624 2009-02-07  Bruno Haible  <bruno@clisp.org>
46625
46626         Make 64-bit clean.
46627         * lib/unictype/gen-ctype.c (output_predicate, output_category,
46628         output_combclass, output_bidi_category, output_decimal_digit,
46629         output_digit, output_numeric, output_mirror, output_scripts,
46630         output_ident_category): Use proper width specifier in format strings.
46631
46632 2009-02-07  Bruno Haible  <bruno@clisp.org>
46633
46634         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
46635         failure behaviour.
46636
46637 2009-02-07  Jim Meyering  <meyering@redhat.com>
46638
46639         regex: avoid compilation failure with upcoming gcc-4.4
46640         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
46641         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
46642         "... error: integer overflow in preprocessor expression".
46643
46644 2009-02-05  Ben Pfaff  <blp@gnu.org>
46645
46646         Fix link errors on Windows when close module is used.
46647         * modules/close: Add $(LIB_CLOSE) to Link section.
46648         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
46649         $(LIB_CLOSE) on Windows.
46650
46651 2009-02-05  Jim Meyering  <meyering@redhat.com>
46652
46653         still avoid unused-parameter warnings, but do it cleanly
46654         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
46655         (get_fs_usage): Cast to void instead.
46656         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
46657         (dev_from_mount_options, read_file_system_list): Cast to void.
46658         Prompted by Bruno Haible.
46659
46660 2009-02-04  Jim Meyering  <meyering@redhat.com>
46661
46662         fsusage.c: correct copyright year
46663         * lib/fsusage.c: Reflect year in which the change is pushed into
46664
46665         avoid misc. warnings
46666         * lib/fsusage.c (UNUSED_PARAM): Define.
46667         (get_fs_usage): Mark parameter "disk" as unused.
46668         * lib/getugroups.c (getgrent): Use "void" in prototype.
46669         * lib/mountlist.c: Mark unused parameters.
46670         (read_file_system_list): Declare a local with "const".
46671         * lib/nanosleep.c (getnow): Declare static.
46672         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
46673
46674         dirfd: set errno upon failure
46675         * lib/dirfd.c: Include <errno.h>.
46676         Set errno to ENOTSUP when returning -1.
46677         * modules/dirfd (Depends-on): Add errno.
46678         Suggested by John Kodis <kodis@comcast.net>.
46679
46680 2009-02-01  Bruno Haible  <bruno@clisp.org>
46681
46682         Don't assume sizeof (long) >= sizeof (void *).
46683         * lib/memcmp.c: Include stdint.h.
46684         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
46685         srcp2 to 'const byte *'.
46686         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
46687         types to uintptr_t.
46688         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
46689         * modules/memcmp (Depends-on): Add stdint.
46690         Reported by Ozkan Sezer <sezeroz@gmail.com>.
46691
46692 2009-01-30  Eric Blake  <ebb9@byu.net>
46693
46694         fix more require-before-expand issues
46695         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
46696         expand, AC_PROG_AWK.
46697         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
46698
46699 2009-01-28  Eric Blake  <ebb9@byu.net>
46700
46701         version-etc: use consistent URL formatting
46702         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
46703         Improve formatting.  Use fputs for string without %.
46704
46705 2009-01-28  Jim Meyering  <meyering@redhat.com>
46706
46707         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
46708         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
46709         "underquoted definition of NAME" from autoconf-2.59.
46710
46711 2009-01-28  Bruno Haible  <bruno@clisp.org>
46712
46713         * doc/gnulib.texi: Add "Obsolete modules" to index.
46714
46715 2009-01-28  Jim Meyering  <meyering@redhat.com>
46716
46717         useless-if-before-free: recognize more variants
46718         * build-aux/useless-if-before-free: Also recognize e.g.,
46719         if (NULL != p) free (p);
46720
46721 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
46722
46723         test-getaddrinfo: skip (don't fail) this test when there's no network
46724         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
46725         on the presumption that it means you lack network access.
46726
46727 2009-01-26  Jim Meyering  <meyering@redhat.com>
46728
46729         fflush: avoid warnings on modern systems
46730         * lib/fflush.c (rpl_fflush): Move declarations of locals,
46731         pos and result, into scopes where they're used.
46732
46733 2009-01-26  Eric Blake  <ebb9@byu.net>
46734
46735         Silence warning reintroduced by recent extensions patch.
46736         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
46737         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
46738         autoconf.
46739
46740         Backport improved autoconf semantics of AC_DEFUN_ONCE.
46741         * m4/00gnulib.m4: New file.
46742         * gnulib-tool (func_get_filelist): Always use it.
46743         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
46744         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
46745
46746 2009-01-25  Bruno Haible  <bruno@clisp.org>
46747
46748         Make test-quotearg work on MacOS X and AIX.
46749         * tests/test-quotearg.sh: New file.
46750         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
46751         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
46752         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
46753         include <libintl.h>.
46754         (fake_locale): Remove variable.
46755         (gettext, dgettext, dcgettext): Remove functions.
46756         (main): Instead of setting a fake locale, set a real locale. Call
46757         textdomain and bindtextdomain.
46758         * modules/quotearg-tests (Files): Add the new files.
46759         (Depends-on): Add gettext, setenv, unsetenv.
46760         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46761         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
46762         Augment TESTS_ENVIRONMENT.
46763
46764 2009-01-25  Bruno Haible  <bruno@clisp.org>
46765
46766         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
46767         fr_FR.ISO8859-1 locale on MacOS X.
46768         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
46769         ja_JP.eucJP locale on MacOS X.
46770         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
46771         zh_CN.GB18030 locale on MacOS X.
46772
46773 2009-01-25  Bruno Haible  <bruno@clisp.org>
46774
46775         Avoid link errors on MacOS X 10.3.
46776         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
46777         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46778
46779 2009-01-25  Bruno Haible  <bruno@clisp.org>
46780
46781         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46782         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
46783         * modules/pipe (Files): Remove m4/posix_spawn.m4.
46784         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46785         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
46786         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46787         posix_spawnattr_init, posix_spawnattr_setsigmask,
46788         posix_spawnattr_setflags, posix_spawnattr_destroy.
46789
46790         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46791         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
46792         * modules/execute (Files): Remove m4/posix_spawn.m4.
46793         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46794         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46795         posix_spawnattr_init, posix_spawnattr_setsigmask,
46796         posix_spawnattr_setflags, posix_spawnattr_destroy.
46797
46798 2009-01-25  Bruno Haible  <bruno@clisp.org>
46799
46800         * lib/glthread/threadlib.c: Include <stdlib.h>.
46801
46802 2009-01-25  Bruno Haible  <bruno@clisp.org>
46803
46804         * lib/glthread/threadlib.c (dummy): New declaration.
46805
46806 2009-01-25  Bruno Haible  <bruno@clisp.org>
46807
46808         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
46809         multibyte characters also for the GB18030 encoding. Don't crash when
46810         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
46811
46812 2009-01-25  Bruno Haible  <bruno@clisp.org>
46813
46814         Avoid redefining 'struct random_data' on OSF/1 5.1.
46815         * lib/stdlib.in.h: Include <random.h> if it exists.
46816         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
46817         HAVE_RANDOM_H. Include <random.h> when testing whether
46818         'struct random_data' exists.
46819         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
46820
46821 2009-01-25  Bruno Haible  <bruno@clisp.org>
46822
46823         Don't install charset.alias on MacOS X >= 10.3.
46824         * lib/localcharset.c (DARWIN7): New macro.
46825         (get_charset_aliases): Hardcode the result for Darwin7.
46826         * modules/localcharset (install-exec-local): Don't install
46827         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
46828
46829 2009-01-25  Bruno Haible  <bruno@clisp.org>
46830
46831         Don't install charset.alias on mingw and Cygwin.
46832         * modules/localcharset (install-exec-local): Don't install
46833         charset.alias on mingw and Cygwin, if the file does not yet exist.
46834         The result for these platforms is hardcoded in localcharset.c.
46835
46836 2009-01-25  Bruno Haible  <bruno@clisp.org>
46837
46838         Make it possible again to use AC_GNU_SOURCE together with gnulib.
46839         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
46840         before requiring AC_USE_SYSTEM_EXTENSIONS.
46841
46842 2009-01-25  Jim Meyering  <meyering@redhat.com>
46843
46844         c-strtod: avoid warnings
46845         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
46846         "assignment discards qualifiers from pointer target type" warnings.
46847
46848 2009-01-24  Bruno Haible  <bruno@clisp.org>
46849
46850         Add support for non-UTF-8 locales on MacOS X.
46851         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
46852         canonical encodings. For Darwin 7 and newer, don't map traditional
46853         encodings to UTF-8.
46854         Reported by Vincent Lefevre <vincent@vinc17.org>
46855         at <http://savannah.gnu.org/bugs/?25235>.
46856
46857 2009-01-24  Bruno Haible  <bruno@clisp.org>
46858
46859         * doc/gnulib.texi (Obsolete modules): New section.
46860         Reported by Mike Frysinger <vapier@gentoo.org>.
46861
46862 2009-01-24  Bruno Haible  <bruno@clisp.org>
46863
46864         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
46865         (%.dvi): New rule.
46866
46867 2009-01-24  Bruno Haible  <bruno@clisp.org>
46868
46869         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
46870         Reported by Eric Blake.
46871
46872 2009-01-24  Bruno Haible  <bruno@clisp.org>
46873
46874         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
46875         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
46876         Reported by Gary V. Vaughan <gary@gnu.org>.
46877
46878 2009-01-24  Bruno Haible  <bruno@clisp.org>
46879
46880         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
46881
46882 2009-01-23  Bruno Haible  <bruno@clisp.org>
46883
46884         Make c-strtod, c-strtold usable in libraries.
46885         * lib/c-strtod.c: Include string.h instead of xalloc.h.
46886         (C_STRTOD): Call strdup instead of xstrdup.
46887         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
46888         * modules/c-strtold (Depends-on): Likewise.
46889         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
46890         * NEWS: Mention the change.
46891         Reported by Michael Gold <mgold@ncf.ca>.
46892
46893 2009-01-23  Jim Meyering  <meyering@redhat.com>
46894
46895         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
46896         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
46897         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
46898
46899 2009-01-23  Simon Josefsson  <simon@josefsson.org>
46900
46901         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
46902         GNU CoreUtils.
46903         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
46904         * modules/version-etc (Description): Update.
46905
46906 2009-01-22  Bruno Haible  <bruno@clisp.org>
46907
46908         Cache the C locale object.
46909         * lib/c-strtod.c (c_locale_cache): New variable.
46910         (c_locale): New function.
46911         (C_STRTOD): Use it, and don't call freelocale.
46912         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
46913         Suggested by Paolo Bonzini.
46914
46915 2009-01-21  Bruno Haible  <bruno@clisp.org>
46916
46917         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
46918         conditions other than overflow.
46919
46920 2009-01-21  Bruno Haible  <bruno@clisp.org>
46921
46922         * lib/c-strtod.c: Include errno.h.
46923         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
46924         value from STRTOD_L and STRTOD.
46925
46926 2009-01-21  Bruno Haible  <bruno@clisp.org>
46927         and Jim Meyering  <meyering@redhat.com>
46928
46929         nanosleep: skip configure test (fail it) for apple universal builds
46930         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
46931         universal builds, assume that nanosleep does not work.
46932         * modules/nanosleep (Depends-on): Add multiarch.
46933
46934         mktime: skip configure test (fail it) for apple universal builds
46935         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
46936         universal builds, assume that mktime does not work.
46937         * modules/mktime (Depends-on): Add multiarch.
46938
46939 2009-01-21  Eric Blake  <ebb9@byu.net>
46940
46941         multiarch: avoid expand-before-require warning
46942         * modules/multiarch (configure.ac): Require, rather than expand,
46943         gl_MULTIARCH.
46944         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
46945         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
46946         enforce that all clients require it.  Partial reversion of
46947         2008-12-29 patch.
46948
46949         error: avoid expand-before-require warning
46950         * modules/errno (configure.ac): Require, rather than expand,
46951         gl_HEADER_ERRNO_H.
46952         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
46953         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
46954         enforce that all clients require it.
46955
46956         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
46957         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
46958         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
46959         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
46960
46961 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
46962
46963         Revert:
46964         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
46965
46966         regex: do not depend on obsolete modules.
46967         * modules/regex: Remove memcmp and memmove.
46968
46969 2009-01-20  Bruno Haible  <bruno@clisp.org>
46970
46971         Make the 'link' module link on Windows NT 4.
46972         * lib/link.c (_WIN32_WINNT): Don't define.
46973         (CreateHardLinkFuncType): New type.
46974         (CreateHardLinkFunc, initialized): New variables.
46975         (initialize): New function.
46976         (link): Invoke CreateHardLink indirectly through the function pointer.
46977
46978 2009-01-20  Bruno Haible  <bruno@clisp.org>
46979
46980         Fix compilation failure on mingw.
46981         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
46982
46983 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
46984
46985         * doc/c-strtod.texi: Mention a couple of restrictions.
46986
46987 2009-01-20  Jim Meyering  <meyering@redhat.com>
46988
46989         gettimeofday: move more declarations out of functions
46990         * lib/gettimeofday.c: Move extern declarations of tzset and
46991         gmtime out of containing functions.  Prompted by Bruno Haible.
46992
46993 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
46994
46995         regex: do not depend on obsolete modules.
46996         * modules/regex: Remove memcmp and memmove.
46997
46998 2009-01-19  Bruno Haible  <bruno@clisp.org>
46999
47000         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47001         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
47002         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47003         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
47004         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
47005
47006 2009-01-19  Bruno Haible  <bruno@clisp.org>
47007
47008         * tests/test-link.c: Include <errno.h>.
47009         (main): Exit with code 77 when a hard link cannot be created due to
47010         the file system.
47011         * tests/test-link.sh: Skip test when a hard link cannot be created due
47012         to the file system.
47013         Suggested by Eric Blake.
47014
47015 2009-01-19  Martin Lambers  <marlam@marlam.de>
47016
47017         * modules/link-tests: New file.
47018         * tests/test-link.sh: New file.
47019         * tests/test-link.c: New file.
47020
47021 2009-01-19  Eric Blake  <ebb9@byu.net>
47022
47023         doc: mention another function added in cygwin 1.7.0
47024         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
47025         Another new function in cygwin 1.7.
47026
47027 2009-01-19  Bruno Haible  <bruno@clisp.org>
47028
47029         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
47030         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
47031         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
47032         gl_BIGENDIAN, not AC_C_BIGENDIAN.
47033         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
47034         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
47035         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
47036         * m4/md4.m4 (gl_MD4): Likewise.
47037         * m4/md5.m4 (gl_MD5): Likewise.
47038         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
47039         * m4/sha1.m4 (gl_SHA1): Likewise.
47040         * m4/sha256.m4 (gl_SHA256): Likewise.
47041         * m4/sha512.m4 (gl_SHA512): Likewise.
47042
47043 2009-01-19  Bruno Haible  <bruno@clisp.org>
47044
47045         * modules/uniname/uniname-tests (Depends-on): Add progname.
47046         * tests/uniname/test-uninames.c: Include progname.h.
47047         (main): Call set_program_name.
47048
47049         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
47050         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
47051         (main): Call set_program_name.
47052
47053         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
47054         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
47055         (main): Call set_program_name.
47056
47057         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
47058         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
47059         (main): Call set_program_name.
47060
47061         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
47062         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
47063         (main): Call set_program_name.
47064
47065         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
47066         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
47067         (main): Call set_program_name.
47068
47069         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
47070         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
47071         (main): Call set_program_name.
47072
47073         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
47074         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
47075         (main): Call set_program_name.
47076
47077         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
47078         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
47079         (main): Call set_program_name.
47080
47081 2009-01-19  Eric Blake  <ebb9@byu.net>
47082
47083         test-unistd: test previous patch
47084         * tests/test-unistd.c: Test *_FILENO macros.
47085
47086         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
47087         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47088         Guarantee a definition.
47089         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
47090         * modules/unistd-safer (Depends-on): Add dependency on unistd.
47091         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
47092         * lib/dup-safer.c (STDERR_FILENO): Likewise.
47093         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47094         Likewise.
47095         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
47096         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
47097         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
47098         Likewise.
47099         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
47100         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
47101         (STDERR_FILENO): Likewise.
47102         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
47103         (STDERR_FILENO): Likewise.
47104         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
47105         (STDERR_FILENO): Likewise.
47106         Reported by Elbert Pol.
47107
47108 2009-01-19  Eric Blake  <ebb9@byu.net>
47109
47110         doc: mention more functions added in cygwin 1.7.0
47111         * doc/posix-functions/abort.texi (abort): Update wording related
47112         to cygwin.
47113         * doc/posix-functions/daylight.texi (daylight): Likewise.
47114         * doc/posix-functions/optarg.texi (optarg): Likewise.
47115         * doc/posix-functions/optarg.texi (opterr): Likewise.
47116         * doc/posix-functions/optarg.texi (optind): Likewise.
47117         * doc/posix-functions/optarg.texi (optopt): Likewise.
47118         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
47119         worked in 1.5.x, and was withdrawn in 1.7.
47120         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
47121         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
47122         cygwin versions.
47123         * doc/posix-functions/perror.texi (perror): Likewise.
47124         * doc/posix-functions/printf.texi (printf): Likewise.
47125         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
47126         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
47127         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
47128         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
47129         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
47130         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
47131         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
47132         Likewise.
47133         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
47134         Likewise.
47135         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
47136         this function.
47137         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
47138         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
47139         Likewise.
47140         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
47141         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
47142         * doc/posix-functions/confstr.texi (confstr): Likewise.
47143         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
47144         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
47145         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
47146         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
47147         * doc/posix-functions/fputws.texi (fputws): Likewise.
47148         * doc/posix-functions/fwide.texi (fwide): Likewise.
47149         * doc/posix-functions/getwc.texi (getwc): Likewise.
47150         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
47151         * doc/posix-functions/putwc.texi (putwc): Likewise.
47152         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
47153         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
47154         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
47155         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
47156         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
47157         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
47158         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
47159         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
47160         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
47161         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
47162         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
47163
47164 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47165
47166         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
47167         * lib/ioctl.c: Include <sys/ioctl.h>.
47168
47169 2009-01-19  Simon Josefsson  <simon@josefsson.org>
47170
47171         * modules/getdate-tests (Depends-on): Add progname.
47172         * tests/test-getdate.c: Use progname module, to avoid link errors
47173         on non-glibc systems.
47174
47175 2009-01-18  Simon Josefsson  <simon@josefsson.org>
47176
47177         * modules/filenamecat-tests (Depends-on): Add progname.
47178         * modules/fstrcmp-tests (Depends-on): Likewise.
47179
47180         * tests/test-filenamecat.c: Use progname module, to avoid link
47181         errors on non-glibc systems.
47182         * tests/test-fstrcmp.c: Likewise.
47183
47184 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
47185
47186         gettimeofday: avoid warning: nested extern declaration of 'localtime'
47187         * lib/gettimeofday.c: Move extern declaration out of function.
47188
47189 2009-01-18  Bruno Haible  <bruno@clisp.org>
47190
47191         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
47192         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
47193         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
47194
47195 2009-01-18  Bruno Haible  <bruno@clisp.org>
47196
47197         * lib/strftime.c (MEMPCPY): Remove unused macro.
47198         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
47199
47200 2009-01-18  Martin Lambers  <marlam@marlam.de>
47201
47202         New module 'link'.
47203         * lib/unistd.in.h (link): New declaration.
47204         * lib/link.c: New file.
47205         * m4/link.m4: New file.
47206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
47207         HAVE_LINK.
47208         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
47209         * modules/link: New file.
47210         * doc/posix-functions/link.texi: Mention the new module.
47211
47212 2009-01-18  Bruno Haible  <bruno@clisp.org>
47213
47214         * tests/test-avltree_list.c (main): Call set_program_name.
47215         * tests/test-avltree_oset.c (main): Likewise.
47216         * tests/test-obstack-printf.c: Include progname.h.
47217         (main): Call set_program_name.
47218         * tests/test-quotearg.c: Include progname.h.
47219         (main): Call set_program_name.
47220         * tests/test-xmemdup0.c: Include progname.h.
47221         (main): Call set_program_name.
47222
47223 2009-01-18  Bruno Haible  <bruno@clisp.org>
47224
47225         New module 'alphasort'.
47226         * lib/dirent.in.h (alphasort): New declaration.
47227         * lib/alphasort.c: New file, from glibc with modifications.
47228         * m4/alphasort.m4: New file.
47229         * modules/alphasort: New file.
47230         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
47231         HAVE_ALPHASORT.
47232         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
47233         HAVE_ALPHASORT.
47234         * doc/posix-functions/alphasort.texi: Mention the new module and the
47235         portability problems.
47236
47237 2009-01-18  Bruno Haible  <bruno@clisp.org>
47238
47239         New module 'scandir'.
47240         * lib/dirent.in.h (scandir): New declaration.
47241         * lib/scandir.c: New file, from glibc with modifications.
47242         * m4/scandir.m4: New file.
47243         * modules/scandir: New file.
47244         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
47245         HAVE_SCANDIR.
47246         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
47247         HAVE_SCANDIR.
47248         * doc/posix-functions/scandir.texi: Mention the new module and the
47249         portability problems.
47250
47251 2009-01-17  Bruno Haible  <bruno@clisp.org>
47252
47253         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
47254         Update documentation.
47255         (func_remove_suffix): Escape all dots in the suffix. Update
47256         documentation.
47257         (func_filter_filelist): Update documentation.
47258         Reported by Ralf Wildenhues.
47259
47260 2009-01-17  Bruno Haible  <bruno@clisp.org>
47261
47262         * modules/dprintf-posix-tests: New file.
47263         * tests/test-dprintf-posix.sh: New file.
47264         * tests/test-dprintf-posix.c: New file.
47265
47266         New modules 'dprintf', 'dprintf-posix'.
47267         * lib/stdio.in.h (dprintf): New declaration.
47268         * lib/dprintf.c: New file.
47269         * m4/dprintf.m4: New file.
47270         * m4/dprintf-posix.m4: New file.
47271         * modules/dprintf: New file.
47272         * modules/dprintf-posix: New file.
47273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47274         HAVE_DPRINTF, REPLACE_DPRINTF.
47275         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47276         HAVE_DPRINTF, REPLACE_DPRINTF.
47277         * doc/posix-functions/dprintf.texi: Mention the new modules.
47278
47279 2009-01-17  Bruno Haible  <bruno@clisp.org>
47280
47281         * modules/vdprintf-posix-tests: New file.
47282         * tests/test-vdprintf-posix.sh: New file.
47283         * tests/test-vdprintf-posix.c: New file.
47284
47285         New modules 'vdprintf', 'vdprintf-posix'.
47286         * lib/stdio.in.h (vdprintf): New declaration.
47287         * lib/vdprintf.c: New file.
47288         * m4/vdprintf.m4: New file.
47289         * m4/vdprintf-posix.m4: New file.
47290         * modules/vdprintf: New file.
47291         * modules/vdprintf-posix: New file.
47292         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
47293         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47294         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
47295         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47296         * doc/posix-functions/vdprintf.texi: Mention the new modules.
47297
47298 2009-01-17  Bruno Haible  <bruno@clisp.org>
47299
47300         Fix replacement of fopen on mingw.
47301         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
47302         mingw.
47303
47304 2009-01-17  Bruno Haible  <bruno@clisp.org>
47305
47306         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
47307         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
47308
47309 2009-01-17  Bruno Haible  <bruno@clisp.org>
47310
47311         Avoid test-fflush2.sh failure on mingw.
47312         * tests/test-fflush2.c: Include binary-io.h.
47313         (main): Put standard input into binary mode.
47314         * modules/fflush-tests (Depends-on): Add binary-io.
47315
47316 2009-01-17  Bruno Haible  <bruno@clisp.org>
47317
47318         * lib/wchar.in.h: In another particular situation, include only the
47319         system's <wchar.h> file.
47320         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
47321         Reported by Albert Chin-A-Young <china@thewrittenword.com>
47322         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
47323
47324 2009-01-17  Bruno Haible  <bruno@clisp.org>
47325
47326         Support for stripping executables in --enable-relocatable.
47327         * build-aux/install-reloc: Expect one more argument, or an environment
47328         variable RELOC_STRIP_PROG. If set, strip the destination program and
47329         its wrapper.
47330         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
47331         RELOC_STRIP_PROG.
47332         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
47333         to set RELOCATABLE_STRIP.
47334         * NEWS: Mention the new Makefile requirement.
47335
47336 2009-01-17  Bruno Haible  <bruno@clisp.org>
47337
47338         * build-aux/install-reloc: Remove debugging information left over by
47339         C compiler on MacOS X.
47340
47341 2009-01-17  Bruno Haible  <bruno@clisp.org>
47342
47343         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
47344         * lib/progreloc.c (find_executable): Fix type of pointer passed to
47345         _NSGetExecutablePath.
47346
47347 2009-01-16  Jim Meyering  <meyering@redhat.com>
47348
47349         strerror: avoid warnings about discarding "const"
47350         * lib/strerror.c (rpl_strerror): Instead of returning a const
47351         string from each and every "case", use a variable, and add a single
47352         cast after the switch.
47353
47354 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
47355
47356         * lib/arpa_inet.in.h: Add extern "C" block for C++.
47357
47358 2009-01-16  Bruno Haible  <bruno@clisp.org>
47359
47360         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
47361         array initializer syntax that also works in C++ mode.
47362         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47363
47364 2009-01-16  Jim Meyering  <meyering@redhat.com>
47365
47366         poll: suppress a warning
47367         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
47368         to ignore "...unsigned expression < 0 is always false" warnings.
47369
47370 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
47371
47372         poll: remove declarations of unused variables
47373         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
47374         sockbuf and optlen.
47375
47376 2009-01-15  Bruno Haible  <bruno@clisp.org>
47377
47378         Make fflush-after-ungetc POSIX compliant on BSD systems.
47379         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
47380         (clear_ungetc_buffer): Implement also for other systems.
47381         (rpl_fflush): On glibc systems, invoke
47382         clear_ungetc_buffer_preserving_position. Otherwise, invoke
47383         clear_ungetc_buffer after fetching the stream's position, not before.
47384
47385 2009-01-15  Bruno Haible  <bruno@clisp.org>
47386
47387         Make fflush-after-ungetc POSIX compliant on glibc systems.
47388         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
47389         after ungetc.
47390         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
47391         (rpl_fflush): On glibc systems, simply call the system's fflush
47392         function after clearing the ungetc buffer.
47393         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
47394         Instead, lseek only to the end of file, then use the system's fseeko
47395         for the rest. On glibc systems, reset the EOF indicator bit.
47396
47397 2009-01-15  Jim Meyering  <meyering@redhat.com>
47398
47399         openmp.m4: revert quote-adding change, for portability to older autoconf
47400         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
47401         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
47402         Simon Josefsson noticed the problem when using autoconf-2.61.
47403
47404 2009-01-15  Bruno Haible  <bruno@clisp.org>
47405
47406         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
47407         * tests/test-fflush2.c (ASSERT): Always fail.
47408         (main): Add two tests for fflush() after ungetc(), taking into account
47409         the Austin Group's clarification.
47410         Suggested by Eric Blake.
47411
47412 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
47413
47414         mktime.m4: remove K&R-style function prototypes
47415         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
47416         for the Sun C++ compiler.
47417
47418 2009-01-14  Bruno Haible  <bruno@clisp.org>
47419
47420         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
47421         while including <wchar.h>.
47422         * lib/wchar.in.h: In two particular situations on HP-UX, include only
47423         the system's <wchar.h> file.
47424         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47425
47426 2009-01-14  Bruno Haible  <bruno@clisp.org>
47427
47428         * m4/csharp.m4: Don't mention gettext on the serial number line.
47429         * m4/csharpexec.m4: Likewise.
47430         * m4/eaccess.m4: Likewise.
47431         * m4/javaexec.m4: Likewise.
47432         * m4/sig_atomic_t.m4: Likewise.
47433         * m4/tmpdir.m4: Likewise.
47434         * m4/intldir.m4: Bump gettext version.
47435         * m4/lib-ld.m4: Likewise.
47436
47437 2009-01-14  Bruno Haible  <bruno@clisp.org>
47438
47439         * lib/progname.c (set_program_name): Add more comments.
47440         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
47441
47442 2009-01-14  Simon Josefsson  <simon@josefsson.org>
47443
47444         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
47445         were sys/stat.h does not define it.
47446
47447 2009-01-14  Jim Meyering  <meyering@redhat.com>
47448
47449         many *.m4 files: improve m4 quoting
47450         99% of this change was performed by running the following commands:
47451         git ls-files | grep '\.m4$' | xargs perl -pi \
47452           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
47453           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47454           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47455           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
47456         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
47457         The remainder were to add Copyright dates, increment serial numbers,
47458         undo some changes in comments, exclude m4/intl.m4, and add quotes
47459         around the "1" in ",1" where the unusual spacing prohibited the
47460         above regexps from doing the job.  For more details, see
47461         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
47462         * m4/acl.m4: Modified.
47463         * m4/afs.m4: Likewise.
47464         * m4/alloca.m4: Likewise.
47465         * m4/argp.m4: Likewise.
47466         * m4/argz.m4: Likewise.
47467         * m4/atexit.m4: Likewise.
47468         * m4/bison-i18n.m4: Likewise.
47469         * m4/bison.m4: Likewise.
47470         * m4/byteswap.m4: Likewise.
47471         * m4/c-stack.m4: Likewise.
47472         * m4/c-strtod.m4: Likewise.
47473         * m4/calloc.m4: Likewise.
47474         * m4/canonicalize-lgpl.m4: Likewise.
47475         * m4/chown.m4: Likewise.
47476         * m4/clock_time.m4: Likewise.
47477         * m4/codeset.m4: Likewise.
47478         * m4/copy-file.m4: Likewise.
47479         * m4/csharp.m4: Likewise.
47480         * m4/csharpcomp.m4: Likewise.
47481         * m4/csharpexec.m4: Likewise.
47482         * m4/d-ino.m4: Likewise.
47483         * m4/d-type.m4: Likewise.
47484         * m4/dirfd.m4: Likewise.
47485         * m4/double-slash-root.m4: Likewise.
47486         * m4/eaccess.m4: Likewise.
47487         * m4/eealloc.m4: Likewise.
47488         * m4/environ.m4: Likewise.
47489         * m4/errno_h.m4: Likewise.
47490         * m4/euidaccess.m4: Likewise.
47491         * m4/execute.m4: Likewise.
47492         * m4/fatal-signal.m4: Likewise.
47493         * m4/fchdir.m4: Likewise.
47494         * m4/fcntl_h.m4: Likewise.
47495         * m4/fileblocks.m4: Likewise.
47496         * m4/filenamecat.m4: Likewise.
47497         * m4/findprog.m4: Likewise.
47498         * m4/flexmember.m4: Likewise.
47499         * m4/fnmatch.m4: Likewise.
47500         * m4/fopen.m4: Likewise.
47501         * m4/fpending.m4: Likewise.
47502         * m4/fprintf-posix.m4: Likewise.
47503         * m4/free.m4: Likewise.
47504         * m4/frexp.m4: Likewise.
47505         * m4/frexpl.m4: Likewise.
47506         * m4/fsusage.m4: Likewise.
47507         * m4/ftruncate.m4: Likewise.
47508         * m4/gc-camellia.m4: Likewise.
47509         * m4/gc-random.m4: Likewise.
47510         * m4/gc.m4: Likewise.
47511         * m4/getaddrinfo.m4: Likewise.
47512         * m4/getcwd-abort-bug.m4: Likewise.
47513         * m4/getcwd-path-max.m4: Likewise.
47514         * m4/getdate.m4: Likewise.
47515         * m4/getdomainname.m4: Likewise.
47516         * m4/getgroups.m4: Likewise.
47517         * m4/gethostname.m4: Likewise.
47518         * m4/gethrxtime.m4: Likewise.
47519         * m4/getline.m4: Likewise.
47520         * m4/getloadavg.m4: Likewise.
47521         * m4/getndelim2.m4: Likewise.
47522         * m4/getpass.m4: Likewise.
47523         * m4/gettext.m4: Likewise.
47524         * m4/gettime.m4: Likewise.
47525         * m4/gettimeofday.m4: Likewise.
47526         * m4/gnulib-common.m4: Likewise.
47527         * m4/group-member.m4: Likewise.
47528         * m4/host-os.m4: Likewise.
47529         * m4/iconv.m4: Likewise.
47530         * m4/iconv_open.m4: Likewise.
47531         * m4/inet_ntop.m4: Likewise.
47532         * m4/inet_pton.m4: Likewise.
47533         * m4/inline.m4: Likewise.
47534         * m4/intldir.m4: Likewise.
47535         * m4/intlmacosx.m4: Likewise.
47536         * m4/intmax.m4: Likewise.
47537         * m4/intmax_t.m4: Likewise.
47538         * m4/inttypes.m4: Likewise.
47539         * m4/inttypes_h.m4: Likewise.
47540         * m4/inttypes-pri.m4: Likewise.
47541         * m4/isapipe.m4: Likewise.
47542         * m4/isnand.m4: Likewise.
47543         * m4/isnanf.m4: Likewise.
47544         * m4/isnanl.m4: Likewise.
47545         * m4/javacomp.m4: Likewise.
47546         * m4/javaexec.m4: Likewise.
47547         * m4/jm-winsz1.m4: Likewise.
47548         * m4/jm-winsz2.m4: Likewise.
47549         * m4/lchown.m4: Likewise.
47550         * m4/lcmessage.m4: Likewise.
47551         * m4/ldexpl.m4: Likewise.
47552         * m4/lib-ld.m4: Likewise.
47553         * m4/lib-link.m4: Likewise.
47554         * m4/libsigsegv.m4: Likewise.
47555         * m4/link-follow.m4: Likewise.
47556         * m4/localcharset.m4: Likewise.
47557         * m4/locale-fr.m4: Likewise.
47558         * m4/locale-ja.m4: Likewise.
47559         * m4/locale-tr.m4: Likewise.
47560         * m4/locale-zh.m4: Likewise.
47561         * m4/lock.m4: Likewise.
47562         * m4/longlong.m4: Likewise.
47563         * m4/ls-mntd-fs.m4: Likewise.
47564         * m4/lstat.m4: Likewise.
47565         * m4/malloc.m4: Likewise.
47566         * m4/mathl.m4: Likewise.
47567         * m4/mbrtowc.m4: Likewise.
47568         * m4/mbstate_t.m4: Likewise.
47569         * m4/mbswidth.m4: Likewise.
47570         * m4/memchr.m4: Likewise.
47571         * m4/memcmp.m4: Likewise.
47572         * m4/memcpy.m4: Likewise.
47573         * m4/memmem.m4: Likewise.
47574         * m4/memmove.m4: Likewise.
47575         * m4/mempcpy.m4: Likewise.
47576         * m4/memrchr.m4: Likewise.
47577         * m4/memset.m4: Likewise.
47578         * m4/minmax.m4: Likewise.
47579         * m4/mkdir-slash.m4: Likewise.
47580         * m4/mkdtemp.m4: Likewise.
47581         * m4/mktime.m4: Likewise.
47582         * m4/mmap-anon.m4: Likewise.
47583         * m4/mountlist.m4: Likewise.
47584         * m4/nanosleep.m4: Likewise.
47585         * m4/nls.m4: Likewise.
47586         * m4/nocrash.m4: Likewise.
47587         * m4/open.m4: Likewise.
47588         * m4/openat.m4: Likewise.
47589         * m4/openmp.m4: Likewise.
47590         * m4/pathmax.m4: Likewise.
47591         * m4/perl.m4: Likewise.
47592         * m4/physmem.m4: Likewise.
47593         * m4/pipe.m4: Likewise.
47594         * m4/po.m4: Likewise.
47595         * m4/poll.m4: Likewise.
47596         * m4/posixtm.m4: Likewise.
47597         * m4/posixver.m4: Likewise.
47598         * m4/printf-frexp.m4: Likewise.
47599         * m4/printf-frexpl.m4: Likewise.
47600         * m4/printf-posix.m4: Likewise.
47601         * m4/printf-posix-rpl.m4: Likewise.
47602         * m4/printf.m4: Likewise.
47603         * m4/progtest.m4: Likewise.
47604         * m4/putenv.m4: Likewise.
47605         * m4/readline.m4: Likewise.
47606         * m4/readlink.m4: Likewise.
47607         * m4/readutmp.m4: Likewise.
47608         * m4/realloc.m4: Likewise.
47609         * m4/regex.m4: Likewise.
47610         * m4/relocatable.m4: Likewise.
47611         * m4/relocatable-lib.m4: Likewise.
47612         * m4/rename-dest-slash.m4: Likewise.
47613         * m4/rename.m4: Likewise.
47614         * m4/rmdir-errno.m4: Likewise.
47615         * m4/rmdir.m4: Likewise.
47616         * m4/roundf.m4: Likewise.
47617         * m4/roundl.m4: Likewise.
47618         * m4/rpmatch.m4: Likewise.
47619         * m4/save-cwd.m4: Likewise.
47620         * m4/selinux-selinux-h.m4: Likewise.
47621         * m4/setenv.m4: Likewise.
47622         * m4/settime.m4: Likewise.
47623         * m4/sig2str.m4: Likewise.
47624         * m4/sig_atomic_t.m4: Likewise.
47625         * m4/signalblocking.m4: Likewise.
47626         * m4/signbit.m4: Likewise.
47627         * m4/sigpipe.m4: Likewise.
47628         * m4/sockets.m4: Likewise.
47629         * m4/sockpfaf.m4: Likewise.
47630         * m4/st_dm_mode.m4: Likewise.
47631         * m4/stat-time.m4: Likewise.
47632         * m4/stdbool.m4: Likewise.
47633         * m4/stdint.m4: Likewise.
47634         * m4/stdint_h.m4: Likewise.
47635         * m4/stpcpy.m4: Likewise.
47636         * m4/stpncpy.m4: Likewise.
47637         * m4/strcase.m4: Likewise.
47638         * m4/strchrnul.m4: Likewise.
47639         * m4/strcspn.m4: Likewise.
47640         * m4/strdup.m4: Likewise.
47641         * m4/strftime.m4: Likewise.
47642         * m4/strndup.m4: Likewise.
47643         * m4/strnlen.m4: Likewise.
47644         * m4/strpbrk.m4: Likewise.
47645         * m4/strptime.m4: Likewise.
47646         * m4/strsep.m4: Likewise.
47647         * m4/strtod.m4: Likewise.
47648         * m4/strtoimax.m4: Likewise.
47649         * m4/strtok_r.m4: Likewise.
47650         * m4/strtol.m4: Likewise.
47651         * m4/strtoll.m4: Likewise.
47652         * m4/strtoul.m4: Likewise.
47653         * m4/strtoull.m4: Likewise.
47654         * m4/strtoumax.m4: Likewise.
47655         * m4/strverscmp.m4: Likewise.
47656         * m4/threadlib.m4: Likewise.
47657         * m4/timegm.m4: Likewise.
47658         * m4/tm_gmtoff.m4: Likewise.
47659         * m4/tmpdir.m4: Likewise.
47660         * m4/tmpfile.m4: Likewise.
47661         * m4/tzset.m4: Likewise.
47662         * m4/uintmax_t.m4: Likewise.
47663         * m4/unlinkdir.m4: Likewise.
47664         * m4/unlocked-io.m4: Likewise.
47665         * m4/uptime.m4: Likewise.
47666         * m4/userspec.m4: Likewise.
47667         * m4/utimbuf.m4: Likewise.
47668         * m4/utime.m4: Likewise.
47669         * m4/utimes-null.m4: Likewise.
47670         * m4/utimes.m4: Likewise.
47671         * m4/vararrays.m4: Likewise.
47672         * m4/vasnprintf.m4: Likewise.
47673         * m4/vfprintf-posix.m4: Likewise.
47674         * m4/vprintf-posix.m4: Likewise.
47675         * m4/wait-process.m4: Likewise.
47676         * m4/wchar_t.m4: Likewise.
47677         * m4/wint_t.m4: Likewise.
47678         * m4/write-any-file.m4: Likewise.
47679         * m4/yield.m4: Likewise.
47680
47681 2009-01-13  Bruno Haible  <bruno@clisp.org>
47682
47683         Avoid test-copy-file.sh failures when ACL support insufficient.
47684         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
47685         TESTS_ENVIRONMENT.
47686         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
47687         Reported by Jim Meyering.
47688
47689 2009-01-13  Bruno Haible  <bruno@clisp.org>
47690
47691         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
47692         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
47693         * modules/unistdio/u8-printf-parse (Files): Likewise.
47694         * modules/unistdio/u32-printf-parse (Files): Likewise.
47695         * modules/unistdio/ulc-printf-parse (Files): Likewise.
47696
47697 2009-01-13  Simon Josefsson  <simon@josefsson.org>
47698
47699         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
47700         and m4/inttypes_h.m4 too.
47701
47702 2009-01-12  Eric Blake  <ebb9@byu.net>
47703
47704         tests: IRIX 6.2 cc can't compile -0.0 into .data
47705         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
47706         rather than at compile-time.
47707         * tests/test-floorl.c (minus_zero): Likewise.
47708         * tests/test-frexpl.c (minus_zero): Likewise.
47709         * tests/test-isnan.c (minus_zerol): Likewise.
47710         * tests/test-isnanl.h (minus_zero): Likewise.
47711         * tests/test-ldexpl.c (minus_zero): Likewise.
47712         * tests/test-roundl.c (minus_zero): Likewise.
47713         * tests/test-signbit.c (minus_zerol): Likewise.
47714         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47715         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47716         * tests/test-truncl.c (minus_zero): Likewise.
47717         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47718         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47719         Reported by Tom G. Christensen and Nelson H. F. Beebe.
47720
47721 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47722
47723         regex: fix glibc bug 9697
47724         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
47725         handling.
47726
47727 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47728
47729         regex: fix glibc bug 697
47730         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
47731         being NULL also if there are no backreferences.
47732
47733 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47734
47735         regex: merge glibc changes
47736         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
47737         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
47738         re_string_skip_chars, re_string_reconstruct): Likewise.
47739         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
47740
47741 2009-01-07  Jim Meyering  <meyering@redhat.com>
47742
47743         poll: filter through cppi
47744         * lib/poll.c: Indent cpp directives to reflect nesting.
47745
47746 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
47747
47748         poll: don't return uninitialized
47749         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
47750
47751 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
47752
47753         avoid compile failure on AIX 6.1
47754         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
47755         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
47756
47757 2009-01-04  Jim Meyering  <meyering@redhat.com>
47758
47759         remove duplicate inclusion of <stdio.h>
47760         * tests/test-fprintf-posix.c: Likewise.
47761         * tests/test-printf-posix.c: Likewise.
47762         * tests/test-snprintf-posix.c: Likewise.
47763         * tests/test-sprintf-posix.c: Likewise.
47764         * tests/test-vasprintf-posix.c: Likewise.
47765         * tests/test-vfprintf-posix.c: Likewise.
47766         * tests/test-vprintf-posix.c: Likewise.
47767         * tests/test-vsnprintf-posix.c: Likewise.
47768         * tests/test-vsprintf-posix.c: Likewise.
47769
47770 2009-01-03  Jim Meyering  <meyering@redhat.com>
47771
47772         gnulib-tool: fix sed-based filtering
47773         * gnulib-tool (func_filter_filelist): Remove extra backslash
47774         in sed_fff_filter definition.
47775
47776 2009-01-02  Jim Meyering  <meyering@redhat.com>
47777
47778         strftime: avoid compilation failure on Solaris 2.6
47779         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
47780         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
47781         Don't #define mbrlen or mbsinit, since now they're guaranteed to
47782         be available.  Reported by Tom G. Christensen.  Details in
47783         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
47784
47785 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47786             Bruno Haible  <bruno@clisp.org>
47787
47788         Speed up gnulib-tool by doing more string processing through shell
47789         built-ins.
47790         * gnulib-tool (fast_func_append): New variable.
47791         (func_remove_prefix, func_remove_suffix): New functions.
47792         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
47793         (func_filter_filelist): New function.
47794         (func_get_dependencies): Use func_remove_suffix instead of sed.
47795         (func_get_automake_snippet): Use func_filter_filelist instead of a
47796         subshell and sed invocation.
47797
47798 2009-01-01  Bruno Haible  <bruno@clisp.org>
47799
47800         Fix a security bug.
47801         * gnulib-tool (func_import, import, update): Don't allow the characters
47802         '"', '$', '`', '\' in macro arguments that become part of commands that
47803         are evaluated.
47804
47805 2009-01-01  Bruno Haible  <bruno@clisp.org>
47806
47807         * gnulib-tool (func_reset_sigpipe): Add more comments.
47808
47809 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47810
47811         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
47812         func_emit_tests_Makefile_am, func_import): Abort loops early if we
47813         already know the answer.
47814
47815 2009-01-01  Jim Meyering  <meyering@redhat.com>
47816
47817         * lib/version-etc.c (version_etc_va): Update copyright year.
47818
47819 2008-12-30  Bruno Haible  <bruno@clisp.org>
47820
47821         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
47822         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
47823         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
47824
47825 2008-12-29  Eric Blake  <ebb9@byu.net>
47826
47827         multiarch: avoid autoconf AC_REQUIRE bug
47828         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
47829         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
47830         2.63 and older.
47831         Reported by Bruno Haible, and analyzed in
47832         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
47833
47834 2008-12-29  Bruno Haible  <bruno@clisp.org>
47835
47836         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
47837         files in subdirectories correctly.
47838         Reported by Ralf Wildenhues.
47839
47840 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47841
47842         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
47843         rather than 'join FILE -', for Solaris join.
47844
47845 2008-12-29  Bruno Haible  <bruno@clisp.org>
47846
47847         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
47848         quoting.
47849         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
47850         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47851         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47852         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
47853         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47854         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
47855         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
47856         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
47857         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47858         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
47859         * m4/nls.m4 (AM_NLS): Likewise.
47860         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
47861         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
47862         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47863         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
47864         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
47865         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47866         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
47867         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
47868         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
47869         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47870         * m4/xsize.m4 (gl_XSIZE): Likewise.
47871         Suggested by Jim Meyering.
47872
47873 2008-11-17  Bruce Korb  <bkorb@gnu.org>
47874
47875         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
47876         * lib/parse-duration.c: use a switch instead of cascading if's.
47877
47878 2008-12-29  Eric Blake  <ebb9@byu.net>
47879
47880         wchar.h: supply WEOF on Irix 5.3
47881         * lib/wchar.in.h (wint_t): Also supply WEOF.
47882         * lib/wctype.in.h (wint_t): Likewise.
47883         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
47884         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
47885         Reported by Tom G. Christensen.
47886
47887 2008-12-26  Bruno Haible  <bruno@clisp.org>
47888
47889         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
47890         i486, i586, i686.
47891
47892 2008-12-26  Bruno Haible  <bruno@clisp.org>
47893
47894         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
47895
47896 2008-12-26  Bruno Haible  <bruno@clisp.org>
47897
47898         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
47899         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
47900         not __STDC_CONSTANT_MACROS.
47901         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47902
47903 2008-12-25  Bruno Haible  <bruno@clisp.org>
47904
47905         Add support for universal builds to vasnprintf.
47906         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
47907         universal builds, guess no.
47908         * modules/vasnprintf-posix (Depends-on): Add multiarch.
47909         * modules/vasprintf-posix (Depends-on): Likewise.
47910         * modules/fprintf-posix (Depends-on): Likewise.
47911         * modules/vfprintf-posix (Depends-on): Likewise.
47912         * modules/snprintf-posix (Depends-on): Likewise.
47913         * modules/vsnprintf-posix (Depends-on): Likewise.
47914         * modules/sprintf-posix (Depends-on): Likewise.
47915         * modules/vsprintf-posix (Depends-on): Likewise.
47916         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47917         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47918         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47919         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47920         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47921         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47922         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47923
47924         Add support for universal builds to <inttypes.h>.
47925         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
47926         _SCNu64_PREFIX): In Apple
47927         universal builds, define directly, using _LP64.
47928         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
47929         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
47930         * modules/inttypes (Depends-on): Add multiarch.
47931         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47932
47933         Add support for universal builds to <stdint.h>.
47934         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
47935         universal builds, define directly, using _LP64.
47936         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
47937         Apple universal builds, don't test for the size and suffix of ptrdiff_t
47938         and size_t.
47939         * modules/stdint (Depends-on): Add multiarch.
47940         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47941
47942         New module 'multiarch'.
47943         * modules/multiarch: New file.
47944         * m4/multiarch.m4: New file.
47945
47946 2008-12-25  Bruno Haible  <bruno@clisp.org>
47947
47948         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
47949
47950 2008-12-25  Bruno Haible  <bruno@clisp.org>
47951
47952         * modules/btowc (License): Relicense under LGPLv2+.
47953         * modules/mbsinit (License): Likewise.
47954         * modules/mbrtowc (License): Likewise.
47955         * modules/wcrtomb (License): Likewise.
47956         * modules/streq (License): Likewise.
47957         Reported by David Lutterkort <lutter@redhat.com>.
47958
47959 2008-12-23  Bruno Haible  <bruno@clisp.org>
47960
47961         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
47962
47963 2008-12-23  Bruno Haible  <bruno@clisp.org>
47964
47965         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
47966         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
47967         GETADDRINFO_LIB, not in LIBS.
47968         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
47969         * modules/canon-host (Link): Likewise.
47970         * NEWS: Mention the change.
47971         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
47972         GETADDRINFO_LIB.
47973
47974 2008-12-22  Bruno Haible  <bruno@clisp.org>
47975
47976         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
47977         * doc/posix-functions/iswalpha_l.texi: Likewise.
47978         * doc/posix-functions/iswblank_l.texi: Likewise.
47979         * doc/posix-functions/iswcntrl_l.texi: Likewise.
47980         * doc/posix-functions/iswctype_l.texi: Likewise.
47981         * doc/posix-functions/iswdigit_l.texi: Likewise.
47982         * doc/posix-functions/iswgraph_l.texi: Likewise.
47983         * doc/posix-functions/iswlower_l.texi: Likewise.
47984         * doc/posix-functions/iswprint_l.texi: Likewise.
47985         * doc/posix-functions/iswpunct_l.texi: Likewise.
47986         * doc/posix-functions/iswspace_l.texi: Likewise.
47987         * doc/posix-functions/iswupper_l.texi: Likewise.
47988         * doc/posix-functions/iswxdigit_l.texi: Likewise.
47989         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
47990         * doc/posix-functions/open_wmemstream.texi: Likewise.
47991         * doc/posix-functions/swscanf.texi: Likewise.
47992         * doc/posix-functions/towctrans_l.texi: Likewise.
47993         * doc/posix-functions/towlower.texi: Likewise.
47994         * doc/posix-functions/towlower_l.texi: Likewise.
47995         * doc/posix-functions/towupper.texi: Likewise.
47996         * doc/posix-functions/towupper_l.texi: Likewise.
47997         * doc/posix-functions/vfwprintf.texi: Likewise.
47998         * doc/posix-functions/vfwscanf.texi: Likewise.
47999         * doc/posix-functions/vswscanf.texi: Likewise.
48000         * doc/posix-functions/vwprintf.texi: Likewise.
48001         * doc/posix-functions/vwscanf.texi: Likewise.
48002         * doc/posix-functions/wcpcpy.texi: Likewise.
48003         * doc/posix-functions/wcpncpy.texi: Likewise.
48004         * doc/posix-functions/wcscasecmp.texi: Likewise.
48005         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
48006         * doc/posix-functions/wcscoll_l.texi: Likewise.
48007         * doc/posix-functions/wcsdup.texi: Likewise.
48008         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48009         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
48010         * doc/posix-functions/wcsnlen.texi: Likewise.
48011         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48012         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
48013         * doc/posix-functions/wctrans_l.texi: Likewise.
48014         * doc/posix-functions/wctype_l.texi: Likewise.
48015         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
48016         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
48017         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
48018         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
48019         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
48020         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
48021         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
48022         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
48023         * doc/glibc-functions/wcschrnul.texi: Likewise.
48024         * doc/glibc-functions/wcsftime_l.texi: Likewise.
48025         * doc/glibc-functions/wcstod_l.texi: Likewise.
48026         * doc/glibc-functions/wcstof_l.texi: Likewise.
48027         * doc/glibc-functions/wcstol_l.texi: Likewise.
48028         * doc/glibc-functions/wcstold_l.texi: Likewise.
48029         * doc/glibc-functions/wcstoll_l.texi: Likewise.
48030         * doc/glibc-functions/wcstoq.texi: Likewise.
48031         * doc/glibc-functions/wcstoul_l.texi: Likewise.
48032         * doc/glibc-functions/wcstoull_l.texi: Likewise.
48033         * doc/glibc-functions/wcstouq.texi: Likewise.
48034         * doc/glibc-functions/wmempcpy.texi: Likewise.
48035
48036 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
48037             Eric Blake  <ebb9@byu.net>
48038             Paolo Bonzini  <bonzini@gnu.org>
48039             Bruno Haible  <bruno@clisp.org>
48040
48041         Make c-stack work on Haiku.
48042         * lib/c-stack.c (SA_ONSTACK): Define fallback.
48043         (c_stack_action): Use SA_ONSTACK flag.
48044
48045 2008-12-22  Bruno Haible  <bruno@clisp.org>
48046
48047         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
48048
48049 2008-12-22  Bruno Haible  <bruno@clisp.org>
48050
48051         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
48052         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
48053         being overridden.
48054         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
48055         New macros.
48056         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
48057         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
48058         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
48059         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
48060
48061 2008-12-22  Bruno Haible  <bruno@clisp.org>
48062
48063         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
48064         from test code.
48065
48066 2008-12-22  Eric Blake  <ebb9@byu.net>
48067
48068         Avoid gcc warnings on cygwin.
48069         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
48070         Avoid unused variable.
48071         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
48072         Likewise.
48073
48074 2008-12-22  Bruno Haible  <bruno@clisp.org>
48075
48076         Remove HAVE_MBRTOWC conditionals.
48077         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
48078         (mbscasecmp): Assume mbrtowc function.
48079         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
48080         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
48081         * lib/mbschr.c: Include mbuiter.h unconditionally.
48082         (mbschr): Assume mbrtowc function.
48083         * lib/mbscspn.c: Include mbuiter.h unconditionally.
48084         (mbscspn): Assume mbrtowc function.
48085         * lib/mbslen.c: Include mbuiter.h unconditionally.
48086         (mbslen): Assume mbrtowc function.
48087         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
48088         (mbsncasecmp): Assume mbrtowc function.
48089         * lib/mbsnlen.c: Include mbiter.h unconditionally.
48090         (mbsnlen): Assume mbrtowc function.
48091         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
48092         (mbspbrk): Assume mbrtowc function.
48093         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
48094         (mbspcasecmp): Assume mbrtowc function.
48095         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
48096         (mbsrchr): Assume mbrtowc function.
48097         * lib/mbssep.c: Include mbuiter.h unconditionally.
48098         (mbssep): Assume mbrtowc function.
48099         * lib/mbsspn.c: Include mbuiter.h unconditionally.
48100         (mbsspn): Assume mbrtowc function.
48101         * lib/mbsstr.c: Include mbuiter.h unconditionally.
48102         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
48103         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
48104         (mbstok_r): Assume mbrtowc function.
48105         * lib/propername.c: Include mbuiter.h unconditionally.
48106         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
48107         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
48108         (trim2): Assume mbrtowc function.
48109         * lib/mbswidth.c (mbsinit): Remove fallback definition.
48110         (mbsnwidth): Assume mbrtowc function.
48111         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
48112         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
48113         fallback definitions.
48114         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
48115
48116 2008-12-22  Bruno Haible  <bruno@clisp.org>
48117
48118         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
48119
48120 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
48121
48122         * modules/regex: Request emulations for the mb*/wc* functions we need.
48123         * m4/regex.m4: Don't look for those functions here.
48124         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
48125
48126 2008-12-22  Bruno Haible  <bruno@clisp.org>
48127
48128         * modules/fnmatch (Depends-on): Remove duplicated dependency.
48129
48130 2008-12-21  Bruno Haible  <bruno@clisp.org>
48131
48132         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
48133         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
48134         (Include): Remove conditionalization.
48135         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
48136         (Include): Remove conditionalization.
48137         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
48138         (Include): Remove conditionalization.
48139         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
48140         * m4/mbfile.m4 (gl_MBFILE): Likewise.
48141         * NEWS: Mention the change.
48142         Reported by Alan Hourihane <alanh@fairlite.co.uk>
48143         via Sergey Poznyakoff <gray@gnu.org.ua>.
48144
48145 2008-12-21  Bruno Haible  <bruno@clisp.org>
48146
48147         * MODULES.html.sh (Extended multibyte and wide character utilities
48148         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
48149         wcrtomb, wcsrtombs.
48150         (Support for systems lacking POSIX:2008): Add accept, bind, close,
48151         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
48152         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
48153         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
48154
48155 2008-12-21  Bruno Haible  <bruno@clisp.org>
48156
48157         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
48158
48159 2008-12-21  Bruno Haible  <bruno@clisp.org>
48160
48161         * modules/wcsnrtombs-tests: New file.
48162         * tests/test-wcsnrtombs1.sh: New file.
48163         * tests/test-wcsnrtombs2.sh: New file.
48164         * tests/test-wcsnrtombs3.sh: New file.
48165         * tests/test-wcsnrtombs4.sh: New file.
48166         * tests/test-wcsnrtombs.c: New file.
48167
48168         New module 'wcsnrtombs'.
48169         * lib/wchar.in.h (wcsnrtombs): New declaration.
48170         * lib/wcsnrtombs.c: New file.
48171         * lib/wcsrtombs-state.c: New file.
48172         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
48173         (internal_state): Remove variable.
48174         * m4/wcsnrtombs.m4: New file.
48175         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
48176         compilation units.
48177         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
48178         HAVE_WCSNRTOMBS.
48179         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
48180         HAVE_WCSNRTOMBS.
48181         * modules/wcsnrtombs: New file.
48182         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
48183         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
48184
48185 2008-12-21  Bruno Haible  <bruno@clisp.org>
48186
48187         * modules/wcsrtombs-tests: New file.
48188         * tests/test-wcsrtombs1.sh: New file.
48189         * tests/test-wcsrtombs2.sh: New file.
48190         * tests/test-wcsrtombs3.sh: New file.
48191         * tests/test-wcsrtombs4.sh: New file.
48192         * tests/test-wcsrtombs.c: New file.
48193
48194         New module 'wcsrtombs'.
48195         * lib/wchar.in.h (wcsrtombs): New declaration.
48196         * lib/wcsrtombs.c: New file.
48197         * m4/wcsrtombs.m4: New file.
48198         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
48199         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48200         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
48201         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
48202         * modules/wcsrtombs: New file.
48203         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
48204         bugs.
48205
48206 2008-12-21  Bruno Haible  <bruno@clisp.org>
48207
48208         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
48209         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
48210         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
48211         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
48212         if not correct.
48213         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
48214         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
48215         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48216         m4/locale-zh.m4, m4/codeset.m4.
48217         * doc/posix-functions/wcrtomb.texi: Document the bug.
48218
48219 2008-12-21  Bruno Haible  <bruno@clisp.org>
48220
48221         Work around a btowc() bug on IRIX 6.5.
48222         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
48223         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
48224         REPLACE_WTOBC if not.
48225         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
48226         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
48227         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
48228
48229 2008-12-21  Bruno Haible  <bruno@clisp.org>
48230
48231         * modules/wcrtomb-tests: New file.
48232         * tests/test-wcrtomb.sh: New file.
48233         * tests/test-wcrtomb.c: New file.
48234
48235         New module 'wcrtomb'.
48236         * lib/wchar.in.h (wcrtomb): New declaration.
48237         * lib/wcrtomb.c: New file.
48238         * m4/wcrtomb.m4: New file.
48239         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
48240         HAVE_WCRTOMB.
48241         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
48242         HAVE_WCRTOMB.
48243         * modules/wcrtomb: New file.
48244         * doc/posix-functions/wcrtomb.texi: Mention the new module.
48245
48246 2008-12-21  Bruno Haible  <bruno@clisp.org>
48247
48248         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
48249         * modules/mbsrtowcs (Files): Likewise.
48250         * modules/wctob (Files): Likewise.
48251         * modules/c-strcase-tests (Files): Likewise.
48252         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
48253         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
48254         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
48255         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
48256         * modules/vasnprintf-posix-tests (Files): Likewise.
48257
48258 2008-12-21  William Pursell  <bill.pursell@gmail.com>
48259
48260         gitlog-to-changelog: pass all command-line arguments to git-log
48261         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
48262         it is sometimes convenient to filter the commits in various ways.
48263         gitlog-to-changelog only allows --since to specify a start date,
48264         but git-log itself supports many other filtering mechanisms.
48265         At the moment, I want to filter by branch name.  Rather than
48266         adding a --branch option to gitlog-to-changelog, it seems more
48267         flexible to simply pass all options directly to git-log and let
48268         git do the work.  Notice that this effectively makes --since a
48269         redundant option for gitlog-to-changelog, but removing it would
48270         require current usage to change since calls would then require
48271         an additional '--'.
48272
48273 2008-12-21  Bruno Haible  <bruno@clisp.org>
48274
48275         * modules/mbsnrtowcs-tests: New file.
48276         * tests/test-mbsnrtowcs1.sh: New file.
48277         * tests/test-mbsnrtowcs2.sh: New file.
48278         * tests/test-mbsnrtowcs3.sh: New file.
48279         * tests/test-mbsnrtowcs4.sh: New file.
48280         * tests/test-mbsnrtowcs.c: New file.
48281
48282         New module 'mbsnrtowcs'.
48283         * lib/wchar.in.h (mbsnrtowcs): New declaration.
48284         * lib/mbsnrtowcs.c: New file.
48285         * lib/mbsrtowcs-state.c: New file.
48286         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
48287         (internal_state): Remove variable.
48288         * m4/mbsnrtowcs.m4: New file.
48289         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
48290         compilation units.
48291         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
48292         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48293         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
48294         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48295         * modules/mbsnrtowcs: New file.
48296         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
48297         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
48298         portability problem.
48299
48300 2008-12-21  Bruno Haible  <bruno@clisp.org>
48301
48302         Work around mbsrtowcs bug.
48303         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
48304         (gl_FUNC_MBSRTOWCS): Invoke it.
48305         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48306         m4/locale-zh.m4.
48307         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
48308
48309 2008-12-21  Bruno Haible  <bruno@clisp.org>
48310
48311         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
48312
48313 2008-12-21  Bruno Haible  <bruno@clisp.org>
48314
48315         Update doc for AIX.
48316         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
48317         16-bit wchar_t type.
48318         * doc/posix-functions/btowc.texi: Likewise.
48319         * doc/posix-functions/fgetwc.texi: Likewise.
48320         * doc/posix-functions/fgetws.texi: Likewise.
48321         * doc/posix-functions/fputwc.texi: Likewise.
48322         * doc/posix-functions/fputws.texi: Likewise.
48323         * doc/posix-functions/fwide.texi: Likewise.
48324         * doc/posix-functions/fwprintf.texi: Likewise.
48325         * doc/posix-functions/fwscanf.texi: Likewise.
48326         * doc/posix-functions/getwchar.texi: Likewise.
48327         * doc/posix-functions/getwc.texi: Likewise.
48328         * doc/posix-functions/iswalnum.texi: Likewise.
48329         * doc/posix-functions/iswalpha.texi: Likewise.
48330         * doc/posix-functions/iswblank.texi: Likewise.
48331         * doc/posix-functions/iswcntrl.texi: Likewise.
48332         * doc/posix-functions/iswctype.texi: Likewise.
48333         * doc/posix-functions/iswdigit.texi: Likewise.
48334         * doc/posix-functions/iswgraph.texi: Likewise.
48335         * doc/posix-functions/iswlower.texi: Likewise.
48336         * doc/posix-functions/iswprint.texi: Likewise.
48337         * doc/posix-functions/iswpunct.texi: Likewise.
48338         * doc/posix-functions/iswspace.texi: Likewise.
48339         * doc/posix-functions/iswupper.texi: Likewise.
48340         * doc/posix-functions/iswxdigit.texi: Likewise.
48341         * doc/posix-functions/mbrtowc.texi: Likewise.
48342         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48343         * doc/posix-functions/mbstowcs.texi: Likewise.
48344         * doc/posix-functions/mbtowc.texi: Likewise.
48345         * doc/posix-functions/putwchar.texi: Likewise.
48346         * doc/posix-functions/putwc.texi: Likewise.
48347         * doc/posix-functions/swprintf.texi: Likewise.
48348         * doc/posix-functions/tolower.texi: Likewise.
48349         * doc/posix-functions/toupper.texi: Likewise.
48350         * doc/posix-functions/towctrans.texi: Likewise.
48351         * doc/posix-functions/ungetwc.texi: Likewise.
48352         * doc/posix-functions/vswprintf.texi: Likewise.
48353         * doc/posix-functions/wcrtomb.texi: Likewise.
48354         * doc/posix-functions/wcscat.texi: Likewise.
48355         * doc/posix-functions/wcschr.texi: Likewise.
48356         * doc/posix-functions/wcscmp.texi: Likewise.
48357         * doc/posix-functions/wcscoll.texi: Likewise.
48358         * doc/posix-functions/wcscpy.texi: Likewise.
48359         * doc/posix-functions/wcscspn.texi: Likewise.
48360         * doc/posix-functions/wcsftime.texi: Likewise.
48361         * doc/posix-functions/wcslen.texi: Likewise.
48362         * doc/posix-functions/wcsncat.texi: Likewise.
48363         * doc/posix-functions/wcsncmp.texi: Likewise.
48364         * doc/posix-functions/wcsncpy.texi: Likewise.
48365         * doc/posix-functions/wcspbrk.texi: Likewise.
48366         * doc/posix-functions/wcsrchr.texi: Likewise.
48367         * doc/posix-functions/wcsrtombs.texi: Likewise.
48368         * doc/posix-functions/wcsspn.texi: Likewise.
48369         * doc/posix-functions/wcsstr.texi: Likewise.
48370         * doc/posix-functions/wcstod.texi: Likewise.
48371         * doc/posix-functions/wcstof.texi: Likewise.
48372         * doc/posix-functions/wcstoimax.texi: Likewise.
48373         * doc/posix-functions/wcstok.texi: Likewise.
48374         * doc/posix-functions/wcstold.texi: Likewise.
48375         * doc/posix-functions/wcstoll.texi: Likewise.
48376         * doc/posix-functions/wcstol.texi: Likewise.
48377         * doc/posix-functions/wcstombs.texi: Likewise.
48378         * doc/posix-functions/wcstoull.texi: Likewise.
48379         * doc/posix-functions/wcstoul.texi: Likewise.
48380         * doc/posix-functions/wcstoumax.texi: Likewise.
48381         * doc/posix-functions/wcswidth.texi: Likewise.
48382         * doc/posix-functions/wcsxfrm.texi: Likewise.
48383         * doc/posix-functions/wctob.texi: Likewise.
48384         * doc/posix-functions/wctomb.texi: Likewise.
48385         * doc/posix-functions/wctrans.texi: Likewise.
48386         * doc/posix-functions/wctype.texi: Likewise.
48387         * doc/posix-functions/wcwidth.texi: Likewise.
48388         * doc/posix-functions/wmemchr.texi: Likewise.
48389         * doc/posix-functions/wmemcmp.texi: Likewise.
48390         * doc/posix-functions/wmemcpy.texi: Likewise.
48391         * doc/posix-functions/wmemmove.texi: Likewise.
48392         * doc/posix-functions/wmemset.texi: Likewise.
48393         * doc/posix-functions/wprintf.texi: Likewise.
48394         * doc/posix-functions/wscanf.texi: Likewise.
48395
48396 2008-12-21  Bruno Haible  <bruno@clisp.org>
48397
48398         Update doc for HP-UX 11.11.
48399         * doc/posix-functions/btowc.texi: Clarify that the function is missing
48400         in HP-UX version 11.00, not in all versions of HP-UX 11.
48401         * doc/posix-functions/fwide.texi: Likewise.
48402         * doc/posix-functions/fwprintf.texi: Likewise.
48403         * doc/posix-functions/fwscanf.texi: Likewise.
48404         * doc/posix-functions/inet_ntop.texi: Likewise.
48405         * doc/posix-functions/inet_pton.texi: Likewise.
48406         * doc/posix-functions/mbrlen.texi: Likewise.
48407         * doc/posix-functions/mbrtowc.texi: Likewise.
48408         * doc/posix-functions/mbsinit.texi: Likewise.
48409         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48410         * doc/posix-functions/swprintf.texi: Likewise.
48411         * doc/posix-functions/swscanf.texi: Likewise.
48412         * doc/posix-functions/towctrans.texi: Likewise.
48413         * doc/posix-functions/vfwprintf.texi: Likewise.
48414         * doc/posix-functions/vswprintf.texi: Likewise.
48415         * doc/posix-functions/vwprintf.texi: Likewise.
48416         * doc/posix-functions/wcrtomb.texi: Likewise.
48417         * doc/posix-functions/wcsrtombs.texi: Likewise.
48418         * doc/posix-functions/wcsstr.texi: Likewise.
48419         * doc/posix-functions/wctob.texi: Likewise.
48420         * doc/posix-functions/wctrans.texi: Likewise.
48421         * doc/posix-functions/wmemchr.texi: Likewise.
48422         * doc/posix-functions/wmemcmp.texi: Likewise.
48423         * doc/posix-functions/wmemcpy.texi: Likewise.
48424         * doc/posix-functions/wmemmove.texi: Likewise.
48425         * doc/posix-functions/wmemset.texi: Likewise.
48426         * doc/posix-functions/wprintf.texi: Likewise.
48427         * doc/posix-functions/wscanf.texi: Likewise.
48428
48429 2008-12-21  Bruno Haible  <bruno@clisp.org>
48430
48431         Work around a portability problem.
48432         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
48433         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
48434
48435 2008-12-20  Bruno Haible  <bruno@clisp.org>
48436
48437         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
48438         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
48439         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
48440         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
48441         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
48442
48443         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
48444         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
48445         set.
48446         (GNULIB_defined_mbstate_t): New macro.
48447         (mbsinit): Redefine if REPLACE_MBSINIT is set.
48448         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
48449         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
48450         reuses the system's mbrtowc function but works around the bugs.
48451         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
48452         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
48453         macros.
48454         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
48455         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
48456         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
48457         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
48458         REPLACE_MBSINIT if mbsinit needs to be overridden.
48459         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
48460         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48461         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
48462         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48463         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48464         m4/locale-zh.m4.
48465         (Depends): Add mbsinit.
48466         * modules/mbsinit (Depends): Add mbrtowc.
48467         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
48468
48469 2008-12-20  Bruno Haible  <bruno@clisp.org>
48470
48471         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
48472         so that there are no conversion errors on AIX.
48473         * tests/test-mbsrtowcs.c (main): LIkewise.
48474
48475 2008-12-20  Bruno Haible  <bruno@clisp.org>
48476
48477         Work around wctob bug on Solaris <= 9.
48478         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
48479         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
48480         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
48481         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
48482         * modules/wctob (Files): Add m4/locale-fr.m4.
48483         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
48484
48485 2008-12-20  Bruno Haible  <bruno@clisp.org>
48486
48487         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
48488         /dev/null.
48489         * tests/test-select-in.sh: Likewise.
48490         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48491
48492 2008-12-20  Bruno Haible  <bruno@clisp.org>
48493
48494         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
48495         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
48496         Cygwin 1.5.x.
48497
48498 2008-12-20  Bruno Haible  <bruno@clisp.org>
48499
48500         Ensure mbstate_t is defined on HP-UX 11.11.
48501         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
48502         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
48503         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
48504         AC_USE_SYSTEM_EXTENSIONS.
48505         * modules/fnmatch (Depends-on): Add extensions.
48506         * modules/mbrlen (Depends-on): Likewise.
48507         * modules/mbrtowc (Depends-on): Likewise.
48508         * modules/mbsinit (Depends-on): Likewise.
48509         * modules/mbsrtowcs (Depends-on): Likewise.
48510         * modules/mbswidth (Depends-on): Likewise.
48511         * modules/quotearg (Depends-on): Likewise.
48512         * modules/strftime (Depends-on): Likewise.
48513
48514 2008-12-20  Bruno Haible  <bruno@clisp.org>
48515
48516         Ensure wctob is declared on IRIX 6.5.
48517         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
48518         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
48519         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
48520         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
48521         of HAVE_WCTOB.
48522         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
48523         HAVE_WCTOB.
48524         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
48525
48526 2008-12-19  Bruno Haible  <bruno@clisp.org>
48527
48528         * modules/mbsrtowcs-tests: New file.
48529         * tests/test-mbsrtowcs1.sh: New file.
48530         * tests/test-mbsrtowcs2.sh: New file.
48531         * tests/test-mbsrtowcs3.sh: New file.
48532         * tests/test-mbsrtowcs4.sh: New file.
48533         * tests/test-mbsrtowcs.c: New file.
48534
48535         New module 'mbsrtowcs'.
48536         * lib/wchar.in.h (mbsrtowcs): New declaration.
48537         * lib/mbsrtowcs.c: New file.
48538         * m4/mbsrtowcs.m4: New file.
48539         * modules/mbsrtowcs: New file.
48540         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
48541         HAVE_MBSRTOWCS.
48542         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
48543         HAVE_MBSRTOWCS.
48544         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
48545
48546 2008-12-19  Bruno Haible  <bruno@clisp.org>
48547
48548         New module 'mbrlen'.
48549         * lib/wchar.in.h (mbrlen): New declaration.
48550         * lib/mbrlen.c: New file.
48551         * m4/mbrlen.m4: New file.
48552         * modules/mbrlen: New file.
48553         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
48554         HAVE_MBRLEN.
48555         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
48556         HAVE_MBRLEN.
48557         * doc/posix-functions/mbrlen.texi: Document the new module.
48558
48559 2008-12-19  Bruno Haible  <bruno@clisp.org>
48560
48561         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
48562         * modules/mbrtowc (Depends-on): Add verify.
48563         Suggested by Paul Eggert.
48564
48565 2008-12-18  Bruno Haible  <bruno@clisp.org>
48566
48567         * modules/mbsinit-tests: New file.
48568         * tests/test-mbsinit.sh: New file.
48569         * tests/test-mbsinit.c: New file.
48570
48571 2008-12-18  Bruno Haible  <bruno@clisp.org>
48572
48573         * modules/mbrtowc-tests: New file.
48574         * tests/test-mbrtowc1.sh: New file.
48575         * tests/test-mbrtowc2.sh: New file.
48576         * tests/test-mbrtowc3.sh: New file.
48577         * tests/test-mbrtowc4.sh: New file.
48578         * tests/test-mbrtowc.c: New file.
48579
48580         New module 'mbrtowc'.
48581         * lib/wchar.in.h (mbstate_t): Override when the system does not have
48582         mbsinit and mbrtowc.
48583         (mbrtowc): New declaration.
48584         * lib/mbrtowc.c: New file.
48585         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
48586         * modules/mbrtowc: New file.
48587         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
48588         HAVE_MBRTOWC.
48589         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
48590         HAVE_MBRTOWC.
48591         * doc/posix-functions/mbrtowc.texi: Document the new module.
48592
48593 2008-12-18  Bruno Haible  <bruno@clisp.org>
48594
48595         New module 'wctob'.
48596         * lib/wchar.in.h (wctob): New declaration.
48597         * lib/wctob.c: New file.
48598         * m4/wctob.m4: New file.
48599         * modules/wctob: New file.
48600         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
48601         HAVE_WCTOB.
48602         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
48603         * doc/posix-functions/wctob.texi: Document the new module.
48604
48605 2008-12-18  Bruno Haible  <bruno@clisp.org>
48606
48607         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
48608         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
48609
48610 2008-12-18  Simon Josefsson  <simon@josefsson.org>
48611
48612         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
48613         G. Christensen" <tgc@jupiterrise.com>.
48614
48615         * lib/flock.c: Need to include errno.h.  Reported by "Tom
48616         G. Christensen" <tgc@jupiterrise.com>.
48617
48618         * lib/flock.c: Need to include string.h.  Reported by "Tom
48619         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
48620         <ebb9@byu.net>.
48621
48622 2008-12-18  Bruno Haible  <bruno@clisp.org>
48623
48624         * m4/locale-ja.m4: New file, from GNU gettext.
48625
48626 2008-12-17  Bruno Haible  <bruno@clisp.org>
48627
48628         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
48629         Suggested by Eric Blake.
48630
48631 2008-12-17  Bruno Haible  <bruno@clisp.org>
48632
48633         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
48634
48635 2008-12-17  Bruno Haible  <bruno@clisp.org>
48636
48637         * lib/mbsinit.c: Include verify.h. Verify an assumption.
48638         * modules/mbsinit (Depends-on): Add verify.
48639         Suggested by Paul Eggert.
48640
48641 2008-12-17  Bruno Haible  <bruno@clisp.org>
48642
48643         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
48644         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
48645         gl_FUNC_MBRTOWC.
48646         * m4/mbiter.m4 (gl_MBITER): LIkewise.
48647         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
48648         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
48649         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
48650         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
48651         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
48652         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
48653         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
48654         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
48655         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
48656         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
48657         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
48658         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
48659         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
48660         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
48661         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48662         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
48663         * modules/trim (configure.ac): Likewise.
48664
48665 2008-12-17  Bruno Haible  <bruno@clisp.org>
48666
48667         * modules/btowc-tests: New file.
48668         * tests/test-btowc1.sh: New file.
48669         * tests/test-btowc2.sh: New file.
48670         * tests/test-btowc.c: New file.
48671
48672         New module 'btowc'.
48673         * lib/wchar.in.h (btowc): New declaration.
48674         * lib/btowc.c: New file.
48675         * m4/btowc.m4: New file.
48676         * modules/btowc: New file.
48677         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
48678         HAVE_BTOWC.
48679         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
48680         * doc/posix-functions/btowc.texi: Document the new module.
48681
48682 2008-12-17  Bruno Haible  <bruno@clisp.org>
48683
48684         New module 'mbsinit'.
48685         * lib/wchar.in.h (mbsinit): New declaration.
48686         * lib/mbsinit.c: New file.
48687         * m4/mbsinit.m4: New file.
48688         * modules/mbsinit: New file.
48689         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
48690         HAVE_MBSINIT.
48691         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
48692         HAVE_MBSINIT.
48693         * doc/posix-functions/mbsinit.texi: Document the new module.
48694
48695 2008-12-16  Bruno Haible  <bruno@clisp.org>
48696
48697         * lib/unistd.in.h: Add comment.
48698         * tests/test-environ.c: Don't include <stdlib.h>.
48699
48700 2008-12-16  Bruno Haible  <bruno@clisp.org>
48701
48702         * lib/parse-duration.h (parse_duration): Document return value
48703         convention.
48704         * lib/parse-duration.c: Include specification header first. Add
48705         comments.
48706         (_): Remove macro.
48707         (parse_year_month_day, parse_hour_minute_second): Move side effects
48708         outside of strchr call.
48709         (parse_non_iso8601): Move side effects outside of isspace call.
48710         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
48711         call.
48712
48713 2008-12-16  Bruno Haible  <bruno@clisp.org>
48714
48715         * tests/test-parse-duration.sh: Produce no output when the test
48716         succeeds.
48717
48718 2008-12-16  Bruno Haible  <bruno@clisp.org>
48719
48720         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
48721         expressions.
48722
48723 2008-12-15  Bruno Haible  <bruno@clisp.org>
48724
48725         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
48726         * doc/glibc-functions/flistxattr.texi: Likewise.
48727         * doc/glibc-functions/fopencookie.texi: Likewise.
48728         * doc/glibc-functions/fremovexattr.texi: Likewise.
48729         * doc/glibc-functions/fsetxattr.texi: Likewise.
48730         * doc/glibc-functions/getxattr.texi: Likewise.
48731         * doc/glibc-functions/lgetxattr.texi: Likewise.
48732         * doc/glibc-functions/listxattr.texi: Likewise.
48733         * doc/glibc-functions/llistxattr.texi: Likewise.
48734         * doc/glibc-functions/lremovexattr.texi: Likewise.
48735         * doc/glibc-functions/lsetxattr.texi: Likewise.
48736         * doc/glibc-functions/removexattr.texi: Likewise.
48737         * doc/glibc-functions/setxattr.texi: Likewise.
48738         * doc/posix-functions/open_memstream.texi: Likewise.
48739
48740 2008-12-15  Eric Blake  <ebb9@byu.net>
48741
48742         Update doc for cygwin 1.7.
48743         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
48744         functions.
48745         * doc/posix-functions/fchmodat.texi: Likewise.
48746         * doc/posix-functions/fchownat.texi: Likewise.
48747         * doc/posix-functions/fdopendir.texi: Likewise.
48748         * doc/posix-functions/fmemopen.texi: Likewise.
48749         * doc/posix-functions/freeaddrinfo.texi: Likewise.
48750         * doc/posix-functions/fstatat.texi: Likewise.
48751         * doc/posix-functions/futimens.texi: Likewise.
48752         * doc/posix-functions/gai_strerror.texi: Likewise.
48753         * doc/posix-functions/getaddrinfo.texi: Likewise.
48754         * doc/posix-functions/getnameinfo.texi: Likewise.
48755         * doc/posix-functions/if_freenameindex.texi: Likewise.
48756         * doc/posix-functions/if_indextoname.texi: Likewise.
48757         * doc/posix-functions/if_nameindex.texi: Likewise.
48758         * doc/posix-functions/if_nametoindex.texi: Likewise.
48759         * doc/posix-functions/insque.texi: Likewise.
48760         * doc/posix-functions/linkat.texi: Likewise.
48761         * doc/posix-functions/llrint.texi: Likewise.
48762         * doc/posix-functions/llrintf.texi: Likewise.
48763         * doc/posix-functions/llrintl.texi: Likewise.
48764         * doc/posix-functions/lockf.texi: Likewise.
48765         * doc/posix-functions/lrintl.texi: Likewise.
48766         * doc/posix-functions/mkdirat.texi: Likewise.
48767         * doc/posix-functions/mkfifoat.texi: Likewise.
48768         * doc/posix-functions/mknodat.texi: Likewise.
48769         * doc/posix-functions/mq_close.texi: Likewise.
48770         * doc/posix-functions/mq_getattr.texi: Likewise.
48771         * doc/posix-functions/mq_notify.texi: Likewise.
48772         * doc/posix-functions/mq_open.texi: Likewise.
48773         * doc/posix-functions/mq_receive.texi: Likewise.
48774         * doc/posix-functions/mq_send.texi: Likewise.
48775         * doc/posix-functions/mq_setattr.texi: Likewise.
48776         * doc/posix-functions/mq_timedreceive.texi: Likewise.
48777         * doc/posix-functions/mq_timedsend.texi: Likewise.
48778         * doc/posix-functions/mq_unlink.texi: Likewise.
48779         * doc/posix-functions/open_memstream.texi: Likewise.
48780         * doc/posix-functions/openat.texi: Likewise.
48781         * doc/posix-functions/posix_fadvise.texi: Likewise.
48782         * doc/posix-functions/posix_fallocate.texi: Likewise.
48783         * doc/posix-functions/posix_madvise.texi: Likewise.
48784         * doc/posix-functions/posix_memalign.texi: Likewise.
48785         * doc/posix-functions/posix_openpt.texi: Likewise.
48786         * doc/posix-functions/readlinkat.texi: Likewise.
48787         * doc/posix-functions/remque.texi: Likewise.
48788         * doc/posix-functions/renameat.texi: Likewise.
48789         * doc/posix-functions/rintl.texi: Likewise.
48790         * doc/posix-functions/sem_unlink.texi: Likewise.
48791         * doc/posix-functions/shm_open.texi: Likewise.
48792         * doc/posix-functions/shm_unlink.texi: Likewise.
48793         * doc/posix-functions/signgam.texi: Likewise.
48794         * doc/posix-functions/sigset.texi: Likewise.
48795         * doc/posix-functions/stpcpy.texi: Likewise.
48796         * doc/posix-functions/stpncpy.texi: Likewise.
48797         * doc/posix-functions/strerror.texi: Likewise.
48798         * doc/posix-functions/strtod.texi: Likewise.
48799         * doc/posix-functions/symlinkat.texi: Likewise.
48800         * doc/posix-functions/unlinkat.texi: Likewise.
48801         * doc/posix-functions/utimensat.texi: Likewise.
48802         * doc/glibc-functions/bindresvport.texi: Likewise.
48803         * doc/glibc-functions/dn_expand.texi: Likewise.
48804         * doc/glibc-functions/exp10.texi: Likewise.
48805         * doc/glibc-functions/exp10f.texi: Likewise.
48806         * doc/glibc-functions/fgetxattr.texi: Likewise.
48807         * doc/glibc-functions/flistxattr.texi: Likewise.
48808         * doc/glibc-functions/fopencookie.texi: Likewise.
48809         * doc/glibc-functions/freeifaddrs.texi: Likewise.
48810         * doc/glibc-functions/fremovexattr.texi: Likewise.
48811         * doc/glibc-functions/fsetxattr.texi: Likewise.
48812         * doc/glibc-functions/getifaddrs.texi: Likewise.
48813         * doc/glibc-functions/getxattr.texi: Likewise.
48814         * doc/glibc-functions/lgetxattr.texi: Likewise.
48815         * doc/glibc-functions/listxattr.texi: Likewise.
48816         * doc/glibc-functions/llistxattr.texi: Likewise.
48817         * doc/glibc-functions/lremovexattr.texi: Likewise.
48818         * doc/glibc-functions/lsetxattr.texi: Likewise.
48819         * doc/glibc-functions/pow10.texi: Likewise.
48820         * doc/glibc-functions/pow10f.texi: Likewise.
48821         * doc/glibc-functions/rcmd_af.texi: Likewise.
48822         * doc/glibc-functions/removexattr.texi: Likewise.
48823         * doc/glibc-functions/res_init.texi: Likewise.
48824         * doc/glibc-functions/res_mkquery.texi: Likewise.
48825         * doc/glibc-functions/res_query.texi: Likewise.
48826         * doc/glibc-functions/res_querydomain.texi: Likewise.
48827         * doc/glibc-functions/res_send.texi: Likewise.
48828         * doc/glibc-functions/rresvport_af.texi: Likewise.
48829         * doc/glibc-functions/setxattr.texi: Likewise.
48830         * doc/glibc-functions/strcasestr.texi: Likewise.
48831
48832 2008-12-15  Bruno Haible  <bruno@clisp.org>
48833
48834         Fix compilation error on OSF/1 4.0.
48835         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
48836         <sys/time.h>, simply delegate to the system header.
48837         Reported by Daniel Richard G. <oss@teragram.com>.
48838
48839 2008-12-15  Bruno Haible  <bruno@clisp.org>
48840
48841         * doc/posix-functions/openat.texi: Mention the 'openat' module.
48842         * doc/posix-functions/fchmodat.texi: Likewise.
48843         * doc/posix-functions/fchownat.texi: Likewise.
48844         * doc/posix-functions/fdopendir.texi: Likewise.
48845         * doc/posix-functions/fstatat.texi: Likewise.
48846         * doc/posix-functions/mkdirat.texi: Likewise.
48847         * doc/posix-functions/unlinkat.texi: Likewise.
48848
48849 2008-12-14  Bruno Haible  <bruno@clisp.org>
48850
48851         Update doc for POSIX:2008.
48852         * doc/posix-functions/faccessat.texi: New file.
48853         * doc/posix-functions/fchmodat.texi: New file.
48854         * doc/posix-functions/fchownat.texi: New file.
48855         * doc/posix-functions/fdopendir.texi: New file.
48856         * doc/posix-functions/fstatat.texi: New file.
48857         * doc/posix-functions/futimens.texi: New file.
48858         * doc/posix-functions/linkat.texi: New file.
48859         * doc/posix-functions/mkdirat.texi: New file.
48860         * doc/posix-functions/mkfifoat.texi: New file.
48861         * doc/posix-functions/mknodat.texi: New file.
48862         * doc/posix-functions/open_wmemstream.texi: New file.
48863         * doc/posix-functions/openat.texi: New file.
48864         * doc/posix-functions/psiginfo.texi: New file.
48865         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
48866         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
48867         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
48868         * doc/posix-functions/readlinkat.texi: New file.
48869         * doc/posix-functions/renameat.texi: New file.
48870         * doc/posix-functions/strerror_l.texi: New file.
48871         * doc/posix-functions/symlinkat.texi: New file.
48872         * doc/posix-functions/unlinkat.texi: New file.
48873         * doc/posix-functions/utimensat.texi: New file.
48874         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48875
48876 2008-12-14  Bruno Haible  <bruno@clisp.org>
48877
48878         Update doc for POSIX:2008.
48879         * doc/posix-functions/alphasort.texi: Renamed from
48880         doc/glibc-functions/alphasort.texi.
48881         * doc/posix-functions/dirfd.texi: Renamed from
48882         doc/glibc-functions/dirfd.texi.
48883         * doc/posix-functions/dprintf.texi: Renamed from
48884         doc/glibc-functions/dprintf.texi.
48885         * doc/posix-functions/duplocale.texi: Renamed from
48886         doc/glibc-functions/duplocale.texi.
48887         * doc/posix-functions/fexecve.texi: Renamed from
48888         doc/glibc-functions/fexecve.texi.
48889         * doc/posix-functions/fmemopen.texi: Renamed from
48890         doc/glibc-functions/fmemopen.texi.
48891         * doc/posix-functions/freelocale.texi: Renamed from
48892         doc/glibc-functions/freelocale.texi.
48893         * doc/posix-functions/getdate_err.texi: Renamed from
48894         doc/glibc-functions/getdate_err.texi.
48895         * doc/posix-functions/isalnum_l.texi: Renamed from
48896         doc/glibc-functions/isalnum_l.texi.
48897         * doc/posix-functions/isalpha_l.texi: Renamed from
48898         doc/glibc-functions/isalpha_l.texi.
48899         * doc/posix-functions/isblank_l.texi: Renamed from
48900         doc/glibc-functions/isblank_l.texi.
48901         * doc/posix-functions/iscntrl_l.texi: Renamed from
48902         doc/glibc-functions/iscntrl_l.texi.
48903         * doc/posix-functions/isdigit_l.texi: Renamed from
48904         doc/glibc-functions/isdigit_l.texi.
48905         * doc/posix-functions/isgraph_l.texi: Renamed from
48906         doc/glibc-functions/isgraph_l.texi.
48907         * doc/posix-functions/islower_l.texi: Renamed from
48908         doc/glibc-functions/islower_l.texi.
48909         * doc/posix-functions/isprint_l.texi: Renamed from
48910         doc/glibc-functions/isprint_l.texi.
48911         * doc/posix-functions/ispunct_l.texi: Renamed from
48912         doc/glibc-functions/ispunct_l.texi.
48913         * doc/posix-functions/isspace_l.texi: Renamed from
48914         doc/glibc-functions/isspace_l.texi.
48915         * doc/posix-functions/isupper_l.texi: Renamed from
48916         doc/glibc-functions/isupper_l.texi.
48917         * doc/posix-functions/iswalnum_l.texi: Renamed from
48918         doc/glibc-functions/iswalnum_l.texi.
48919         * doc/posix-functions/iswalpha_l.texi: Renamed from
48920         doc/glibc-functions/iswalpha_l.texi.
48921         * doc/posix-functions/iswblank_l.texi: Renamed from
48922         doc/glibc-functions/iswblank_l.texi.
48923         * doc/posix-functions/iswcntrl_l.texi: Renamed from
48924         doc/glibc-functions/iswcntrl_l.texi.
48925         * doc/posix-functions/iswctype_l.texi: Renamed from
48926         doc/glibc-functions/iswctype_l.texi.
48927         * doc/posix-functions/iswdigit_l.texi: Renamed from
48928         doc/glibc-functions/iswdigit_l.texi.
48929         * doc/posix-functions/iswgraph_l.texi: Renamed from
48930         doc/glibc-functions/iswgraph_l.texi.
48931         * doc/posix-functions/iswlower_l.texi: Renamed from
48932         doc/glibc-functions/iswlower_l.texi.
48933         * doc/posix-functions/iswprint_l.texi: Renamed from
48934         doc/glibc-functions/iswprint_l.texi.
48935         * doc/posix-functions/iswpunct_l.texi: Renamed from
48936         doc/glibc-functions/iswpunct_l.texi.
48937         * doc/posix-functions/iswspace_l.texi: Renamed from
48938         doc/glibc-functions/iswspace_l.texi.
48939         * doc/posix-functions/iswupper_l.texi: Renamed from
48940         doc/glibc-functions/iswupper_l.texi.
48941         * doc/posix-functions/iswxdigit_l.texi: Renamed from
48942         doc/glibc-functions/iswxdigit_l.texi.
48943         * doc/posix-functions/isxdigit_l.texi: Renamed from
48944         doc/glibc-functions/isxdigit_l.texi.
48945         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
48946         doc/glibc-functions/mbsnrtowcs.texi.
48947         * doc/posix-functions/mkdtemp.texi: Renamed from
48948         doc/glibc-functions/mkdtemp.texi.
48949         * doc/posix-functions/newlocale.texi: Renamed from
48950         doc/glibc-functions/newlocale.texi.
48951         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
48952         doc/glibc-functions/nl_langinfo_l.texi.
48953         * doc/posix-functions/open_memstream.texi: Renamed from
48954         doc/glibc-functions/open_memstream.texi.
48955         * doc/posix-functions/opterr.texi: Renamed from
48956         doc/glibc-functions/opterr.texi.
48957         * doc/posix-functions/optind.texi: Renamed from
48958         doc/glibc-functions/optind.texi.
48959         * doc/posix-functions/optopt.texi: Renamed from
48960         doc/glibc-functions/optopt.texi.
48961         * doc/posix-functions/psignal.texi: Renamed from
48962         doc/glibc-functions/psignal.texi.
48963         * doc/posix-functions/scandir.texi: Renamed from
48964         doc/glibc-functions/scandir.texi.
48965         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
48966         doc/glibc-functions/sched_get_priority_min.texi.
48967         * doc/posix-functions/signgam.texi: Renamed from
48968         doc/glibc-functions/signgam.texi.
48969         * doc/posix-functions/stpcpy.texi: Renamed from
48970         doc/glibc-functions/stpcpy.texi.
48971         * doc/posix-functions/stpncpy.texi: Renamed from
48972         doc/glibc-functions/stpncpy.texi.
48973         * doc/posix-functions/strcasecmp_l.texi: Renamed from
48974         doc/glibc-functions/strcasecmp_l.texi.
48975         * doc/posix-functions/strcoll_l.texi: Renamed from
48976         doc/glibc-functions/strcoll_l.texi.
48977         * doc/posix-functions/strfmon_l.texi: Renamed from
48978         doc/glibc-functions/strfmon_l.texi.
48979         * doc/posix-functions/strftime_l.texi: Renamed from
48980         doc/glibc-functions/strftime_l.texi.
48981         * doc/posix-functions/strncasecmp_l.texi: Renamed from
48982         doc/glibc-functions/strncasecmp_l.texi.
48983         * doc/posix-functions/strndup.texi: Renamed from
48984         doc/glibc-functions/strndup.texi.
48985         * doc/posix-functions/strnlen.texi: Renamed from
48986         doc/glibc-functions/strnlen.texi.
48987         * doc/posix-functions/strsignal.texi: Renamed from
48988         doc/glibc-functions/strsignal.texi.
48989         * doc/posix-functions/strxfrm_l.texi: Renamed from
48990         doc/glibc-functions/strxfrm_l.texi.
48991         * doc/posix-functions/timer_gettime.texi: Renamed from
48992         doc/glibc-functions/timer_gettime.texi.
48993         * doc/posix-functions/tolower_l.texi: Renamed from
48994         doc/glibc-functions/tolower_l.texi.
48995         * doc/posix-functions/toupper_l.texi: Renamed from
48996         doc/glibc-functions/toupper_l.texi.
48997         * doc/posix-functions/towctrans_l.texi: Renamed from
48998         doc/glibc-functions/towctrans_l.texi.
48999         * doc/posix-functions/towlower_l.texi: Renamed from
49000         doc/glibc-functions/towlower_l.texi.
49001         * doc/posix-functions/towupper_l.texi: Renamed from
49002         doc/glibc-functions/towupper_l.texi.
49003         * doc/posix-functions/uselocale.texi: Renamed from
49004         doc/glibc-functions/uselocale.texi.
49005         * doc/posix-functions/vdprintf.texi: Renamed from
49006         doc/glibc-functions/vdprintf.texi.
49007         * doc/posix-functions/wcpcpy.texi:
49008         Renamed from doc/glibc-functions/wcpcpy.texi.
49009         * doc/posix-functions/wcpncpy.texi: Renamed from
49010         doc/glibc-functions/wcpncpy.texi.
49011         * doc/posix-functions/wcscasecmp.texi: Renamed from
49012         doc/glibc-functions/wcscasecmp.texi.
49013         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
49014         doc/glibc-functions/wcscasecmp_l.texi.
49015         * doc/posix-functions/wcscoll_l.texi: Renamed from
49016         doc/glibc-functions/wcscoll_l.texi.
49017         * doc/posix-functions/wcsdup.texi: Renamed from
49018         doc/glibc-functions/wcsdup.texi.
49019         * doc/posix-functions/wcsncasecmp.texi: Renamed from
49020         doc/glibc-functions/wcsncasecmp.texi.
49021         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
49022         doc/glibc-functions/wcsncasecmp_l.texi.
49023         * doc/posix-functions/wcsnlen.texi: Renamed from
49024         doc/glibc-functions/wcsnlen.texi.
49025         * doc/posix-functions/wcsnrtombs.texi: Renamed from
49026         doc/glibc-functions/wcsnrtombs.texi.
49027         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
49028         doc/glibc-functions/wcsxfrm_l.texi.
49029         * doc/posix-functions/wctrans_l.texi: Renamed from
49030         doc/glibc-functions/wctrans_l.texi.
49031         * doc/posix-functions/wctype_l.texi: Renamed from
49032         doc/glibc-functions/wctype_l.texi.
49033         * doc/gnulib.texi (Function Substitutes): Add these subsections.
49034         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
49035         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
49036         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
49037         these subsections.
49038         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
49039         Remove sections.
49040
49041 2008-12-14  Bruno Haible  <bruno@clisp.org>
49042
49043         Update doc for POSIX:2008.
49044         * doc/posix-functions/*.texi: Update URL of POSIX specification.
49045
49046 2008-12-14  Bruno Haible  <bruno@clisp.org>
49047
49048         Update doc for POSIX:2008.
49049         * doc/pastposix-functions/bcmp.texi: Renamed from
49050         doc/posix-functions/bcmp.texi.
49051         * doc/pastposix-functions/bcopy.texi: Renamed from
49052         doc/posix-functions/bcopy.texi.
49053         * doc/pastposix-functions/bsd_signal.texi: Renamed from
49054         doc/posix-functions/bsd_signal.texi.
49055         * doc/pastposix-functions/bzero.texi: Renamed from
49056         doc/posix-functions/bzero.texi.
49057         * doc/pastposix-functions/ecvt.texi: Renamed from
49058         doc/posix-functions/ecvt.texi.
49059         * doc/pastposix-functions/fcvt.texi: Renamed from
49060         doc/posix-functions/fcvt.texi.
49061         * doc/pastposix-functions/ftime.texi: Renamed from
49062         doc/posix-functions/ftime.texi.
49063         * doc/pastposix-functions/gcvt.texi: Renamed from
49064         doc/posix-functions/gcvt.texi.
49065         * doc/pastposix-functions/getcontext.texi: Renamed from
49066         doc/posix-functions/getcontext.texi.
49067         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
49068         doc/posix-functions/gethostbyaddr.texi.
49069         * doc/pastposix-functions/gethostbyname.texi: Renamed from
49070         doc/posix-functions/gethostbyname.texi.
49071         * doc/pastposix-functions/getwd.texi: Renamed from
49072         doc/posix-functions/getwd.texi.
49073         * doc/pastposix-functions/h_errno.texi: Renamed from
49074         doc/posix-functions/h_errno.texi.
49075         * doc/pastposix-functions/index.texi: Renamed from
49076         doc/posix-functions/index.texi.
49077         * doc/pastposix-functions/makecontext.texi: Renamed from
49078         doc/posix-functions/makecontext.texi.
49079         * doc/pastposix-functions/mktemp.texi: Renamed from
49080         doc/posix-functions/mktemp.texi.
49081         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
49082         doc/posix-functions/pthread_attr_getstackaddr.texi.
49083         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
49084         doc/posix-functions/pthread_attr_setstackaddr.texi.
49085         * doc/pastposix-functions/rindex.texi: Renamed from
49086         doc/posix-functions/rindex.texi.
49087         * doc/pastposix-functions/scalb.texi: Renamed from
49088         doc/posix-functions/scalb.texi.
49089         * doc/pastposix-functions/setcontext.texi: Renamed from
49090         doc/posix-functions/setcontext.texi.
49091         * doc/pastposix-functions/swapcontext.texi: Renamed from
49092         doc/posix-functions/swapcontext.texi.
49093         * doc/pastposix-functions/ualarm.texi: Renamed from
49094         doc/posix-functions/ualarm.texi.
49095         * doc/pastposix-functions/usleep.texi: Renamed from
49096         doc/posix-functions/usleep.texi.
49097         * doc/pastposix-functions/vfork.texi: Renamed from
49098         doc/posix-functions/vfork.texi.
49099         * doc/pastposix-functions/wcswcs.texi: Renamed from
49100         doc/posix-functions/wcswcs.texi.
49101         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
49102         (Function Substitutes): Update.
49103
49104 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49105
49106         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
49107         m4/strerror.m4.
49108
49109 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49110             Bruno Haible  <bruno@clisp.org>
49111
49112         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
49113
49114 2008-12-13  Bruno Haible  <bruno@clisp.org>
49115
49116         * modules/strtoull (Depends-on): Remove unistd.
49117
49118 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49119
49120         * modules/strtoull (Depends-on): Add stdlib.
49121
49122 2008-12-11  Simon Josefsson  <simon@josefsson.org>
49123
49124         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
49125
49126 2008-12-10  Jim Meyering  <meyering@redhat.com>
49127
49128         gl_ASSERT: don't say assertions are disabled when they're not
49129         * m4/assert.m4 (gl_ASSERT): Do not make configure report
49130         "checking whether to enable assertions... no", when they are in
49131         fact enabled.  This is solely a bug in the output of configure.
49132         In spite of saying "no", NDEBUG was not defined in that case.
49133         Also, as noted by Eric Blake, leave assertions enabled upon
49134         --enable-assert=INVALID.
49135
49136 2008-12-10  Bruno Haible  <bruno@clisp.org>
49137
49138         Change MODULES.html to refer to POSIX:2008 where possible.
49139         * MODULES.html.sh (POSIX2008_URL): New variable.
49140         (posix_headers): Remove sys/timeb, ucontext.
49141         (posix2001_headers): New variable.
49142         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
49143         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
49144         index, makecontext, mktemp, pthread_attr_getstackaddr,
49145         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
49146         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
49147         (posix2001_functions): New variable.
49148         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
49149         otherwise.
49150
49151 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49152
49153         add missing include to parse-duration.c
49154         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
49155         * modules/parse-duration (Depends-on): Add xalloc.
49156
49157         fix sed script reading maint.mk
49158         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
49159         (syntax-check-rules): Use it.
49160
49161 2008-12-09  Bruno Haible  <bruno@clisp.org>
49162
49163         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
49164         MacOS X 10.4/PowerPC.
49165         Reported by Simon Josefsson.
49166
49167 2008-12-08  Jim Meyering  <meyering@redhat.com>
49168
49169         work around mingw's lack of some S_IF definitions
49170         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
49171         Reported by Simon Josefsson.
49172
49173 2008-12-08  Bruno Haible  <bruno@clisp.org>
49174
49175         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
49176         applied to variables. Needed on MacOS X 10.4/PowerPC.
49177         Reported by Simon Josefsson.
49178
49179 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
49180         and Eric Blake  <ebb9@byu.net>
49181
49182         assert: honor --enable-assert
49183         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
49184         order to honor --enable-assert, rather than treating it as a
49185         synonym for --disable-assert.
49186
49187 2008-12-08  Jim Meyering  <meyering@redhat.com>
49188
49189         * lib/posixtm.c: Remove now-useless declaration of mktime.
49190
49191         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
49192
49193 2008-12-07  Bruno Haible  <bruno@clisp.org>
49194
49195         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
49196         test_once): Mark functions as static.
49197         * tests/test-tls.c (test_tls): Likewise.
49198
49199 2008-12-07  Bruno Haible  <bruno@clisp.org>
49200
49201         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
49202         iconv_register_autodetect.
49203
49204 2008-12-07  Jim Meyering  <meyering@redhat.com>
49205
49206         posixtm.c: avoid a warning
49207         * lib/posixtm.c (posixtime): Don't initialize tm0.
49208         It's no longer needed to placate gcc4's -Wuninitialized,
49209         and the attempt to placate would elicit a new warning.
49210
49211         unicodeio.c: mark unused parameters
49212         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49213         (fallback_failure_callback): Likewise.
49214
49215 2008-12-07  Bruno Haible  <bruno@clisp.org>
49216
49217         * gnulib-tool (func_create_testdir): When building the tests
49218         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
49219         Reported by Simon Josefsson.
49220
49221 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49222
49223         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
49224
49225 2008-12-06  Bruno Haible  <bruno@clisp.org>
49226
49227         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
49228         Suggested by Eric Blake.
49229
49230 2008-12-06  Bruno Haible  <bruno@clisp.org>
49231
49232         Fix a c-stack test failure on MacOS X.
49233         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
49234         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
49235         handler for SIGBUS as well.
49236         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
49237         install a signal handler for SIGBUS as well.
49238         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
49239
49240 2008-12-06  Bruno Haible  <bruno@clisp.org>
49241
49242         Advocacy documentation.
49243         * doc/gnulib-intro.texi (Benefits): New section.
49244         * doc/gnulib.texi: Update.
49245
49246 2008-12-06  Bruno Haible  <bruno@clisp.org>
49247
49248         Document the 'manywarnings' module.
49249         * doc/manywarnings.texi: New file.
49250         * doc/gnulib.texi: Include it.
49251
49252 2008-12-05  Eric Blake  <ebb9@byu.net>
49253
49254         tests: silence some gcc warnings
49255         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
49256         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
49257         type mismatches.
49258
49259 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49260             Bruno Haible  <bruno@clisp.org>
49261
49262         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
49263
49264 2008-11-29  Jim Meyering  <meyering@redhat.com>
49265
49266         unicodeio.c: mark unused parameters
49267         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49268         (fallback_failure_callback): Likewise.
49269
49270         fts: fix a thinko
49271         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49272         (set_stat_type): Return S_IF*-valued "type" directly.
49273         Prompted by James Youngman's spotting a related bug.
49274         Confirmed by further testing through find.
49275
49276         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49277         * lib/fts.c (D_TYPE): Define.
49278         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49279         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49280         (s_ifmt_shift_bits): New function.
49281         (set_stat_type): New function.
49282         (fts_build): When not calling fts_stat, call set_stat_type
49283         to propagate dirent.d_type info to fts_read caller.
49284         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
49285         fts_statp->st_mode type information may be valid.
49286
49287 2008-11-28  Simon Josefsson  <simon@josefsson.org>
49288
49289         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
49290         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
49291         <sds@gnu.org>.
49292
49293 2008-11-20  Bruno Haible  <bruno@clisp.org>
49294
49295         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
49296         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
49297         INCLUDE_NEXT.
49298         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
49299         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
49300         * modules/math (Makefile.am): Substitute
49301         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
49302         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49303
49304 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
49305             Bruno Haible  <bruno@clisp.org>
49306
49307         * lib/stdint.in.h: Define all type macros so that their expansion is
49308         a single typedef'ed token. Fixes a compilation failure in Boost which
49309         does "using ::int8_t;".
49310
49311 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49312
49313         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
49314         gl_MANYWARN_ALL_GCC.
49315         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
49316         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
49317         * modules/manywarnings: New file.
49318         * MODULES.html.sh: Mention manywarnings module.
49319
49320 2008-11-18  Bruno Haible  <bruno@clisp.org>
49321
49322         * doc/gnulib-tool.texi (Unit tests): New section.
49323
49324 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49325
49326         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
49327         paths like 'lib/po/foo.po'.
49328
49329 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49330
49331         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
49332         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
49333
49334 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49335
49336         * m4/warnings.m4: Use CPPFLAGS to really check whether the
49337         parameter works.
49338
49339 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49340
49341         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
49342
49343 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49344
49345         * modules/parse-duration-tests: New file.
49346         * tests/test-parse-duration.sh: New file.
49347         * tests/test-parse-duration.c: New file.
49348
49349         New module 'parse-duration'.
49350         * lib/parse-duration.h: New file.
49351         * lib/parse-duration.c: New file.
49352         * modules/parse-duration: New file.
49353
49354 2008-11-17  Bruno Haible  <bruno@clisp.org>
49355
49356         * tests/test-select-out.sh: Comment out the first pipe test.
49357         Reported by Simon Josefsson.
49358
49359 2008-11-17  Bruno Haible  <bruno@clisp.org>
49360
49361         * modules/getaddrinfo (Depends-on): Add servent, hostent.
49362         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
49363         gl_HOSTENT.
49364
49365 2008-11-17  Bruno Haible  <bruno@clisp.org>
49366
49367         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
49368         -lnetwork and -lnet. Needed for Haiku and BeOS.
49369
49370 2008-11-16  Bruno Haible  <bruno@clisp.org>
49371
49372         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
49373
49374 2008-11-16  Bruno Haible  <bruno@clisp.org>
49375
49376         Avoid test failure on Haiku.
49377         * tests/test-fsync.c: Include <errno.h>.
49378         (main): Don't require that fsync (0) fails.
49379
49380 2008-11-15  Bruno Haible  <bruno@clisp.org>
49381
49382         New module 'hostent'.
49383         * modules/hostent: New file.
49384         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
49385
49386 2008-11-15  Bruno Haible  <bruno@clisp.org>
49387
49388         New module 'servent'.
49389         * modules/servent: New file.
49390         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
49391
49392 2008-11-15  Bruno Haible  <bruno@clisp.org>
49393
49394         Avoid generating same test program with two different rules.
49395         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
49396         test-frexp to test-frexp-nolibm.
49397         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
49398         test-frexpl to test-frexpl-nolibm.
49399
49400 2008-11-15  Bruno Haible  <bruno@clisp.org>
49401
49402         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
49403         $(FREXPL_LIBM).
49404
49405 2008-11-15  Bruno Haible  <bruno@clisp.org>
49406
49407         * lib/netdb.in.h: Activate the definitions also when the system's
49408         <netdb.h> has 'struct addrinfo'.
49409         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
49410         EAI_OVERFLOW or AI_NUMERICSERV.
49411         * doc/posix-headers/netdb.texi: Document the problem.
49412
49413 2008-11-15  Bruno Haible  <bruno@clisp.org>
49414
49415         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
49416
49417         Make the 'sched' module work on platforms where <sched.h> exists but
49418         is incomplete (such as Haiku).
49419         * lib/sched.in.h; Include the system's <sched.h> if it exists.
49420         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
49421         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
49422         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
49423         HAVE_STRUCT_SCHED_PARAM.
49424         * modules/sched (Depends-on): Add include_next.
49425         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
49426         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
49427         * doc/posix-headers/sched.texi: Document the issue.
49428
49429 2008-11-13  Jim Meyering  <meyering@redhat.com>
49430
49431         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
49432         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
49433         test would fail due to the difference in the Report bugs to ...
49434         line.  The expected address is empty, "<>", while the actual
49435         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
49436
49437 2008-11-12  Bruno Haible  <bruno@clisp.org>
49438
49439         lstat: don't compile lstat.c on systems lacking lstat
49440         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
49441         which don't have lstat; this is handled by lib/sys_stat.in.h already.
49442         Reported by Daniel P. Berrange via Jim Meyering.
49443
49444 2008-11-12  Jim Meyering  <meyering@redhat.com>
49445
49446         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
49447
49448 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49449
49450         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
49451         instead.
49452
49453 2008-11-12  Bruno Haible  <bruno@clisp.org>
49454
49455         * lib/unicodeio.c: Include unistr.h.
49456         (utf8_wctomb): Remove function.
49457         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
49458
49459 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49460
49461         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
49462         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
49463         <bruno@clisp.org>.
49464         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
49465
49466 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49467
49468         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
49469         * doc/gnulib.texi: Add section for warnings.
49470
49471 2008-11-11  Bruno Haible  <bruno@clisp.org>
49472
49473         * lib/sockets.h: Add a comment.
49474
49475 2008-11-11  Karl Berry  <karl@gnu.org>
49476
49477         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
49478
49479 2008-11-11  Eric Blake  <ebb9@byu.net>
49480
49481         fdl.texi: avoid git symlinks
49482         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
49483
49484 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49485
49486         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
49487
49488 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49489
49490         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
49491         (gl_WARN_ADD): Substitute $2 if literal.
49492
49493 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49494
49495         * m4/warning.m4: Remove.
49496
49497 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49498
49499         * m4/warnings.m4: Almost complete rewrite. :-)
49500
49501 2008-11-10  Simon Josefsson  <simon@josefsson.org>
49502
49503         * modules/warnings: New module.
49504         * m4/warnings.m4: New file.
49505         * MODULES.html.sh: Mention warnings module.
49506         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
49507         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49508
49509 2008-11-10  Eric Blake  <ebb9@byu.net>
49510
49511         fdl.texi: make a symlink to the latest version
49512         * doc/standards.texi: Revert today's earlier change.
49513         * doc/fdl-1.2.texi: Rename from old fdl.texi...
49514         * doc/fdl.texi: ...and replace this with a symlink to the newer
49515         fdl-1.3.texi.
49516
49517 2008-11-10  Bruno Haible  <bruno@clisp.org>
49518
49519         * tests/test-select-fd.c (main): Accept the result file name as fourth
49520         argument.
49521         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
49522         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
49523
49524 2008-11-10  Bruno Haible  <bruno@clisp.org>
49525
49526         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
49527         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
49528         as autoconf-substituted macros.
49529         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
49530         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
49531         gl_NETDB_H_DEFAULTS. Set these variables.
49532         * modules/netdb (Makefile.am): Substitute these variables.
49533
49534 2008-11-10  Eric Blake  <ebb9@byu.net>
49535
49536         standards.texi: include correct file for FDL 1.3
49537         * doc/standards.texi (GNU Free Documentation License): Change
49538         include file to pull in FDL 1.3, not 1.2.
49539
49540         fdl.texi: revert accidental change to license
49541         * doc/fdl.texi: This is FDL 1.2, not 1.3.
49542
49543 2008-11-10  Bruno Haible  <bruno@clisp.org>
49544
49545         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
49546         cross-compiling guesses also when the native compile gives no result.
49547
49548 2008-11-10  Bruno Haible  <bruno@clisp.org>
49549
49550         * lib/spawni.c (__spawni): Force variable into the stack.
49551
49552 2008-11-10  Bruno Haible  <bruno@clisp.org>
49553
49554         Add support for Haiku.
49555         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
49556         glibc and BeOS, but also on Haiku.
49557         * lib/fpurge.c (fpurge): Likewise.
49558         * lib/freadable.c (freadable): Likewise.
49559         * lib/freadahead.c (freadahead): Likewise.
49560         * lib/freading.c (freading): Likewise.
49561         * lib/freadptr.c (freadptr): Likewise.
49562         * lib/freadseek.c (freadptrinc): Likewise.
49563         * lib/fseeko.c (rpl_fseeko): Likewise.
49564         * lib/fseterr.c (fseterr): Likewise.
49565         * lib/fwritable.c (fwritable): Likewise.
49566         * lib/fwriting.c (fwriting): Likewise.
49567         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
49568
49569 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49570
49571         * lib/config.charset: Treat Haiku like BeOS.
49572
49573 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49574
49575         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
49576         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
49577
49578 2008-11-08  Bruno Haible  <bruno@clisp.org>
49579
49580         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
49581         AC_CACHE_CHECK.
49582
49583 2008-11-08  Bruno Haible  <bruno@clisp.org>
49584
49585         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
49586
49587 2008-11-08  Bruno Haible  <bruno@clisp.org>
49588
49589         * tests/test-select-fd.c: New file.
49590         * tests/test-select-in.sh: New file.
49591         * tests/test-select-out.sh: New file.
49592         * tests/test-select-stdin.c: New file.
49593         * modules/select-tests (Files): Add the new files.
49594         (Depends-on): Add gettimeofday.
49595         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
49596         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
49597         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
49598
49599 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
49600             Bruno Haible  <bruno@clisp.org>
49601
49602         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
49603
49604 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
49605
49606         * build-aux/pmccabe2html: Added support for C++ source files.
49607
49608 2008-11-05  Ben Pfaff  <blp@gnu.org>
49609
49610         Fix lib/close.c build on Windows.
49611         * modules/close (Files): Add lib/w32sock.h.
49612
49613 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
49614
49615         Accept Bison's NEWS format.
49616         * build-aux/announce-gen (print_news_deltas): Tweak
49617         $re_prefix.
49618
49619 2008-11-04  Bruno Haible  <bruno@clisp.org>
49620
49621         * modules/random_r (Maintainer): Add glibc.
49622
49623 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49624
49625         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
49626         by karl@freefriends.org (Karl Berry).
49627         * doc/alloca.texi: Likewise.
49628         * doc/c-ctype.texi: Likewise.
49629         * doc/c-strcase.texi: Likewise.
49630         * doc/c-strcaseeq.texi: Likewise.
49631         * doc/c-strcasestr.texi: Likewise.
49632         * doc/c-strstr.texi: Likewise.
49633         * doc/c-strtod.texi: Likewise.
49634         * doc/c-strtold.texi: Likewise.
49635         * doc/ctime.texi: Likewise.
49636         * doc/error.texi: Likewise.
49637         * doc/fdl.texi: Likewise.
49638         * doc/gcd.texi: Likewise.
49639         * doc/getdate.texi: Likewise.
49640         * doc/gnulib-intro.texi: Likewise.
49641         * doc/gnulib-tool.texi: Likewise.
49642         * doc/gnulib.texi: Likewise.
49643         * doc/inet_ntoa.texi: Likewise.
49644         * doc/maintain.texi: Likewise.
49645         * doc/make-stds.texi: Likewise.
49646         * doc/quote.texi: Likewise.
49647         * doc/regexprops-generic.texi: Likewise.
49648         * doc/standards.texi: Likewise.
49649         * doc/verify.texi: Likewise.
49650         * doc/visibility.texi: Likewise.
49651         * doc/gnulib.texi (GNU Free Documentation License): Include
49652         fdl-1.3.texi instead of fdl.texi.
49653
49654 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49655
49656         * doc/fdl-1.3.texi: New file, from
49657         <http://www.gnu.org/licenses/fdl-1.3.texi>.
49658         * modules/fdl-1.3: Add.
49659         * MODULES.html.sh: Add fdl-1.3.
49660
49661 2008-11-03  Bruno Haible  <bruno@clisp.org>
49662
49663         Make determination of absolute name of header file work with AIX xlc.
49664         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
49665         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
49666         preprocessing.
49667         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49668         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49669
49670 2008-11-03  Simon Josefsson  <simon@josefsson.org>
49671
49672         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
49673         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
49674         <ludo@gnu.org>.
49675
49676 2008-11-02  Bruno Haible  <bruno@clisp.org>
49677
49678         Mark 'strpbrk' obsolete.
49679         * modules/strpbrk (Status, Notice): New sections.
49680         * modules/strtok_r (Depends-on): Add strpbrk.
49681
49682 2008-11-02  Bruno Haible  <bruno@clisp.org>
49683
49684         Mark 'strdup' obsolete.
49685         * modules/strdup (Status, Notice): New sections.
49686         * modules/findprog (Depends-on): Add strdup.
49687         * modules/getaddrinfo (Depends-on): Likewise.
49688         * modules/localename (Depends-on): Likewise.
49689         * modules/relocatable-lib (Depends-on): Likewise.
49690         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
49691         * modules/relocatable-prog (Depends-on): Likewise.
49692         * modules/trim (Depends-on): Likewise.
49693         * modules/unictype/gen-ctype (Depends-on): Likewise.
49694         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49695
49696 2008-11-02  Bruno Haible  <bruno@clisp.org>
49697
49698         Mark 'strcspn' obsolete.
49699         * modules/strcspn (Status, Notice): New sections.
49700
49701 2008-11-02  Bruno Haible  <bruno@clisp.org>
49702
49703         Mark 'rmdir' obsolete.
49704         * modules/rmdir (Status, Notice): New sections.
49705         * modules/clean-temp (Depends-on): Add rmdir.
49706         * modules/openat (Depends-on): Likewise.
49707
49708 2008-11-02  Bruno Haible  <bruno@clisp.org>
49709
49710         Mark 'raise' obsolete.
49711         * modules/raise (Status, Notice): New sections.
49712         (Include): Specify <signal.h>.
49713         * modules/stdio (Depends-on): Add raise.
49714         * modules/write (Depends-on): Likewise.
49715
49716 2008-11-02  Bruno Haible  <bruno@clisp.org>
49717
49718         Mark 'memset' obsolete.
49719         * modules/memset (Status, Notice): New sections.
49720
49721 2008-11-02  Bruno Haible  <bruno@clisp.org>
49722
49723         Mark 'memmove' obsolete.
49724         * modules/memmove (Status, Notice): New sections.
49725         * modules/argp (Depends-on): Add memmove.
49726         * modules/argz (Depends-on): Likewise.
49727         * modules/canonicalize (Depends-on): Likewise.
49728         * modules/canonicalize-lgpl (Depends-on): Likewise.
49729         * modules/fts (Depends-on): Likewise.
49730         * modules/getcwd (Depends-on): Likewise.
49731         * modules/human (Depends-on): Likewise.
49732         * modules/regex (Depends-on): Likewise.
49733         * modules/striconveh (Depends-on): Likewise.
49734         * modules/trim (Depends-on): Likewise.
49735         * modules/unistr/u8-move (Depends-on): Likewise.
49736         * modules/unistr/u16-move (Depends-on): Likewise.
49737         * modules/unistr/u32-move (Depends-on): Likewise.
49738
49739 2008-11-02  Bruno Haible  <bruno@clisp.org>
49740
49741         Mark 'memcpy' obsolete.
49742         * modules/memcpy (Status, Notice): New sections.
49743
49744 2008-11-02  Bruno Haible  <bruno@clisp.org>
49745
49746         Mark 'memcmp' obsolete.
49747         * modules/memcmp (Status, Notice): New sections.
49748         * modules/argmatch (Depends-on): Add memchr.
49749         * modules/backupfile (Depends-on): Likewise.
49750         * modules/c-strcasestr (Depends-on): Likewise.
49751         * modules/crypto/des (Depends-on): Likewise.
49752         * modules/csharpcomp (Depends-on): Likewise.
49753         * modules/fnmatch (Depends-on): Likewise.
49754         * modules/git-merge-changelog (Depends-on): Likewise.
49755         * modules/isnand (Depends-on): Likewise.
49756         * modules/isnand-nolibm (Depends-on): Likewise.
49757         * modules/isnanf (Depends-on): Likewise.
49758         * modules/isnanf-nolibm (Depends-on): Likewise.
49759         * modules/isnanl (Depends-on): Likewise.
49760         * modules/isnanl-nolibm (Depends-on): Likewise.
49761         * modules/mbchar (Depends-on): Likewise.
49762         * modules/memcoll (Depends-on): Likewise.
49763         * modules/quotearg (Depends-on): Likewise.
49764         * modules/regex (Depends-on): Likewise.
49765         * modules/relocatable-prog (Depends-on): Likewise.
49766         * modules/same (Depends-on): Likewise.
49767         * modules/signbit (Depends-on): Likewise.
49768         * modules/strcasestr-simple (Depends-on): Likewise.
49769         * modules/unictype/gen-ctype (Depends-on): Likewise.
49770         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49771         * modules/uniname/uniname (Depends-on): Likewise.
49772         * modules/unistr/u8-cmp (Depends-on): Likewise.
49773
49774 2008-11-02  Bruno Haible  <bruno@clisp.org>
49775
49776         Mark 'memchr' obsolete.
49777         * modules/memchr (Status, Notice): New sections.
49778         * modules/argp (Depends-on): Add memchr.
49779         * modules/base64 (Depends-on): Likewise.
49780         * modules/c-strcasestr (Depends-on): Likewise.
49781         * modules/chdir-long (Depends-on): Likewise.
49782         * modules/fnmatch (Depends-on): Likewise.
49783         * modules/getsubopt (Depends-on): Likewise.
49784         * modules/git-merge-changelog (Depends-on): Likewise.
49785         * modules/glob (Depends-on): Likewise.
49786         * modules/strcasestr-simple (Depends-on): Likewise.
49787         * modules/strnlen (Depends-on): Likewise.
49788
49789 2008-11-02  Bruno Haible  <bruno@clisp.org>
49790
49791         Mark 'atexit' obsolete.
49792         * modules/atexit (Status, Notice): New sections.
49793         * modules/chdir-long (Depends-on): Add atexit.
49794         * modules/wait-process (Depends-on): Likewise.
49795
49796 2008-11-02  Bruno Haible  <bruno@clisp.org>
49797
49798         * gnulib-tool: New option --with-obsolete.
49799         (func_usage): Document it.
49800         (func_modules_transitive_closure): Drop obsolete dependencies if
49801         incobsolete is not true.
49802         (func_import): Read and save the incobsolete variable to the cache.
49803
49804 2008-11-02  Bruno Haible  <bruno@clisp.org>
49805
49806         * modules/TEMPLATE-EXTENDED: New field 'Status'.
49807         * gnulib-tool: New option --extract-status.
49808         (func_usage): Document it.
49809         (sed_extract_prog): Recognize it.
49810         (func_get_status): New function.
49811
49812 2008-10-30  Simon Josefsson  <simon@josefsson.org>
49813
49814         * modules/sockets (License): Change from LGPL to LGPLv2+.
49815
49816 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49817
49818         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
49819
49820 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49821
49822         * MODULES.html.sh (Support for systems lacking POSIX:2001):
49823         Mention times and sys_times.
49824         * modules/sys_times, modules/sys_times-tests: New modules.
49825         * modules/times, modules/times-tests: Likewise
49826         * m4/sys_times_h.m4: New file.
49827         * lib/sys_times.in.h: Likewise
49828         * lib/times.c: Likewise.
49829         * tests/test-sys_times.c: Likewise.
49830         * tests/test-times.c: Likewise.
49831         * doc/posix-headers/sys_times.texi: Update.
49832         * doc/posix-functions/times.texi: Update.
49833
49834 2008-10-28  Jim Meyering  <meyering@redhat.com>
49835
49836         * modules/tempname (Depends-on): Add lstat.
49837
49838         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
49839
49840 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49841
49842         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
49843         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
49844         using idiom used elsewhere in gnulib.
49845
49846 2008-10-27  Jim Meyering  <meyering@redhat.com>
49847
49848         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
49849
49850 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49851
49852         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
49853         TESTS_ENVIRONMENT, for shell scripts that needs to call built
49854         programs.
49855         * tests/test-argp-2.sh: Use $EXEEXT when needed.
49856
49857 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49858
49859         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
49860
49861 2008-10-27  Bruno Haible  <bruno@clisp.org>
49862
49863         * tests/test-lstat.c: Include <stdio.h>.
49864
49865 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49866
49867         * modules/lstat-tests: New module.
49868         * tests/test-lstat.c: New file.
49869
49870 2008-10-26  Jim Meyering  <meyering@redhat.com>
49871
49872         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
49873
49874 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49875             Bruno Haible  <bruno@clisp.org>
49876
49877         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
49878         * modules/configmake (Include): Add a note that the include must come
49879         after all system headers.
49880         * lib/javaversion.c: Include configmake.h after all other includes.
49881
49882 2008-10-26  Bruno Haible  <bruno@clisp.org>
49883
49884         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
49885         HAVE_STRUCT_RANDOM_DATA to 1.
49886         (gl_STDLIB_H): Simplify.
49887
49888 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49889
49890         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
49891         substitute HAVE_STRUCT_RANDOM_DATA.
49892         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
49893         random_data.
49894         * modules/stdlib (Makefile.am): Substitute
49895         HAVE_STRUCT_RANDOM_DATA.
49896
49897 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49898
49899         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
49900         * doc/gnulib-intro.texi (Copyright): Likewise.
49901
49902 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49903
49904         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
49905         findings.
49906
49907 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
49908             Bruno Haible  <bruno@clisp.org>
49909
49910         * lib/unistd.in.h: Include <winsock2.h>.
49911         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
49912         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
49913         Provide dummy declarations.
49914         (gethostname): Override.
49915         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
49916         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
49917         gl_PREREQ_SYS_H_WINSOCK2.
49918         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
49919         * doc/posix-functions/gethostname.texi: More details.
49920
49921 2008-10-25  Bruno Haible  <bruno@clisp.org>
49922
49923         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
49924         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
49925         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
49926
49927         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
49928         here ...
49929         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
49930         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
49931         gl_UNISTD_H_DEFAULTS.
49932
49933 2008-10-25  Eric Blake  <ebb9@byu.net>
49934
49935         signbit: avoid spurious compiler failure
49936         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
49937         declarations inside function.
49938
49939 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49940             Bruno Haible  <bruno@clisp.org>
49941
49942         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
49943         * modules/random_r (Depends-on): Add stdint.
49944
49945 2008-10-24  Bruno Haible  <bruno@clisp.org>
49946
49947         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
49948         Eggert.
49949         * modules/strerror (License): Likewise.
49950
49951 2008-10-24  Jim Meyering  <meyering@redhat.com>
49952
49953         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
49954         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
49955
49956 2008-10-24  Eric Blake  <ebb9@byu.net>
49957
49958         getgroups: fix compilation when getgroups is available
49959         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
49960         but with <config.h> override of getgroups disabled.
49961
49962 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49963
49964         * doc/gnulib.texi (Header files): Add note about C++ problems.
49965         Explained by Bruno Haible <bruno@clisp.org>.
49966
49967 2008-10-23  Bruno Haible  <bruno@clisp.org>
49968
49969         Define a dummy SA_NODEFER macro on Interix.
49970         * lib/signal.in.h (SA_NODEFER): Define fallback.
49971         Reported by Aleksey Cheusov <cheusov@tut.by> via
49972         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
49973
49974 2008-10-23  Bruno Haible  <bruno@clisp.org>
49975
49976         * modules/freadahead (License): Change to LGPLv2+.
49977         Suggested by Simon Josefsson.
49978
49979 2008-10-23  Jim Meyering  <meyering@redhat.com>
49980
49981         random_r: new module
49982         * modules/random_r: New file.
49983         * m4/random_r.m4: New file.
49984         * lib/random_r.c: New file, from glibc.
49985         * modules/random_r-tests: New file.
49986         * tests/test-random_r.c: New file.
49987         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
49988          Declare.
49989         (RAND_MAX): Define.
49990         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
49991         * modules/stdlib: Substitute them, too.
49992         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
49993         * doc/glibc-functions/initstate_r.texi: Mention the new module.
49994         * doc/glibc-functions/random_r.texi: Likewise.
49995         * doc/glibc-functions/setstate_r.texi: Likewise.
49996         * doc/glibc-functions/srandom_r.texi: Likewise.
49997         * config/srclist.txt: Mention it.
49998
49999 2008-10-23  David Lutterkort  <lutter@redhat.com>
50000
50001         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
50002         link requirement
50003
50004 2008-10-23  Jim Meyering  <meyering@redhat.com>
50005
50006         selinux-h: mark parameters of stub functions as intentionally unused
50007         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
50008         * lib/se-context.in.h: Likewise.
50009
50010 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50011
50012         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
50013
50014 2008-10-22  Simon Josefsson  <simon@josefsson.org>
50015
50016         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
50017
50018 2008-10-22  Eric Blake  <ebb9@byu.net>
50019
50020         glthread/thread: avoid compiler warning
50021         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
50022         Add unreachable abort to silence compiler.
50023
50024 2008-10-22  Eric Blake  <ebb9@byu.net>
50025
50026         netdb: also supply struct addrinfo for cygwin 1.5.x
50027         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
50028         older cygwin.
50029         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
50030         cygwin.
50031         * doc/posix-headers/netdb.texi (netdb.h): Document this.
50032
50033 2008-10-22  Bruno Haible  <bruno@clisp.org>
50034
50035         * users.txt: Update entry about pspp.
50036
50037 2008-10-21  Bruno Haible  <bruno@clisp.org>
50038
50039         Simplification.
50040         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
50041         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
50042
50043         Simplification.
50044         * lib/ioctl.c (ioctl): Don't undefine.
50045         * lib/socket.c (socket): Don't undefine.
50046
50047         Remove unused module indicator macros.
50048         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
50049         GNULIB_$1 as a C macro.
50050
50051         * doc/posix-functions/close.texi: Undo last change.
50052         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
50053         Windows platforms.
50054
50055 2008-10-21  Bruno Haible  <bruno@clisp.org>
50056
50057         Add gethostname() declaration to <unistd.h>.
50058         * lib/unistd.in.h (gethostname): New declaration.
50059         * lib/gethostname.c: Include <unistd.h>.
50060         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
50061         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
50062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
50063         and HAVE_GETHOSTNAME.
50064         * modules/gethostname (Depends-on): Add unistd.
50065         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50066         (Include): Specify <unistd.h>.
50067         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
50068         HAVE_GETHOSTNAME.
50069         * tests/test-gethostname.c: Include <unistd.h> first.
50070
50071 2008-10-21  Bruno Haible  <bruno@clisp.org>
50072
50073         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
50074         * modules/select-tests (Depends-on): Likewise.
50075         Reported by Simon Josefsson.
50076
50077 2008-10-21  Simon Josefsson  <simon@josefsson.org>
50078
50079         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
50080         * lib/accept.c: New file, based on winsock.c.
50081         * lib/bind.c: New file, based on winsock.c.
50082         * lib/connect.c: New file, based on winsock.c.
50083         * lib/getpeername.c: New file, based on winsock.c.
50084         * lib/getsockname.c: New file, based on winsock.c.
50085         * lib/getsockopt.c: New file, based on winsock.c.
50086         * lib/ioctl.c: New file, based on winsock.c.
50087         * lib/listen.c: New file, based on winsock.c.
50088         * lib/recv.c: New file, based on winsock.c.
50089         * lib/recvfrom.c: New file, based on winsock.c.
50090         * lib/send.c: New file, based on winsock.c.
50091         * lib/sendto.c: New file, based on winsock.c.
50092         * lib/setsockopt.c: New file, based on winsock.c.
50093         * lib/shutdown.c: New file, based on winsock.c.
50094         * lib/socket.c: New file, based on winsock.c.
50095         * lib/w32sock.h: New file, based on winsock.c.
50096         * lib/winsock.c: Remove file.
50097         * modules/accept: Likewise.
50098         * modules/bind: Likewise.
50099         * modules/connect: Likewise.
50100         * modules/getpeername: Likewise.
50101         * modules/getsockname: Likewise.
50102         * modules/getsockopt: Likewise.
50103         * modules/ioctl: Likewise.
50104         * modules/listen: Likewise.
50105         * modules/recv: Likewise.
50106         * modules/recvfrom: Likewise.
50107         * modules/send: Likewise.
50108         * modules/sendto: Likewise.
50109         * modules/setsockopt: Likewise.
50110         * modules/shutdown: Likewise.
50111         * modules/socket: Use socket.c instead of winsock.c.
50112         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
50113         * doc/posix-functions/accept.texi: Doc fix.
50114         * doc/posix-functions/bind.texi: Doc fix.
50115         * doc/posix-functions/close.texi: Doc fix.
50116         * doc/posix-functions/connect.texi: Doc fix.
50117         * doc/posix-functions/getpeername.texi: Doc fix.
50118         * doc/posix-functions/getsockname.texi: Doc fix.
50119         * doc/posix-functions/getsockopt.texi: Doc fix.
50120         * doc/posix-functions/ioctl.texi: Doc fix.
50121         * doc/posix-functions/listen.texi: Doc fix.
50122         * doc/posix-functions/recv.texi: Doc fix.
50123         * doc/posix-functions/recvfrom.texi: Doc fix.
50124         * doc/posix-functions/send.texi: Doc fix.
50125         * doc/posix-functions/sendto.texi: Doc fix.
50126         * doc/posix-functions/setsockopt.texi: Doc fix.
50127         * doc/posix-functions/shutdown.texi: Doc fix.
50128         * doc/posix-functions/socket.texi: Doc fix.
50129
50130 2008-10-20  Bruno Haible  <bruno@clisp.org>
50131
50132         Take into account the role of SIGABRT_COMPAT on Windows 2008.
50133         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
50134         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
50135         as an alias for SIGABRT.
50136         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
50137         (sigaction): Map it to SIGABRT.
50138         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
50139
50140 2008-10-20  Bruno Haible  <bruno@clisp.org>
50141
50142         * lib/fts.c: Don't include lstat.h.
50143         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
50144
50145         Move the lstat() declaration to <sys/stat.h>.
50146         * lib/lstat.h: Remove file.
50147         * lib/sys_stat.in.h: Add special invocation convention.
50148         (lstat): New declaration.
50149         * lib/lstat.c (orig_lstat): New function.
50150         (rpl_lstat): Use orig_lstat instead of lstat.
50151         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
50152         AC_C_INLINE. Set REPLACE_LSTAT.
50153         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
50154         and REPLACE_LSTAT.
50155         * modules/lstat (Files): Remove lib/lstat.h.
50156         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50157         (Include): Specify <sys/stat.h> instead of lstat.h.
50158         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
50159         REPLACE_LSTAT.
50160         * NEWS: Mention the change.
50161
50162 2008-10-20  Bruno Haible  <bruno@clisp.org>
50163
50164         * modules/posix_spawn-tests: New file.
50165         * tests/test-posix_spawn3.c: New file.
50166
50167 2008-10-20  Bruno Haible  <bruno@clisp.org>
50168
50169         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
50170         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50171         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
50172         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
50173         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
50174
50175 2008-10-20  Bruno Haible  <bruno@clisp.org>
50176
50177         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
50178         of posix_spawn on AIX 5.3.
50179
50180 2008-10-20  Bruno Haible  <bruno@clisp.org>
50181
50182         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
50183
50184 2008-10-20  Bruno Haible  <bruno@clisp.org>
50185
50186         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
50187         of AC_LANG_PROGRAM.
50188
50189 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50190
50191         * lib/netdb.in.h: Don't define GNU specific constants until they
50192         are supported or needed.  Reported by Bruno Haible
50193         <bruno@clisp.org>.
50194
50195 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50196
50197         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
50198
50199 2008-10-20  Simon Josefsson  <simon@josefsson.org>
50200
50201         * lib/getaddrinfo.h: Remove file.
50202         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
50203         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
50204         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
50205         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
50206         * modules/netdb: Substitute GNULIB_GETADDRINFO.
50207         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
50208         * tests/test-getaddrinfo.c: Likewise.
50209         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
50210         * NEWS: Mention change.
50211
50212 2008-10-19  Bruno Haible  <bruno@clisp.org>
50213
50214         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
50215
50216 2008-10-19  Bruno Haible  <bruno@clisp.org>
50217
50218         * lib/wait-process.c: Include simply <sys/wait.h>.
50219         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
50220         WIFSTOPPED): Remove fallback definitions.
50221         * modules/wait-process (Depends-on): Add sys_wait.
50222
50223         New module 'sys_wait'.
50224         * modules/sys_wait: New file.
50225         * lib/sys_wait.in.h: New file, partially copied from
50226         lib/wait-process.c.
50227         * m4/sys_wait_h.m4: New file.
50228         * doc/posix-headers/sys_wait.texi: Mention the new module.
50229
50230 2008-10-19  Bruno Haible  <bruno@clisp.org>
50231
50232         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
50233
50234 2008-10-19  Bruno Haible  <bruno@clisp.org>
50235
50236         Assume that waitpid() fills an 'int' status, not a 'union wait'.
50237         * lib/wait-process.c (WAIT_T): Remove type.
50238         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
50239         (wait_subprocess): Update.
50240
50241 2008-10-19  Bruno Haible  <bruno@clisp.org>
50242
50243         New module 'atoll'.
50244         * modules/atoll: New file.
50245         * lib/stdlib.in.h (atoll): New declaration.
50246         * lib/atoll.c: New file, from glibc with modifications.
50247         * m4/atoll.m4: New file.
50248         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
50249         HAVE_ATOLL.
50250         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
50251         * doc/posix-functions/atoll.texi: Mention the new module.
50252
50253 2008-10-19  Bruno Haible  <bruno@clisp.org>
50254
50255         Add strtoull() declaration to <stdlib.h>.
50256         * lib/stdlib.in.h (strtoull): New declaration.
50257         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50258         Set HAVE_STRTOULL.
50259         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
50260         HAVE_STRTOULL.
50261         * modules/strtoull (Depends-on): Add stdlib.
50262         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50263         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
50264         HAVE_STRTOULL.
50265
50266 2008-10-19  Bruno Haible  <bruno@clisp.org>
50267
50268         Add strtoll() declaration to <stdlib.h>.
50269         * lib/stdlib.in.h (strtoll): New declaration.
50270         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50271         Set HAVE_STRTOLL.
50272         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50273         HAVE_STRTOLL.
50274         * modules/strtoll (Depends-on): Add stdlib.
50275         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50276         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50277
50278 2008-10-19  Bruno Haible  <bruno@clisp.org>
50279
50280         * modules/bcopy (Depends-on): Add strings.
50281         (Include): Specify <strings.h>.
50282
50283 2008-10-19  Bruno Haible  <bruno@clisp.org>
50284
50285         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
50286
50287 2008-10-19  Bruno Haible  <bruno@clisp.org>
50288
50289         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
50290         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
50291         mingw.
50292
50293 2008-10-19  Bruno Haible  <bruno@clisp.org>
50294
50295         * lib/atanl.c: Don't include isnanl.h.
50296         * lib/cosl.c: Likewise.
50297         * lib/ldexpl.c: Likewise.
50298         * lib/logl.c: Likewise.
50299         * lib/sinl.c: Likewise.
50300         * lib/sqrtl.c: Likewise.
50301         * lib/tanl.c: Likewise.
50302
50303         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
50304         * lib/isnanf.h: Remove file.
50305         * lib/isnand.h: Remove file.
50306         * lib/isnanl.h: Remove file.
50307         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
50308         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
50309         macros.
50310         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
50311         HAVE_ISNANF, don't define it as a C macro.
50312         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
50313         HAVE_ISNAND, don't define it as a C macro.
50314         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
50315         HAVE_ISNANL, don't define it as a C macro.
50316         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
50317         HAVE_ISNAN[FDL].
50318         * modules/isnanf (Files): Remove lib/isnanf.h.
50319         (Depends-on): Add math.
50320         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50321         (Include): Specify <math.h> instead of isnanf.h.
50322         * modules/isnand (Files): Remove lib/isnand.h.
50323         (Depends-on): Add math.
50324         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50325         (Include): Specify <math.h> instead of isnand.h.
50326         * modules/isnanl (Files): Remove lib/isnanl.h.
50327         (Depends-on): Add math.
50328         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50329         (Include): Specify <math.h> instead of isnanl.h.
50330         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
50331         HAVE_ISNAN[FDL].
50332         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
50333         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
50334         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
50335         * NEWS: Mention the change.
50336
50337 2008-10-18  Bruno Haible  <bruno@clisp.org>
50338
50339         Add getusershell(), setusershell(), endusershell() declarations to
50340         <unistd.h>.
50341         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
50342         declarations.
50343         * lib/getusershell.c: Include unistd.h.
50344         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
50345         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50346         HAVE_GETUSERSHELL.
50347         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
50348         and HAVE_GETUSERSHELL.
50349         * modules/getusershell (Depends-on): Add unistd, extensions.
50350         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50351         (Include): Specify <unistd.h>.
50352         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
50353         HAVE_GETUSERSHELL.
50354
50355 2008-10-18  Bruno Haible  <bruno@clisp.org>
50356
50357         Add a getloadavg() declaration to <stdlib.h>.
50358         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
50359         getloadavg declaration.
50360         (getloadavg): New declaration.
50361         * lib/getloadavg.c: Include <stdlib.h> first.
50362         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
50363         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
50364         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
50365         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
50366         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50367         * modules/getloadavg (Depends-on): Add stdlib, extensions.
50368         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50369         (Include): Specify <stdlib.h>.
50370         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
50371         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50372
50373 2008-10-18  Bruno Haible  <bruno@clisp.org>
50374
50375         * lib/dirchownmod.c: Don't include lchmod.h.
50376
50377         Move the lchmod() declaration to <sys/stat.h>.
50378         * lib/lchmod.h: Remove file.
50379         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
50380         (lchmod): New declaration, moved here from lib/lchown.h.
50381         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
50382         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
50383         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
50384         and HAVE_LCHMOD.
50385         * modules/lchmod (Files): Remove lib/lchmod.h.
50386         (Depends-on): Add sys_stat, extensions.
50387         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50388         (Include): Specify <sys/stat.h> instead of lchmod.h.
50389         * modules/sys_stat (Depends-on): Add link-warning.
50390         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
50391         definition of GL_LINK_WARNING.
50392         * NEWS: Mention the change.
50393
50394 2008-10-18  Bruno Haible  <bruno@clisp.org>
50395
50396         * lib/fchdir.c: Don't include dirfd.h.
50397         * lib/fts.c: Likewise.
50398         * lib/getcwd.c: Likewise.
50399         * lib/glob.c: Likewise.
50400
50401         Move the dirfd() declaration to <dirent.h>.
50402         * lib/dirfd.h: Remove file.
50403         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
50404         (dirfd): New declaration.
50405         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
50406         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
50407         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
50408         HAVE_DECL_DIRFD.
50409         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
50410         HAVE_DECL_DIRFD.
50411         * modules/dirfd (Files): Remove lib/dirfd.h.
50412         (Depends-on): Add dirent, extensions.
50413         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
50414         (Include): Specify <dirent.h> instead of dirfd.h.
50415         * modules/dirent (Depends-on): Add link-warning.
50416         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
50417         definition of GL_LINK_WARNING.
50418         * NEWS: Mention the change.
50419
50420 2008-10-18  Bruno Haible  <bruno@clisp.org>
50421
50422         Move the euidaccess() declaration to <unistd.h>.
50423         * lib/euidaccess.h: Remove file.
50424         * lib/unistd.in.h (euidaccess): New declaration.
50425         * lib/euidaccess.c: Don't include euidaccess.h.
50426         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
50427         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
50428         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
50429         and HAVE_EUIDACCESS.
50430         * modules/euidaccess (Files): Remove lib/euidaccess.h.
50431         (Depends-on): Add unistd.
50432         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50433         (Include): Specify <unistd.h> instead of euidaccess.h.
50434         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
50435         HAVE_EUIDACCESS.
50436         * NEWS: Mention the change.
50437
50438 2008-10-18  Bruno Haible  <bruno@clisp.org>
50439
50440         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
50441
50442         Move the getdomainname() declaration to <unistd.h>.
50443         * lib/getdomainname.h: Remove file.
50444         * lib/unistd.in.h (getdomainname): New declaration.
50445         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
50446         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
50447         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50448         HAVE_GETDOMAINNAME.
50449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50450         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
50451         * modules/getdomainname (Files): Remove lib/getdomainname.h.
50452         (Depends-on): Add unistd, extensions.
50453         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50454         (Includes): Specify <unistd.h> instead of getdomainname.h.
50455         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
50456         HAVE_GETDOMAINNAME.
50457         * NEWS: Mention the change.
50458
50459 2008-10-18  Bruno Haible  <bruno@clisp.org>
50460
50461         * modules/dirent: New file.
50462         * m4/dirent_h.m4: New file.
50463         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
50464         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
50465         * modules/fchdir (Files): Remove lib/dirent.in.h.
50466         (Depends-on): Add dirent.
50467         (Makefile.am): Move rules to modules/dirent.
50468         * doc/posix-headers/dirent.texi: Mention the new module.
50469
50470 2008-10-18  Bruno Haible  <bruno@clisp.org>
50471
50472         Avoid -Wunused-parameter warnings in public gnulib header files.
50473         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
50474         macro.
50475         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
50476
50477 2008-10-18  Bruno Haible  <bruno@clisp.org>
50478
50479         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
50480         * doc/glibc-functions/error.texi: Mention the module 'error'.
50481         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
50482         * doc/glibc-functions/getdomainname.texi: Mention the module
50483         'getdomainname'.
50484         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
50485         * doc/glibc-functions/getpagesize.texi: Mention the module
50486         'getpagesize'.
50487         * doc/glibc-functions/getusershell.texi: Mention the module
50488         'getusershell'.
50489         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
50490         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
50491         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
50492         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
50493         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
50494         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
50495         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
50496         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
50497         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
50498         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
50499         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
50500         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
50501         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
50502         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
50503
50504 2008-10-17  Bruno Haible  <bruno@clisp.org>
50505
50506         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
50507         HP-UX and IRIX, use -0.0L.
50508         * tests/test-ceill.c (minus_zero): Likewise.
50509         * tests/test-floorl.c (minus_zero): Likewise.
50510         * tests/test-frexpl.c (minus_zero): Likewise.
50511         * tests/test-isnan.c (minus_zerol): Likewise.
50512         * tests/test-isnanl.h (minus_zero): Likewise.
50513         * tests/test-ldexpl.c (minus_zero): Likewise.
50514         * tests/test-roundl.c (minus_zero): Likewise.
50515         * tests/test-signbit.c (minus_zerol): Likewise.
50516         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50517         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50518         * tests/test-truncl.c (minus_zero): Likewise.
50519         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50520         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50521         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
50522         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50523
50524 2008-10-17  Bruno Haible  <bruno@clisp.org>
50525
50526         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
50527         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
50528         that it gets activated only for gcc >= 3.0.
50529         * lib/dirent.in.h: Likewise.
50530         * lib/errno.in.h: Likewise.
50531         * lib/fcntl.in.h: Likewise.
50532         * lib/float.in.h: Likewise.
50533         * lib/iconv.in.h: Likewise.
50534         * lib/inttypes.in.h: Likewise.
50535         * lib/locale.in.h: Likewise.
50536         * lib/math.in.h: Likewise.
50537         * lib/netdb.in.h: Likewise.
50538         * lib/netinet_in.in.h: Likewise.
50539         * lib/search.in.h: Likewise.
50540         * lib/signal.in.h: Likewise.
50541         * lib/spawn.in.h: Likewise.
50542         * lib/stdarg.in.h: Likewise.
50543         * lib/stdint.in.h: Likewise.
50544         * lib/stdio.in.h: Likewise.
50545         * lib/stdlib.in.h: Likewise.
50546         * lib/string.in.h: Likewise.
50547         * lib/strings.in.h: Likewise.
50548         * lib/sys_file.in.h: Likewise.
50549         * lib/sys_ioctl.in.h: Likewise.
50550         * lib/sys_select.in.h: Likewise.
50551         * lib/sys_socket.in.h: Likewise.
50552         * lib/sys_stat.in.h: Likewise.
50553         * lib/sys_time.in.h: Likewise.
50554         * lib/sysexits.in.h: Likewise.
50555         * lib/time.in.h: Likewise.
50556         * lib/unistd.in.h: Likewise.
50557         * lib/wchar.in.h: Likewise.
50558         * lib/wctype.in.h: Likewise.
50559         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50560
50561 2008-10-17  Jim Meyering  <meyering@redhat.com>
50562
50563         ignore-value: don't depend on inline module
50564         * modules/ignore-value (Depends-on): Remove 'inline'.
50565         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
50566         Suggestion from Bruno Haible.
50567
50568 2008-10-17  Bruno Haible  <bruno@clisp.org>
50569
50570         New implementation of condition variables for Win32.
50571         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
50572         (gl_linked_waitqueue_t): New type.
50573         (gl_cond_t): Use it.
50574         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
50575         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
50576         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
50577         (glthread_cond_init_func, glthread_cond_wait_func,
50578         glthread_cond_timedwait_func, glthread_cond_signal_func,
50579         glthread_cond_broadcast_func, glthread_cond_destroy_func):
50580         Reimplemented on the basis of gl_linked_waitqueue_t.
50581         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
50582         gl_waitqueue_t.
50583         (gl_rwlock_t): Update.
50584         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
50585
50586 2008-10-17  Simon Josefsson  <simon@josefsson.org>
50587
50588         * modules/recvfrom (Depends-on): Add dependency on getpeername.
50589         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50590
50591 2008-10-17  Jim Meyering  <meyering@redhat.com>
50592
50593         ignore-value: new module
50594         * modules/ignore-value: New file.
50595         * lib/ignore-value.h: New file.
50596         * MODULES.html.sh (Compiler warning management): New section,
50597         just for this module.  More to come.
50598
50599 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50600
50601         open-safer.c: avoid 'signed and unsigned in conditional...' warning
50602         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
50603         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
50604
50605 2008-10-16  Jim Meyering  <meyering@redhat.com>
50606
50607         openat-die.c: avoid 'no previous prototype' warning
50608         * lib/openat-die.c: Include "openat.h".
50609         Reported by Reuben Thomas <rrt@sc3d.org>.
50610
50611 2008-10-16  Simon Josefsson  <simon@josefsson.org>
50612
50613         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
50614         * lib/netdb.in.h: Fix typo.
50615         Reported by Bruno Haible  <bruno@clisp.org>
50616
50617         * lib/netdb.in.h: Include sys/socket.h for platforms without
50618         netdb.h, to get structures like hostent on MinGW.
50619         * modules/netdb (Depends-on): Add sys_socket.
50620
50621 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50622
50623         * modules/netdb, modules/netdb-tests: New file.
50624         * m4/netdb_h.m4: New file.
50625         * lib/netdb.in.h: Add, currently just an empty file pending
50626         definitions.
50627         * tests/test-netdb.c: New file.
50628         * doc/posix-headers/netdb.texi: Mention that we replace it if
50629         needed.
50630         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50631         netdb.
50632
50633 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50634
50635         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
50636         with code.
50637
50638 2008-10-13  Bruno Haible  <bruno@clisp.org>
50639
50640         * lib/glthread/cond.c (glthread_cond_wait_func,
50641         glthread_cond_timedwait_func): Add a comment.
50642
50643 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50644
50645         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
50646         * tests/test-select.c: Likewise,
50647
50648 2008-10-13  Bruno Haible  <bruno@clisp.org>
50649
50650         * lib/glthread/cond.c (glthread_cond_wait_func,
50651         glthread_cond_timedwait_func): Fix variable name.
50652         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50653
50654 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
50655
50656         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
50657         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
50658         struct sockaddr.sa_len.
50659         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
50660
50661 2008-10-13  Simon Josefsson  <simon@josefsson.org>
50662
50663         * build-aux/pmccabe2html: Add css and css_url parameters.
50664
50665 2008-10-12  Bruno Haible  <bruno@clisp.org>
50666
50667         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
50668         calling aclx_get.
50669         Reported by Rainer Tammer <tammer@tammer.net>.
50670
50671 2008-10-12  Bruno Haible  <bruno@clisp.org>
50672
50673         Use msvcrt aware primitives for creation/termination of Win32 threads.
50674         * lib/glthread/thread.c: Include <process.h>.
50675         (glthread_create_func): Use _beginthreadex instead of CreateThread.
50676         (wrapper_func): Update signature.
50677         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
50678
50679 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50680             Bruno Haible  <bruno@clisp.org>
50681
50682         Provide a Win32 implementation of the 'cond' module.
50683         * lib/glthread/cond.h [USE_WIN32]: New implementation.
50684         * lib/glthread/cond.c (glthread_cond_init_func,
50685         glthread_cond_wait_func, glthread_cond_timedwait_func,
50686         glthread_cond_signal_func, glthread_cond_broadcast_func,
50687         glthread_cond_destroy_func) [USE_WIN32]: New functions.
50688         * modules/cond (Dependencies): Add gettimeofday.
50689
50690 2008-10-11  Bruno Haible  <bruno@clisp.org>
50691
50692         Make sleep work on older versions of mingw.
50693         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
50694         only whether it exists.
50695         * doc/posix-functions/sleep.texi: Mention the problem with older
50696         versions of mingw.
50697
50698 2008-10-11  Bruno Haible  <bruno@clisp.org>
50699
50700         New module 'shutdown'.
50701         * modules/shutdown: New file.
50702         * lib/sys_socket.in.h (shutdown): New declaration.
50703         * lib/winsock.c (shutdown): New function.
50704         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
50705         GNULIB_SHUTDOWN.
50706         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
50707         * doc/posix-functions/shutdown.texi: Document the new module.
50708
50709 2008-10-11  Jim Meyering  <meyering@redhat.com>
50710
50711         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
50712
50713 2008-10-11  Bruno Haible  <bruno@clisp.org>
50714
50715         New module 'fclose'.
50716         * modules/fclose: New file.
50717         * lib/stdio.in.h (fclose): New declaration.
50718         * lib/fclose.c: New file.
50719         * m4/fclose.m4: New file.
50720         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
50721         REPLACE_FCLOSE.
50722         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
50723         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
50724         REPLACE_FCLOSE.
50725         * modules/close (Depends-on): fclose.
50726         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
50727
50728 2008-10-11  Bruno Haible  <bruno@clisp.org>
50729
50730         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
50731         set errno and don't call _close.
50732
50733 2008-10-10  Bruno Haible  <bruno@clisp.org>
50734
50735         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
50736         ACL, not afterwards. Fixes test failure on Cygwin.
50737
50738 2008-10-09  Ben Pfaff  <blp@gnu.org>
50739
50740         * build-aux/announce-gen: Fix gnulib version related part of usage
50741         message.  Die with a useful error message if no tarballs are
50742         found.
50743
50744 2008-10-10  Jim Meyering  <meyering@redhat.com>
50745
50746         bootstrap: use git's --depth=N option only if it's supported
50747         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
50748         recognize the --depth option.  Reported by Pádraig Brady.
50749
50750 2008-10-09  Bruno Haible  <bruno@clisp.org>
50751
50752         New module 'ioctl'.
50753         * modules/ioctl: New file.
50754         * lib/sys_socket.in.h (ioctl): Remove declaration.
50755         * lib/winsock.c: Include <sys/ioctl.h>.
50756         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
50757         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50758         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
50759         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
50760         * doc/posix-functions/ioctl.texi: Mention the new module.
50761
50762 2008-10-09  Bruno Haible  <bruno@clisp.org>
50763
50764         New module 'sys_ioctl'.
50765         * lib/sys_ioctl.in.h: New file.
50766         * m4/sys_ioctl_h.m4: New file.
50767         * modules/sys_ioctl: New file.
50768         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
50769
50770 2008-10-09  Bruno Haible  <bruno@clisp.org>
50771
50772         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
50773         * lib/winsock.c: Include <stdarg.h>.
50774         (rpl_ioctl): Change to second argument 'int' and then varargs.
50775
50776 2008-10-09  Bruno Haible  <bruno@clisp.org>
50777
50778         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
50779         when the sys_socket module is present and the system has <winsock2.h>.
50780
50781 2008-10-09  Bruno Haible  <bruno@clisp.org>
50782
50783         * doc/posix-functions/close.texi: Mention module 'close' instead of
50784         module 'sys_socket'.
50785
50786 2008-10-09  Bruno Haible  <bruno@clisp.org>
50787
50788         * doc/glibc-headers/sys_ioctl.texi: New file.
50789         * doc/gnulib.texi: Include it.
50790
50791 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50792             Bruno Haible  <bruno@clisp.org>
50793
50794         Combine the two replacements of 'close'.
50795         * lib/sys_socket.in.h (close): Define to a reminder to include
50796         <unistd.h>.
50797         (_gl_close_fd_maybe_socket): New declaration.
50798         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
50799         * lib/winsock.c (close): Remove undefinition.
50800         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
50801         needed for the gnulib module 'close'.
50802         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
50803         define to an error symbol or to a warning, if suitable.
50804         * lib/close.c: Include <sys/socket.h>.
50805         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
50806         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
50807         UNISTD_H_HAVE_WINSOCK2_H.
50808         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
50809         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50810         UNISTD_H_HAVE_WINSOCK2_H.
50811         * modules/sys_socket (Files): Add m4/unistd_h.m4.
50812         (configure.ac): Set a module indicator.
50813         (Makefile.am): Substitute GNULIB_CLOSE.
50814         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
50815         * modules/poll-tests (Depends-on): Add close.
50816         * modules/select-tests (Depends-on): Likewise.
50817
50818 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50819             Bruno Haible  <bruno@clisp.org>
50820
50821         New module 'close'.
50822         * modules/close: New file.
50823         * lib/unistd.in.h (close): Move declaration out of the
50824         FCHDIR_REPLACEMENT scope.
50825         (_gl_unregister_fd): New declaration.
50826         * lib/close.c: New file.
50827         * lib/fchdir.c (rpl_close): Remove function.
50828         * m4/close.m4: New file.
50829         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50830         close.
50831         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
50832         REPLACE_CLOSE.
50833         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
50834         REPLACE_CLOSE.
50835         * modules/fchdir (Depends-on): Add close.
50836
50837 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50838             Bruno Haible  <bruno@clisp.org>
50839
50840         * lib/fcntl.in.h (open): Simplify conditionals.
50841         (_gl_register_fd): New declaration.
50842         * lib/fchdir.c (rpl_open): Remove function.
50843         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
50844         also.
50845         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
50846         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50847         open.
50848
50849 2008-10-09  Jim Meyering  <meyering@redhat.com>
50850
50851         GNUmakefile: use the more name-space-friendly "_version"
50852         * top/GNUmakefile (_dummy): Update.
50853         (_version): Rename from "version".
50854
50855 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50856             Bruno Haible  <bruno@clisp.org>
50857
50858         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
50859         rpl_close.
50860         (_gl_register_fd): New function, extracted from rpl_open.
50861         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
50862         (rpl_open, rpl_opendir): Use _gl_register_fd.
50863
50864 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50865
50866         Fix organization of 'open' replacement.
50867         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
50868         (gl_FUNC_OPEN): Use it.
50869         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
50870
50871 2008-10-08  Bruno Haible  <bruno@clisp.org>
50872
50873         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
50874
50875 2008-10-08  Simon Josefsson  <simon@josefsson.org>
50876
50877         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
50878         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
50879         listen).
50880
50881 2008-10-08  Eric Blake  <ebb9@byu.net>
50882
50883         GNUmakefile: add 'make version' target
50884         * top/GNUmakefile (_curr-ver): Split version update rules...
50885         (version): ...into a target.
50886
50887 2008-10-07  Bruno Haible  <bruno@clisp.org>
50888
50889         Use a more portable replacement expression for -0.0L.
50890         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
50891         instead of -0.0L. Fix m4 quotation.
50892
50893         * tests/test-signbit.c: Include <float.h>.
50894         (minus_zero): New variable.
50895         (test_signbitl): Use minus_zero instead of -zero.
50896         * modules/signbit-tests (Depends-on): Add float.
50897
50898         * tests/test-ceill.c: Include <float.h>.
50899         (zero): Remove variable.
50900         (minus_zero): New variable.
50901         (main): Use minus_zero instead of -zero.
50902         * modules/ceill-tests (Depends-on): Add float.
50903
50904         * tests/test-floorl.c: Include <float.h>.
50905         (zero): Remove variable.
50906         (minus_zero): New variable.
50907         (main): Use minus_zero instead of -zero.
50908         * modules/floorl-tests (Depends-on): Add float.
50909
50910         * tests/test-roundl.c: Include <float.h>.
50911         (zero): Remove variable.
50912         (minus_zero): New variable.
50913         (main): Use minus_zero instead of -zero.
50914         * modules/roundl-tests (Depends-on): Add float.
50915
50916         * tests/test-truncl.c: Include <float.h>.
50917         (zero): Remove variable.
50918         (minus_zero): New variable.
50919         (main): Use minus_zero instead of -zero.
50920         * modules/truncl-tests (Depends-on): Add float.
50921
50922         * tests/test-frexpl.c (zero): Remove variable.
50923         (minus_zero): New variable.
50924         (main): Use minus_zero instead of -zero.
50925         * modules/frexpl-tests (Depends-on): Add float.
50926
50927         * tests/test-isnan.c (zerol): Remove variable.
50928         (minus_zerol): New variable.
50929         (test_long_double): Use minus_zerol instead of -zerol.
50930         * modules/isnan-tests (Depends-on): Add float.
50931
50932         * tests/test-isnanl.h (zero): Remove variable.
50933         (minus_zero): New variable.
50934         (main): Use minus_zero instead of -zero.
50935         * modules/isnanl-nolibm-tests (Depends-on): Add float.
50936         * modules/isnanl-tests (Depends-on): Add float.
50937
50938         * tests/test-ldexpl.c (zero): Remove variable.
50939         (minus_zero): New variable.
50940         (main): Use minus_zero instead of -zero.
50941         * modules/ldexpl-tests (Depends-on): Add float.
50942
50943         * tests/test-snprintf-posix.h (zerol): Remove variable.
50944         (minus_zerol): New variable.
50945         (test_function): Use minus_zerol instead of -zerol.
50946         * modules/snprintf-posix-tests (Depends-on): Add float.
50947         * modules/vsnprintf-posix-tests (Depends-on): Add float.
50948
50949         * tests/test-sprintf-posix.h (zerol): Remove variable.
50950         (minus_zerol): New variable.
50951         (test_function): Use minus_zerol instead of -zerol.
50952         * modules/sprintf-posix-tests (Depends-on): Add float.
50953         * modules/vsprintf-posix-tests (Depends-on): Add float.
50954
50955         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
50956         (minus_zerol): New variable.
50957         (test_function): Use minus_zerol instead of -zerol.
50958         * modules/vasnprintf-posix-tests (Depends-on): Add float.
50959
50960         * tests/test-vasprintf-posix.c (zerol): Remove variable.
50961         (minus_zerol): New variable.
50962         (test_function): Use minus_zerol instead of -zerol.
50963         * modules/vasprintf-posix-tests (Depends-on): Add float.
50964
50965 2008-10-07  Simon Josefsson  <simon@josefsson.org>
50966
50967         * MODULES.html.sh (Support for building documentation): Mention
50968         pmccabe2html.  Sort entries.
50969
50970         Add pmccabe2html module, from gnupdf.
50971         * build-aux/pmccabe.css: New file.
50972         * build-aux/pmccabe2html: New file.
50973         * m4/pmccabe2html.m4: New file.
50974         * modules/pmccabe2html: New file.
50975
50976 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
50977
50978         flock: new module
50979         * MODULES.html.sh: Add to list of modules.
50980         * lib/flock.c: flock implementation for Windows and Unix systems
50981         which have fcntl.
50982         * doc/glibc-functions/flock.texi: Update documentation.
50983         * lib/sys_file.in.h: <sys/file.h> header file.
50984         * m4/flock.m4: M4 macros.
50985         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
50986         * modules/flock: flock module.
50987         * modules/flock-tests: flock tests module.
50988         * modules/sys_file: sys/file.h module.
50989         * tests/test-flock.c: test suite for flock.
50990
50991 2008-10-06  Jim Meyering  <meyering@redhat.com>
50992
50993         bootstrap: check for LT_INIT more portably still ;-)
50994         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
50995         Spotted by Bruno Haible.
50996
50997 2008-10-06  Eric Blake  <ebb9@byu.net>
50998
50999         test-signbit: avoid tripping Irix cc bug on -0.0L
51000         * tests/test-signbit.c (minus_zerol): Delete, and replace with
51001         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
51002         entire testsuite consistent and avoids an Irix 6.2 bug.
51003
51004 2008-10-05  Bruno Haible  <bruno@clisp.org>
51005             Jim Meyering  <jim@meyering.net>
51006
51007         Add an option for ignoring EPIPE during close_stdout.
51008         * lib/closeout.h: Include <stdbool.h>.
51009         (close_stdout_set_ignore_EPIPE): New declaration.
51010         * lib/closeout.c: Include <stdbool.h>.
51011         (ignore_EPIPE): New variable.
51012         (close_stdout_set_ignore_EPIPE): New function.
51013         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
51014         * lib/close-stream.c (close_stream): Mention the possible EPIPE
51015         failure.
51016         * modules/closeout (Depends-on): Add stdbool.
51017
51018 2008-10-05  Bruno Haible  <bruno@clisp.org>
51019
51020         * modules/accept: New file.
51021         * modules/bind: New file.
51022         * modules/connect: New file.
51023         * modules/getpeername: New file.
51024         * modules/getsockname: New file.
51025         * modules/getsockopt: New file.
51026         * modules/listen: New file.
51027         * modules/recv: New file.
51028         * modules/recvfrom: New file.
51029         * modules/send: New file.
51030         * modules/sendto: New file.
51031         * modules/setsockopt: New file.
51032         * modules/socket: New file.
51033         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
51034         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51035         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
51036         the particular module is requested. Add a link warning when the
51037         particular module is not requested.
51038         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
51039         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
51040         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
51041         the particular module is requested.
51042         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
51043         gl_SYS_SOCKET_H_DEFAULTS): New macros.
51044         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
51045         * modules/sys_socket (Depends-on): Add link-warning.
51046         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
51047         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
51048         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
51049         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
51050         GL_LINK_WARNING.
51051         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
51052         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
51053         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
51054         * doc/posix-functions/getpeername.texi: Mention the new module
51055         'getpeername'.
51056         * doc/posix-functions/getsockname.texi: Mention the new module
51057         'getsockname'.
51058         * doc/posix-functions/getsockopt.texi: Mention the new module
51059         'getsockopt'.
51060         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
51061         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
51062         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
51063         * doc/posix-functions/send.texi: Mention the new module 'send'.
51064         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
51065         * doc/posix-functions/setsockopt.texi: Mention the new module
51066         'setsockopt'.
51067         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
51068         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
51069         listen, connect, accept.
51070         * modules/select-tests (Depends-on): Likewise.
51071
51072 2008-10-05  Bruno Haible  <bruno@clisp.org>
51073
51074         * lib/winsock.c (strerror): Remove unused #undef.
51075         (rpl_close): Remove unused local variable.
51076
51077         * modules/sys_socket (Depends-on); Add errno.
51078
51079 2008-10-05  Bruno Haible  <bruno@clisp.org>
51080
51081         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
51082         (select): Add a link warning when the 'select' module is not used.
51083         * modules/sys_select (Depends-on): Add link-warning.
51084         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
51085         Suggested by Paolo Bonzini.
51086
51087 2008-10-05  Jim Meyering  <meyering@redhat.com>
51088
51089         bootstrap: check for LT_INIT more portably
51090         * build-aux/bootstrap: Avoid using grep -E, since it's not
51091         portable enough.  Suggestion from Bruno Haible.
51092
51093 2008-10-05  Bruno Haible  <bruno@clisp.org>
51094
51095         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
51096         as being fixed by gnulib.
51097
51098 2008-10-05  Bruno Haible  <bruno@clisp.org>
51099
51100         * modules/select-tests: New file, mostly copied from
51101         modules/sys_select-tests.
51102         * tests/test-select.c: New file, mostly copied from
51103         tests/test-sys_select.c.
51104         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
51105         * modules/sys_select-tests (Depends-on): Remove all dependencies.
51106         (Makefile.am): Remove test_sys_select_LDADD.
51107
51108         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
51109         to an undefined symbol, for an error message.
51110         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
51111         (gl_SYS_SELECT_H_DEFAULTS): New macro.
51112         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
51113         winsock-select.c here.
51114         * modules/sys_select (Files): Remove lib/winsock-select.c.
51115         (Depends-on): Remove alloca.
51116         (Makefile.am): Substitute GNULIB_SELECT.
51117         * modules/select: New file.
51118         * doc/posix-functions/select.texi: Update.
51119
51120 2008-10-05  Bruno Haible  <bruno@clisp.org>
51121
51122         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
51123         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
51124         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
51125         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
51126         getdtablesize.
51127         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
51128         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
51129
51130 2008-10-05  Bruno Haible  <bruno@clisp.org>
51131
51132         * modules/getdtablesize-tests: New file.
51133         * tests/test-getdtablesize.c: New file.
51134
51135         New module 'getdtablesize'.
51136         * lib/unistd.in.h (getdtablesize): New declaration.
51137         * lib/getdtablesize.c: New file.
51138         * m4/getdtablesize.m4: New file.
51139         * modules/getdtablesize: New file.
51140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51141         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
51142         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
51143         HAVE_GETDTABLESIZE.
51144         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
51145
51146 2008-10-05  Bruno Haible  <bruno@clisp.org>
51147
51148         * modules/sched (Makefile.am): Fix typo.
51149         Reported by Simon Josefsson.
51150
51151 2008-10-05  Jim Meyering  <meyering@redhat.com>
51152
51153         bootstrap: check for LT_INIT, too
51154         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
51155         are deprecated.  Suggestion from Ralf Wildenhues.
51156
51157 2008-10-05  Bruno Haible  <bruno@clisp.org>
51158
51159         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
51160         overriding them by ours.
51161         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
51162
51163 2008-10-05  Jim Meyering  <meyering@redhat.com>
51164
51165         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
51166         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
51167         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
51168
51169 2008-10-04  Bruno Haible  <bruno@clisp.org>
51170
51171         * modules/dup2 (License): Change to LGPLv2+.
51172         * modules/sleep (License): Likewise.
51173         * modules/perror (License): Likewise.
51174         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
51175         Blake.
51176         * modules/signal (License): Likewise.
51177         * modules/sigprocmask (License): Likewise.
51178         * modules/raise (License): Change to LGPLv2+, with approval by Jim
51179         Meyering.
51180
51181 2008-10-04  Bruno Haible  <bruno@clisp.org>
51182
51183         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
51184         Reported by Rainer Tammer <tammer@tammer.net>.
51185
51186 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
51187             Bruno Haible  <bruno@clisp.org>
51188
51189         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
51190         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
51191         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
51192
51193 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
51194
51195         filevercmp: new module
51196         * lib/filevercmp.h: New function filevercmp comparing version strings.
51197         * lib/filevercmp.c: Implementation of filevercmp function.
51198         * modules/filevercmp: Module metadata.
51199         * tests/test-filevercmp.c: Unit test for new module.
51200         * modules/filevercmp-tests: Unit test metadata.
51201         * MODULES.html.sh: Add filevercmp module.
51202
51203 2008-10-03  Bruno Haible  <bruno@clisp.org>
51204
51205         * lib/c-ctype.h: Add comment.
51206         Reported by Jim Meyering.
51207
51208 2008-10-02  Bruno Haible  <bruno@clisp.org>
51209
51210         * modules/posix_spawn-internal (Depends-on): Add 'open'.
51211
51212 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51213
51214         * build-aux/bootstrap: Allow renaming bootstrap, and change the
51215         name of bootstrap.conf accordingly.
51216
51217 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51218
51219         * build-aux/bootstrap: Install git-merge-changelog configuration
51220         items into .gitconfig if needed.
51221
51222 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
51223
51224         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
51225         git repository, and initialize/update it accordingly.
51226
51227 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
51228
51229         * modules/fsync-tests: New file.
51230         * tests/test-fsync.c: New file.
51231
51232         New module 'fsync'.
51233         * lib/fsync.c: New file.
51234         * m4/fsync.m4: New file.
51235         * modules/fsync: New file.
51236         * lib/unistd.in.h (fsync): New declaration.
51237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
51238         GNULIB_FSYNC and HAVE_FSYNC.
51239         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
51240         * MODULES.html.sh (posix_functions): Add fsync.
51241         * doc/posix-functions/fsync.texi: Mention the new module.
51242
51243 2008-10-02  Jim Meyering  <meyering@redhat.com>
51244
51245         fts.c: sync with similar code from coreutils' remove.c
51246         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
51247         Guard also with "#if defined __linux__", since for now at least,
51248         this code is Linux-kernel-specific.
51249
51250 2008-10-02  Jim Meyering  <meyering@redhat.com>
51251
51252         fts: bug fixes
51253         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
51254         Include <sys/vfs.h>, not <sys/statfs.h>.
51255
51256         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
51257         Include <sys/vfs.h>, not <sys/statfs.h>.
51258
51259 2008-10-01  Bruno Haible  <bruno@clisp.org>
51260
51261         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
51262         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
51263         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
51264         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
51265         * doc/posix-functions/posix_spawnp.texi: Likewise.
51266         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51267         whether posix_spawn actually works.
51268         * m4/pipe.m4 (gl_PIPE): Likewise.
51269         * modules/execute (Files): Add m4/posix_spawn.m4.
51270         * modules/pipe (Files): Add m4/posix_spawn.m4.
51271         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51272
51273 2008-10-01  Jim Meyering  <meyering@redhat.com>
51274
51275         remove trailing spaces
51276         * NEWS: Likewise.
51277         * lib/poll.c (poll): Likewise.
51278         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51279         * lib/winsock.c (rpl_close): Likewise.
51280         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51281         * modules/yield: Likewise.
51282         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51283         * tests/test-sys_select.c (connect_to_socket): Likewise.
51284
51285         fts.c: adjust a new interface to be more generally useful
51286         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
51287         (fts_build): Adjust caller.
51288
51289 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51290
51291         * modules/cond-tests: New file.
51292         * tests/test-cond.c: New file.
51293
51294 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51295             Bruno Haible  <bruno@clisp.org>
51296
51297         * modules/cond (Dependencies): Add errno, time.
51298         * lib/glthread/cond.h: Include <time.h>.
51299         (gl_cond_define, gl_cond_define_initialized): Use the same definition
51300         across platforms.
51301
51302 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51303             Bruno Haible  <bruno@clisp.org>
51304
51305         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
51306
51307 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51308             Bruno Haible  <bruno@clisp.org>
51309
51310         * modules/tls-tests (Depends-on): Add thread, yield.
51311         (configure.ac): Remove all checks.
51312         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
51313         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51314         gl_thread_self): Remove definitions. Include glthread/thread.h and
51315         glthread/yield.h instead.
51316         (test_tls): Pass an additional NULL argument to gl_thread_join.
51317
51318 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51319             Bruno Haible  <bruno@clisp.org>
51320
51321         * modules/lock-tests (Depends-on): Add thread, yield.
51322         (configure.ac): Remove all checks.
51323         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
51324         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51325         gl_thread_self): Remove definitions. Include glthread/thread.h and
51326         glthread/yield.h instead.
51327         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
51328         additional NULL argument to gl_thread_join.
51329
51330 2008-09-30  Bruno Haible  <bruno@clisp.org>
51331
51332         Fix the Win32 implementation of the 'thread' module.
51333         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
51334         pointer type.
51335         (gl_thread_self): Invoke gl_thread_self_func.
51336         (gl_thread_self_func): New declaration.
51337         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
51338         (do_init_self_key, init_self_key): New functions.
51339         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
51340         Remove some fields.
51341         (running_threads, running_lock): Remove variables.
51342         (get_current_thread_handle): New function.
51343         (gl_thread_self_func, wrapper_func, glthread_create_func,
51344         glthread_join_func, gl_thread_exit_func): Largely rewritten and
51345         simplified.
51346
51347 2008-09-30  Bruno Haible  <bruno@clisp.org>
51348
51349         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
51350         files.
51351
51352 2008-09-30  Jim Meyering  <meyering@redhat.com>
51353
51354         fts.m4: correct the test for statfs.f_type
51355         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
51356         when checking for statfs.f_type.
51357
51358 2008-09-15  Simon Josefsson  <simon@josefsson.org>
51359
51360         tests: avoid some compiler warnings
51361         * tests/test-memchr.c (main): Pass NULL indirectly.
51362         * tests/test-getdate.c (main): Remove unused variable 'ret'.
51363
51364 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
51365
51366         getdate.y: disallow countable dayshifts like "4 yesterday ago"
51367         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
51368         exactly specified dayshifts.
51369         (dayshift): New rule.
51370         (rel): Add dayshift.
51371         (relative_time_table) [tomorrow, yesterday, today, now]:
51372         Use tDAY_SHIFT in place of tDAY_UNIT.
51373         * tests/test-getdate.c: Add tests for now-disallowed countable
51374         dayshifts, e.g., "4 yesterday ago".
51375
51376 2008-09-29  Bruno Haible  <bruno@clisp.org>
51377
51378         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
51379         * tests/test-posix_spawn1.in.sh: Renamed from
51380         tests/test-posix_spawn.in.sh.
51381         * tests/test-posix_spawn2.c: New file.
51382         * tests/test-posix_spawn2.in.sh: New file.
51383         * modules/posix_spawnp-tests (Files): Update.
51384         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
51385
51386 2008-09-29  Bruno Haible  <bruno@clisp.org>
51387
51388         Propagate effects of putenv/setenv/unsetenv to child processes.
51389         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
51390         * lib/pipe.c (create_pipe): Likewise.
51391
51392 2008-09-29  Bruno Haible  <bruno@clisp.org>
51393
51394         Enable use of shell scripts as executables in mingw.
51395         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
51396         run the program as a shell script.
51397         * lib/pipe.c (create_pipe): Likewise.
51398         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
51399         resulting array.
51400
51401 2008-09-29  Eric Blake  <ebb9@byu.net>
51402
51403         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
51404
51405 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
51406
51407         * doc/posix-functions/accept.texi: Update mingw problems.
51408         * doc/posix-functions/bind.texi: Update mingw problems.
51409         * doc/posix-functions/close.texi: Update mingw problems.
51410         * doc/posix-functions/connect.texi: Update mingw problems.
51411         * doc/posix-functions/getpeername.texi: Update mingw problems.
51412         * doc/posix-functions/getsockname.texi: Update mingw problems.
51413         * doc/posix-functions/getsockopt.texi: Update mingw problems.
51414         * doc/posix-functions/ioctl.texi: Update mingw problems.
51415         * doc/posix-functions/listen.texi: Update mingw problems.
51416         * doc/posix-functions/recv.texi: Update mingw problems.
51417         * doc/posix-functions/recvfrom.texi: Update mingw problems.
51418         * doc/posix-functions/select.texi: Update mingw problems.
51419         * doc/posix-functions/send.texi: Update mingw problems.
51420         * doc/posix-functions/sendto.texi: Update mingw problems.
51421         * doc/posix-functions/setsockopt.texi: Update mingw problems.
51422         * doc/posix-functions/socket.texi: Update mingw problems.
51423
51424 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
51425             Bruno Haible  <bruno@clisp.org>
51426
51427         * lib/sys_select.in.h: Include sys/time.h.
51428         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
51429         * modules/sys_select: Depend on sys_time.
51430         * tests/test-sys_select.c: Test that sys/select.h defines struct
51431         timeval fully.
51432
51433 2008-09-29  Bruno Haible  <bruno@clisp.org>
51434
51435         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
51436         * lib/sys_select.in.h: Likewise.
51437
51438 2008-09-29  Bruno Haible  <bruno@clisp.org>
51439
51440         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
51441
51442 2008-09-29  Bruno Haible  <bruno@clisp.org>
51443
51444         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
51445         Set LIBSOCKET instead of augmenting LIBS.
51446         * modules/sockets (Link): New section.
51447         * modules/sockets-tests (test_sockets_LDADD): New variable.
51448         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
51449         * modules/poll-tests (test_poll_LDADD): New variable.
51450         * NEWS: Document the change.
51451
51452 2008-09-29  Bruno Haible  <bruno@clisp.org>
51453
51454         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
51455         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
51456         ARPA_INET_H directly.
51457         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51458
51459 2008-09-28  Bruno Haible  <bruno@clisp.org>
51460
51461         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
51462         from gl_HEADER_SYS_SOCKET.
51463         (gl_HEADER_SYS_SOCKET): Invoke it.
51464         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51465
51466 2008-09-28  Bruno Haible  <bruno@clisp.org>
51467
51468         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
51469         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
51470         Needed on OSF/1 4.0.
51471
51472 2008-09-28  Bruno Haible  <bruno@clisp.org>
51473
51474         Override open more carefully.
51475         * lib/open.c (orig_open): New function.
51476         (rpl_open): Use orig_open instead of open.
51477         * lib/fcntl.in.h: Add special invocation convention.
51478         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
51479         (gl_FUNC_OPEN): Invoke it.
51480
51481         Override freopen more carefully.
51482         * lib/freopen.c (orig_freopen): New function.
51483         (rpl_freopen): Use orig_freopen instead of freopen.
51484         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
51485         (gl_FUNC_FREOPEN): Invoke it.
51486
51487         Override fopen more carefully.
51488         * lib/fopen.c (orig_fopen): New function.
51489         (rpl_fopen): Use orig_fopen instead of fopen.
51490         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
51491         (gl_FUNC_FOPEN): Invoke it.
51492         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
51493
51494 2008-09-28  Bruno Haible  <bruno@clisp.org>
51495
51496         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
51497         SIGPIPE.
51498
51499 2008-09-28  Bruno Haible  <bruno@clisp.org>
51500
51501         * tests/test-sigaction.c (handler, main): Disable the check whether
51502         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
51503         glibc systems with LinuxThreads.
51504
51505 2008-09-28  Bruno Haible  <bruno@clisp.org>
51506
51507         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
51508
51509         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
51510         with AIX xlc.
51511         * lib/fcntl.in.h (open): Likewise.
51512         Reported by Rainer Tammer <tammer@tammer.net>.
51513
51514 2008-09-28  Bruno Haible  <bruno@clisp.org>
51515
51516         * modules/posix_spawnp-tests: New file.
51517         * tests/test-posix_spawn.c: New file.
51518         * tests/test-posix_spawn.in.sh: New file.
51519
51520         New module 'posix_spawnp'.
51521         * modules/posix_spawnp: New file.
51522         * lib/spawnp.c: New file, from GNU libc with modifications.
51523         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
51524
51525         New module 'posix_spawn'.
51526         * modules/posix_spawn: New file.
51527         * lib/spawn.c: New file, from GNU libc with modifications.
51528         * doc/posix-functions/posix_spawn.texi: Mention the new module.
51529
51530         New module 'posix_spawnattr_destroy'.
51531         * modules/posix_spawnattr_destroy: New file.
51532         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
51533         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
51534         module.
51535
51536         New module 'posix_spawnattr_setsigmask'.
51537         * modules/posix_spawnattr_setsigmask: New file.
51538         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
51539         modifications.
51540         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
51541         new module.
51542
51543         New module 'posix_spawnattr_getsigmask'.
51544         * modules/posix_spawnattr_getsigmask: New file.
51545         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
51546         modifications.
51547         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
51548         new module.
51549
51550         New module 'posix_spawnattr_setsigdefault'.
51551         * modules/posix_spawnattr_setsigdefault: New file.
51552         * lib/spawnattr_setdefault.c: New file, from GNU libc with
51553         modifications.
51554         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
51555         new module.
51556
51557         New module 'posix_spawnattr_getsigdefault'.
51558         * modules/posix_spawnattr_getsigdefault: New file.
51559         * lib/spawnattr_getdefault.c: New file, from GNU libc with
51560         modifications.
51561         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
51562         new module.
51563
51564         New module 'posix_spawnattr_setschedpolicy'.
51565         * modules/posix_spawnattr_setschedpolicy: New file.
51566         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
51567         modifications.
51568         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
51569         new module.
51570
51571         New module 'posix_spawnattr_getschedpolicy'.
51572         * modules/posix_spawnattr_getschedpolicy: New file.
51573         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
51574         modifications.
51575         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
51576         new module.
51577
51578         New module 'posix_spawnattr_setschedparam'.
51579         * modules/posix_spawnattr_setschedparam: New file.
51580         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
51581         modifications.
51582         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
51583         new module.
51584
51585         New module 'posix_spawnattr_getschedparam'.
51586         * modules/posix_spawnattr_getschedparam: New file.
51587         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
51588         modifications.
51589         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
51590         new module.
51591
51592         New module 'posix_spawnattr_setpgroup'.
51593         * modules/posix_spawnattr_setpgroup: New file.
51594         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
51595         modifications.
51596         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
51597         module.
51598
51599         New module 'posix_spawnattr_getpgroup'.
51600         * modules/posix_spawnattr_getpgroup: New file.
51601         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
51602         modifications.
51603         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
51604         module.
51605
51606         New module 'posix_spawnattr_setflags'.
51607         * modules/posix_spawnattr_setflags: New file.
51608         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
51609         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
51610         module.
51611
51612         New module 'posix_spawnattr_getflags'.
51613         * modules/posix_spawnattr_getflags: New file.
51614         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
51615         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
51616         module.
51617
51618         New module 'posix_spawnattr_init'.
51619         * modules/posix_spawnattr_init: New file.
51620         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
51621         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
51622         module.
51623
51624         New module 'posix_spawn_file_actions_destroy'.
51625         * modules/posix_spawn_file_actions_destroy: New file.
51626         * lib/spawn_faction_destroy.c: New file, from GNU libc with
51627         modifications.
51628         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
51629         the new module.
51630
51631         New module 'posix_spawn_file_actions_addopen'.
51632         * modules/posix_spawn_file_actions_addopen: New file.
51633         * lib/spawn_faction_addopen.c: New file, from GNU libc with
51634         modifications.
51635         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
51636         the new module.
51637
51638         New module 'posix_spawn_file_actions_adddup2'.
51639         * modules/posix_spawn_file_actions_adddup2: New file.
51640         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
51641         modifications.
51642         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
51643         the new module.
51644
51645         New module 'posix_spawn_file_actions_addclose'.
51646         * modules/posix_spawn_file_actions_addclose: New file.
51647         * lib/spawn_faction_addclose.c: New file, from GNU libc with
51648         modifications.
51649         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
51650         the new module.
51651
51652         New module 'posix_spawn_file_actions_init'.
51653         * modules/posix_spawn_file_actions_init: New file.
51654         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
51655         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
51656         new module.
51657
51658         New module 'posix_spawn-internal'.
51659         * modules/posix_spawn-internal: New file.
51660         * lib/spawn_int.h: New file, from GNU libc with modifications.
51661         * lib/spawni.c: New file, from GNU libc with modifications.
51662         * m4/posix_spawn.m4: New file.
51663
51664         New module 'spawn'.
51665         * modules/spawn: New file.
51666         * lib/spawn.in.h: New file, from GNU libc with modifications.
51667         * m4/spawn_h.m4: New file.
51668         * doc/posix-headers/spawn.texi: Mention the new module.
51669
51670 2008-09-28  Bruno Haible  <bruno@clisp.org>
51671
51672         * modules/sched-tests: New file.
51673         * tests/test-sched.c: New file.
51674
51675         New module 'sched'.
51676         * modules/sched: New file.
51677         * lib/sched.in.h: New file.
51678         * m4/sched_h.m4: New file.
51679         * doc/posix-headers/sched.texi: Mention the new module.
51680
51681 2008-09-27  Eric Blake  <ebb9@byu.net>
51682
51683         Fix previous patch, and tweak references to $0.
51684         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
51685         (func_version, func_gnulib_dir): Don't call this program
51686         gnulib-tool.
51687         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
51688         with using $0 in function.
51689         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
51690         (func_fatal_error): Reuse the name the user invoked us with.
51691
51692 2008-09-27  Bruno Haible  <bruno@clisp.org>
51693
51694         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
51695         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
51696         (gl_ICONV_H): Not here.
51697         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
51698         instead of assigning ICONV_H directly.
51699
51700         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
51701         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
51702         WCHAR_H directly.
51703
51704 2008-09-27  Bruno Haible  <bruno@clisp.org>
51705
51706         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
51707         * modules/arpa_inet (Depends-on): Add link-warning.
51708         (Makefile.am): Insert the definition of GL_LINK-WARNING.
51709         * modules/unistd (Makefile.am): Likewise.
51710
51711 2008-09-26  Bruno Haible  <bruno@clisp.org>
51712
51713         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
51714         variables.
51715         (func_version): Essentially copied from gnulib-tool.
51716         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
51717         func_readlink): Copied from gnulib-tool.
51718
51719 2008-09-26  Bruno Haible  <bruno@clisp.org>
51720
51721         * gnulib-tool (func_version): Change directory to $gnulib_dir before
51722         invoking git-version-gen.
51723
51724 2008-09-26  Bruno Haible  <bruno@clisp.org>
51725
51726         * posix-modules: Update to directory names changed on 2008-01-19.
51727         Remove commas in output before splitting into words. No more need to
51728         avoid 'ftruncate' since 2007-02-19.
51729
51730 2008-09-26  Bruno Haible  <bruno@clisp.org>
51731
51732         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
51733
51734 2008-09-26  Bruno Haible  <bruno@clisp.org>
51735
51736         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
51737         * modules/fwriteerror (Depends-on): Add errno.
51738
51739 2008-09-26  Bruno Haible  <bruno@clisp.org>
51740
51741         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
51742         * tests/test-vc-list-files-cvs.sh: Likewise.
51743
51744 2008-09-26  Bruno Haible  <bruno@clisp.org>
51745
51746         * doc/posix-headers/sys_resource.texi: Reorder items.
51747
51748 2008-09-26  Jim Meyering  <meyering@redhat.com>
51749
51750         fts: tweak inode comparison function
51751         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
51752         inode numbers, as documented.
51753
51754         fts: sort dirent entries on inode number before traversing
51755         This avoids a quadratic, seek-related performance penalty when
51756         operating on a directory containing many entries (measurable at 10k;
51757         3.5 hours at 2 million entries with a cold cache) on certain types
51758         of file systems, including ext3 and ext4, but not tmpfs.
51759         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
51760         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
51761         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
51762         (fs_handles_readdir_ordered_dirents_efficiently): New function.
51763         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
51764         (fts_build): Set the stat.st_ino member from D_INO.
51765         If it is likely to be useful, sort dirent entries on inode number.
51766
51767         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
51768         and the struct statfs.f_type member.
51769         * modules/fts (Depends-on): Add d-ino.
51770
51771 2008-09-26  Bruno Haible  <bruno@clisp.org>
51772
51773         * modules/sigpipe-die (Depends-on): Add sigpipe.
51774
51775         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
51776         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
51777         and GNULIB_STDIO_H_SIGPIPE are set.
51778         * lib/stdio-write.c: New file.
51779         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
51780         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51781         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51782         REPLACE_STDIO_WRITE_FUNCS.
51783         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
51784         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51785         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51786         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51787         * modules/stdio (Files): Add lib/stdio-write.c.
51788         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
51789         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51790         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51791         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51792         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
51793         REPLACE_FPRINTF_POSIX.
51794         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
51795         REPLACE_PRINTF_POSIX.
51796         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
51797         REPLACE_VFPRINTF_POSIX.
51798         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
51799         REPLACE_VPRINTF_POSIX.
51800         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
51801         SIGPIPE issue.
51802         * doc/posix-functions/fputc.texi: Likewise.
51803         * doc/posix-functions/fputs.texi: Likewise.
51804         * doc/posix-functions/fwrite.texi: Likewise.
51805         * doc/posix-functions/printf.texi: Likewise.
51806         * doc/posix-functions/putc.texi: Likewise.
51807         * doc/posix-functions/putchar.texi: Likewise.
51808         * doc/posix-functions/puts.texi: Likewise.
51809         * doc/posix-functions/vfprintf.texi: Likewise.
51810         * doc/posix-functions/vprintf.texi: Likewise.
51811
51812         * modules/safe-write (Depends-on): Add write.
51813
51814         * modules/sigpipe-tests: New file.
51815         * tests/test-sigpipe.c: New file.
51816         * tests/test-sigpipe.sh: New file.
51817
51818         * modules/write: New file.
51819         * lib/unistd.in.h: Include <sys/types.h>.
51820         (write): New declaration.
51821         * lib/write.c: New file.
51822         * m4/write.m4: New file.
51823         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51824         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
51825         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
51826         GNULIB_WRITE, REPLACE_WRITE.
51827         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
51828         and the SIGPIPE issue.
51829
51830         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
51831         (raise): New declaration.
51832         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
51833         (ext_signal): New function.
51834         (rpl_raise): New function.
51835         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51836         GNULIB_SIGNAL_H_SIGPIPE.
51837         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
51838         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
51839
51840         * modules/sigpipe: New file.
51841         * m4/sigpipe.m4: New file.
51842
51843 2008-09-25  Derek Price  <derek@ximbiot.com>
51844             Bruno Haible  <bruno@clisp.org>
51845
51846         * gnulib-tool (func_import): Report all license incompatibilities, not
51847         just the first one.
51848
51849 2008-09-25  Bruno Haible  <bruno@clisp.org>
51850
51851         * gnulib-tool (func_import): When computing the edits, consider not
51852         only the Makefile.ams that exist but also those that will be generated.
51853
51854 2008-09-25  Simon Josefsson  <simon@josefsson.org>
51855
51856         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
51857         fixes gnulib-tool --test warning about duplicate dependency.
51858
51859 2008-09-25  Bruno Haible  <bruno@clisp.org>
51860
51861         * gnulib-tool: Don't ask the user to perform edits in the generated
51862         Makefile.ams.
51863         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
51864         apply to the Makefile.am being generated.
51865         (func_emit_tests_Makefile_am): Execute edits that apply to the
51866         Makefile.am being generated.
51867         (func_import): Setup list of Makefile.am edits before emitting the
51868         Makefile.ams, not at the end.
51869         (func_create_testdir): Update.
51870         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51871
51872 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51873
51874         * gnulib-tool (func_import): Store the --tests-base option in the
51875         comment in gnulib-cache.m4.
51876
51877 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
51878
51879         * NEWS: Document increased portability that sys_select now provides.
51880
51881         * lib/sys_select.in.h: Install select wrapper.
51882         * lib/sys_socket.in.h: Use more descriptive name when there is no
51883         select wrapper.
51884         * lib/winsock-select.c: New.
51885         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
51886         Require gl_HEADER_SYS_SOCKET.
51887         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
51888         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
51889         * tests/test-sys_select.c: Add functional tests.
51890
51891 2008-09-24  Eric Blake  <ebb9@byu.net>
51892
51893         open, fopen: close fd leak in last patch
51894         * lib/open.c (rpl_open): Close fd before returning error.
51895         * lib/fopen.c (rpl_fopen): Close fd before returning error.
51896         * doc/posix-functions/open.texi (open): Document that Irix also
51897         has the bug.
51898         * doc/posix-functions/fopen.texi (fopen): Likewise.
51899         Reported by Paolo Bonzini.
51900
51901 2008-09-24  Bruno Haible  <bruno@clisp.org>
51902
51903         Ensure that a filename ending in a slash cannot be used to access a
51904         non-directory.
51905         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
51906         to check whether it's really a directory.
51907         * lib/fopen.c: Include fcntl.h, unistd.h.
51908         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
51909         and fdopen().
51910         * modules/fopen (Depends-on): Add unistd.
51911         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
51912         * tests/test-fopen.c (main): Likewise.
51913         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
51914         * doc/posix-functions/fopen.texi: Likewise.
51915         Reported by Eric Blake.
51916
51917 2008-09-23  Eric Blake  <ebb9@byu.net>
51918
51919         c-stack: avoid compiler optimizations when provoking overflow
51920         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
51921         recursion harder to optimize, to ensure a stack overflow occurs.
51922         * tests/test-c-stack.c (recurse): Likewise.
51923         Borrowed from libsigsegv.
51924
51925         c-stack: work around Irix sigaltstack bug
51926         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
51927         whether sigaltstack uses wrong end of stack_t (copied in part from
51928         libsigsegv).
51929         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
51930         Irix bug, without requiring an over-allocation.
51931         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
51932         bug.
51933
51934         fopen: document mingw bug on directories
51935         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
51936         not allowing a stream visiting a directory, even though reading
51937         from such a stream is not portable.
51938
51939 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51940
51941         * lib/poll.c: Rewrite.
51942         * modules/poll: Depend on alloca.
51943
51944 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51945
51946         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
51947         instead define prototypes for a full set of wrappers.  Ensure
51948         that Cygwin does not use the compatibility code, which is only
51949         for MinGW.
51950         * lib/winsock.c: New.
51951         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
51952         * modules/sys_socket: Add lib/winsock.c.
51953
51954         * modules/poll-tests: Add errno and perror.
51955         * tests/test-poll.c: Use ioctl, not ioctlsocket.
51956
51957 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51958
51959         * tests/test-poll.c: Downgrade minimum needed Winsock version.
51960
51961 2008-09-23  Bruno Haible  <bruno@clisp.org>
51962
51963         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
51964         * doc/glibc-functions/*: Likewise.
51965
51966 2008-09-23  Simon Josefsson  <simon@josefsson.org>
51967
51968         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
51969         success.
51970
51971 2008-09-22  Eric Blake  <ebb9@byu.net>
51972             Bruno Haible  <bruno@clisp.org>
51973
51974         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
51975         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
51976         supply %A but mishandle pseudo-NaN.
51977         Reported by Simon Josefsson.
51978
51979 2008-09-21  Bruno Haible  <bruno@clisp.org>
51980
51981         * tests/test-lock.c (main): Tweak skip message.
51982         * tests/test-tls.c (main): Likewise.
51983
51984 2008-09-21  Bruno Haible  <bruno@clisp.org>
51985
51986         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
51987         whether 'struct sigaction' has sa_sigaction here...
51988         (gl_PREREQ_SIG_HANDLER_H): ... not here.
51989         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
51990
51991 2008-09-21  Bruno Haible  <bruno@clisp.org>
51992
51993         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
51994         section.
51995         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
51996         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
51997         the new section.
51998         (Support for obsolete systems lacking POSIX:2001): New section.
51999         (String handling <string.h>): Move strdup to the new section.
52000         Suggested by Simon Josefsson and Paolo Bonzini.
52001
52002 2008-09-21  Bruno Haible  <bruno@clisp.org>
52003
52004         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
52005         exponents in %e and %g results on 'long double'. Needed for mingw's
52006         improved *printf functions.
52007         * tests/test-vasprintf-posix.c (test_function): Likewise.
52008         * tests/test-snprintf-posix.h (test_function): Likewise.
52009         * tests/test-sprintf-posix.h (test_function): Likewise.
52010         Reported by Eric Blake.
52011
52012 2008-09-21  Bruno Haible  <bruno@clisp.org>
52013
52014         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
52015         * tests/test-sprintf-posix.h (test_function): Likewise.
52016
52017 2008-09-21  Bruno Haible  <bruno@clisp.org>
52018
52019         * modules/getpass (Depends-on): Add strdup-posix.
52020
52021         New module 'strdup-posix'.
52022         * modules/strdup-posix: New file.
52023         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
52024         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
52025         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
52026         REPLACE_STRDUP.
52027         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
52028         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
52029         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52030         strdup-posix.
52031
52032         * modules/strdup (Depends-on): Remove malloc-posix.
52033
52034 2008-09-20  Bruno Haible  <bruno@clisp.org>
52035
52036         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
52037         Wildenhues.
52038
52039 2008-09-20  Bruno Haible  <bruno@clisp.org>
52040
52041         Ensure that wint_t gets defined on IRIX 5.3.
52042         * lib/wchar.in.h (wint_t): Define if not defined by the system.
52043         * lib/wctype.in.h (wint_t): Likewise.
52044         (__wctype_wint_t): Remove type.
52045         (isw*): Use wint_t instead of __wctype_wint_t.
52046         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
52047         * modules/wchar (Files): Add m4/wint_t.m4.
52048         (Makefile.am): Substitute HAVE_WINT_T.
52049         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
52050         * tests/test-wctype.c: Check that wint_t is defined.
52051         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
52052         * doc/posix-headers/wctype.texi: Likewise.
52053         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52054
52055 2008-09-18  Bruno Haible  <bruno@clisp.org>
52056
52057         * gnulib-tool (func_exit): Update comment.
52058
52059 2008-09-18  Simon Josefsson  <simon@josefsson.org>
52060
52061         * modules/getaddrinfo (Depends-on): Remove strdup, this module
52062         assumes strdup exists and does not depend on strdup to return
52063         ENOMEM on out of memory conditions.
52064
52065 2008-09-18  Bruno Haible  <bruno@clisp.org>
52066
52067         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
52068         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
52069         digits for the exponent.
52070
52071 2008-09-18  Jim Meyering  <meyering@redhat.com>
52072             Bruno Haible  <bruno@clisp.org>
52073
52074         * lib/vasnprintf.c (decimal_point_char): Define also if
52075         NEED_PRINTF_INFINITE_LONG_DOUBLE.
52076
52077 2008-09-16  Bruno Haible  <bruno@clisp.org>
52078         and Eric Blake  <ebb9@byu.net>
52079
52080         vasnprintf: support Irix 5.3
52081         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
52082         that mishandle long double infinity.
52083         Reported by Tom G. Christensen.
52084
52085 2008-09-16  Bruno Haible  <bruno@clisp.org>
52086
52087         * doc/glibc-functions/scandir.texi: Mention the function is missing on
52088         Solaris 9.
52089         * doc/glibc-functions/alphasort.texi: Likewise.
52090         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
52091
52092 2008-09-16  Jim Meyering  <meyering@redhat.com>
52093
52094         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
52095         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
52096         a umask modification leak out of a subshell.  Otherwise, the
52097         opensolaris /bin/sh would be accepted and thus cause unwarranted
52098         failures in the coreutils test suite.
52099
52100 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
52101
52102         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
52103         to succeed.
52104
52105 2008-09-16  Jim Meyering  <meyering@redhat.com>
52106
52107         avoid spurious test failure when library is built without ACL support
52108         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
52109         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
52110         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
52111         * tests/test-copy-acl.sh: Likewise.
52112
52113 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52114
52115         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
52116         based on character occurrence counts.
52117
52118 2008-09-15  Eric Blake  <ebb9@byu.net>
52119
52120         tests: avoid some compiler warnings
52121         * tests/test-memchr.c (main): Pass NULL indirectly.
52122         * tests/test-closein.c (main): Avoid unused variable.
52123
52124 2008-09-15  Bruno Haible  <bruno@clisp.org>
52125
52126         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
52127         are missing on OpenBSD 4.0 individually.
52128         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52129
52130 2008-09-15  Bruno Haible  <bruno@clisp.org>
52131
52132         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
52133         * doc/posix-functions/strerror.texi: Mention also Cygwin.
52134         * doc/posix-functions/perror.texi: Likewise.
52135         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
52136         is missing.
52137         Reported by Eric Blake.
52138
52139         * lib/errno.in.h: Use replacement values >= 2000.
52140         Reported by Eric Blake.
52141
52142 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52143
52144         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
52145         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
52146         limit.
52147         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
52148         compareseq was aborted.
52149
52150 2008-09-14  Bruno Haible  <bruno@clisp.org>
52151
52152         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
52153         yvec_edit_count.
52154         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
52155         (fstrcmp_bounded): Simplify result computation accordingly.
52156
52157 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52158
52159         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
52160         (fstrcmp): Define in terms of fstrcmp_bounded.
52161         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
52162         lower_bound argument.
52163         Return quickly if the result is certainly < lower_bound.
52164         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
52165
52166 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52167
52168         * lib/diffseq.h (EARLY_ABORT): New macro.
52169         (compareseq): Change return type to bool. Return true when EARLY_ABORT
52170         evaluates to true.
52171
52172 2008-09-14  Bruno Haible  <bruno@clisp.org>
52173
52174         * modules/perror-tests: New file.
52175         * tests/test-perror.sh: New file.
52176         * tests/test-perror.c: New file.
52177
52178         New module 'perror'.
52179         * lib/stdio.in.h (perror): New declaration.
52180         * lib/perror.c: New file.
52181         * m4/perror.m4: New file.
52182         * modules/perror: New file.
52183         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
52184         * doc/posix-functions/perror.texi: Mention the perror module.
52185         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
52186         REPLACE_PERROR.
52187         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
52188         REPLACE_PERROR.
52189
52190 2008-09-14  Bruno Haible  <bruno@clisp.org>
52191
52192         * modules/stdio (Makefile.am): Reorder to match the order in
52193         lib/stdio.in.h.
52194         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
52195
52196 2008-09-13  Bruno Haible  <bruno@clisp.org>
52197
52198         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
52199
52200 2008-09-13  Bruno Haible  <bruno@clisp.org>
52201
52202         Extend strerror to cover the added errno values.
52203         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
52204         (rpl_strerror): Provide error messages for the added errno values and
52205         for the WSA* values.
52206         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
52207         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
52208         strerror.
52209         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
52210         * modules/strerror (Depends-on): Add errno.
52211         * doc/posix-functions/strerror.texi: Document the change.
52212         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
52213         and EOVERFLOW.
52214
52215 2008-09-13  Bruno Haible  <bruno@clisp.org>
52216
52217         * modules/EOVERFLOW: Remove file.
52218         * m4/eoverflow.m4: Remove file.
52219         * modules/EOVERFLOW-tests: Remove file.
52220         * tests/test-EOVERFLOW.c: Remove file.
52221         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
52222         * modules/ftell (Depends-on): Likewise.
52223         * modules/getdelim (Depends-on): Likewise.
52224         * modules/getugroups (Depends-on): Likewise.
52225         * modules/poll (Depends-on): Likewise.
52226         * modules/snprintf (Depends-on): Likewise.
52227         * modules/sprintf-posix (Depends-on): Likewise.
52228         * modules/vasnprintf (Depends-on): Likewise.
52229         * modules/vasprintf (Depends-on): Likewise.
52230         * modules/vfprintf-posix (Depends-on): Likewise.
52231         * modules/vsnprintf (Depends-on): Likewise.
52232         * modules/vsprintf-posix (Depends-on): Likewise.
52233         * modules/xvasprintf (Depends-on): Likewise.
52234         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
52235         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
52236         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
52237         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
52238         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
52239         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
52240         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
52241         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
52242         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
52243         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
52244         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
52245         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
52246         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
52247         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
52248         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
52249         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
52250         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
52251         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
52252         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
52253         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
52254         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
52255         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
52256         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
52257         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
52258         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
52259         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
52260         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
52261         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
52262         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
52263         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
52264         * MODULES.html.sh: Remove EOVERFLOW.
52265         * NEWS: Mention the change.
52266
52267 2008-09-13  Bruno Haible  <bruno@clisp.org>
52268
52269         * modules/errno-tests: New file.
52270         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52271
52272         * lib/errno.in.h: New file.
52273         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52274         * modules/errno: New file.
52275         * doc/posix-headers/errno.texi: Update documentation.
52276         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52277
52278 2008-09-13  Bruno Haible  <bruno@clisp.org>
52279
52280         * tests/test-poll.c: Use #if for native Windows, rather than testing
52281         __MSVCRT__.
52282
52283 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52284             Bruno Haible  <bruno@clisp.org>
52285
52286         * lib/glob.c: Don't include <pwd.h> on native Windows.
52287         (WINDOWS32): New macro.
52288         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
52289
52290 2008-09-13  Bruno Haible  <bruno@clisp.org>
52291
52292         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
52293         (ETIMEDOUT): Remove macro.
52294         (glthread_cond_timedwait_multithreaded): New declaration.
52295         (glthread_cond_timedwait): Use it.
52296         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
52297         (glthread_cond_timedwait_multithreaded): New function.
52298
52299 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52300
52301         * modules/poll-tests: Do not check for io.h.
52302         * tests/test-poll.c: Check for __MSVCRT__ instead.
52303
52304 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52305
52306         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
52307         * modules/poll-tests: Add inet_pton, stdbool, sockets.
52308         * tests/test-poll.c: Use them.  Use _pipe on Windows.
52309
52310 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52311
52312         * modules/poll-tests: New.
52313         * tests/test-poll.c: New.
52314
52315 2008-09-12  Eric Blake  <ebb9@byu.net>
52316
52317         frexp: test for NetBSD failure on -0.0
52318         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
52319         not all, bugs from NetBSD 3.0 have been fixed.
52320         * doc/posix-functions/frexp.texi (frexp): Document bug.
52321         Reported by Thomas Klausner.
52322
52323         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
52324         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
52325         literal -0.0.
52326         Reported by Jonathan C. Patschke <jp@centtech.com>.
52327
52328 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52329
52330         * lib/glthread/cond.h: Use dummy implementation also if
52331         USE_WIN32_THREADS.
52332
52333 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52334
52335         * modules/fnmatch-posix (License): Change to LGPLv2+.
52336         * modules/fnmatch-gnu (License): Likewise.
52337
52338 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52339
52340         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
52341
52342 2008-09-11  Jim Meyering  <meyering@redhat.com>
52343
52344         * users.txt: Add gtk-vnc.
52345
52346 2008-09-08  Simon Josefsson  <simon@josefsson.org>
52347
52348         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
52349         rotate amounts.
52350
52351         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
52352         required for 16-bit and 8-bit rotates.
52353         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
52354         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
52355         UINT8_MAX instead of hard-coded constants.
52356         Suggested by Paul Eggert.
52357
52358 2008-09-07  Bruno Haible  <bruno@clisp.org>
52359
52360         * tests/test-striconveh.c (main): Check behaviour when converting from
52361         UTF-7.
52362
52363         Make striconveh work better with stateful encodings.
52364         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
52365         that iconv does not increment the inptr when returning -1/EINVAL.
52366
52367 2008-09-07  Bruno Haible  <bruno@clisp.org>
52368
52369         * build-aux/config.rpath: Update according to libtool-2.2.6.
52370         * build-aux/config.libpath: Likewise.
52371
52372 2008-09-06  Bruno Haible  <bruno@clisp.org>
52373
52374         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
52375         * lib/freadptr.c (freadptr): Likewise.
52376         * lib/freadseek.c (freadptrinc): Likewise.
52377         Reported by Simon Josefsson.
52378
52379 2008-09-06  Bruno Haible  <bruno@clisp.org>
52380
52381         * modules/freadptr (License): Change to LGPLv2+.
52382         * modules/freadseek (License): Likewise.
52383         Suggested by Eric Blake.
52384
52385         * modules/memchr2 (License): Change to LGPLv2+.
52386         Approved by Eric Blake.
52387
52388 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52389             Bruno Haible  <bruno@clisp.org>
52390
52391         Make gnulib-tool work with native 'sed' on AIX.
52392         * gnulib-tool (sed_noop): New variable.
52393         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
52394         func_add_or_update, func_create_testdir): Use it to initialize sed
52395         script variables.
52396         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52397
52398 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
52399             Bruno Haible  <bruno@clisp.org>
52400
52401         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
52402         also works after #include directives.
52403
52404 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
52405
52406         getdate.y: reject an out-of-range timezone value
52407         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
52408         the range [-24...+24].  When specified with only one or two digits,
52409         * tests/test-getdate.c: Tests for the fix.
52410         * doc/getdate.texi: Document this change.
52411
52412 2008-09-03  Bruno Haible  <bruno@clisp.org>
52413
52414         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
52415
52416 2008-09-02  Simon Josefsson  <simon@josefsson.org>
52417
52418         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
52419         <bruce.korb@gmail.com> with ideas from Ben Pfaff
52420         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
52421         Blake <ebb9@byu.net>.
52422
52423         * tests/test-bitrotate.c: Add more test vectors.
52424
52425 2008-09-02  Eric Blake  <ebb9@byu.net>
52426
52427         vasnprintf-posix: handle large precision via %.*d
52428         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
52429         when handling it ourselves.
52430         * tests/test-vasnprintf-posix.c (test_function): Add test.
52431         * tests/test-snprintf-posix.h (test_function): Likewise.
52432         * tests/test-sprintf-posix.h (test_function): Likewise.
52433         * tests/test-vasprintf-posix.c (test_function): Likewise.
52434         Reported by Alain Guibert.
52435
52436 2008-09-01  Eric Blake  <ebb9@byu.net>
52437
52438         c-stack: make configure-time check more robust
52439         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
52440         successful sigaction call.
52441         Reported by Tom G. Christensen.
52442
52443 2008-09-01  Bruno Haible  <bruno@clisp.org>
52444
52445         New module 'findprog-lgpl'.
52446         * modules/findprog-lgpl: New file.
52447         * lib/findprog-lgpl.c: New file.
52448         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
52449         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
52450         to decide whether to use strdup or xstrdup, concatenated_filename or
52451         xconcatenated_filename.
52452
52453 2008-09-01  Bruno Haible  <bruno@clisp.org>
52454
52455         Split module 'concat-filename' into 'concat-filename' (LGPL) and
52456         'xconcat-filename' (GPL).
52457         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
52458         (License): Change to LGPLv2+.
52459         * modules/xconcat-filename: New file.
52460         * lib/concat-filename.h (concatenated_filename): Change specification.
52461         (xconcatenated_filename): New declaration.
52462         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
52463         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
52464         memory situations.
52465         * lib/xconcat-filename.c: New file.
52466         * NEWS: Mention the change.
52467         * lib/findprog.c: Include concat-filename.h, not filename.h.
52468         (find_in_path): Use xconcatenated_filename instead of
52469         concatenated_filename.
52470         * lib/javacomp.c: Include concat-filename.h, not filename.h.
52471         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52472         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52473         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52474         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
52475         instead of concatenated_filename.
52476         * lib/javaexec.c: Include concat-filename.h, not filename.h.
52477         (execute_java_class): Use xconcatenated_filename instead of
52478         concatenated_filename.
52479         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
52480         * modules/javacomp (Depends-on): Likewise.
52481         * modules/javaexec (Depends-on): Likewise.
52482
52483 2008-09-01  Bruno Haible  <bruno@clisp.org>
52484
52485         Split module 'filename' into 'filename' and 'concat-filename'.
52486         * modules/filename: Keep only lib/filename.h.
52487         (License): Change to LGPLv2+.
52488         * modules/concat-filename: New file, extracted from modules/filename.
52489         * lib/filename.h (concatenated_filename): Remove declaration.
52490         * lib/concat-filename.h: New file, extracted from lib/filename.h.
52491         * lib/concat-filename.c: Include concat-filename.h.
52492         * NEWS: Mention the change.
52493
52494 2008-09-01  Simon Josefsson  <simon@josefsson.org>
52495
52496         * lib/bitrotate.h (rotl8, rotr8): Add.
52497
52498         * modules/bitrotate (configure.ac): Need
52499         AC_REQUIRE([AC_C_INLINE]).
52500         (Description): Mention stdint.h.  Reported by Bruno Haible
52501         <bruno@clisp.org>.
52502
52503         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
52504         Paolo Bonzini <bonzini@gnu.org>.
52505
52506 2008-08-31  Bruno Haible  <bruno@clisp.org>
52507
52508         Assume Solaris specific bi-arch conventions on Solaris systems.
52509         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
52510         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
52511         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
52512         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
52513         like acl_libdirstem.
52514         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
52515         acl_libdirstem.
52516         * NEWS: Mention the change.
52517         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
52518
52519 2008-08-31  Jim Meyering  <meyering@redhat.com>
52520
52521         * lib/strftime.h: Add comments describing the two added arguments.
52522
52523         remove duplicate #include directives
52524         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
52525         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
52526
52527 2008-08-31  Bruno Haible  <bruno@clisp.org>
52528
52529         New module 'sigpipe-die'.
52530         * modules/sigpipe-die: New file.
52531         * lib/sigpipe-die.h: New file.
52532         * lib/sigpipe-die.c: New file.
52533         * MODULES.html.sh (Signal handling): Add sigpipe-die.
52534
52535 2008-08-31  Bruno Haible  <bruno@clisp.org>
52536
52537         Don't override previously installed signal handlers.
52538         * lib/fatal-signal.c (saved_sigactions): New variable.
52539         (uninstall_handlers): Reset the signal to the saved handler, not
52540         to SIG_DFL (except when ignored).
52541         (install_handlers): Save the previous handlers.
52542
52543 2008-08-30  Bruno Haible  <bruno@clisp.org>
52544
52545         * gnulib-tool (func_reset_sigpipe): New function.
52546         (func_get_automake_snippet, func_modules_transitive_closure,
52547         func_import): Invoke it before a join command that reads from stdin,
52548         to avoid "echo: write error: Broken pipe" error messages on stderr.
52549         Reported by Sam Steingold <sds@gnu.org>.
52550
52551 2008-08-30  Bruno Haible  <bruno@clisp.org>
52552
52553         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
52554         Code copied from m4/open.m4.
52555         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
52556         access and the filename ends in a slash. Code copied from lib/open.c.
52557         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
52558         * tests/test-fopen.c (main): Check against bug with trailing slash.
52559
52560 2008-08-29  Bruno Haible  <bruno@clisp.org>
52561
52562         Avoid some "gcc -pedantic" warnings.
52563         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
52564         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
52565         * lib/dirent.in.h: Likewise.
52566         * lib/fcntl.in.h: Likewise.
52567         * lib/float.in.h: Likewise.
52568         * lib/iconv.in.h: Likewise.
52569         * lib/inttypes.in.h: Likewise.
52570         * lib/locale.in.h: Likewise.
52571         * lib/math.in.h: Likewise.
52572         * lib/netinet_in.in.h: Likewise.
52573         * lib/search.in.h: Likewise.
52574         * lib/signal.in.h: Likewise.
52575         * lib/stdarg.in.h: Likewise.
52576         * lib/stdint.in.h: Likewise.
52577         * lib/stdio.in.h: Likewise.
52578         * lib/stdlib.in.h: Likewise.
52579         * lib/string.in.h: Likewise.
52580         * lib/strings.in.h: Likewise.
52581         * lib/sys_select.in.h: Likewise.
52582         * lib/sys_socket.in.h: Likewise.
52583         * lib/sys_stat.in.h: Likewise.
52584         * lib/sys_time.in.h: Likewise.
52585         * lib/sysexits.in.h: Likewise.
52586         * lib/time.in.h: Likewise.
52587         * lib/unistd.in.h: Likewise.
52588         * lib/wchar.in.h: Likewise.
52589         * lib/wctype.in.h: Likewise.
52590         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
52591         * modules/fchdir (Makefile.am): Likewise.
52592         * modules/fcntl (Makefile.am): Likewise.
52593         * modules/float (Makefile.am): Likewise.
52594         * modules/iconv_open (Makefile.am): Likewise.
52595         * modules/inttypes (Makefile.am): Likewise.
52596         * modules/locale (Makefile.am): Likewise.
52597         * modules/math (Makefile.am): Likewise.
52598         * modules/netinet_in (Makefile.am): Likewise.
52599         * modules/search (Makefile.am): Likewise.
52600         * modules/signal (Makefile.am): Likewise.
52601         * modules/stdarg (Makefile.am): Likewise.
52602         * modules/stdint (Makefile.am): Likewise.
52603         * modules/stdio (Makefile.am): Likewise.
52604         * modules/stdlib (Makefile.am): Likewise.
52605         * modules/string (Makefile.am): Likewise.
52606         * modules/strings (Makefile.am): Likewise.
52607         * modules/sys_select (Makefile.am): Likewise.
52608         * modules/sys_socket (Makefile.am): Likewise.
52609         * modules/sys_stat (Makefile.am): Likewise.
52610         * modules/sys_time (Makefile.am): Likewise.
52611         * modules/sysexits (Makefile.am): Likewise.
52612         * modules/time (Makefile.am): Likewise.
52613         * modules/unistd (Makefile.am): Likewise.
52614         * modules/wchar (Makefile.am): Likewise.
52615         * modules/wctype (Makefile.am): Likewise.
52616         Reported by Reuben Thomas <rrt@sc3d.org>.
52617
52618 2008-08-29  Bruno Haible  <bruno@clisp.org>
52619
52620         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
52621         any more.
52622
52623 2008-08-29  Simon Josefsson  <simon@josefsson.org>
52624
52625         * MODULES.html.sh (Misc): Add bitrotate.
52626
52627         * modules/bitrotate: New file.
52628
52629         * lib/bitrotate.h: New file.
52630
52631         * modules/bitrotate-tests: New file.
52632
52633         * tests/test-bitrotate.c: New file.
52634
52635         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
52636         on the bitrotate module.
52637
52638         * lib/arctwo.c: Use new bitrotate module.
52639
52640 2008-08-29  Jim Meyering  <meyering@redhat.com>
52641
52642         bootstrap: merge changes from coreutils
52643         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
52644         of copied files.  Remove a kludge, now that this is fixed.
52645         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
52646         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
52647         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
52648
52649 2008-08-29  Bruno Haible  <bruno@clisp.org>
52650
52651         * MODULES.html.sh: Remove --cvs-urls option.
52652
52653 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
52654
52655         maint.mk: adjust to file name change
52656         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
52657
52658 2008-08-28  Jim Meyering  <meyering@redhat.com>
52659
52660         * modules/getndelim2 (License): Relicense to LGPLv2+.
52661         Approved by Richard Stallman for the version of 1995, and by
52662         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
52663
52664 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
52665
52666         * lib/getdelim.c (flockfile, funlockfile): Make all of them
52667         dummy if one is not available.  Do not touch them if
52668         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
52669         (getc_maybe_unlocked): New.
52670         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
52671
52672 2008-08-26  Eric Blake  <ebb9@byu.net>
52673
52674         doc/INSTALL: resync from autoconf
52675         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
52676         (INSTALL_PRELUDE): Delete; this is done more efficiently by
52677         moving...
52678         * install.texi [!autoconf]: ...here.  Resync from autoconf.
52679         * INSTALL: Regenerate.
52680         * INSTALL.ISO: New file.
52681         * INSTALL.UTF-8: Likewise.
52682
52683 2008-08-26  Jim Meyering  <meyering@redhat.com>
52684
52685         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
52686         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
52687         these definitions conditional, so that they may be overridden, too.
52688
52689 2008-08-26  Bruno Haible  <bruno@clisp.org>
52690
52691         Generate INSTALL file variants with prettier quotes.
52692         * doc/Makefile (INSTALL_PRELUDE): New macro.
52693         (INSTALL): Use it.
52694         (INSTALL.ISO, INSTALL.UTF-8): New rules.
52695
52696 2008-08-26  Bruno Haible  <bruno@clisp.org>
52697
52698         Run makeinfo in an English locale.
52699         * doc/Makefile (MAKEINFO): New variable.
52700
52701 2008-08-26  Bruno Haible  <bruno@clisp.org>
52702
52703         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
52704         Suggested by Eric Blake.
52705
52706 2008-08-25  Bruno Haible  <bruno@clisp.org>
52707
52708         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
52709
52710 2008-08-25  Eric Blake  <ebb9@byu.net>
52711
52712         c-stack: test that stack overflow can be caught
52713         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
52714         that platform allows handling stack overflow; at least OS/2 EMX
52715         has sigaltstack, but crashes before transferring control to
52716         handler on stack overflow.
52717         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
52718         check for HAVE_STACK_OVERFLOW_HANDLING.
52719         Reported by Elbert Pol.
52720
52721 2008-08-25  Bruno Haible  <bruno@clisp.org>
52722
52723         * doc/posix-functions/strftime.texi: Fix description of strftime
52724         module.
52725
52726 2008-08-24  Bruno Haible  <bruno@clisp.org>
52727
52728         * tests/uniwidth/test-uc_width2.c: New file.
52729         * tests/uniwidth/test-uc_width2.sh: New file.
52730         * modules/uniwidth/width-tests (Files): Add the new files.
52731         (TESTS): Add uniwidth/test-uc_width2.sh.
52732         (TESTS_ENVIRONMENT): New variable.
52733         (check_PROGRAMS): Add test-uc_width2.
52734         (test_uc_width2_SOURCES): New variable.
52735
52736         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
52737         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
52738         not 0x00AB.
52739         Reported by Alexander V. Lukyanov <lav@netis.ru>.
52740
52741 2008-08-22  Eric Blake  <ebb9@byu.net>
52742
52743         test-lock, test-tls: mention why a test is skipped
52744         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
52745         skipped.
52746         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
52747
52748         count-one-bits: relax license
52749         * modules/count-one-bits (License): Relicense to LGPLv2+.
52750         Suggested by Ludovic Courtès, approved by Ben Pfaff.
52751
52752 2008-08-22  Andreas Schwab  <schwab@suse.de>
52753
52754         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
52755         Remove spurious space in assignment.
52756
52757 2008-08-21  Simon Josefsson  <simon@josefsson.org>
52758
52759         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
52760         Paul Eggert <eggert@CS.UCLA.EDU>.
52761
52762 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
52763
52764         * modules/gettext: Add m4/threadlib.m4.
52765
52766 2008-08-19  Eric Blake  <ebb9@byu.net>
52767
52768         test-c-stack: fix compilation failure on FreeBSD 5.0
52769         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
52770         headers before <sys/resource.h>.
52771         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
52772         the bug.
52773         Reported by Nelson H. F. Beebe.
52774
52775         strverscmp: migrate from "strverscmp.h" to <string.h>
52776         * modules/string (Makefile.am): Add new hooks.
52777         * modules/strverscmp (Files): Remove strverscmp.h.
52778         (Depends-on): Add string.
52779         (configure.ac): Add indicator.
52780         (Include): Mention new header.
52781         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
52782         defaults.
52783         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
52784         results.
52785         * lib/strverscmp.h: Delete.
52786         * lib/string.in.h (strverscmp): Provide declaration, when needed.
52787         * tests/test-strverscmp.c (includes): Adjust client.
52788         * lib/check-version.c (includes): Likewise.
52789         * NEWS: Document the change.
52790
52791         strverscmp: add unit test
52792         * modules/strverscmp-tests: New file.
52793         * tests/test-strverscmp.c: Likewise.
52794
52795 2008-08-19  Simon Josefsson  <simon@josefsson.org>
52796
52797         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
52798         regarding Windows crypto stuff, from Mono.
52799
52800 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
52801
52802         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
52803         if present, for intel RND.  Return error on failures.
52804
52805 2008-08-18  Ben Pfaff  <blp@gnu.org>
52806
52807         gitlog-to-changelog: give better diagnostic for failed pipe-open
52808         * build-aux/gitlog-to-changelog: Improve error message: suggest
52809         that the version of Git may be too old.
52810
52811 2008-08-18  Simon Josefsson  <simon@josefsson.org>
52812
52813         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
52814         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
52815
52816 2008-08-18  Bruno Haible  <bruno@clisp.org>
52817
52818         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
52819         pthread_in_use().
52820
52821 2008-08-18  Bruno Haible  <bruno@clisp.org>
52822
52823         * lib/glthread/threadlib.c: Include <pthread.h>.
52824
52825 2008-08-18  Bruno Haible  <bruno@clisp.org>
52826
52827         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
52828         glthread_recursive_lock_* macros.
52829         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
52830         Fix syntax error.
52831
52832 2008-08-18  Bruno Haible  <bruno@clisp.org>
52833
52834         * lib/glthread/thread.c: Avoid forcing a context switch right after
52835         thread creation.
52836
52837 2008-08-17  Bruno Haible  <bruno@clisp.org>
52838
52839         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
52840         * lib/glthread/thread.h: Provide Win32 specific implementation.
52841         * modules/thread (Files): Add lib/glthread/thread.c.
52842         (Depends-on): Add lock.
52843         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
52844
52845 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52846
52847         New module 'yield'.
52848         * modules/yield: New file.
52849         * lib/glthread/yield.h: New file.
52850         * m4/yield.m4: New file.
52851         * MODULES.html.sh (Multithreading): Add yield.
52852
52853 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52854
52855         New module 'thread'.
52856         * modules/thread: New file.
52857         * lib/glthread/thread.h: New file.
52858         * m4/thread.m4: New file.
52859         * MODULES.html.sh (Multithreading): Add thread.
52860
52861 2008-08-17  Bruno Haible  <bruno@clisp.org>
52862
52863         * lib/glthread/lock.h: Include <stdlib.h> always.
52864         * lib/glthread/tls.h: Likewise.
52865         * lib/glthread/cond.h: Likewise.
52866
52867 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52868
52869         New module 'cond'.
52870         * modules/cond: New file.
52871         * lib/glthread/cond.h: New file.
52872         * lib/glthread/cond.c: New file.
52873         * m4/cond.m4: New file.
52874         * MODULES.html.sh (Multithreading): Add cond.
52875
52876 2008-08-16  Eric Blake  <ebb9@byu.net>
52877
52878         c-stack: fix regression on Irix 5.3 from 2008-06-21
52879         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
52880         sa_sigaction...
52881         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
52882         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
52883         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
52884         * modules/signal (Makefile.am): Use the value.
52885         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
52886         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
52887         * doc/posix-headers/signal.texi (signal.h): Document this
52888         portability issue.
52889         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
52890         Reported by Tom G. Christensen.
52891
52892 2008-08-17  Bruno Haible  <bruno@clisp.org>
52893
52894         New module 'threadlib'.
52895         * modules/threadlib: New file.
52896         * lib/glthread/threadlib.c: New file, extracted from
52897         lib/glthread/lock.c.
52898         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
52899         functions.
52900         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
52901         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
52902         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
52903         macros.
52904         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
52905         (gl_DISABLE_THREADS): Remove macro.
52906         * modules/lock (Files): Remove build-aux/config.rpath.
52907         (Depends-on): Remove havelib. Add threadlib.
52908         (configure.ac-early): Remove section.
52909         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
52910         * modules/tls (Depends-on): Remove lock. Add threadlib.
52911         (Link): New section, copied from threadlib.
52912         * MODULES.html.sh (Multithreading): Add threadlib.
52913
52914 2008-08-14  Bruno Haible  <bruno@clisp.org>
52915
52916         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
52917         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
52918         glthread_rwlock_unlock, glthread_rwlock_destroy,
52919         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
52920         glthread_recursive_lock_destroy): Define as macros always.
52921         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
52922         glthread_lock_lock.
52923         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
52924         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
52925         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
52926         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
52927         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
52928         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
52929         (glthread_recursive_lock_lock_func): Renamed from
52930         glthread_recursive_lock_lock.
52931         (glthread_recursive_lock_unlock_func): Renamed from
52932         glthread_recursive_lock_unlock.
52933         (glthread_recursive_lock_destroy_func): Renamed from
52934         glthread_recursive_lock_destroy.
52935
52936 2008-08-14  Bruno Haible  <bruno@clisp.org>
52937
52938         * lib/glthread/lock.h: Renamed from lib/lock.h.
52939         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
52940         * lib/glthread/tls.h: Renamed from lib/tls.h.
52941         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
52942         * lib/fstrcmp.c: Update includes.
52943         * lib/strsignal.c: Update includes.
52944         * modules/lock (Files, Makefile.am): Update.
52945         (Include): Change to "glthread/lock.h".
52946         * modules/tls (Files, Makefile.am): Update.
52947         (Include): Change to "glthread/tls.h".
52948         * tests/test-lock.c: Update includes.
52949         * tests/test-tls.c: Update includes.
52950         * NEWS: Mention the renamed header files.
52951
52952 2008-08-11  Jim Meyering  <meyering@redhat.com>
52953
52954         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
52955
52956 2008-08-11  Eric Blake  <ebb9@byu.net>
52957
52958         test-c-stack: avoid C99-ism
52959         * tests/test-c-stack.c (main): Fix whitespace, move declaration
52960         before statement.
52961         Reported by Alain Guibert.
52962
52963 2008-08-10  Jim Meyering  <meyering@redhat.com>
52964
52965         ensure that return value of uinttostr et al are not ignored
52966         * lib/inttostr.h (__GNUC_PREREQ): Define.
52967         (__attribute_warn_unused_result__): Define.
52968         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
52969
52970 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
52971
52972         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
52973         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
52974
52975 2008-08-07  Jim Meyering  <meyering@redhat.com>
52976
52977         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
52978
52979         * modules/mkstemp (License): Relicense under LGPLv2+.
52980         * modules/tempname (License): Likewise.
52981
52982 2008-08-06  Bruno Haible  <bruno@clisp.org>
52983
52984         * lib/poll.c (poll): Further micro-optimization.
52985
52986 2008-08-06  Jim Meyering  <meyering@redhat.com>
52987
52988         inet_pton.c: use locale-independent tolower
52989         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
52990         (inet_pton6): Use c_tolower rather than tolower.
52991         * modules/inet_pton (Depends-on): Add c-ctype.
52992
52993 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
52994
52995         * lib/poll.c (poll): Avoid division when timeout is 0, cache
52996         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
52997
52998 2008-08-06  Jim Meyering  <meyering@redhat.com>
52999
53000         * modules/inet_pton (License): Relicense under LGPLv2+.
53001
53002 2008-08-03  Bruno Haible  <bruno@clisp.org>
53003
53004         Additional non-aborting API for lock and tls.
53005         * lib/lock.h: Include <errno.h>.
53006         (glthread_lock_init): New macro/function.
53007         (gl_lock_init): Define as wrapper around glthread_lock_init.
53008         (glthread_lock_lock): New macro/function.
53009         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
53010         (glthread_lock_unlock): New macro/function.
53011         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
53012         (glthread_lock_destroy): New macro/function.
53013         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
53014         (glthread_rwlock_init): New macro/function.
53015         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
53016         (glthread_rwlock_rdlock): New macro/function.
53017         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
53018         (glthread_rwlock_wrlock): New macro/function.
53019         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
53020         (glthread_rwlock_unlock): New macro/function.
53021         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
53022         (glthread_rwlock_destroy): New macro/function.
53023         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
53024         (glthread_recursive_lock_init): New macro/function.
53025         (gl_recursive_lock_init): Define as wrapper around
53026         glthread_recursive_lock_init.
53027         (glthread_recursive_lock_lock): New macro/function.
53028         (gl_recursive_lock_lock): Define as wrapper around
53029         glthread_recursive_lock_lock.
53030         (glthread_recursive_lock_unlock): New macro/function.
53031         (gl_recursive_lock_unlock): Define as wrapper around
53032         glthread_recursive_lock_unlock.
53033         (glthread_recursive_lock_destroy): New macro/function.
53034         (gl_recursive_lock_destroy): Define as wrapper around
53035         glthread_recursive_lock_destroy.
53036         (glthread_once): New macro/function.
53037         (gl_once): Define as wrapper around glthread_once.
53038         Update function declarations.
53039         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
53040         glthread_rwlock_init. Return error code.
53041         (glthread_rwlock_rdlock_multithreaded): Renamed from
53042         glthread_rwlock_rdlock. Return error code.
53043         (glthread_rwlock_wrlock_multithreaded): Renamed from
53044         glthread_rwlock_wrlock. Return error code.
53045         (glthread_rwlock_unlock_multithreaded): Renamed from
53046         glthread_rwlock_unlock. Return error code.
53047         (glthread_rwlock_destroy_multithreaded): Renamed from
53048         glthread_rwlock_destroy. Return error code.
53049         (glthread_recursive_lock_init_multithreaded): Renamed from
53050         glthread_recursive_lock_init. Return error code.
53051         (glthread_recursive_lock_lock_multithreaded): Renamed from
53052         glthread_recursive_lock_lock. Return error code.
53053         (glthread_recursive_lock_unlock_multithreaded): Renamed from
53054         glthread_recursive_lock_unlock. Return error code.
53055         (glthread_recursive_lock_destroy_multithreaded): Renamed from
53056         glthread_recursive_lock_destroy. Return error code.
53057         (glthread_once_call): Make static.
53058         (glthread_once_multithreaded): Renamed from glthread_once.
53059         * lib/tls.h: Include <errno.h>.
53060         (glthread_tls_key_init): New macro/function.
53061         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
53062         (glthread_tls_set): New macro/function.
53063         (gl_tls_set): Define as wrapper around glthread_tls_set.
53064         (glthread_tls_key_destroy): New macro/function.
53065         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
53066         Update function declarations.
53067         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
53068         glthread_tls_get.
53069         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53070
53071 2008-08-04  Eric Blake  <ebb9@byu.net>
53072
53073         gnumakefile: use space, not TAB, outside of targets
53074         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
53075
53076 2008-08-02  Jim Meyering  <meyering@redhat.com>
53077
53078         getdate.y: avoid locale-dependent date parsing failure
53079         In Turkish locales, getdate would fail to recognize keywords
53080         containing a lowercase "i".  The solution is not to rely on
53081         locale-sensitive case-conversion.
53082         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
53083         (lookup_word): Use c_toupper in place of toupper.
53084         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
53085         Reported by Vefa Bicakci <bicave@superonline.com> in
53086         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
53087         * modules/getdate (Depends-on): Add c-ctype.
53088
53089 2008-08-02  Bruno Haible  <bruno@clisp.org>
53090
53091         * gnulib-tool (func_import): When updating or creating a .gitignore
53092         file, prepend each added line with a slash, and ignore leading slashes
53093         from the existing lines.
53094         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53095
53096 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53097
53098         Portability fix for GNU make 3.79.1.
53099         * top/GNUmakefile: Avoid 'else COND', which older GNU make
53100         versions do not understand.
53101
53102 2008-08-01  Bruno Haible  <bruno@clisp.org>
53103
53104         Work around bug of HP-UX 10.20 cc with -0.0 literal.
53105         * tests/test-isnanf.h (zero): New variable.
53106         (main): Avoid literal -0.0f.
53107         * tests/test-isnand.h (zero): New variable.
53108         (main): Avoid literal -0.0.
53109         * tests/test-isnanl.h (zero): New variable.
53110         (main): Avoid literal -0.0L.
53111         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
53112         (test_float, test_double, test_long_double): Avoid literals -0.0f,
53113         -0.0, -0.0L.
53114         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
53115         (test_signbitd): Avoid literal -0.0.
53116         (test_signbitl): Avoid literal -0.0L.
53117         * tests/test-ceilf1.c (zero): New variable.
53118         (main): Avoid literal -0.0f.
53119         * tests/test-ceill.c (zero): New variable.
53120         (main): Avoid literal -0.0L.
53121         * tests/test-floorf1.c (zero): New variable.
53122         (main): Avoid literal -0.0f.
53123         * tests/test-floorl.c (zero): New variable.
53124         (main): Avoid literal -0.0L.
53125         * tests/test-roundf1.c (zero): New variable.
53126         (main): Avoid literal -0.0f.
53127         * tests/test-round1.c (zero): New variable.
53128         (main): Avoid literal -0.0.
53129         * tests/test-roundl.c (zero): New variable.
53130         (main): Avoid literal -0.0L.
53131         * tests/test-truncf1.c (zero): New variable.
53132         (main): Avoid literal -0.0f.
53133         * tests/test-trunc1.c (zero): New variable.
53134         (main): Avoid literal -0.0.
53135         * tests/test-truncl.c (zero): New variable.
53136         (main): Avoid literal -0.0L.
53137         * tests/test-frexp.c (zero): New variable.
53138         (main): Avoid literal -0.0.
53139         * tests/test-frexpl.c (zero): New variable.
53140         (main): Avoid literal -0.0L.
53141         * tests/test-ldexpl.c (zero): New variable.
53142         (main): Avoid literal -0.0L.
53143         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53144         (zerod, zerol): New variables.
53145         (test_function): Avoid literals -0.0, -0.0L.
53146         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
53147         (zerod, zerol): New variables.
53148         (test_function): Avoid literals -0.0, -0.0L.
53149         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53150         (zerod, zerol): New variables.
53151         (test_function): Avoid literals -0.0, -0.0L.
53152         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
53153         (zerod, zerol): New variables.
53154         (test_function): Avoid literals -0.0, -0.0L.
53155         * tests/test-strtod.c (zero): New variable.
53156         (main): Avoid literal -0.0.
53157         Reported by Jonathan C. Patschke <jp@centtech.com>.
53158
53159 2008-07-31  Jim Meyering  <meyering@redhat.com>
53160
53161         sha256.h: correct definition of SHA224_DIGEST_SIZE
53162         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
53163         Reported by Paulie Pena IV <paulie4@gmail.com>.
53164         Define as 224 / 8, rather than as a literal.
53165         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
53166         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
53167         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
53168
53169 2008-07-31  Bruno Haible  <bruno@clisp.org>
53170
53171         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
53172         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
53173         Reported by Jonathan Patschke <jp@centtech.com>.
53174
53175 2008-07-31  Bruno Haible  <bruno@clisp.org>
53176
53177         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
53178         Reported by Paolo Bonzini <bonzini@gnu.org>.
53179
53180 2008-07-30  Eric Blake  <ebb9@byu.net>
53181
53182         test-strtod: allow compilation without -lm
53183         * tests/test-strtod.c (main): Avoid link dependence on fabs.
53184         Reported by Dennis Clarke <blastwave@gmail.com>.
53185
53186 2008-07-28  Jim Meyering  <meyering@redhat.com>
53187
53188         bootstrap: work also when there are no .po files in po/
53189         * build-aux/bootstrap (update_po_files): Complete the change
53190         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
53191
53192 2008-07-27  Jim Meyering  <meyering@redhat.com>
53193
53194         * users.txt: Add zile.
53195
53196 2008-07-26  Ben Pfaff  <blp@gnu.org>
53197
53198         Add missing dependencies on new m4/exponent[fdl].m4 files.
53199         * modules/isnanf-nolibm: Add m4/exponentf.m4.
53200         * modules/isnand-nolibm: Add m4/exponentd.m4.
53201         * modules/isnanl-nolibm: Add m4/exponentl.m4.
53202         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
53203         m4/isnan[fdl].m4, because the macros actually used moved.
53204         Reported by Jim Meyering.
53205
53206 2008-07-14  Ben Pfaff  <blp@gnu.org>
53207
53208         Add isinf module.
53209         * lib/isinf.c: New file.
53210         * lib/math.in.h: Define isinf macro if we have decided to replace
53211         it.
53212         * m4/isinf.m4: New file.
53213         * m4/math_h.m4: Initialize and substitute variables for isinf
53214         module.
53215         * modules/isinf: New file.
53216         * modules/isinf-tests: New file.
53217         * modules/math: Add substitutions for new module.
53218         * tests/test-isinf.c: New file.
53219         * doc/posix-functions/isinf.texi: Mention new module.
53220         * MODULES.html.sh: Mention new module.
53221
53222 2008-07-14  Ben Pfaff  <blp@gnu.org>
53223
53224         Factor out some macros for use by additional modules.
53225         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
53226         exponentf.m4.
53227         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
53228         exponentd.m4.
53229         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
53230         file exponentl.m4.
53231         * m4/exponentf.m4: New file.
53232         * m4/exponentd.m4: New file.
53233         * m4/exponentl.m4: New file.
53234         * modules/isnanf: Use new file m4/exponentf.m4.
53235         * modules/isnand: Use new file m4/exponentd.m4.
53236         * modules/isnanl: Use new file m4/exponentl.m4.
53237
53238 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
53239
53240         mktime.c: normalize tp->tm_isdst value to -1/0/1.
53241         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
53242         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
53243         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
53244
53245         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
53246         readlink on platforms without PATH_MAX.
53247
53248 2008-07-21  Eric Blake  <ebb9@byu.net>
53249
53250         Warn, not fail, on stale version.
53251         * top/GNUmakefile (_curr-ver): Tone down previous patch.
53252
53253         Don't allow installation with stale devel version number.
53254         * top/GNUmakefile (_is-install-target): New macro.
53255         (_curr-ver): Forbid installation with stale version number.
53256
53257 2008-07-20  Bruno Haible  <bruno@clisp.org>
53258
53259         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
53260         TESTS_ENVIRONMENT.
53261         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
53262
53263 2008-07-20  Bruno Haible  <bruno@clisp.org>
53264
53265         * lib/c-stack.h (c_stack_action): Add documentation.
53266         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53267
53268 2008-07-20  Bruno Haible  <bruno@clisp.org>
53269
53270         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53271         * modules/readlink (License): Likewise.
53272
53273 2008-07-17  Eric Blake  <ebb9@byu.net>
53274
53275         * modules/c-stack (Link): Fix typo.
53276
53277         Make c-stack use libsigsegv, when available.
53278         * modules/c-stack (Depends-on): Add libsigsegv.
53279         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53280         needed.
53281         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53282         (segv_handler, overflow_handler, c_stack_action)
53283         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
53284         implementation when libsigsegv is available, but only when using
53285         the library is necessary.
53286         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
53287         comment, explaining why XSI check fails on Linux.
53288         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
53289         * tests/test-c-stack2.sh: Tweak skip message.
53290         * NEWS: Document new link-time requirements.
53291
53292 2008-07-16  Eric Blake  <ebb9@byu.net>
53293
53294         c-stack: Expose false positives when not using libsigsegv.
53295         * modules/c-stack-tests (Files): Expand test.
53296         * tests/test-c-stack.c (main): Add means to conditionally trigger
53297         non-overflow SIGSEGV.
53298         * tests/test-c-stack2.sh: New file.
53299
53300 2008-07-14  Bruno Haible  <bruno@clisp.org>
53301
53302         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
53303         Reported by Eric Blake.
53304
53305 2008-07-14  Sam Steingold  <sds@gnu.org>
53306             Bruno Haible  <bruno@clisp.org>
53307
53308         New module libsigsegv.
53309         * modules/libsigsegv: New file.
53310         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
53311         modifications.
53312         * MODULES.html.sh (Signal handling): New section.
53313
53314 2008-07-14  Bruno Haible  <bruno@clisp.org>
53315
53316         * modules/unictype/ctype-* (Description): Add the word "function".
53317         Improves the resulting doc in MODULES.html.
53318
53319 2008-07-12  Ben Pfaff  <blp@gnu.org>
53320
53321         Add longlong module.
53322         * modules/longlong: New file.
53323
53324 2008-07-12  Bruno Haible  <bruno@clisp.org>
53325
53326         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
53327         to empty.
53328
53329 2008-07-10  Ben Pfaff  <blp@gnu.org>
53330
53331         Add isnan module.
53332         * doc/posix-functions/isnan.texi: Mention new module.
53333         * lib/math.in.h: Define isnan macro if we have decided to replace
53334         it.
53335         * m4/isnan.m4: New file.
53336         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
53337         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
53338         also.
53339         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
53340         redundancy.
53341         * m4/math_h.m4: Initialize and substitute variables for isnan
53342         module.
53343         * modules/isnan: New file.
53344         * modules/isnan-tests: New file.
53345         * modules/math: Add substitutions for new module.
53346         * tests/test-isnan.c: New file.
53347         * MODULES.html.sh: Mention new module.
53348
53349 2008-07-10  Ben Pfaff  <blp@gnu.org>
53350
53351         Add isnanf module.
53352         * lib/isnanf.m4: New file.
53353         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
53354         (gl_HAVE_ISNANF_IN_LIBM): New macro.
53355         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
53356         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
53357         * modules/isnanf: New file.
53358         * modules/isnanf-tests: New file.
53359         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
53360         files.
53361         * tests/test-isnanf-nolibm.c: factored most of its contents into
53362         new file tests/test-isnanf.h.
53363         * tests/test-isnanf.h: New file.
53364         * tests/test-isnanf.c: New file.
53365         * MODULES.html.sh: Mention new module.
53366         * doc/glibc-functions/isnanf.texi: Mention new module.
53367
53368 2008-07-10  Ben Pfaff  <blp@gnu.org>
53369
53370         Add isnand module.
53371         * lib/isnand.h: New file.
53372         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
53373         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
53374         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
53375         functionality also.
53376         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
53377         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
53378         (gl_HAVE_ISNAND_IN_LIBM): New macro.
53379         * modules/isnand: New file.
53380         * modules/isnand-tests: New file.
53381         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
53382         files.
53383         * tests/test-isnand-nolibm.c: factored most of its contents into
53384         new file tests/test-isnand.h.
53385         * tests/test-isnand.h: New file.
53386         * tests/test-isnand.c: New file.
53387         * MODULES.html.sh: Mention new module.
53388
53389 2008-07-10  Ben Pfaff  <blp@gnu.org>
53390
53391         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
53392         * lib/isnand.h: Rename lib/isnand-nolibm.h.
53393         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
53394         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
53395         * modules/isnanf-nolibm: Update references to renamed files.
53396         * modules/isnand-nolibm: Likewise.
53397         * modules/isnanf-nolibm-tests: Likewise.
53398         * modules/isnand-nolibm-tests: Likewise.
53399         * lib/frexp.c: Likewise.
53400         * lib/isfinite.c: Likewise.
53401         * lib/signbitd.c: Likewise.
53402         * lib/signbitf.c: Likewise.
53403         * lib/vasnprintf.c: Likewise.
53404         * tests/test-ceilf1.c: Likewise.
53405         * tests/test-ceilf2.c: Likewise.
53406         * tests/test-floorf1.c: Likewise.
53407         * tests/test-floorf2.c: Likewise.
53408         * tests/test-frexp.c: Likewise.
53409         * tests/test-round1.c: Likewise.
53410         * tests/test-round2.c: Likewise.
53411         * tests/test-roundf1.c: Likewise.
53412         * tests/test-strtod.c: Likewise.
53413         * tests/test-trunc1.c: Likewise.
53414         * tests/test-trunc2.c: Likewise.
53415         * tests/test-truncf1.c: Likewise.
53416         * tests/test-truncf2.c: Likewise.
53417         * NEWS: Mention the renamed header files.
53418
53419 2008-07-11  Jim Meyering  <meyering@redhat.com>
53420
53421         vc-list-files: make the last-resort awk code more portable
53422         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
53423         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
53424         does not support it.
53425
53426 2008-07-10  Eric Blake  <ebb9@byu.net>
53427
53428         Work with tar's bootstrap.
53429         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
53430         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
53431         an m4 comment.
53432
53433 2008-07-09  Jim Meyering  <meyering@redhat.com>
53434
53435         posix-shell.m4: fix typo that made this test malfunction
53436         * m4/posix-shell.m4: Remove capitalization in variable name.
53437
53438 2008-07-08  Bruno Haible  <bruno@clisp.org>
53439
53440         * m4/onceonly.m4: Update comments.
53441         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53442
53443 2008-07-04  Jim Meyering  <meyering@redhat.com>
53444
53445         * users.txt: Add vc-dwim.
53446         (bison, coreutils): Use the gitweb URL.
53447
53448 2008-07-03  Jim Meyering  <meyering@redhat.com>
53449
53450         * users.txt: Add libffcall.  From Sam Steingold.
53451
53452 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
53453
53454         getdate.y: do not ignore TZ with relative day, month or year offset
53455         * lib/getdate.y (get_date): Move the tz-handling block to follow the
53456         relative-date-handling, since otherwise, the latter would clobber the
53457         sole output (an updated Start value) of the tz-handling block.
53458         * tests/test-getdate.c: Tests for the fix
53459
53460 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53461
53462         Recognize 'foo_LIBRARIES += libgnu.a'.
53463         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
53464         makefile snippet has already specified an installation location,
53465         also using '+='.
53466
53467 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
53468
53469         getdate.y: factor out common actions
53470         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
53471         Use them in place of open-coded actions.
53472
53473 2008-07-01  Simon Josefsson  <simon@josefsson.org>
53474
53475         Add self-test for getdate module.
53476         * modules/getdate-tests: New file.
53477         * tests/test-getdate.c: New file.
53478
53479 2008-06-29  Bruno Haible  <bruno@clisp.org>
53480
53481         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
53482         .gitignore.
53483         Reported by Sylvain Beucler <beuc@beuc.net>.
53484
53485 2008-06-29  Bruno Haible  <bruno@clisp.org>
53486
53487         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
53488         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
53489
53490 2008-06-29  Bruno Haible  <bruno@clisp.org>
53491
53492         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
53493         EXTRA_DIST.
53494         Reported by Sylvain Beucler <beuc@beuc.net>.
53495
53496 2008-06-26  Jim Meyering  <meyering@redhat.com>
53497
53498         make several modules depend on the "open" module
53499         This provides slightly increased consistency when opening-for-write
53500         the name of a non-directory spelled with a trailing slash.
53501         * modules/chdir-safer: Likewise.
53502         * modules/chown: Likewise.
53503         * modules/clean-temp: Likewise.
53504         * modules/copy-file: Likewise.
53505         * modules/fchdir: Likewise.
53506         * modules/fcntl-safer: Likewise.
53507         * modules/pipe: Likewise.
53508         * modules/utime: Likewise.
53509         Prompted by Eric Blake and Bruno Haible.
53510
53511 2008-06-24  Andreas Schwab  <schwab@suse.de>
53512
53513         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
53514         literals can be used as initializers for global variables.
53515
53516 2008-06-23  Eric Blake  <ebb9@byu.net>
53517
53518         Make gnulib-cache.m4 easier to diff.
53519         * gnulib-tool (func_import): Allow newlines when reading cached
53520         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
53521
53522 2008-06-23  Bruno Haible  <bruno@clisp.org>
53523
53524         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
53525         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
53526         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
53527         m4/signalblocking.m4.
53528         (gl_PREREQ_SIGACTION): Don't invoke it.
53529         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
53530         gl_PREREQ_SIG_HANDLER_H.
53531         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53532         Don't check for sigaction here.
53533
53534 2008-06-23  Bruno Haible  <bruno@clisp.org>
53535
53536         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
53537         (install_handlers): Don't set the SA_RESETHAND flag.
53538
53539 2008-06-23  Bruno Haible  <bruno@clisp.org>
53540
53541         * m4/sigaction.m4: Comment fixes.
53542         * lib/signal.in.h: Likewise.
53543
53544 2008-06-23  Eric Blake  <ebb9@byu.net>
53545
53546         Fix typo.
53547         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
53548
53549         Avoid SA_ namespace.
53550         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
53551         Reported by Ralf Wildenhues.
53552
53553         Avoid test failure due to SA_RESTORER.
53554         * tests/test-sigaction.c (SA_MASK): New macro.
53555         (main): Avoid failing due to extension flags being set.
53556         Reported by Jim Meyering.
53557
53558         Revert use of sig-handler.h in sigprocmask.c.
53559         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
53560         it requires the existence of struct sigaction.
53561         * lib/sigprocmask.c (handler_t): Restore typedef.
53562         (rpl_signal, old_handlers): Use local type.
53563
53564 2008-06-22  Bruno Haible  <bruno@clisp.org>
53565
53566         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
53567         conditionally.
53568         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53569
53570 2008-06-22  Bruno Haible  <bruno@clisp.org>
53571
53572         * doc/posix-functions/siginterrupt.texi: Move note.
53573
53574         * lib/signal.in.h (SA_RESTART): New macro.
53575         * lib/sigaction.c: Update comment.
53576
53577         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
53578
53579         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
53580         (gl_PREREQ_SIGPROCMASK): Invoke it.
53581         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
53582
53583         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
53584
53585         * lib/sigprocmask.c: Update a comment.
53586
53587 2008-06-21  Eric Blake  <ebb9@byu.net>
53588
53589         Use sigaction module rather than signal().
53590         * modules/c-stack (Depends-on): Add sigaction.
53591         * modules/fatal-signal (Depends-on): Likewise.
53592         * modules/nanosleep (Depends-on): Likewise.
53593         * modules/sigprocmask (Files): Add sig-handler.h.
53594         * modules/sigaction (Files): Likewise.
53595         * lib/sig-handler.h (get_handler): New file, suggested by Paul
53596         Eggert.
53597         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
53598         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
53599         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
53600         (init_fatal_signals): Likewise.
53601         * lib/nanosleep.c (rpl_nanosleep): Likewise.
53602         (siginterrupt): Delete fallback.
53603         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
53604         instead.
53605         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
53606         siginterrupt.
53607
53608         New module sigaction, for mingw.
53609         * modules/sigaction: New module...
53610         * modules/sigaction-tests: ...and its test.
53611         * m4/sigaction.m4: New file.
53612         * lib/sigaction.c: Likewise.
53613         * tests/test-sigaction.c: Likewise.
53614         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
53615         * modules/signal (Makefile.am): Likewise.
53616         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
53617         needed.
53618         * doc/posix-headers/signal.texi (signal.h): Mention provided
53619         types.
53620         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
53621         that sigaction is preferable.
53622         * doc/posix-functions/sigaction.texi (sigaction): Mention new
53623         module.
53624         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53625         sigaction.
53626
53627         Improve robustness of sigprocmask by overriding signal.
53628         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
53629         is in use.
53630         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
53631         (SIGKILL, SIGSTOP): Provide fallbacks.
53632         (rpl_signal): Implement.
53633         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
53634         signal can be called inside handlers.
53635
53636         Fix nanosleep module on mingw.
53637         * modules/nanosleep (Depends-on): Add sys_select.
53638         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
53639
53640         Fix licensing of sigprocmask.
53641         * modules/raise (License): Relicense as LGPL.
53642
53643 2008-06-21  Bruno Haible  <bruno@clisp.org>
53644
53645         * lib/propername.c (proper_name_utf8): Don't use the transliterated
53646         result if it contains question marks.
53647         Reported by Michael Geng <linux@michaelgeng.de>.
53648
53649 2008-06-19  Bruno Haible  <bruno@clisp.org>
53650
53651         Fix CVS-ism.
53652         * doc/gnulib.texi: Include updated-stamp.texi.
53653         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
53654         (updated-stamp.texi): New rule.
53655         (gnulib.info): Depend on it.
53656         * doc/.gitignore: Add updated-stamp.texi.
53657         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
53658
53659 2008-06-19  Bruno Haible  <bruno@clisp.org>
53660
53661         * doc/Makefile (gnulib.info): Update and simplify dependencies.
53662         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53663
53664 2008-06-19  Eric Blake  <ebb9@byu.net>
53665
53666         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
53667         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
53668         Reported by Stepan Kasal.
53669
53670 2008-06-18  Bruno Haible  <bruno@clisp.org>
53671
53672         * lib/fatal-signal.c (init_fatal_signals): Add comment.
53673         Reported by Eric Blake.
53674
53675 2008-06-18  Eric Blake  <ebb9@byu.net>
53676
53677         Work around cygwin 1.5.25 strsignal bug.
53678         * tests/test-strsignal.c: Allow for const char *.
53679         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
53680
53681 2008-06-18  Simon Josefsson  <simon@josefsson.org>
53682
53683         * users.txt: Update URL to article and add author/date
53684         information.
53685
53686 2008-06-17  Bruno Haible  <bruno@clisp.org>
53687
53688         New macro gl_DISABLE_THREADS.
53689         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
53690         if the user did not pass --enable-threads or --disable-threads option.
53691         (gl_DISABLE_THREADS): New macro.
53692         Reported by Eric Blake <ebb9@byu.net>.
53693
53694 2008-06-17  Bruno Haible  <bruno@clisp.org>
53695
53696         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
53697         when the macro ignores it.
53698         Based on a patch by Eric Blake <ebb9@byu.net>.
53699
53700 2008-06-17  Bruno Haible  <bruno@clisp.org>
53701
53702         * modules/tls (License): Change to LGPLv2+.
53703         Reported by Eric Blake.
53704
53705 2008-06-17  Eric Blake  <ebb9@byu.net>
53706
53707         Simplify c-stack prerequisites.
53708         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
53709         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
53710         no longer requires <ucontext.h> to exist.  Optimize setrlimit
53711         check.
53712         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
53713         <sys/resource.h>.
53714
53715         Move c-stack test into testsuite.
53716         * modules/c-stack-tests: New file.
53717         * lib/c-stack.c [DEBUG]: Move test program...
53718         * tests/test-c-stack.c: ...into this new file.  Skip rather than
53719         fail test if sigaltstack is lacking.
53720         * tests/test-c-stack.sh: New driver file.
53721
53722 2008-06-16  Eric Blake  <ebb9@byu.net>
53723
53724         Use raise module consistently.
53725         * modules/fatal-signal (Depends-on): Add raise.
53726         * modules/sigprocmask (Depends-on): Likewise.
53727         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
53728         * lib/sigprocmask.c (sigprocmask): Likewise.
53729         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53730         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
53731
53732         Fix compliance bug in sigpending.
53733         * lib/sigprocmask.c (sigpending): Return pending array via
53734         parameter, not return value.
53735
53736 2008-06-14  Eric Blake  <ebb9@byu.net>
53737
53738         Improve obstack-printf test code.
53739         * tests/test-obstack-printf.c (test_function): Fix comment, and
53740         simplify usage of obstack_* in macros.  Add a test for coverage.
53741         Reported by Bruno Haible.
53742
53743 2008-06-14  Bruno Haible  <bruno@clisp.org>
53744
53745         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
53746         array size as a constant, not as a const variable.
53747         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
53748         AC_USE_SYSTEM_EXTENSIONS.
53749         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
53750         Test whether the obstack_printf function actually exists.
53751         * modules/obstack-printf (Depends-on): Add extensions.
53752         (Include): Remove obstack.h.
53753         * modules/obstack-printf-posix (Depends-on): Add extensions.
53754         (Include): Remove obstack.h.
53755
53756 2008-06-13  Eric Blake  <ebb9@byu.net>
53757
53758         Add obstack-printf and obstack-printf-posix modules.
53759         * modules/obstack-printf: New file.
53760         * modules/obstack-printf-posix: Likewise.
53761         * MODULES.html.sh (Misc): Mention them.
53762         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53763         Likewise.
53764         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53765         Likewise.
53766         * modules/stdio (Makefile.am): Accomodate new modules.
53767         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53768         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
53769         Declare.
53770         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
53771         functions.
53772         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
53773         (gl_REPLACE_OBSTACK_PRINTF): New macros
53774         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
53775         * tests/test-obstack-printf.c: New file.
53776         * modules/obstack-printf-tests: Likewise.
53777         * modules/obstack-printf-posix-tests: Likewise.
53778
53779 2008-06-11  Bruno Haible  <bruno@clisp.org>
53780
53781         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
53782         * lib/open.c: Include errno.h.
53783         (open): Fail when attempting to write to a file that has a trailing
53784         slash.
53785         * tests/test-open.c (main): Test against trailing slash bug.
53786         * doc/posix-functions/open.texi: Mention the trailing slash bug.
53787
53788 2008-06-10  Bruno Haible  <bruno@clisp.org>
53789
53790         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
53791         for $? to work inside the trap command, with various /bin/sh-s.
53792         * tests/test-vc-list-files-cvs.sh: Likewise.
53793
53794 2008-06-10  Bruno Haible  <bruno@clisp.org>
53795
53796         * lib/acl-internal.h: Don't include gettext.h here.
53797         * lib/set-mode-acl.c: Include gettext.h here.
53798         * lib/copy-acl.c: Likewise.
53799
53800 2008-06-10  Bruno Haible  <bruno@clisp.org>
53801
53802         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
53803         * lib/wait-process.c (wait_subprocess): Likewise.
53804         * lib/execute.h (execute): Add termsigp argument.
53805         * lib/execute.c (execute): Likewise.
53806         * lib/csharpcomp.c (compile_csharp_using_pnet,
53807         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
53808         * lib/csharpexec.c (execute_csharp_using_pnet,
53809         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
53810         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
53811         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
53812         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
53813         is_jikes_present): Update.
53814         * lib/javaexec.c (execute_java_class): Update.
53815         * lib/javaversion.c (execute_and_read_line): Update.
53816         * NEWS: Document the changes.
53817         Reported by Eric Blake.
53818
53819 2008-06-10  Eric Blake  <ebb9@byu.net>
53820
53821         Add missing include.
53822         * tests/test-strstr.c (includes): Add <signal.h>.
53823         * tests/test-strcasestr.c (includes): Likewise.
53824         * tests/test-memmem.c (includes): Likewise.
53825
53826 2008-06-10  Bruno Haible  <bruno@clisp.org>
53827
53828         * lib/wait-process.c (wait_subprocess): Add an assertion.
53829
53830 2008-06-10  Bruno Haible  <bruno@clisp.org>
53831
53832         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
53833
53834 2008-06-10  Bruno Haible  <bruno@clisp.org>
53835
53836         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
53837         using alarm().
53838         * tests/test-strcasestr.c (main): Likewise.
53839         * tests/test-strstr.c (main): Likewise.
53840
53841 2008-06-09  Bruno Haible  <bruno@clisp.org>
53842
53843         Work around the Solaris 10 ACE ACLs ABI change.
53844         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
53845         declare if ACL_NO_TRIVIAL is present.
53846         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
53847         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
53848         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
53849         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
53850         define if ACL_NO_TRIVIAL is present.
53851         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
53852         and use the current ABI.
53853         (file_has_acl): Use same #if condition as elsewhere.
53854         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
53855         in use, and use the current ABI.
53856         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
53857         Reported by Jim Meyering.
53858
53859 2008-06-09  Eric Blake  <ebb9@byu.net>
53860
53861         Work around environments that (stupidly) ignore SIGALRM.
53862         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
53863         before using alarm().
53864         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53865         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53866         Reported by Ian Beckwith <ianb@erislabs.net>.
53867
53868         Produce autobuild blurb earlier in log.
53869         * modules/autobuild (configure.ac-early): Move AB_INIT here.
53870
53871 2008-06-09  Jim Meyering  <meyering@redhat.com>
53872         and OndÅ™ej Vašík  <ovasik@redhat.com>
53873
53874         utimens.c: correct kernel bug work-around
53875         OndÅ™ej Vašík found that the invalid return value of 280 indicates
53876         failure, not success, and the kernel bug we're trying to work
53877         around affects not just the utimensat call, but also the fallback
53878         futimens call.
53879         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
53880         not success.
53881         [HAVE_FUTIMENS]: Use the same work-around, here.
53882
53883 2008-06-09  Jim Meyering  <meyering@redhat.com>
53884
53885         add more guards around definition of ACE_-related code
53886         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
53887         ALLOW and ACE_OWNER are also defined.
53888
53889 2008-06-08  Bruno Haible  <bruno@clisp.org>
53890
53891         * lib/acl-internal.h: Add me as co-author.
53892         * lib/file-has-acl.c: Likewise.
53893         * lib/set-mode-acl.c: Likewise.
53894         * lib/copy-acl.c: Likewise.
53895
53896 2008-06-08  Bruno Haible  <bruno@clisp.org>
53897
53898         Add support for AIX ACLs.
53899         * lib/acl-internal.h (acl_nontrivial): New declaration.
53900         * lib/file-has-acl.c (acl_nontrivial): New function.
53901         (file_has_acl): Add implementation using AIX 4 ACL API.
53902         * lib/set-mode-acl.c (qset_acl): Likewise.
53903         * lib/copy-acl.c (qcopy_acl): Likewise.
53904
53905 2008-06-08  Bruno Haible  <bruno@clisp.org>
53906
53907         Add support for HP-UX ACLs.
53908         * lib/acl-internal.h (acl_nontrivial): New declaration.
53909         * lib/file-has-acl.c (acl_nontrivial): New function.
53910         (file_has_acl): Add implementation using HP-UX 11 ACL API.
53911         * lib/set-mode-acl.c (qset_acl): Likewise.
53912         * lib/copy-acl.c (qcopy_acl): Likewise.
53913
53914 2008-06-08  Bruno Haible  <bruno@clisp.org>
53915
53916         Add support for Cygwin ACLs.
53917         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
53918         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
53919         the chmod_or_fchmod call.
53920         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
53921
53922 2008-06-08  Bruno Haible  <bruno@clisp.org>
53923
53924         Fix bug with setuid modes in Solaris 10+ code.
53925         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
53926         succeeded, when the mode contains some special bits.
53927
53928 2008-06-08  Bruno Haible  <bruno@clisp.org>
53929
53930         Add support for Solaris 7..10 ACLs.
53931         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
53932         declarations.
53933         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
53934         functions.
53935         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
53936         * lib/set-mode-acl.c (qset_acl): Likewise.
53937         * lib/copy-acl.c (qcopy_acl): Likewise.
53938
53939 2008-06-08  Bruno Haible  <bruno@clisp.org>
53940
53941         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
53942         declaration.
53943         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
53944         (acl_access_nontrivial): Remove MacOS X case.
53945         (file_has_acl): Use acl_extended_nontrivial.
53946         * lib/copy-acl.c (qcopy_acl): Likewise.
53947
53948 2008-06-08  Bruno Haible  <bruno@clisp.org>
53949
53950         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
53951
53952 2008-06-08  Jim Meyering  <meyering@redhat.com>
53953
53954         * modules/acl (Maintainer): Add Bruno Haible.
53955
53956 2008-06-07  Bruno Haible  <bruno@clisp.org>
53957
53958         Improve support for Tru64 ACLs.
53959         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
53960         ACL on OSF/1.
53961
53962 2008-06-07  Bruno Haible  <bruno@clisp.org>
53963
53964         Add support for MacOS X ACLs.
53965         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
53966         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
53967         * lib/set-mode-acl.c (qset_acl): Likewise.
53968         * lib/copy-acl.c (qcopy_acl): Likewise.
53969
53970 2008-06-07  Bruno Haible  <bruno@clisp.org>
53971
53972         Fix memory leak introduced on 2008-05-22.
53973         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
53974         use.
53975
53976 2008-06-07  Bruno Haible  <bruno@clisp.org>
53977
53978         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
53979         to construct an empty ACL.
53980
53981 2008-06-07  Bruno Haible  <bruno@clisp.org>
53982
53983         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
53984         precisely.
53985         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
53986
53987 2008-06-07  Bruno Haible  <bruno@clisp.org>
53988
53989         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
53990         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
53991
53992 2008-06-07  Bruno Haible  <bruno@clisp.org>
53993
53994         * doc/posix-functions/_setjmp.texi: Explain the use of this function
53995         regardless of POSIX.
53996         * doc/posix-functions/_longjmp.texi: Likewise.
53997         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
53998         SystemV platform in this case.
53999
54000 2008-06-06  Eric Blake  <ebb9@byu.net>
54001
54002         Document abort() bugs.
54003         * doc/posix-functions/abort.texi (abort): Mention anomalies.
54004
54005         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
54006         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
54007         sigsetjmp.
54008         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
54009         siglongjmp, but only as a macro.
54010         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
54011         is obsolete.
54012         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
54013
54014         Tweak documentation to cover cygwin argz bugs.
54015         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
54016         argz bug fix; no code change needed since no cygwin releases
54017         occurred between the last fix and the bug being tested.
54018         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
54019         module and recently fixed cygwin bugs.
54020         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
54021         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
54022         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
54023         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
54024         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
54025         Likewise.
54026         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
54027         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
54028         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
54029         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
54030         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
54031         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
54032         Likewise.
54033
54034         Avoid gcc warning on cygwin.
54035         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
54036         !ACL_NO_TRIVIAL]: Avoid unused variable.
54037
54038 2008-06-05  Eric Blake  <ebb9@byu.net>
54039
54040         Be tolerant of UNKNOWN version in gnulib-tool test dir.
54041         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
54042         git-version-gen fails to come up with a version.
54043         Reported by Simon Josefsson.
54044
54045 2008-06-05  Jim Meyering  <meyering@redhat.com>
54046             Paul Eggert  <eggert@cs.ucla.edu>
54047
54048         utimens.c: work around a probable Linux kernel bug
54049         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
54050         appears to be a kernel bug that causes utimensat to return 280
54051         instead of 0, indicating success.
54052
54053 2008-06-04  Bruno Haible  <bruno@clisp.org>
54054
54055         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
54056         2008-06-01 commit.
54057
54058 2008-06-04  Bruno Haible  <bruno@clisp.org>
54059
54060         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
54061         * lib/file-has-acl.c (acl_access_nontrivial): New function.
54062         (file_has_acl): Use it. Save errno afterwards.
54063         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
54064
54065 2008-06-03  Bruno Haible  <bruno@clisp.org>
54066
54067         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
54068         draft code. Simplify #ifs.
54069         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
54070         Put Solaris code after POSIX-draft code. Fix comments regarding
54071         Solaris 10, HP-UX. Mention Cygwin.
54072         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
54073
54074 2008-06-03  Eric Blake  <ebb9@byu.net>
54075
54076         Provide fallback for older kernels.
54077         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
54078         Provide runtime fallback if kernel lacks support.
54079         Reported by Mike Frysinger.
54080
54081 2008-06-02  Bruno Haible  <bruno@clisp.org>
54082
54083         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
54084         it exists.
54085
54086 2008-06-02  Bruno Haible  <bruno@clisp.org>
54087
54088         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
54089         * lib/copy-acl.c (qcopy_acl): Update comment.
54090
54091 2008-06-02  Bruno Haible  <bruno@clisp.org>
54092
54093         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
54094         like ACL APIs.
54095
54096 2008-06-02  Bruno Haible  <bruno@clisp.org>
54097
54098         * tests/test-file-has-acl.sh: Use different code for Cygwin.
54099         * tests/test-set-mode-acl.sh: Likewise.
54100         * tests/test-copy-acl.sh: Likewise.
54101         * tests/test-copy-file.sh: Likewise.
54102
54103 2008-06-02  Bruno Haible  <bruno@clisp.org>
54104
54105         * tests/test-file-has-acl.sh: Remove unused code.
54106
54107 2008-06-01  Bruno Haible  <bruno@clisp.org>
54108
54109         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
54110         (copy_acl): Just a wrapper around qcopy_acl that emits the error
54111         messages.
54112         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
54113
54114 2008-06-01  Bruno Haible  <bruno@clisp.org>
54115
54116         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
54117         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
54118         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
54119         APIs.
54120         * modules/acl-tests (configure.ac): Remove tests now contained in
54121         m4/acl.m4.
54122
54123 2008-06-02  Jim Meyering  <meyering@redhat.com>
54124
54125         announce-gen: use a better key-server host name
54126         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
54127         it may be more consistently reliable.  Suggested by Werner Koch
54128         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
54129
54130 2008-06-01  Bruno Haible  <bruno@clisp.org>
54131
54132         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
54133         Reported by Voroskoi Andras <voroskoi@gmail.com>.
54134
54135 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
54136
54137         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
54138
54139 2008-06-01  Bruno Haible  <bruno@clisp.org>
54140
54141         New ACL tests.
54142         * tests/test-file-has-acl.sh: New file.
54143         * tests/test-file-has-acl.c: New file.
54144         * tests/test-set-mode-acl.sh: New file.
54145         * tests/test-set-mode-acl.c: New file.
54146         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
54147         * tests/test-copy-acl.c: New file.
54148         * modules/acl-tests: New file, based on modules/copy-file-tests.
54149         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
54150         (Depends-on): Add acl-tests.
54151         (configure.ac): Remove checks.
54152         (Makefile.am): Don't create test-sameacls program here any more.
54153
54154 2008-06-01  Bruno Haible  <bruno@clisp.org>
54155
54156         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
54157         * tests/test-sameacls.c: Include progname.h.
54158         (main): Invoke set_program_name. Portability fixes for MacOS X,
54159         Solaris, HP-UX.
54160
54161 2008-06-01  Bruno Haible  <bruno@clisp.org>
54162
54163         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
54164         function.
54165         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
54166
54167 2008-06-01  Bruno Haible  <bruno@clisp.org>
54168
54169         * modules/rpmatch (Depends-on): Add strdup.
54170
54171 2008-06-01  Bruno Haible  <bruno@clisp.org>
54172
54173         * lib/pipe.c: Include unistd-safer.h.
54174         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
54175         * modules/pipe (Depends-on): Add unistd-safer.
54176
54177 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54178
54179         * modules/autobuild (configure.ac): Call AB_INIT.
54180
54181 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54182
54183         * tests/test-getaddrinfo.c: Don't print debug messages by default.
54184         Suggested by Bruno Haible <bruno@clisp.org>.
54185
54186 2008-05-30  Simon Josefsson  <simon@josefsson.org>
54187
54188         * tests/test-base64.c: Cast size_t to unsigned long when invoking
54189         printf.  Use %lu instead of %d.  Reported by Bruno Haible
54190         <bruno@clisp.org>.
54191
54192 2008-05-29  Eric Blake  <ebb9@byu.net>
54193
54194         Prefer new POSIX 200x interfaces over futimesat.
54195         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
54196         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
54197         when available.
54198         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
54199
54200 2008-05-28  Bruno Haible  <bruno@clisp.org>
54201
54202         * modules/stpcpy (License): Change to LGPLv2+.
54203         Requested by David Lutterkort <dlutter@redhat.com>.
54204
54205 2008-05-27  Bruno Haible  <bruno@clisp.org>
54206
54207         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
54208         current mingw.
54209         Reported by Jose E. Marchesi <jemarch@gnu.org>.
54210
54211 2008-05-27  Bruno Haible  <bruno@clisp.org>
54212
54213         * modules/iconv_open (Link): New section, from module 'iconv'.
54214         * modules/striconv (Link): Likewise.
54215         * modules/striconveh (Link): Likewise.
54216         * modules/xstriconv (Link): Likewise.
54217         * modules/unicodeio (Link): Likewise.
54218         * modules/propername (Link): Likewise.
54219         Reported by Jim Meyering.
54220
54221 2008-05-26  Jim Meyering  <meyering@redhat.com>
54222
54223         sha256: do not artificially restrict buffer length to be < 2^32
54224         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
54225         uint32_t to size_t.
54226         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
54227         to match.
54228
54229         avoid unaligned access errors, e.g., on sparc
54230         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
54231         direct access through a possibly-unaligned uint64* pointer.
54232         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
54233         direct access through a possibly-unaligned uint32* pointer.
54234         Prompted by this patch from Tom "spot" Callaway:
54235         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
54236
54237         sha512.c: fix typo in comment
54238         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
54239
54240 2008-05-25  Bruno Haible  <bruno@clisp.org>
54241
54242         * lib/set-mode-acl.c: Renamed from lib/acl.c.
54243         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
54244         (Makefile.am): Update lib_SOURCES.
54245
54246 2008-05-25  Bruno Haible  <bruno@clisp.org>
54247
54248         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
54249
54250 2008-05-25  Jim Meyering  <meyering@redhat.com>
54251
54252         useless-if-before-free: freed expr may have white-space differences
54253         * build-aux/useless-if-before-free: Recognize cases in which the
54254         freed expression differs from the tested one in embedded white
54255         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
54256         $1 was used, so we can't make any regexp shy.  Improved tests now
54257         detect this.
54258
54259         useless-if-before-free: accept white space in the expression.
54260         * build-aux/useless-if-before-free: For now, any white space
54261         in the expression must be identical in the free argument.
54262
54263         useless-if-before-free: efficiency tweak
54264         * build-aux/useless-if-before-free: Make the expression-matching
54265         regexp "shy".
54266         Make the *outer* regexp shy, not the expr-matching one.
54267
54268         update code-in-comment to accept cast of free arg
54269         * build-aux/useless-if-before-free: Update regexp.
54270
54271 2008-05-25  Bruno Haible  <bruno@clisp.org>
54272
54273         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54274         * modules/copy-file-tests (Files, Makefile.am): Update.
54275         * tests/test-copy-file.c (func_test_copy): Update.
54276
54277 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54278
54279         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54280
54281 2008-05-23  Bruno Haible  <bruno@clisp.org>
54282
54283         Improve support for ACLs on OSF/1.
54284         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
54285         Remove fallback for unknown flavors of ACLs.
54286
54287 2008-05-22  Bruno Haible  <bruno@clisp.org>
54288
54289         Add support for ACLs on OSF/1.
54290         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
54291         replacements.
54292         (acl_free_text): New macro fallback.
54293         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
54294         acl_free.
54295         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
54296         acl_free_text function. Require AC_C_INLINE.
54297
54298 2008-05-22  Bruno Haible  <bruno@clisp.org>
54299
54300         Make copy_acl work on MacOS X 10.5.
54301         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
54302         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
54303         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
54304         If MODE_INSIDE_ACL, don't assume that every system has the same text
54305         representation for ACLs as FreeBSD.
54306         * lib/copy-acl.c (copy_acl): Add support for platforms with
54307         !MODE_INSIDE_ACL.
54308         * lib/file-has-acl.c (file_has_acl): Likewise.
54309         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
54310         FreeBSD, MacOS X, or IRIX, respectively.
54311
54312 2008-05-22  Bruno Haible  <bruno@clisp.org>
54313
54314         * lib/acl.h: Don't include <sys/acl.h>.
54315         (GETACLCNT): Move fallback to lib/acl-internal.h.
54316         * lib/acl-internal.h: Include <sys/acl.h> here.
54317         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
54318
54319 2008-05-22  Bruno Haible  <bruno@clisp.org>
54320
54321         Split off copy_acl function to separate file.
54322         * lib/copy-acl.c: New file, extracted from lib/acl.c.
54323         * lib/acl.c (copy_acl): Moved function to separate file.
54324         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
54325         * modules/acl (Files): Add lib/copy-acl.c.
54326         (Makefiles.am): Augment lib_SOURCES.
54327
54328 2008-05-22  Bruno Haible  <bruno@clisp.org>
54329
54330         * modules/copy-file-tests: New file.
54331         * tests/test-copy-file.sh: New file.
54332         * tests/test-copy-file.c: New file.
54333         * tests/test-copy-file-sameacls.c: New file.
54334
54335 2008-05-22  Eric Blake  <ebb9@byu.net>
54336
54337         Avoid gcc warning.
54338         * tests/test-memcmp.c (main): Pass NULL indirectly.
54339
54340 2008-05-21  Bruno Haible  <bruno@clisp.org>
54341
54342         Add reference doc about ACLs.
54343         * doc/acl-resources.txt: New file.
54344         * doc/acl-cygwin.txt: New file.
54345
54346 2008-05-21  Bruno Haible  <bruno@clisp.org>
54347
54348         Avoid one more warning from gcc.
54349         * lib/vasnprintf.c (IF_LINT): Update comments.
54350         (VASNPRINTF): Use it also for the 'prefix' array initializer.
54351
54352 2008-05-21  Jim Meyering  <meyering@redhat.com>
54353
54354         avoid a warning from gcc
54355         * lib/vasnprintf.c (IF_LINT): Define.
54356         (scale10_round_decimal_long_double):
54357         Use it to avoid a "may be used uninitialized" warning.
54358         (scale10_round_decimal_double): Likewise.
54359
54360 2008-05-21  Simon Josefsson  <simon@josefsson.org>
54361
54362         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
54363         declared.
54364
54365 2008-05-20  Bruno Haible  <bruno@clisp.org>
54366
54367         * tests/test-memcmp.c (main): Test also the sign of the result. Test
54368         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
54369
54370 2008-05-20  Simon Josefsson  <simon@josefsson.org>
54371
54372         * modules/memcmp-tests: New file.
54373         * tests/test-memcmp.c: New file.
54374
54375 2008-05-19  Bruno Haible  <bruno@clisp.org>
54376
54377         * modules/propername (Notice, configure.ac): Put quoted "..." into
54378         --keyword option.
54379         * lib/propername.h: Update comments accordingly.
54380         Reported by Eric Blake.
54381
54382 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
54383
54384         * modules/getpass-gnu (Depends-on): Add fseeko.
54385
54386 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54387
54388         * modules/base64-tests: New file.
54389
54390 2008-05-19  Bo Borgerson <gigabo@gmail.com>
54391
54392         * lib/base64.c (base64_decode_ctx): If a decode context structure
54393         was passed in use it to ignore newlines.  If a context structure
54394         was _not_ passed in, continue to treat newlines as garbage (this
54395         is the historical behavior).  Formerly base64_decode.
54396         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54397         takes a decode context structure.
54398         * lib/base64.h (base64_decode): Macro for four-argument calls.
54399         (base64_decode_alloc): Likewise.
54400         * lib/base64.c (base64_decode_ctx): If a decode context structure
54401         was passed in use it to ignore newlines.  If a context structure
54402         was _not_ passed in, continue to treat newlines as garbage (this
54403         is the historical behavior).  Formerly base64_decode.
54404         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54405         takes a decode context structure.
54406         * lib/base64.h (base64_decode): Macro for four-argument calls.
54407         (base64_decode_alloc): Likewise.
54408
54409 2008-05-19  Jim Meyering  <meyering@redhat.com>
54410
54411         avoid a warning from gcc
54412         * lib/trim.c (IF_LINT): Define.
54413         (trim2): Use it to avoid a "may be used uninitialized" warning.
54414
54415         Fix doc typo.
54416         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
54417
54418 2008-05-19  Bruno Haible  <bruno@clisp.org>
54419
54420         * doc/glibc-functions/getpass.texi: Document limits of other
54421         implementations.
54422
54423 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54424             Bruno Haible <bruno@clisp.org>
54425
54426         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
54427
54428 2008-05-18  Bruno Haible  <bruno@clisp.org>
54429
54430         * modules/propername: New file, from GNU gettext.
54431         * lib/propername.h: New file, from GNU gettext.
54432         * lib/propername.c: New file, from GNU gettext.
54433         * MODULES.html.sh (Internationalization functions): Add propername.
54434
54435 2008-05-16  Jim Meyering  <meyering@redhat.com>
54436             Bruno Haible  <bruno@clisp.org>
54437
54438         Avoid some warnings from "gcc -Wshadow".
54439         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
54440
54441 2008-05-15  Eric Blake  <ebb9@byu.net>
54442
54443         Extend previous patch to cygwin 1.7.0.
54444         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
54445         fast implementation in cygwin >= 1.7.0.
54446         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54447         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54448
54449 2008-05-15  Bruno Haible  <bruno@clisp.org>
54450
54451         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
54452         implementation in glibc >= 2.9.
54453         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54454         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54455
54456 2008-05-15  Bruno Haible  <bruno@clisp.org>
54457
54458         * MODULES.html.sh (Internationalization functions): Remove linebreak.
54459         (Unicode string functions): Add unilbrk/*.
54460         Reported by Karl Berry.
54461
54462 2008-05-15  Eric Blake  <ebb9@byu.net>
54463
54464         Fix violation of <stdbool.h> replacement in regex.
54465         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
54466         * lib/regexec.c (re_search_internal): Likewise.
54467         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
54468
54469 2008-05-15  Jim Meyering  <meyering@redhat.com>
54470
54471         avoid distracting test output when git or cvs is not found
54472         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
54473         * tests/test-vc-list-files-git.sh: Likewise.
54474
54475 2008-05-15  Eric Blake  <ebb9@byu.net>
54476
54477         Glibc finally accepted the memmem speedup code, bugzilla #5514.
54478         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
54479         glibc version.
54480         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
54481         * doc/posix-functions/strstr.texi (strstr): Likewise.
54482         * lib/str-two-way.h (MAX): Sychronize with glibc.
54483
54484 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
54485
54486         * lib/regcomp.c (optimize_utf8): Add a note on why we test
54487         opr.ctx_type.
54488         (calc_first): Initialize constraint field.
54489         (duplicate_node_closure): Use it instead of special casing ANCHORS.
54490         Fix grammar.
54491         (duplicate_node): Merge constraint field for all node types.
54492         (calc_eclosure_iter): Look at constraint field for all node types.
54493         * lib/regex_internal.c (create_cd_newstate): Don't look at
54494         opr.ctx_type.
54495
54496 2008-05-14  Bruno Haible  <bruno@clisp.org>
54497
54498         Help GCC to do better code generation.
54499         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
54500         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
54501         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
54502         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
54503         Declare with attribute 'malloc' if supported.
54504
54505 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
54506
54507         use "echo STR|wc -c" rather than unportable "expr length STR"
54508         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
54509         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
54510
54511 2008-05-14  Jim Meyering  <meyering@redhat.com>
54512
54513         use dd ibs=$n count=1 ... rather than less-portable head -c$n
54514         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
54515         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
54516         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
54517         via Collin Lasse.
54518
54519 2008-05-14  Eric Blake  <ebb9@byu.net>
54520
54521         Avoid quadratic growth in gl_LIBSOURCES.
54522         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
54523         Suggested by Bruno Haible.
54524
54525         Test xmemdup0.
54526         * modules/xmemdup0-tests: New file.
54527         * tests/test-xmemdup0.c: Likewise.
54528
54529 2008-05-13  Eric Blake  <ebb9@byu.net>
54530
54531         Split xmemdup0 into its own module.
54532         * modules/xmemdup0: New file.
54533         * lib/xmemdup0.h: Likewise.
54534         * lib/xmemdup0.c: Likewise.
54535         * MODULES.html.sh (Memory management functions): Add xmemdup0.
54536         * lib/xalloc.h (xmemdup0): Remove.
54537         * lib/xmalloc.c (xmemdup0): Likewise.
54538
54539 2008-05-13  Eric Blake  <ebb9@byu.net>
54540             Bruno Haible  <bruno@clisp.org>
54541
54542         Reduce number of forks required during autoconf.
54543         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
54544         and gl_LIBSOURCES_DIR.
54545         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
54546         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
54547         m4_syscmd per file.
54548         <m4_foreach_w>: Move...
54549         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
54550
54551 2008-05-13  Eric Blake  <ebb9@byu.net>
54552
54553         * gnulib-tool: Fix various comment typos.
54554
54555 2008-05-12  Bruno Haible  <bruno@clisp.org>
54556
54557         Tailor the linebreaking algorithm.
54558         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
54559
54560 2008-05-12  Bruno Haible  <bruno@clisp.org>
54561
54562         Update to Unicode 5.0.0.
54563         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54564         LBP_JV, LBP_JT. Redistribute values.
54565         (unilbrk_table): Change size.
54566         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
54567         Unicode TR#14 rev. 22.
54568         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54569         LBP_JV, LBP_JT. Redistribute values.
54570         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
54571         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
54572         Update.
54573         * lib/unilbrk/lbrkprop1.h: Regenerated.
54574         * lib/unilbrk/lbrkprop2.h: Regenerated.
54575         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
54576         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
54577         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
54578         Likewise.
54579         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
54580         Likewise.
54581         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
54582         result.
54583         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
54584         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
54585         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
54586         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
54587         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
54588         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
54589
54590 2008-05-11  Bruno Haible  <bruno@clisp.org>
54591
54592         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
54593
54594 2008-05-11  Bruno Haible  <bruno@clisp.org>
54595
54596         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
54597         * modules/unilbrk/gen-lbrk: New file.
54598
54599 2008-05-11  Bruno Haible  <bruno@clisp.org>
54600
54601         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
54602         * m4/sha512.m4 (gl_SHA512): Likewise.
54603
54604 2008-05-11  Jim Meyering  <meyering@redhat.com>
54605
54606         New modules: crypto/sha256, crypto/sha512 (from coreutils)
54607         * modules/crypto/sha256: New file.
54608         * modules/crypto/sha512: Likewise.
54609         * lib/sha256.c: Likewise.
54610         * lib/sha256.h: Likewise.
54611         * lib/sha512.c: Likewise.
54612         * lib/sha512.h: Likewise.
54613         * lib/u64.h: Likewise.
54614         * m4/sha256.m4: Likewise.
54615         * m4/sha512.m4: Likewise.
54616         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
54617
54618 2008-05-10  Bruno Haible  <bruno@clisp.org>
54619
54620         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
54621         (Input/Output <stdio.h>): Add xprintf.
54622         (Signal handling <signal.h>): Add strsignal.
54623         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
54624         (Core language properties): Add func.
54625         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
54626         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
54627         strings.
54628         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
54629         (Input/output): New section.
54630         (File system functions): Add openat-die, stat-macros.
54631         (Networking functions): Add sockets.
54632         (Unicode string functions): Add unictype/*.
54633         (Support for building libraries and executables): Add gperf.
54634         (Support for building documentation): Add agpl-3.0.
54635         (Misc): Add nocrash.
54636
54637 2008-05-10  Bruno Haible  <bruno@clisp.org>
54638
54639         * modules/unictype/gen-ctype: New file.
54640
54641 2008-05-10  Jim Meyering  <meyering@redhat.com>
54642
54643         Make chdir-safer.c more efficient on a system with no symlinks.
54644         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
54645         also if ELOOP is zero.  Suggested by Bruno Haible.
54646
54647         Make chdir-safer.c slightly safer.
54648         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
54649         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
54650
54651         Avoid compile failure on systems without ELOOP (like mingw).
54652         * lib/chdir-safer.c (ELOOP): Define if not already defined.
54653         Reported by Bruno Haible.
54654
54655 2008-05-10  Bruno Haible  <bruno@clisp.org>
54656
54657         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
54658         (is_utf8_encoding): Use a case-insensitive comparison.
54659         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
54660         streq.
54661
54662 2008-05-10  Bruno Haible  <bruno@clisp.org>
54663
54664         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
54665         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
54666         * lib/unilbrk/ulc-common.h (iconv_string_length,
54667         iconv_string_keeping_offsets): Remove declarations.
54668         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
54669         Don't include <iconv.h>, streq.h, xsize.h.
54670         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
54671         conversion.
54672         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
54673         <iconv.h>, streq.h, xsize.h.
54674         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
54675         conversion.
54676         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
54677         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
54678         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
54679         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
54680
54681 2008-05-10  Bruno Haible  <bruno@clisp.org>
54682
54683         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
54684         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
54685
54686         * modules/unilbrk/u32-width-linebreaks-tests: New file.
54687         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
54688
54689         * modules/unilbrk/u16-width-linebreaks-tests: New file.
54690         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
54691
54692         * modules/unilbrk/u8-width-linebreaks-tests: New file.
54693         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
54694
54695         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
54696         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
54697
54698         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
54699         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
54700
54701         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
54702         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
54703
54704         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
54705         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
54706
54707 2008-05-10  Bruno Haible  <bruno@clisp.org>
54708
54709         Split up 'linebreak' module.
54710         * lib/unilbrk.h: New file, based on lib/linebreak.h.
54711         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
54712         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
54713         modifications.
54714         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
54715         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
54716         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
54717         lib/linebreak.c.
54718         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
54719         lib/linebreak.c.
54720         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
54721         lib/linebreak.c.
54722         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
54723         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
54724         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
54725         lib/linebreak.c.
54726         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
54727         lib/linebreak.c.
54728         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
54729         lib/linebreak.c.
54730         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
54731         lib/linebreak.c.
54732         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
54733         lib/linebreak.c.
54734         * modules/unilbrk/base: New file.
54735         * modules/unilbrk/tables: New file.
54736         * modules/unilbrk/u8-possible-linebreaks: New file.
54737         * modules/unilbrk/u16-possible-linebreaks: New file.
54738         * modules/unilbrk/u32-possible-linebreaks: New file.
54739         * modules/unilbrk/ulc-common: New file.
54740         * modules/unilbrk/ulc-possible-linebreaks: New file.
54741         * modules/unilbrk/u8-width-linebreaks: New file.
54742         * modules/unilbrk/u16-width-linebreaks: New file.
54743         * modules/unilbrk/u32-width-linebreaks: New file.
54744         * modules/unilbrk/ulc-width-linebreaks: New file.
54745         * lib/linebreak.h: Remove file.
54746         * lib/linebreak.c: Remove file.
54747         * m4/linebreak.m4: Remove file.
54748         * modules/linebreak: Remove file.
54749         * NEWS: Mention the changes.
54750
54751 2008-05-09  Eric Blake  <ebb9@byu.net>
54752
54753         Add xmemdup0.
54754         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
54755         implementation.
54756         * lib/xmalloc.c (xmemdup0): New C implementation.
54757
54758 2008-05-08  Bruno Haible  <bruno@clisp.org>
54759
54760         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
54761
54762 2008-05-07  Eric Blake  <ebb9@byu.net>
54763
54764         Support cross-compilation of <wctype.h>.
54765         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
54766         AC_CACHE_CHECK.
54767
54768 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
54769
54770         * build-aux/vc-list-files: Add support for bzr.
54771
54772 2008-05-03  Jim Meyering  <meyering@redhat.com>
54773
54774         avoid failed assertion with tight malloc
54775         * tests/test-getndelim2.c: Correct an off-by-one assertion.
54776
54777 2008-05-03  Simon Josefsson  <simon@josefsson.org>
54778
54779         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
54780         are needed from arpa/inet.h.
54781         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
54782         Reported by Bruno Haible.
54783
54784 2008-05-02  Jim Meyering  <meyering@redhat.com>
54785
54786         avoid compilation error on FreeBSD 6
54787         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
54788
54789 2008-05-01  Jim Meyering  <meyering@redhat.com>
54790
54791         useless-if-before-free: correct --help's exit status description
54792         * build-aux/useless-if-before-free (usage): Like grep, exit 0
54793         for one or more matches, etc.  Reported by Bruno Haible.
54794
54795         vc-list-files: make the stand-alone gnulib test work
54796         * modules/vc-list-files-tests (configure.ac):
54797         Define and AC_SUBST abs_aux_dir.
54798         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
54799         $(abs_top_srcdir) to each script and having each of them
54800         duplicate the work of setting PATH, set PATH here, using
54801         the new variable, abs_aux_dir instead.
54802         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
54803         * tests/test-vc-list-files-git.sh: Likewise.
54804         Reported by Bruno Haible.
54805
54806 2008-05-01  Bruno Haible  <bruno@clisp.org>
54807
54808         * lib/getndelim2.c (getndelim2): Fix newsize computation during
54809         reallocation. Rename 'done' to 'found_delimiter'.
54810
54811 2008-05-01  Jim Meyering  <meyering@redhat.com>
54812
54813         vc-list-files: accommodate /bin/sh like the one from Solaris 10
54814         * build-aux/vc-list-files: Use `...`, not $(...).
54815
54816 2008-04-30  Jim Meyering  <meyering@redhat.com>
54817
54818         add tests for vc-list-files
54819         * modules/vc-list-files-tests: New module.
54820         * tests/test-vc-list-files-cvs.sh: New file.
54821         * tests/test-vc-list-files-git.sh: New file.
54822
54823         avoid a warning from gcc
54824         * lib/getndelim2.c (IF_LINT): Define.
54825         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
54826
54827         vc-list-files: work properly with build-aux/cvsu, too
54828         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
54829         to all cvs-based clauses.
54830
54831         vc-list-files: work properly in the CVS+awk case, too
54832         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
54833
54834         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
54835         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
54836         take more than one file argument, so .  Add quotes, just in case $dir
54837         ever contains a shell meta-character.  Prompted by Soren Hansen in
54838         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
54839
54840 2008-04-29  Eric Blake  <ebb9@byu.net>
54841
54842         Optimize getndelim2 to use block operations when possible.
54843         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
54844         freadseek, and memchr2.
54845         * lib/getndelim2.c (getndelim2): Use them for block reads.
54846
54847 2008-04-29  Bruno Haible  <bruno@clisp.org>
54848
54849         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
54850         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54851         * modules/inet_ntop (Depends-on): Add extensions.
54852         * modules/inet_pton (Depends-on): Likewise.
54853         Reported by Simon Josefsson.
54854
54855 2008-04-29  Jim Meyering  <meyering@redhat.com>
54856
54857         When the is more than one match in a block, match all of them.
54858         * build-aux/useless-if-before-free: Iterate through each block
54859         until there are no more matches.
54860
54861         Fix broken useless-if-before-free script.
54862         * build-aux/useless-if-before-free: Fix typo: missing "?" after
54863         the expression to match cast of argument to free-like function.
54864
54865 2008-04-29  Eric Blake  <ebb9@byu.net>
54866
54867         Use new header.
54868         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
54869
54870 2008-04-29  Jim Meyering  <meyering@redhat.com>
54871
54872         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
54873         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
54874         by gnulib to exist and to declare e.g., inet_ntop.
54875         Don't include "inet_ntop.h", now removed.
54876
54877         * m4/arpa_inet_h.m4: Remove trailing blanks.
54878
54879 2008-04-29  Eric Blake  <ebb9@byu.net>
54880
54881         Silence valgrind on safe reads beyond potential array bounds.
54882         * lib/rawmemchr.valgrind: New file.
54883         * lib/strchrnul.valgrind: Likewise.
54884         * modules/rawmemchr (Files): Distribute new file.
54885         * modules/strchrnul (Files): Likewise.
54886         Suggested by Bruno Haible.
54887
54888 2008-04-29  Bruno Haible  <bruno@clisp.org>
54889
54890         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
54891         (inet_ntop, inet_pton): Change portability warning's wording.
54892         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
54893         Invoke gl_CHECK_NEXT_HEADERS.
54894         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
54895         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
54896         set ARPA_INET_H.
54897         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54898         * modules/arpa_inet (Description): No longer only for systems that
54899         lack it.
54900         (Depends-on): Add include_next.
54901         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
54902         HAVE_ARPA_INET_H.
54903
54904 2008-04-29  Jim Meyering  <meyering@redhat.com>
54905
54906         * modules/mkdir (License): Re-license as LGPLv2+.
54907
54908 2008-04-29  Bruno Haible  <bruno@clisp.org>
54909
54910         * modules/rawmemchr (Maintainer): Set to Eric.
54911         * modules/strchrnul (Maintainer): Likewise.
54912
54913 2008-04-29  Simon Josefsson  <simon@josefsson.org>
54914
54915         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
54916         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
54917
54918         * modules/arpa_inet (arpa/inet.h): Use them.
54919
54920 2008-04-28  Eric Blake  <ebb9@byu.net>
54921
54922         Test getndelim2.
54923         * modules/getndelim2-tests: New file.
54924         * tests/test-getndelim2.c: Likewise.
54925         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
54926         stream.
54927         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
54928
54929         * MODULES.html.sh: Document new module.
54930
54931 2008-04-20  Bruno Haible  <bruno@clisp.org>
54932
54933         * lib/c-stack.c (die): Use raise.
54934         * modules/c-stack (Depends-on): Add raise.
54935
54936 2008-04-28  Bruno Haible  <bruno@clisp.org>
54937
54938         Expect rpmatch to be declared.
54939         * lib/yesno.c (rpmatch): Remove declaration.
54940
54941         Declare rpmatch.
54942         * lib/stdlib.in.h (rpmatch): New declaration.
54943         * lib/rpmatch.c: Include <stdlib.h> first.
54944         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
54945         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
54946         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
54947         HAVE_RPMATCH.
54948         * modules/rpmatch (Depends-on): Add stdlib, extensions.
54949         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54950         (Include): Set to <stdlib.h>.
54951         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
54952         HAVE_RPMATCH.
54953         * NEWS: Document the change.
54954
54955 2008-04-28  Bruno Haible  <bruno@clisp.org>
54956
54957         Change rpmatch to use nl_langinfo when appropriate.
54958         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
54959         (N_): New macro.
54960         (localized_pattern): New function/macro.
54961         (try): Remove match, nomatch arguments. Copy the pattern into safe
54962         memory before caching it.
54963         (rpmatch): Use localized_pattern. Add translator comments.
54964         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
54965         Suggested by Eric Blake.
54966         * modules/rpmatch (Depends-on): Add stdbool.
54967
54968 2008-04-28  Eric Blake  <ebb9@byu.net>
54969
54970         Add rawmemchr module, matching glibc.
54971         * modules/string (Makefile.am): New indicator.
54972         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
54973         * lib/string.in.h (rawmemchr): Declare when appropriate.
54974         * modules/rawmemchr: New file.
54975         * m4/rawmemchr.m4: Likewise.
54976         * lib/rawmemchr.c: Likewise.
54977         * modules/rawmemchr-tests: Likewise.
54978         * tests/test-rawmemchr.c: Likewise.
54979         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
54980         module.
54981         * modules/strchrnul (Depends-on): Add rawmemchr.
54982         * lib/strchrnul.c (strchrnul): Optimize a corner case.
54983
54984         Whitespace cleanup.
54985         * tests/test-strchrnul.c: Reindent.
54986         * lib/strchrnul.c: Likewise.
54987
54988         Optimize and test strchrnul.
54989         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
54990         * modules/strchrnul-tests: New file.
54991         * tests/test-strchrnul.c: Likewise.
54992
54993         Remove intprops dependency.
54994         * modules/memchr (Depends-on): Remove intprops.
54995         * modules/memrchr (Depends-on): Likewise.
54996         * modules/memchr2 (Depends-on): Likewise.
54997         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
54998         * lib/memrchr.c (__memrchr): Likewise.
54999         * lib/memrchr2.c (memchr2): Likewise.
55000         Reported by Simon Josefsson.
55001
55002 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55003
55004         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
55005         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55006
55007 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55008
55009         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
55010
55011         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
55012
55013         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
55014
55015         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
55016         declarations.
55017         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
55018
55019         * m4/inet_pton.m4: Don't check for header files.
55020
55021         * m4/inet_ntop.m4: Don't check for header files.
55022
55023 2008-04-28  Simon Josefsson  <simon@josefsson.org>
55024
55025         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
55026         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
55027         trigger for cygwin).
55028         Reported by Bruno Haible  <bruno@clisp.org>.
55029
55030 2008-04-28  Bruno Haible  <bruno@clisp.org>
55031
55032         * doc/posix-functions/strdup.texi: Mention mingw problem.
55033
55034 2008-04-27  Bruno Haible  <bruno@clisp.org>
55035
55036         * modules/stat-time-tests (Depends-on): Add sleep.
55037         * tests/test-stat-time.c (force_unlink): New function.
55038         (cleanup): Use it.
55039         (test_mtime): Remove the ctime related tests.
55040         (test_ctime): New function, containing the ctime related tests.
55041         (main): Call test_ctime, except on native Windows platforms.
55042
55043 2008-04-27  Bruno Haible  <bruno@clisp.org>
55044
55045         * lib/rpmatch.c (rpmatch): Add some comments.
55046         Reported by James Youngman <jay@gnu.org>.
55047
55048 2008-04-27  Bruno Haible  <bruno@clisp.org>
55049
55050         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
55051         quiet NaNs.
55052
55053 2008-04-27  Bruno Haible  <bruno@clisp.org>
55054
55055         Make test-yesno.sh work on mingw.
55056         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
55057         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
55058         (main): Set stdin to binary mode.
55059         * modules/yesno-tests (Depends-on): Add binary-io.
55060
55061 2008-04-27  Bruno Haible  <bruno@clisp.org>
55062
55063         Fix 'isfinite' on x86, x86_64, ia64 platforms.
55064         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
55065         argument that lie outside the IEEE 854 domain.
55066         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
55067         (gl_ISFINITE): Use it.
55068         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
55069
55070 2008-04-27  Bruno Haible  <bruno@clisp.org>
55071
55072         Allow local renaming in config.h.
55073         * lib/memrchr.c (memrchr): Don't undefine outside libc.
55074
55075 2008-04-27  Bruno Haible  <bruno@clisp.org>
55076
55077         * lib/memchr.c (__memchr): Change type of 'i'.
55078         * lib/memchr2.c (memchr2): Likewise.
55079
55080 2008-04-26  Eric Blake  <ebb9@byu.net>
55081         and Bruno Haible  <bruno@clisp.org>
55082
55083         Optimize and test memrchr.
55084         * modules/memrchr (Depends-on): Add intprops.
55085         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
55086         * modules/memrchr-tests: New file.
55087         * tests/test-memrchr.c: New file.
55088
55089 2008-04-26  Bruno Haible  <bruno@clisp.org>
55090
55091         Add tentative support for DragonFly BSD.
55092         * lib/stdio-impl.h: Add macros for DragonFly BSD.
55093         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
55094         fp.
55095         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55096         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
55097         * lib/fpurge.c (fpurge): Likewise.
55098         * lib/freadable.c (freaadable): Likewise.
55099         * lib/freadahead.c (freadahead): Likewise.
55100         * lib/freading.c (freading): Likewise.
55101         * lib/freadptr.c (freadptr): Likewise.
55102         * lib/freadseek.c (freadptrinc): Likewise.
55103         * lib/fseeko.c (fseeko): Likewise.
55104         * lib/fseterr.c (fseterr): Likewise.
55105         * lib/fwritable.c (fwritable): Likewise.
55106         * lib/fwriting.c (fwriting): Likewise.
55107
55108 2008-04-26  Bruno Haible  <bruno@clisp.org>
55109
55110         * lib/stdio-impl.h: New file.
55111         * lib/fbufmode.c: Include stdio-impl.h.
55112         (fbufmode): Use fp_, remove redundant #defines.
55113         * lib/fflush.c: Include stdio-impl.h.
55114         (clear_ungetc_buffer): Remove redundant #defines.
55115         * lib/fpurge.c: Include stdio-impl.h.
55116         (fpurge): Remove redundant #defines.
55117         * lib/freadable.c: Include stdio-impl.h.
55118         (freadable): Remove redundant #defines.
55119         * lib/freadahead.c: Include stdio-impl.h.
55120         (freadahead): Remove redundant #defines.
55121         * lib/freading.c: Include stdio-impl.h.
55122         (freading): Remove redundant #defines.
55123         * lib/freadptr.c: Include stdio-impl.h.
55124         (freadptr): Remove redundant #defines.
55125         * lib/freadseek.c: Include stdio-impl.h.
55126         (freadptrinc): Remove redundant #defines.
55127         * lib/fseeko.c: Include stdio-impl.h.
55128         (rpl_fseeko): Remove redundant #defines.
55129         * lib/fseterr.c: Include stdio-impl.h.
55130         (fseterr): Remove redundant #defines.
55131         * lib/fwritable.c: Include stdio-impl.h.
55132         (fwritable: Remove redundant #defines.
55133         * lib/fwriting.c: Include stdio-impl.h.
55134         (fwriting): Remove redundant #defines.
55135         * modules/fbufmode (Files): Add lib/stdio-impl.h.
55136         * modules/fflush (Files): Likewise.
55137         * modules/fpurge (Files): Likewise.
55138         * modules/freadable (Files): Likewise.
55139         * modules/freadahead (Files): Likewise.
55140         * modules/freading (Files): Likewise.
55141         * modules/freadptr (Files): Likewise.
55142         * modules/freadseek (Files): Likewise.
55143         * modules/fseeko (Files): Likewise.
55144         * modules/fseterr (Files): Likewise.
55145         * modules/fwritable (Files): Likewise.
55146         * modules/fwriting (Files): Likewise.
55147
55148 2008-04-26  Bruno Haible  <bruno@clisp.org>
55149
55150         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
55151         restore_seek_optimization, update_fpos_cache): New functions, extracted
55152         from rpl_fflush.
55153         (rpl_fflush): Use them.
55154         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
55155         (gl_REPLACE_FFLUSH): Use it.
55156
55157 2008-04-26  Bruno Haible  <bruno@clisp.org>
55158
55159         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
55160         on Solaris.
55161         * tests/test-xstrtoimax.sh: Likewise.
55162         * tests/test-xstrtoumax.sh: Likewise.
55163         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
55164
55165 2008-04-26  Bruno Haible  <bruno@clisp.org>
55166
55167         * modules/memchr-tests: New file.
55168         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
55169
55170 2008-04-26  Eric Blake  <ebb9@byu.net>
55171             Bruno Haible  <bruno@clisp.org>
55172
55173         * lib/memchr.c: Include intprops.h.
55174         (__memchr): Optimize parallel detection of matching bytes. Rename local
55175         variables. Add explanatory comments.
55176
55177 2008-04-26  Bruno Haible  <bruno@clisp.org>
55178
55179         Fix module 'memchr', broken since 2000-10-28.
55180         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
55181
55182 2008-04-26  Bruno Haible  <bruno@clisp.org>
55183
55184         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
55185         comments.
55186
55187 2008-04-25  Eric Blake  <ebb9@byu.net>
55188
55189         Use native fstatat on cygwin 1.7.0.
55190         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
55191         first.
55192
55193 2008-04-23  Eric Blake  <ebb9@byu.net>
55194
55195         Improve memchr2 performance.
55196         * lib/memchr2.c (memchr2): Further optimize parallel detection of
55197         NUL bytes.
55198         * modules/memchr2 (Depends-on): Use intprops.h.
55199
55200 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55201
55202         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
55203         an inline function instead of a CPP macro.  Patch by Ben Pfaff
55204         <blp@cs.stanford.edu>.
55205
55206 2008-04-23  Simon Josefsson  <simon@josefsson.org>
55207
55208         * lib/arpa_inet.in.h: New file.
55209
55210         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
55211         (Makefile.am): Sed in substitute header file.
55212
55213         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
55214         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
55215
55216         * modules/inet_ntop (configure.ac): Use
55217         gl_ARPA_INET_MODULE_INDICATOR.
55218
55219         * modules/inet_pton (configure.ac): Use
55220         gl_ARPA_INET_MODULE_INDICATOR.
55221
55222 2008-04-22  Jim Meyering  <meyering@redhat.com>
55223
55224         * modules/verify (License): Re-license as LGPLv2+.
55225
55226 2008-04-22  Simon Josefsson  <simon@josefsson.org>
55227
55228         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
55229         parameter to void* as per POSIX standard (MinGW uses char*).
55230
55231 2008-04-21  Bruno Haible  <bruno@clisp.org>
55232
55233         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
55234         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
55235         Define to replacements if REPLACE_ISWCNTRL is 1.
55236         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
55237         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
55238         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
55239         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
55240         what it fixes.
55241         * doc/posix-functions/iswalpha.texi: Likewise.
55242         * doc/posix-functions/iswblank.texi: Likewise.
55243         * doc/posix-functions/iswcntrl.texi: Likewise.
55244         * doc/posix-functions/iswdigit.texi: Likewise.
55245         * doc/posix-functions/iswgraph.texi: Likewise.
55246         * doc/posix-functions/iswlower.texi: Likewise.
55247         * doc/posix-functions/iswprint.texi: Likewise.
55248         * doc/posix-functions/iswpunct.texi: Likewise.
55249         * doc/posix-functions/iswspace.texi: Likewise.
55250         * doc/posix-functions/iswupper.texi: Likewise.
55251         * doc/posix-functions/iswxdigit.texi: Likewise.
55252         Reported by Alain Guibert.
55253
55254 2008-04-21  Bruno Haible  <bruno@clisp.org>
55255
55256         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
55257         Patch by Alain Guibert.
55258
55259 2008-04-21  Bruno Haible  <bruno@clisp.org>
55260
55261         Fix test failures on mingw.
55262         * tests/test-xstrtol.c (print_no_progname): New function.
55263         (main): Install it in error_print_progname hook.
55264         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
55265         * tests/test-xstrtoimax.sh: Likewise.
55266         * tests/test-xstrtoumax.sh: Likewise.
55267
55268 2008-04-21  Bruno Haible  <bruno@clisp.org>
55269
55270         Fix test failure on mingw.
55271         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55272
55273 2008-04-21  Bruno Haible  <bruno@clisp.org>
55274
55275         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55276         Actually assign a value.
55277
55278 2008-04-20  Bruno Haible  <bruno@clisp.org>
55279
55280         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55281         take 2.
55282         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55283         'canonicalize-lgpl' module is also used.
55284         * lib/canonicalize-lgpl.c: Undo last change.
55285         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
55286
55287 2008-04-20  Bruno Haible  <bruno@clisp.org>
55288
55289         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
55290         config.h. Provide _mkdir based fallback for mingw.
55291         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
55292         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
55293         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
55294         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
55295         rather than defining mkdir in config.h.
55296         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
55297         (gl_SYS_STAT_H_DEFAULTS): New macro.
55298         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
55299         HAVE_IO_H any more.
55300         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
55301         HAVE_DECL_MKDIR and HAVE_IO_H.
55302
55303 2008-04-20  Bruno Haible  <bruno@clisp.org>
55304
55305         * lib/isapipe.c: Port to native Windows platforms.
55306
55307 2008-04-20  Bruno Haible  <bruno@clisp.org>
55308
55309         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
55310
55311 2008-04-21  Eric Blake  <ebb9@byu.net>
55312
55313         Work around preprocessors that don't handle UINTMAX_MAX.
55314         * lib/memchr2.c (memchr2): Avoid embedded #if.
55315         Reported by Alain Guibert, fix suggested by Bruno Haible.
55316
55317 2008-04-21  Simon Josefsson  <simon@josefsson.org>
55318
55319         * doc/posix-functions/strftime.texi (strftime): Explain better
55320         Windows incompatibility.  Suggested by Micah Cowan
55321         <micah@cowan.name>.
55322
55323 2008-04-20  Bruno Haible  <bruno@clisp.org>
55324
55325         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
55326         unistr/u8-mblen.
55327
55328 2008-04-20  Bruno Haible  <bruno@clisp.org>
55329
55330         Fix test failure on platforms with non-GNU iconv.
55331         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
55332         (U_TO_U8): Use it, rather than u16_to_u8.
55333         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
55334         units at the end of the input string.
55335         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
55336
55337 2008-04-20  Bruno Haible  <bruno@clisp.org>
55338
55339         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
55340         when the resulting length is 0.
55341         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
55342
55343 2008-04-20  Bruno Haible  <bruno@clisp.org>
55344
55345         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
55346         works.
55347         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
55348
55349 2008-04-20  Bruno Haible  <bruno@clisp.org>
55350
55351         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
55352         * modules/tsearch-tests (configure.ac): Test for initstate function.
55353
55354 2008-04-20  Bruno Haible  <bruno@clisp.org>
55355
55356         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
55357         for nlink_t if missing.
55358         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
55359
55360 2008-04-19  Bruno Haible  <bruno@clisp.org>
55361
55362         Work around snprintf bug on Linux libc5.
55363         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
55364         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55365         gl_SNPRINTF_SIZE1.
55366         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55367         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
55368         that test failed.
55369         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
55370         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
55371         * modules/snprintf (Files): Add m4/printf.m4.
55372         * modules/vsnprintf (Files): Likewise.
55373         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
55374         * doc/posix-functions/vsnprintf.texi: Likewise.
55375
55376 2008-04-19  Bruno Haible  <bruno@clisp.org>
55377
55378         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
55379         from 0.0058 to less than 10^-7.
55380
55381 2008-04-19  Bruno Haible  <bruno@clisp.org>
55382
55383         Fix rounding when a precision is given.
55384         * lib/vasnprintf.c (is_borderline): New function.
55385         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
55386         9...9x.
55387         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
55388         %e, %g.
55389         * tests/test-vasprintf-posix.c (test_function): Likewise.
55390         * tests/test-snprintf-posix.h (test_function): Likewise.
55391         * tests/test-sprintf-posix.h (test_function): Likewise.
55392         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
55393         * tests/test-printf-posix.h (test_function): Likewise.
55394         * tests/test-printf-posix.output: Update.
55395         Reported by John Darrington <john@darrington.wattle.id.au> via
55396         Ben Pfaff <blp@cs.stanford.edu>.
55397
55398 2008-04-18  Simon Josefsson  <simon@josefsson.org>
55399
55400         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
55401         Suggested by Bruno Haible <bruno@clisp.org>.
55402
55403 2008-04-17  Bruno Haible  <bruno@clisp.org>
55404
55405         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
55406         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
55407         implementation.
55408         Patch by Bruce Merry <bmerry@gmail.com>.
55409
55410 2008-04-17  Simon Josefsson  <simon@josefsson.org>
55411
55412         * doc/posix-functions/strftime.texi (strftime): Mention that %e
55413         doesn't work under Windows.
55414
55415 2008-04-16  Bruno Haible  <bruno@clisp.org>
55416
55417         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
55418         New macros.
55419         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
55420         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
55421         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
55422         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
55423         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
55424         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
55425         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
55426         macros.
55427         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
55428         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
55429         Northern Sotho, Uighur.
55430
55431 2008-04-16  Bruno Haible  <bruno@clisp.org>
55432
55433         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
55434         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
55435         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
55436         Reported by Daniel Bergström <daniel@octocode.com>.
55437
55438 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
55439             Bruno Haible  <bruno@clisp.org>
55440
55441         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
55442         function.
55443         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
55444         New functions, mostly extracted from gl_locale_name_default.
55445         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
55446
55447 2008-04-16  Eric Blake  <ebb9@byu.net>
55448
55449         Adjust strtod detection to catch glibc 2.7 bug.
55450         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
55451         Reported by John Gatewood Ham.
55452
55453 2008-04-16  Bruno Haible  <bruno@clisp.org>
55454
55455         Add tentative support for Linux libc5.
55456         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
55457         * lib/fpurge.c (fpurge): Likewise.
55458         * lib/freadable.c (freadable): Likewise.
55459         * lib/freadahead.c (freadahead): Likewise.
55460         * lib/freading.c (freading): Likewise.
55461         * lib/freadptr.c (freadptr): Likewise.
55462         * lib/freadseek.c (freadptrinc): Likewise.
55463         * lib/fseeko.c (rpl_fseeko): Likewise.
55464         * lib/fseterr.c (fseterr): Likewise.
55465         * lib/fwritable.c (fwritable): Likewise.
55466         * lib/fwriting.c (fwriting): Likewise.
55467         Reported by Alain Guibert <alguibert+bts@free.fr>.
55468
55469 2008-04-15  Bruno Haible  <bruno@clisp.org>
55470
55471         * modules/mathl (configure.ac): Define module indicator.
55472
55473 2008-04-15  Bruno Haible  <bruno@clisp.org>
55474
55475         * lib/logl.c (logl): Remove unused variables.
55476
55477 2008-04-15  Bruno Haible  <bruno@clisp.org>
55478
55479         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
55480         fails.
55481
55482 2008-04-15  Bruno Haible  <bruno@clisp.org>
55483
55484         * lib/trim.c (trim2): Fix argument of isspace() macro.
55485
55486 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
55487
55488         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
55489         to 0.
55490         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
55491
55492 2008-04-14  Bruno Haible  <bruno@clisp.org>
55493
55494         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
55495         AC_LANG_PROGRAM argument.
55496         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
55497         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
55498         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
55499         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55500         * m4/math_h.m4 (gl_MATH_H): Likewise.
55501         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
55502         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55503         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55504         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
55505         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
55506         * m4/regex.m4 (gl_REGEX): Likewise.
55507         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
55508         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
55509         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55510         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
55511         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55512         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55513         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55514         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55515
55516 2008-04-14  Jim Meyering  <meyering@redhat.com>
55517
55518         test-strtod: fix typos: s/abs/fabs/
55519         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
55520
55521 2008-04-13  Bruno Haible  <bruno@clisp.org>
55522
55523         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
55524         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
55525         module is also used and while not building the reloc-wrapper.
55526
55527 2008-04-13  Bruno Haible  <bruno@clisp.org>
55528
55529         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
55530
55531 2008-04-13  Bruno Haible  <bruno@clisp.org>
55532
55533         Fix AIX compilation failure introduced on 2008-04-02.
55534         * tests/test-frexp.c (exp): Undefine before redefining.
55535         * tests/test-frexpl.c (exp): Likewise.
55536
55537 2008-04-13  Bruno Haible  <bruno@clisp.org>
55538
55539         Work around a HP-UX stdio bug.
55540         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
55541         * tests/test-ftello.c (main): Likewise.
55542         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
55543         * doc/posix-functions/ftello.texi: Likewise.
55544
55545 2008-04-13  Bruno Haible  <bruno@clisp.org>
55546
55547         Make test-signbit pass on HP-UX/hppa.
55548         * tests/test-signbit.c (minus_zerol): New variable.
55549         (test_signbitl): Use it.
55550
55551 2008-04-13  Bruno Haible  <bruno@clisp.org>
55552
55553         Make truncl work on OSF/1 4.0.
55554         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
55555         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55556         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55557         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
55558         HAVE_DECL_TRUNCL.
55559         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
55560         HAVE_DECL_TRUNCL.
55561         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
55562
55563 2008-04-13  Bruno Haible  <bruno@clisp.org>
55564
55565         * lib/unictype.h: Remove trailing comma from enumeration definitions.
55566
55567 2008-04-13  Bruno Haible  <bruno@clisp.org>
55568
55569         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
55570         expression, so as to avoid HP-UX 11 cc compiler bug.
55571
55572 2008-04-13  Bruno Haible  <bruno@clisp.org>
55573
55574         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
55575
55576 2008-04-13  Bruno Haible  <bruno@clisp.org>
55577
55578         * lib/git-merge-changelog.c: Remove empty declaration outside of
55579         functions.
55580
55581 2008-04-13  Bruno Haible  <bruno@clisp.org>
55582
55583         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
55584
55585 2008-04-13  Bruno Haible  <bruno@clisp.org>
55586
55587         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
55588         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
55589         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
55590         also if it exists but lacks definitions of the SHUT_* macros.
55591         * modules/sys_socket (Description): Update.
55592         Reported by Elbert Pol <e.pol@chello.nl>.
55593
55594 2008-04-13  Bruno Haible  <bruno@clisp.org>
55595
55596         * lib/localcharset.c (OS2): Don't redefine if already defined.
55597         Reported by Elbert Pol <e.pol@chello.nl>.
55598
55599 2008-04-13  Bruno Haible  <bruno@clisp.org>
55600
55601         * lib/binary-io.h [__EMX__]: Include <io.h>.
55602         Reported by Elbert Pol <e.pol@chello.nl>.
55603
55604 2008-04-12  Bruno Haible  <bruno@clisp.org>
55605
55606         * lib/fpucw.h: Enable the definitions also for x86_64.
55607         Needed for NetBSD/x86_64.
55608         Reported by Thomas Klausner <tk@giga.or.at>.
55609
55610 2008-04-12  Bruno Haible  <bruno@clisp.org>
55611
55612         * tests/test-strtod.c: Include isnand.h.
55613         (main): Use isnand instead of isnan.
55614         Reported by Jim Meyering.
55615
55616 2008-04-12  Bruno Haible  <bruno@clisp.org>
55617
55618         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
55619         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55620
55621 2008-04-12  Jim Meyering  <meyering@redhat.com>
55622
55623         * m4/math_h.m4 (gl_MATH_H): Fix typos.
55624
55625 2008-04-12  Bruno Haible  <bruno@clisp.org>
55626
55627         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
55628         Reported by Elbert Pol <e.pol@chello.nl>.
55629
55630 2008-04-12  Eric Blake  <ebb9@byu.net>
55631
55632         Work around Solaris 10 math.h bug.
55633         * m4/math_h.m4 (gl_MATH_H): Check for bug.
55634         (gl_MATH_H_DEFAULTS): Set up default.
55635         * modules/math (Makefile.am): Replace new indicators.
55636         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
55637         * tests/test-math.c (main): Test this.
55638         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
55639         * doc/posix-headers/math.texi (math.h): Mention bug.
55640         Reported by Nelson H. F. Beebe and Jim Meyering.
55641
55642 2008-04-11  Bruno Haible  <bruno@clisp.org>
55643
55644         Adapt to future versions of Apple GCC.
55645         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
55646         Reported by Peter O'Gorman <peter@pogma.com>.
55647
55648 2008-04-11  Bruno Haible  <bruno@clisp.org>
55649
55650         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
55651
55652 2008-04-11  Bruno Haible  <bruno@clisp.org>
55653
55654         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
55655
55656         * modules/getaddrinfo-tests (Makefile.am): Define
55657         test_getaddrinfo_LDADD.
55658
55659 2008-04-11  Bruno Haible  <bruno@clisp.org>
55660
55661         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
55662         (init): Fix syntax error.
55663         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
55664         is declared.
55665
55666 2008-04-11  Bruno Haible  <bruno@clisp.org>
55667
55668         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
55669         * modules/glob (Depends-on): Add stdbool.
55670
55671 2008-04-11  Bruno Haible  <bruno@clisp.org>
55672
55673         * lib/trim.c: Include <string.h>.
55674
55675 2008-04-11  Eric Blake  <ebb9@byu.net>
55676
55677         Avoid compile failure on OS/2.
55678         * lib/regex_internal.h (internal_function): Disable optimization
55679         on OS/2 (__EMX__), where it caused compiler error.
55680         Reported by Elbert Pol.
55681
55682 2008-04-11  Bruno Haible  <bruno@clisp.org>
55683
55684         Flush the standard error stream before aborting. Needed on mingw.
55685         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
55686         * tests/test-array_list.c (ASSERT): Likewise.
55687         * tests/test-array_oset.c (ASSERT): Likewise.
55688         * tests/test-avltree_list.c (ASSERT): Likewise.
55689         * tests/test-avltree_oset.c (ASSERT): Likewise.
55690         * tests/test-avltreehash_list.c (ASSERT): Likewise.
55691         * tests/test-binary-io.c (ASSERT): Likewise.
55692         * tests/test-byteswap.c (ASSERT): Likewise.
55693         * tests/test-c-ctype.c (ASSERT): Likewise.
55694         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
55695         * tests/test-c-strcasestr.c (ASSERT): Likewise.
55696         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
55697         * tests/test-c-strstr.c (ASSERT): Likewise.
55698         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
55699         * tests/test-canonicalize.c (ASSERT): Likewise.
55700         * tests/test-carray_list.c (ASSERT): Likewise.
55701         * tests/test-ceilf1.c (ASSERT): Likewise.
55702         * tests/test-ceilf2.c (ASSERT): Likewise.
55703         * tests/test-ceill.c (ASSERT): Likewise.
55704         * tests/test-count-one-bits.c (ASSERT): Likewise.
55705         * tests/test-fbufmode.c (ASSERT): Likewise.
55706         * tests/test-fflush2.c (ASSERT): Likewise.
55707         * tests/test-floorf1.c (ASSERT): Likewise.
55708         * tests/test-floorf2.c (ASSERT): Likewise.
55709         * tests/test-floorl.c (ASSERT): Likewise.
55710         * tests/test-fopen.c (ASSERT): Likewise.
55711         * tests/test-fpending.c (ASSERT): Likewise.
55712         * tests/test-fprintf-posix.c (ASSERT): Likewise.
55713         * tests/test-fpurge.c (ASSERT): Likewise.
55714         * tests/test-freadable.c (ASSERT): Likewise.
55715         * tests/test-freadahead.c (ASSERT): Likewise.
55716         * tests/test-freading.c (ASSERT): Likewise.
55717         * tests/test-freadptr.c (ASSERT): Likewise.
55718         * tests/test-freadptr2.c (ASSERT): Likewise.
55719         * tests/test-freadseek.c (ASSERT): Likewise.
55720         * tests/test-freopen.c (ASSERT): Likewise.
55721         * tests/test-frexp.c (ASSERT): Likewise.
55722         * tests/test-frexpl.c (ASSERT): Likewise.
55723         * tests/test-fseek.c (ASSERT): Likewise.
55724         * tests/test-fseeko.c (ASSERT): Likewise.
55725         * tests/test-fstrcmp.c (ASSERT): Likewise.
55726         * tests/test-ftell.c (ASSERT): Likewise.
55727         * tests/test-ftello.c (ASSERT): Likewise.
55728         * tests/test-func.c (ASSERT): Likewise.
55729         * tests/test-fwritable.c (ASSERT): Likewise.
55730         * tests/test-fwriting.c (ASSERT): Likewise.
55731         * tests/test-getdelim.c (ASSERT): Likewise.
55732         * tests/test-getline.c (ASSERT): Likewise.
55733         * tests/test-i-ring.c (ASSERT): Likewise.
55734         * tests/test-iconv-utf.c (ASSERT): Likewise.
55735         * tests/test-iconv.c (ASSERT): Likewise.
55736         * tests/test-isfinite.c (ASSERT): Likewise.
55737         * tests/test-isnand.c (ASSERT): Likewise.
55738         * tests/test-isnanf.c (ASSERT): Likewise.
55739         * tests/test-isnanl.h (ASSERT): Likewise.
55740         * tests/test-ldexpl.c (ASSERT): Likewise.
55741         * tests/test-linked_list.c (ASSERT): Likewise.
55742         * tests/test-linkedhash_list.c (ASSERT): Likewise.
55743         * tests/test-localename.c (ASSERT): Likewise.
55744         * tests/test-lseek.c (ASSERT): Likewise.
55745         * tests/test-mbscasecmp.c (ASSERT): Likewise.
55746         * tests/test-mbscasestr1.c (ASSERT): Likewise.
55747         * tests/test-mbscasestr2.c (ASSERT): Likewise.
55748         * tests/test-mbscasestr3.c (ASSERT): Likewise.
55749         * tests/test-mbscasestr4.c (ASSERT): Likewise.
55750         * tests/test-mbschr.c (ASSERT): Likewise.
55751         * tests/test-mbscspn.c (ASSERT): Likewise.
55752         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
55753         * tests/test-mbspbrk.c (ASSERT): Likewise.
55754         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
55755         * tests/test-mbsrchr.c (ASSERT): Likewise.
55756         * tests/test-mbsspn.c (ASSERT): Likewise.
55757         * tests/test-mbsstr1.c (ASSERT): Likewise.
55758         * tests/test-mbsstr2.c (ASSERT): Likewise.
55759         * tests/test-mbsstr3.c (ASSERT): Likewise.
55760         * tests/test-memchr2.c (ASSERT): Likewise.
55761         * tests/test-memmem.c (ASSERT): Likewise.
55762         * tests/test-open.c (ASSERT): Likewise.
55763         * tests/test-printf-frexp.c (ASSERT): Likewise.
55764         * tests/test-printf-frexpl.c (ASSERT): Likewise.
55765         * tests/test-printf-posix.c (ASSERT): Likewise.
55766         * tests/test-quotearg.c (ASSERT): Likewise.
55767         * tests/test-rbtree_list.c (ASSERT): Likewise.
55768         * tests/test-rbtree_oset.c (ASSERT): Likewise.
55769         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
55770         * tests/test-round1.c (ASSERT): Likewise.
55771         * tests/test-roundf1.c (ASSERT): Likewise.
55772         * tests/test-roundl.c (ASSERT): Likewise.
55773         * tests/test-signbit.c (ASSERT): Likewise.
55774         * tests/test-sleep.c (ASSERT): Likewise.
55775         * tests/test-snprintf-posix.c (ASSERT): Likewise.
55776         * tests/test-snprintf.c (ASSERT): Likewise.
55777         * tests/test-sprintf-posix.c (ASSERT): Likewise.
55778         * tests/test-stat-time.c (ASSERT): Likewise.
55779         * tests/test-strcasestr.c (ASSERT): Likewise.
55780         * tests/test-strerror.c (ASSERT): Likewise.
55781         * tests/test-striconv.c (ASSERT): Likewise.
55782         * tests/test-striconveh.c (ASSERT): Likewise.
55783         * tests/test-striconveha.c (ASSERT): Likewise.
55784         * tests/test-strsignal.c (ASSERT): Likewise.
55785         * tests/test-strstr.c (ASSERT): Likewise.
55786         * tests/test-strtod.c (ASSERT): Likewise.
55787         * tests/test-trunc1.c (ASSERT): Likewise.
55788         * tests/test-trunc2.c (ASSERT): Likewise.
55789         * tests/test-truncf1.c (ASSERT): Likewise.
55790         * tests/test-truncf2.c (ASSERT): Likewise.
55791         * tests/test-truncl.c (ASSERT): Likewise.
55792         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
55793         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
55794         * tests/test-vasnprintf.c (ASSERT): Likewise.
55795         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
55796         * tests/test-vasprintf.c (ASSERT): Likewise.
55797         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
55798         * tests/test-vprintf-posix.c (ASSERT): Likewise.
55799         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
55800         * tests/test-vsnprintf.c (ASSERT): Likewise.
55801         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
55802         * tests/test-wcwidth.c (ASSERT): Likewise.
55803         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
55804         * tests/test-xprintf-posix.c (ASSERT): Likewise.
55805         * tests/test-xvasprintf.c (ASSERT): Likewise.
55806         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
55807         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
55808         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
55809         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
55810         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
55811         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
55812         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
55813         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
55814         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
55815         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
55816         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
55817         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
55818         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
55819         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
55820         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
55821         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
55822         * tests/unictype/test-block_list.c (ASSERT): Likewise.
55823         * tests/unictype/test-block_of.c (ASSERT): Likewise.
55824         * tests/unictype/test-block_test.c (ASSERT): Likewise.
55825         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
55826         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
55827         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
55828         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
55829         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
55830         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
55831         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
55832         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
55833         * tests/unictype/test-combining.c (ASSERT): Likewise.
55834         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
55835         * tests/unictype/test-digit.c (ASSERT): Likewise.
55836         * tests/unictype/test-mirror.c (ASSERT): Likewise.
55837         * tests/unictype/test-numeric.c (ASSERT): Likewise.
55838         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
55839         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
55840         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
55841         * tests/unictype/test-scripts.c (ASSERT): Likewise.
55842         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
55843         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
55844         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
55845         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
55846         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
55847         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
55848         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
55849         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
55850         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
55851         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
55852         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
55853         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
55854         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
55855         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
55856         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
55857         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
55858         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
55859         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
55860         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
55861         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
55862         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
55863         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
55864         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
55865         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
55866         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
55867         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
55868         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
55869         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
55870         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
55871         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
55872         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
55873         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
55874         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
55875         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
55876         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
55877         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
55878         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
55879         Reported by Eric Blake.
55880
55881 2008-04-11  Bruno Haible  <bruno@clisp.org>
55882
55883         * lib/wchar.in.h: Tweak comment.
55884
55885 2008-04-11  Bruno Haible  <bruno@clisp.org>
55886
55887         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
55888         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
55889         gl_COMMON.
55890         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
55891
55892 2008-04-11  Bruno Haible  <bruno@clisp.org>
55893
55894         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
55895
55896 2008-04-11  Simon Josefsson  <simon@josefsson.org>
55897
55898         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
55899         of attempting to use non-existing /dev/*random.  Based on patch
55900         from Adam Strzelecki <ono@java.pl> in
55901         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
55902
55903 2008-04-08  Bruno Haible  <bruno@clisp.org>
55904
55905         Add tentative support for emx+gcc.
55906         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
55907         * lib/fpurge.c (fpurge): Likewise.
55908         * lib/freadable.c (freadable): Likewise.
55909         * lib/freadahead.c (freadahead): Likewise.
55910         * lib/freading.c (freading): Likewise.
55911         * lib/freadptr.c (freadptr): Likewise.
55912         * lib/freadseek.c (freadptrinc): Likewise.
55913         * lib/fseeko.c (rpl_fseeko): Likewise.
55914         * lib/fseterr.c (fseterr): Likewise.
55915         * lib/fwritable.c (fwritable): Likewise.
55916         * lib/fwriting.c (fwriting): Likewise.
55917         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
55918
55919 2008-04-09  Eric Blake  <ebb9@byu.net>
55920
55921         Avoid some autoconf warnings.
55922         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
55923         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
55924         * m4/afs.m4 (gl_AFS): Likewise.
55925         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
55926         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
55927         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55928         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
55929         (gl_INTEGER_TYPE_SUFFIX): Likewise.
55930         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
55931         (AC_CHECK_DECLS_ONCE): Likewise.
55932         Rename file...
55933         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
55934         gnulib-tool requires autoconf 2.59 or better.
55935         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
55936
55937 2008-04-08  Eric Blake  <ebb9@byu.net>
55938
55939         Use 'git describe --match' if present (added in git 1.5.5).
55940         * build-aux/git-version-gen: Limit result to tags that match 'v*'
55941         if possible.
55942
55943 2008-04-08  Bruno Haible  <bruno@clisp.org>
55944
55945         Add tentative support for OpenServer.
55946         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
55947         _ptr, _cnt.
55948         * lib/fpurge.c (fpurge): Likewise.
55949         * lib/freadable.c (freadable): Likewise.
55950         * lib/freadahead.c (freadahead): Likewise.
55951         * lib/freading.c (freading): Likewise.
55952         * lib/freadptr.c (freadptr): Likewise.
55953         * lib/freadseek.c (freadptrinc): Likewise.
55954         * lib/fseeko.c (rpl_fseeko): Likewise.
55955         * lib/fseterr.c (fseterr): Likewise.
55956         * lib/fwritable.c (fwritable): Likewise.
55957         * lib/fwriting.c (fwriting): Likewise.
55958         Reported by Roger Cornelius <rac@tenzing.org> and
55959         Brian K. White <brian@aljex.com>.
55960
55961 2008-04-06  Jim Meyering  <meyering@redhat.com>
55962
55963         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
55964
55965 2008-04-06  Bruno Haible  <bruno@clisp.org>
55966
55967         Avoid possible error with non-ASCII bytes in UTF-8 locales.
55968         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
55969         * tests/test-printf-posix.sh: Likewise.
55970         * tests/test-vfprintf-posix.sh: Likewise.
55971         * tests/test-vprintf-posix.sh: Likewise.
55972         * tests/test-xprintf-posix.sh: Likewise.
55973
55974 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55975
55976         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
55977         hide error from 'ls', needed on OS/2.
55978         Report by Elbert Pol <elbert.pol@gmail.com>.
55979
55980 2008-04-04  Eric Blake  <ebb9@byu.net>
55981
55982         Make test-fseeko.c failures meaningful.
55983         * tests/test-fseeko.c: Print line number on failure.
55984         * tests/test-fseek.c: Likewise.
55985         Reported by Nelson H. F. Beebe.
55986
55987         Improve strtod bug detection check.
55988         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
55989         required for Solaris 10.
55990         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
55991
55992 2008-04-04  Bruno Haible  <bruno@clisp.org>
55993
55994         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
55995         by m4/setenv.m4.
55996
55997 2008-04-03  Eric Blake  <ebb9@byu.net>
55998
55999         Ensure sane .version contents.
56000         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
56001         version string.
56002         * build-aux/git-version-gen: Improve documentation.
56003
56004         Make GNU make output nicer.
56005         * top/GNUmakefile [!_have-Makefile]: Add dependency on
56006         MAKECMDGOALS to enforce message for all command line targets.  Set
56007         srcdir for use in maint.mk.
56008
56009         Another maintainer tweak.
56010         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
56011         a target that regenerates version.
56012
56013 2008-04-03  Jim Meyering  <meyering@redhat.com>
56014
56015         vc-list-files: don't cause coreutils "make po-check" failure
56016         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
56017
56018 2008-04-03  Eric Blake  <ebb9@byu.net>
56019
56020         Allow VPATH usage of vc-list-files.
56021         * build-aux/vc-list-files (scriptversion): Add timestamp.
56022         (options): Add --help, --version, -C.
56023         (CVS): Support installed cvsu.
56024
56025 2008-04-02  Bruno Haible  <bruno@clisp.org>
56026
56027         Avoid some "statement with no effect" warnings from gcc.
56028         * tests/test-wctype.c (main): Explicitly ignore unused values.
56029         Reported by Jim Meyering.
56030
56031 2008-04-02  Jim Meyering  <meyering@redhat.com>
56032
56033         Avoid some warnings from "gcc -Wshadow".
56034         * tests/test-frexp.c (exp): Define to a different identifier.
56035         * tests/test-frexpl.c (exp): Likewise.
56036
56037 2008-04-03  Jim Meyering  <meyering@redhat.com>
56038
56039         bootstrap: remove dangling *.[ch] symlinks from lib
56040         * build-aux/bootstrap [dangling symlink removal]: Move find's
56041         -depth option to precede all others, to avoid a warning.
56042         Remove *.[ch] files too, and from "$source_base" (usually lib/).
56043
56044 2008-04-02  Bruno Haible  <bruno@clisp.org>
56045
56046         Avoid some warnings from "gcc -Wshadow".
56047         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
56048         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
56049         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
56050         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
56051         Reported by Jim Meyering.
56052
56053 2008-04-01  Bruno Haible  <bruno@clisp.org>
56054
56055         Fix test to work on IRIX 6.5 with cc.
56056         * tests/test-math.c (numeric_equal): New function.
56057         (main): Use it.
56058
56059 2008-04-01  Bruno Haible  <bruno@clisp.org>
56060
56061         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
56062
56063 2008-04-01  Bruno Haible  <bruno@clisp.org>
56064
56065         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
56066         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56067         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
56068         (Depends-on): Remove math.
56069
56070         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
56071         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56072         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
56073         (Depends-on): Remove math.
56074
56075         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
56076         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56077         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
56078         (Depends-on): Remove math.
56079         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
56080         (Depends-on): Remove math.
56081
56082         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
56083         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
56084         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
56085         (Depends-on): Remove math.
56086         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
56087         (Depends-on): Remove math.
56088
56089         * tests/test-round1.c: Include nan.h.
56090         (main): Use NaNd instead of NAN.
56091         * modules/round-tests (Files): Add tests/nan.h.
56092
56093         * tests/test-trunc1.c: Include nan.h.
56094         (main): Use NaNd instead of NAN.
56095         * modules/trunc-tests (Files): Add tests/nan.h.
56096
56097         * tests/test-roundf1.c: Include nan.h.
56098         (main): Use NaNf instead of NAN.
56099         * modules/roundf-tests (Files): Add tests/nan.h.
56100
56101         * tests/test-truncf1.c: Include nan.h.
56102         (main): Use NaNf instead of NAN.
56103         * modules/truncf-tests (Files): Add tests/nan.h.
56104
56105         * tests/test-ceilf1.c: Include nan.h.
56106         (main): Use NaNf instead of NAN.
56107         * modules/ceilf-tests (Files): Add tests/nan.h.
56108
56109         * tests/test-floorf1.c: Include nan.h.
56110         (main): Use NaNf instead of NAN.
56111         * modules/floorf-tests (Files): Add tests/nan.h.
56112
56113         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
56114         (main): Use NaNf instead of NAN.
56115         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
56116
56117         * tests/test-isnand.c: Include nan.h instead of <math.h>.
56118         (main): Use NaNd instead of NAN.
56119         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
56120
56121         * tests/test-frexp.c: Include nan.h.
56122         (main): Use NaNd instead of NAN.
56123         * modules/frexp-tests (Files): Add tests/nan.h.
56124
56125         * lib/isnan.c: Don't include <math.h>.
56126         (FUNC): Don't use NAN macro.
56127         * modules/isnand-nolibm (Depends-on): Remove math.
56128         * modules/isnanf-nolibm (Depends-on): Remove math.
56129         * modules/isnanl (Depends-on): Remove math.
56130         * modules/isnanl-nolibm (Depends-on): Remove math.
56131
56132         * tests/nan.h: New file.
56133
56134 2008-04-01  Eric Blake  <ebb9@byu.net>
56135
56136         Fix typos.
56137         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
56138         values to be the right type.
56139
56140         For now, cater to gnulib strtod inaccuracies.
56141         * tests/test-strtod.c (main): Allow 1-ulp error on expected
56142         fractional results.  While not as nice from a QoI perspective, it
56143         is a quicker patch than correctly implementing decimal to binary
56144         rounding.
56145
56146 2008-03-31  Eric Blake  <ebb9@byu.net>
56147
56148         Guarantee a definition of NAN.
56149         * lib/math.in.h (NAN): Define if missing.
56150         * tests/test-math.c (main): Test it.
56151         * doc/posix-headers/math.texi (math.h): Document this.
56152         * lib/isnan.c (rpl_isnand): Use it.
56153         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
56154         * tests/test-floorf1.c (NaN): Likewise.
56155         * tests/test-frexp.c (NaN): Likewise.
56156         * tests/test-isnand.c (NaN): Likewise.
56157         * tests/test-isnanf.c (NaN): Likewise.
56158         * tests/test-round1.c (NaN): Likewise.
56159         * tests/test-roundf1.c (NaN): Likewise.
56160         * tests/test-snprintf-posix.h (NaN): Likewise.
56161         * tests/test-sprintf-posix.h (NaN): Likewise.
56162         * tests/test-trunc1.c (NaN): Likewise.
56163         * tests/test-truncf1.c (NaN): Likewise.
56164         * tests/test-vasnprintf-posix.c (NaN): Likewise.
56165         * tests/test-vasprintf-posix.c (NaN): Likewise.
56166         * modules/isnand-nolibm (Depends-on): Add math.
56167         * modules/isnanf-nolibm (Depends-on): Likewise.
56168         * modules/isnanl (Depends-on): Likewise.
56169         * modules/isnanl-nolibm (Depends-on): Likewise.
56170         * modules/snprintf-posix-tests (Depends-on): Likewise.
56171         * modules/sprintf-posix-tests (Depends-on): Likewise.
56172         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
56173         * modules/vsprintf-posix-tests (Depends-on): Likewise.
56174         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
56175         * modules/vasprintf-posix-tests (Depends-on): Likewise.
56176
56177 2008-03-31  Bruno Haible  <bruno@clisp.org>
56178
56179         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
56180         * doc/posix-functions/strtod.texi: Likewise.
56181
56182 2008-03-31  Bruno Haible  <bruno@clisp.org>
56183
56184         * tests/test-strtod.c (main): Don't use C99 syntax.
56185
56186 2008-03-31  Bruno Haible  <bruno@clisp.org>
56187
56188         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
56189         Reported by Eric Blake.
56190
56191 2008-03-31  Jim Meyering  <meyering@redhat.com>
56192
56193         Don't compare actual signbit return values.
56194         * tests/test-strtod.c (main): Rather, compare only their
56195         zero/non-zero nature.
56196
56197 2008-03-31  Eric Blake  <ebb9@byu.net>
56198
56199         More strtod documentation.
56200         * doc/posix-functions/strtod.texi (strtod): Interpret more test
56201         failures as distinct bugs.
56202
56203 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56204
56205         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
56206         Problem reported by Erik Benada in
56207         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
56208
56209 2008-03-30  Bruno Haible  <bruno@clisp.org>
56210
56211         * tests/test-strtod.c: Add comments about which assertion fails on which
56212         platform.
56213         * doc/posix-functions/strtod.texi: Add info about many more platforms.
56214
56215 2008-03-30  Eric Blake  <ebb9@byu.net>
56216
56217         Test signbit behavior on zeros.
56218         * tests/test-signbit.c (test_signbitf): Add tests for zero.
56219         (test_signbitd, test_signbitl): Likewise.
56220
56221         More strtod touchups.
56222         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
56223         sign of negative underflow, for now.  Use .5, not .1.
56224         * doc/posix-functions/strtod.texi (strtod): Mention these
56225         limitations.
56226         Reported by Jim Meyering.
56227
56228 2008-03-30  Bruno Haible  <bruno@clisp.org>
56229
56230         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
56231         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
56232
56233 2008-03-30  Bruno Haible  <bruno@clisp.org>
56234
56235         Avoid failure when attempting to return empty iconv results on some
56236         platforms.
56237         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
56238         allocation, don't report ENOMEM when the resulting string is empty.
56239
56240 2008-03-30  Bruno Haible  <bruno@clisp.org>
56241
56242         Fix buffer overrun.
56243         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
56244         Don't consider the width for tmp_length. Check count against tmp_length
56245         before doing the padding. Ensure enough allocation during padding.
56246
56247 2008-03-30  Eric Blake  <ebb9@byu.net>
56248
56249         strtod touchups.
56250         * lib/strtod.c (strtod): Avoid compiler warnings.
56251         Reported by Jim Meyering.
56252
56253 2008-03-30  Bruno Haible  <bruno@clisp.org>
56254
56255         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
56256         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
56257         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
56258         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
56259         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
56260         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
56261         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
56262         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
56263
56264         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
56265         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56266         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56267         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56268         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56269         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56270         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56271         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56272
56273         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56274         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56275         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56276         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56277         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56278         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56279         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56280         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56281
56282         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56283         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
56284
56285         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
56286         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
56287
56288         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
56289         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
56290
56291         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
56292         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
56293         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
56294
56295         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
56296         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
56297         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
56298
56299         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
56300         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
56301         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
56302
56303         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
56304         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
56305         * modules/vasprintf (Depends-on): Add EOVERFLOW.
56306
56307         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
56308         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
56309         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
56310         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
56311         (Depends-on): Add EOVERFLOW.
56312         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
56313         (Depends-on): Add EOVERFLOW.
56314         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56315         (Depends-on): Add EOVERFLOW.
56316         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56317         (Depends-on): Add EOVERFLOW.
56318         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56319         (Depends-on): Add EOVERFLOW.
56320         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56321         (Depends-on): Add EOVERFLOW.
56322         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56323         (Depends-on): Add EOVERFLOW.
56324         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56325         (Depends-on): Add EOVERFLOW.
56326
56327         * lib/sprintf.c (EOVERFLOW): Remove fallback.
56328         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
56329         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
56330
56331         * lib/snprintf.c (EOVERFLOW): Remove fallback.
56332         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
56333         * modules/snprintf (Depends-on): Add EOVERFLOW.
56334
56335         * lib/poll.c (EOVERFLOW): Remove fallback.
56336         * modules/poll (Depends-on): Add EOVERFLOW.
56337
56338         * lib/getugroups.c (EOVERFLOW): Remove fallback.
56339         * modules/getugroups (Depends-on): Add EOVERFLOW.
56340
56341         * lib/getdelim.c (EOVERFLOW): Remove fallback.
56342         * modules/getdelim (Depends-on): Add EOVERFLOW.
56343
56344         * lib/ftell.c (EOVERFLOW): Remove fallback.
56345         * modules/ftell (Depends-on): Add EOVERFLOW.
56346
56347         * lib/fprintf.c (EOVERFLOW): Remove fallback.
56348         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
56349         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
56350
56351         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
56352
56353         * modules/EOVERFLOW-tests: New file.
56354         * tests/test-EOVERFLOW.c: New file.
56355
56356         * modules/EOVERFLOW: New file.
56357         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
56358
56359 2008-03-30  Bruno Haible  <bruno@clisp.org>
56360
56361         Fix bug introduced on 2007-06-10.
56362         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
56363         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
56364
56365 2008-03-30  Bruno Haible  <bruno@clisp.org>
56366
56367         Improve freadseek's efficiency after ungetc.
56368         * lib/freadseek.c: Include freadahead.h.
56369         (freadptrinc): New function, extracted from freadseek.
56370         (freadseek): Use it in a loop. Use freadahead to determine the number
56371         of loop iterations.
56372         * modules/freadseek (Depends-on): Add freadahead.
56373         (configure.ac): Require AC_C_INLINE.
56374
56375 2008-03-30  Bruno Haible  <bruno@clisp.org>
56376
56377         * lib/freadseek.c (freadseek): Don't ignore the return value of
56378         freadptr.
56379
56380 2008-03-29  Eric Blake  <ebb9@byu.net>
56381
56382         Add hex float support.
56383         * modules/strtod (Depends-on): Add c-ctype.
56384         (Link): Mention POW_LIB.
56385         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
56386         whitespace between 'e' and exponent.
56387         * tests/test-strtod.c (main): Enable hex float tests.
56388         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
56389         now provides.
56390
56391         Document various strtod bugs, with some fixes.
56392         * doc/posix-functions/strtod.texi (strtod): Document bugs with
56393         "-0x", "inf", "nan", and hex constants.
56394         * doc/posix-functions/atof.texi (atof): Likewise.
56395         * modules/stdlib (Makefile.am): Support strtod.
56396         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
56397         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
56398         detect additional strtod bugs.
56399         * lib/stdlib.in.h (rpl_strtod): Add declarations.
56400         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
56401         bool where appropriate.  Parse 'inf' and 'nan'.
56402         * tests/test-strtod.c: New file.
56403         * modules/strtod (Depends-on): Add stdbool, stdlib.
56404         (configure.ac): Turn on module indicator.
56405         * modules/strtod-tests: New module.
56406
56407 2008-03-29  Eric Blake  <ebb9@byu.net>
56408
56409         Fix ftell on mingw.
56410         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
56411         * modules/ftell-tests (Depends-on): Add binary-io.
56412         * modules/ftello-tests (Depends-on): Likewise.
56413         * tests/test-ftell.c (main): Enhance test to cover behavior after
56414         ungetc.  Enforce binary mode.
56415         * tests/test-ftello.c (main): Likewise.
56416
56417         Pass test-freadseek on cygwin.
56418         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
56419         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
56420         ungetc buffer.
56421
56422         * tests/test-fflush2.c (main): Fix typo.
56423
56424 2008-03-29  Bruno Haible  <bruno@clisp.org>
56425
56426         * tests/test-fflush2.c (main): Temporarily disable the contents of
56427         this test.
56428         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
56429         Reported by Eric Blake.
56430
56431 2008-03-28  Simon Josefsson  <simon@josefsson.org>
56432
56433         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
56434         (GC_SHA224_DIGEST_SIZE): Add.
56435
56436         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
56437         (gc_hash_digest_length): Likewise.
56438         (gc_hash_buffer): Likewise.
56439
56440 2008-03-25  Bruno Haible  <bruno@clisp.org>
56441
56442         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
56443         detail which gettext release to use.
56444         Reported by Simon Josefsson.
56445
56446 2008-03-26  Jim Meyering  <meyering@redhat.com>
56447
56448         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
56449         * modules/gnumakefile (clean-GNUmakefile): Also, use
56450         test ... && ... || : syntax rather than if-then ... fi.
56451
56452         gnumakefile: Don't double-quote-expand $(VPATH) value.
56453         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
56454
56455 2008-03-24  Eric Blake  <ebb9@byu.net>
56456
56457         Alter GNUmakefile to install into top directory.
56458         * modules/maintainer-makefile: Split, and add dependency...
56459         * modules/gnumakefile: to this new module.
56460         * build-aux/GNUmakefile: Move...
56461         * top/GNUmakefile: ...here.
56462         * build-aux/maint.mk: Move...
56463         * top/maint.mk: ...here.
56464         * MODULES.html.sh (Support for maintaining...): Document new
56465         module.
56466
56467 2008-03-23  Bruno Haible  <bruno@clisp.org>
56468
56469         * gnulib-tool: New options --vc-files, --no-vc-files.
56470         (func_usage): Document them.
56471         (vc_files): New variable.
56472         (func_import): Consider vc_files.
56473         (func_create_testdir): Set vc_files to empty.
56474         Suggested by Jim Meyering and Karl Berry.
56475
56476 2008-03-23  Bruno Haible  <bruno@clisp.org>
56477
56478         Fix regex compilation error on HP-UX 11.
56479         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
56480         * modules/regex (Files): Add m4/mbstate_t.m4.
56481         Reported by Ton Voon <ton.voon@altinity.com>.
56482
56483 2008-03-23  Bruno Haible  <bruno@clisp.org>
56484
56485         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
56486
56487 2008-03-23  Eric Blake  <ebb9@byu.net>
56488             Bruno Haible  <bruno@clisp.org>
56489
56490         Install files from top/ in the destination directory.
56491         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56492         augmentation also for the files from top/.
56493         (func_import, func_create_testdir): Rewrite file names:
56494         top/filename -> filename.
56495
56496 2008-03-23  Bruno Haible  <bruno@clisp.org>
56497
56498         Tweak "gnulib --version" output.
56499         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
56500
56501 2008-03-23  Bruno Haible  <bruno@clisp.org>
56502
56503         Tweak "gnulib --version" output.
56504         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
56505         rather than contents of ChangeLog, when possible.
56506
56507 2008-03-21  Eric Blake  <ebb9@byu.net>
56508
56509         More --version tweaks.
56510         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
56511         date of last ChangeLog entry.
56512
56513 2008-03-21  Jim Meyering  <meyering@redhat.com>
56514
56515         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
56516
56517 2008-03-20  Eric Blake  <ebb9@byu.net>
56518
56519         VPATH fix.
56520         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
56521
56522 2008-03-20  Simon Josefsson  <simon@josefsson.org>
56523
56524         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
56525         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
56526
56527 2008-03-20  Eric Blake  <ebb9@byu.net>
56528
56529         Sync GNUmakefile with coreutils.
56530         * build-aux/GNUmakefile (have-Makefile): Rename...
56531         (_have-Makefile): ...to this, for namespace consideration.
56532         (GNUmakefile.cfg): Include, if present.
56533         (_autoreconf): Define a default.
56534         (_is-dist-target): New rule for rebuilds to pick up intra-release
56535         version.
56536         (maint-cfg.mk): Rename...
56537         (cfg.mk): ...to this.
56538
56539 2008-03-18  Jim Meyering  <meyering@redhat.com>
56540
56541         New script and module: mktempd
56542         * MODULES.html.sh (maint+release support): Add mktempd.
56543         * build-aux/mktempd: New file.
56544         * modules/mktempd: New file.
56545
56546 2008-03-15  Jim Meyering  <meyering@redhat.com>
56547
56548         Undo last change.
56549         * lib/sha1.c, lib/md5.c: 63 != ~63.
56550         Reported by Andreas Schwab.
56551
56552         sha1.c, md5.c: Hoist a redundant expression.
56553         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
56554         "ctx->buflen" only once, before calling *_process_block.
56555         * lib/md5.c (md5_process_bytes): Likewise.
56556
56557 2008-03-14  Eric Blake  <ebb9@byu.net>
56558
56559         Bump copyright year in files generated by gnulib-tool.
56560         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
56561         gnulib-tool, rather than hard-coding it.
56562
56563         Fix 'gnulib-tool --version' output to work with git.
56564         * gnulib-tool (func_gnulib_dir): New function, extracted from...
56565         (startup): ...here.
56566         (func_version): Use it to invoke git-version-gen, rather than
56567         relying on CVS keyword expansion.  Modernize wording.
56568         (cvsdatestamp, last_checkin_date, version): Kill unused
56569         variables.
56570
56571 2008-03-12  Jim Meyering  <meyering@redhat.com>
56572
56573         Recognize optional cast of the argument to free.
56574         * build-aux/useless-if-before-free: Update regexps.
56575
56576         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
56577
56578 2008-03-11  Bruno Haible  <bruno@clisp.org>
56579
56580         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
56581         by a single package.
56582         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
56583         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
56584         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
56585         Reported by Sam Steingold <sds@gnu.org>.
56586
56587 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56588
56589         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
56590         repositories.
56591
56592 2008-03-11  Bruno Haible  <bruno@clisp.org>
56593
56594         Avoid conflicts between local macro definitions.
56595         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56596         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
56597
56598 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
56599             Bruno Haible  <bruno@clisp.org>
56600
56601         Make va_copy work with some version of xlc on AIX 5.1.
56602         * lib/stdarg.in.h: New file.
56603         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
56604         On AIX, use a <stdarg.h> file substitute.
56605         * modules/stdarg (Files): Add lib/stdarg.in.h.
56606         (Depends-on): Add include_next.
56607         (Makefile.am): Build a stdarg.h substitute if requested.
56608         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
56609
56610 2008-03-10  Bruno Haible  <bruno@clisp.org>
56611
56612         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
56613         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56614         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56615
56616 2008-03-10  Bruno Haible  <bruno@clisp.org>
56617
56618         * modules/stdlib (Depends-on): Add include_next, remove
56619         absolute-header.
56620
56621 2008-03-09  Bruno Haible  <bruno@clisp.org>
56622
56623         * lib/freadahead.h (freadahead): Document more precisely.
56624         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
56625         the sum of both buffer sizes.
56626         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
56627         * NEWS: Document the change.
56628
56629 2008-03-09  Bruno Haible  <bruno@clisp.org>
56630
56631         Extend freadptr to return also the buffer size.
56632         * lib/freadptr.h (freadptr): Add sizep argument.
56633         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
56634         (freadptr): Add sizep argument. Determine buffer size like freadahead
56635         does.
56636         * tests/test-freadptr.c: Don't include freadahead.h.
56637         (main): Adapt for new calling convention of freadptr.
56638         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
56639         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
56640         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
56641         tests/test-freadptr2.sh.
56642         (Depends): Remove freadahead.
56643         (TESTS): Add test-freadptr2.sh.
56644         (check_PROGRAMS): Add test-freadptr2.
56645
56646 2008-03-09  Bruno Haible  <bruno@clisp.org>
56647
56648         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
56649         Report and solution by Simon Josefsson.
56650
56651 2008-03-06  Bruno Haible  <bruno@clisp.org>
56652
56653         Make fflush after ungetc work on BSD platforms.
56654         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
56655         * tests/test-fflush2.c: New file.
56656         * tests/test-fflush2.sh: New file.
56657         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
56658         tests/test-fflush2.c.
56659         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
56660         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
56661
56662 2008-03-06  Eric Blake  <ebb9@byu.net>
56663
56664         Likewise for ftello.
56665         * modules/ftello (Dependencies): Add extensions.
56666         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
56667
56668 2008-03-06  Bruno Haible  <bruno@clisp.org>
56669
56670         * modules/fseeko (Dependencies): Add extensions.
56671         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
56672         Needed on glibc systems.
56673
56674 2008-03-06  Bruno Haible  <bruno@clisp.org>
56675
56676         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
56677         email address.
56678         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56679
56680 2008-03-06  Bruno Haible  <bruno@clisp.org>
56681
56682         * users.txt: Add libgnupdf.
56683
56684 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56685
56686         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
56687         (Header File Substitutes, Function Substitutes,
56688         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
56689         (Build robot for gnulib): Fix typo.
56690
56691 2008-03-06  Bruno Haible  <bruno@clisp.org>
56692
56693         * doc/gnulib-tool.texi (VCS Issues): Small updates.
56694         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56695
56696 2008-03-06  Bruno Haible  <bruno@clisp.org>
56697
56698         * doc/func.texi: New file, extracted from doc/gnulib.texi.
56699         * doc/gnulib.texi: Include it.
56700
56701 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56702
56703         * modules/func (License): Change license to unlimited; there was
56704         no LGPL parts in the module anyway.
56705
56706 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56707
56708         * modules/__func__: Renamed to modules/func.
56709         * modules/__func__-tests: Renamed to modules/func-tests.
56710         * tests/test-__func__.c: Renamed to tests/test-func.c.
56711         * m4/__func__.m4: Renamed to m4/func.m4.
56712         * doc/gnulib.texi (__func__): Section renamed to func.
56713         Suggested by Eric Blake <ebb9@byu.net>.
56714
56715 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56716
56717         * doc/gnulib.texi (__func__): Use C99 terminology when talking
56718         about __func__.  Make example self-contained.  Suggested by Eric
56719         Blake <ebb9@byu.net>.
56720
56721         * tests/test-__func__.c (main): Avoid extraneous () around __func.
56722         Suggested by Eric Blake <ebb9@byu.net>.
56723
56724 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56725
56726         * modules/__func__: New file.
56727         * modules/__func__-tests: New file.
56728         * tests/test-__func__.c: New file.
56729         * m4/__func__.m4: New file.
56730         * doc/gnulib.texi (__func__): Document __func__ module.
56731
56732 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56733
56734         * modules/byteswap (License): Re-license as LGPLv2+.
56735
56736 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56737
56738         * doc/Makefile: Add pdf target.
56739
56740 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56741
56742         * modules/inline (License): Use 'unlimited', since there are only
56743         *.m4 files in this module.
56744
56745 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56746             Bruno Haible  <bruno@clisp.org>
56747
56748         Add support for HP C 7.1 on OpenVMS 8.3.
56749         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
56750
56751 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56752
56753         Update VMS specifics.
56754         * lib/getopt.c [VMS]: Remove include of unixlib.h.
56755
56756 2008-03-02  Jim Meyering  <meyering@redhat.com>
56757
56758         Remove the last dependency on the "free" module.
56759         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
56760         Reported by Bob Proulx.
56761
56762         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
56763
56764         Remove useless "if" tests before free.  Deprecate "free" module.
56765         * doc/posix-functions/free.texi: Mention that this
56766         module is no longer useful.
56767         * modules/free (Notice): Say this module is obsolete.
56768         * modules/readutmp (Depends-on): Remove free.
56769         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
56770         * lib/putenv.c (putenv): Likewise.
56771         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
56772         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
56773         * tests/test-c-strcasestr.c (main): Likewise.
56774         * tests/test-c-strstr.c (main): Likewise.
56775         * tests/test-mbscasestr1.c (main): Likewise.
56776         * tests/test-mbscasestr2.c (main): Likewise.
56777         * tests/test-mbsstr1.c (main): Likewise.
56778         * tests/test-mbsstr2.c (main): Likewise.
56779         * tests/test-memmem.c (main): Likewise.
56780         * tests/test-strcasestr.c (main): Likewise.
56781         * tests/test-striconv.c (main): Likewise.
56782         * tests/test-striconveh.c (main): Likewise.
56783         * tests/test-striconveha.c (main): Likewise.
56784         * tests/test-strstr.c (main): Likewise.
56785
56786         * build-aux/git-version-gen: Adjust a comment and the Usage string.
56787
56788         bootstrap: sync from coreutils again
56789         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
56790
56791 2008-03-01  Jim Meyering  <meyering@redhat.com>
56792
56793         bootstrap: sync from coreutils
56794         * build-aux/bootstrap (update_po_files): Copy a .po file into place
56795         also when the target doesn't exist.
56796
56797 2008-03-01  Eric Blake  <ebb9@byu.net>
56798
56799         Fix bugs in last patch.
56800         * lib/memchr2.c (memchr2): Fix typo.
56801         * tests/test-memchr2.c: Test previous bug, and don't use GNU
56802         extension.
56803         Reported by Bruce Korb.
56804
56805         New module 'memchr2'.
56806         * modules/memchr2: New file.
56807         * modules/memchr2-tests: Likewise.
56808         * lib/memchr2.h: Likewise.
56809         * lib/memchr2.c: Likewise, based on memchr.c.
56810         * tests/test-memchr2.c: New test.
56811         * MODULES.html.sh (String handling): Add memchr2.
56812
56813 2008-02-29  Bruno Haible  <bruno@clisp.org>
56814
56815         * modules/freadseek-tests: New file.
56816         * tests/test-freadseek.sh: New file.
56817         * tests/test-freadseek.c: New file.
56818
56819         New module 'freadseek'.
56820         * modules/freadseek: New file.
56821         * lib/freadseek.h: New file.
56822         * lib/freadseek.c: New file.
56823         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
56824
56825 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56826
56827         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
56828         wydawca.
56829
56830         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
56831         program_invocation_name and program_invocation_short_name are
56832         present.
56833
56834 2008-02-28  Bruno Haible  <bruno@clisp.org>
56835
56836         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
56837         * tests/test-freadptr.sh: Also test non-seekable stdin.
56838
56839 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
56840
56841         * build-aux/bootstrap (source_base, m4_base)
56842         (doc_base, tests_base): New variables.
56843         (gnulib_tool_options): Do not hardcode base directories, use
56844         the above variables instead.
56845
56846 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
56847
56848         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
56849
56850 2008-02-28  Bruno Haible  <bruno@clisp.org>
56851
56852         * modules/freadptr-tests: New file.
56853         * tests/test-freadptr.sh: New file.
56854         * tests/test-freadptr.c: New file.
56855
56856         New module 'freadptr'.
56857         * modules/freadptr: New file.
56858         * lib/freadptr.h: New file.
56859         * lib/freadptr.c: New file.
56860         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
56861
56862 2008-02-26  Karl Berry  <karl@freefriends.org>
56863
56864         Sync from Libtool:
56865         * libltdl/argz.c (argz_add, argz_count): New functions.
56866         * libltdl/argz.in.h: Declare them.
56867         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
56868
56869 2008-02-22  Bruno Haible  <bruno@clisp.org>
56870
56871         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
56872         is a pointer type.  Needed for HP-UX 10.
56873         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
56874         * doc/posix-functions/gmtime_r.texi: Likewise.
56875         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56876
56877 2008-02-24  Bruno Haible  <bruno@clisp.org>
56878
56879         * modules/environ-tests: New file.
56880         * tests/test-environ.c: New file.
56881
56882         New module 'environ'.
56883         * modules/environ: New file.
56884         * lib/unistd.in.h (environ): New declaration.
56885         * m4/environ.m4: New file.
56886         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
56887         after use.
56888         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
56889         HAVE_DECL_ENVIRON.
56890         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
56891         HAVE_DECL_ENVIRON.
56892         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
56893         wrong claim that 'environ' is missing on some systems.
56894         * modules/execute (Depends-on): Add environ.
56895         * lib/execute.c (environ): Remove fallback declaration.
56896         * modules/pipe (Depends-on): Add environ.
56897         * lib/pipe.c (environ): Remove fallback declaration.
56898         * modules/setenv (Depends-on): Add environ.
56899         * lib/setenv.c (environ): Remove fallback declaration.
56900         * modules/unsetenv (Depends-on): Add environ.
56901         * lib/unsetenv.c (environ): Remove fallback declaration.
56902         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
56903         m4/environ.m4.
56904         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
56905         (gl_PREREQ_UNSETENV): Likewise.
56906
56907 2008-02-24  Bruno Haible  <bruno@clisp.org>
56908
56909         * doc/posix-functions/environ.texi: Document the MacOS X problem.
56910
56911 2008-02-20  Bob Proulx  <bob@proulx.com>
56912
56913         Enable use of older two part flavor 'git describe'.
56914         * build-aux/git-version-gen: If using the older two part flavor of
56915         git version then recreate the third part now present in the
56916         newer three part flavor of git describe.
56917
56918 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
56919
56920         * lib/fts.c (fts_build): Typo correction to comment.
56921
56922 2008-02-17  Bruno Haible  <bruno@clisp.org>
56923
56924         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
56925         generating no-op conflicts.
56926
56927 2008-02-17  Bruno Haible  <bruno@clisp.org>
56928
56929         Speed up by 10%.
56930         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
56931         result_entries, rather than an index-based loop.
56932
56933 2008-02-17  Bruno Haible  <bruno@clisp.org>
56934
56935         Speed up by 25%.
56936         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
56937         'hashcode_cached'.
56938         (entry_create): New function.
56939         (entry_hashcode): Use the cached hashcode if possible.
56940         (read_changelog_file, try_split_merged_entry): Use entry_create.
56941
56942 2008-02-17  Bruno Haible  <bruno@clisp.org>
56943
56944         Speed up from O(n^2) to O(n) for long ChangeLog files.
56945         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
56946         (read_changelog_file): Change implementation of entries_reversed list
56947         to rbtreehash.
56948         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
56949
56950 2008-02-17  Bruno Haible  <bruno@clisp.org>
56951
56952         New option --split-merged-entry.
56953         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
56954         (find_paragraph_end, try_split_merged_entry): New functions.
56955         (long_options): Add option --split-merged-entry.
56956         (usage): Document option --split-merged-entry.
56957         (main): Implement option --split-merged-entry.
56958         Reported by Eric Blake.
56959
56960 2008-02-17  Bruno Haible  <bruno@clisp.org>
56961
56962         * lib/git-merge-changelog.c: Include c-strstr.h.
56963         (main): Support the "git pull --rebase" situation.
56964         * modules/git-merge-changelog (Depends-on): Add c-strstr.
56965         Reported by Eric Blake.
56966
56967 2008-02-16  Eric Blake  <ebb9@byu.net>
56968
56969         Avoid doubling \ in common case of "c-maybe" quoting style.
56970         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
56971         eliding outer quotes.
56972         * lib/quotearg.h: Document this.
56973         * tests/test-quotearg.c (result_strings, inputs, results_g)
56974         (flag_results, locale_results): Test it by adding a new string to
56975         each test group.
56976         (compare_strings): Test new string.
56977
56978 2008-02-13  Eric Blake  <ebb9@byu.net>
56979
56980         Avoid trigraph quoting in default output.
56981         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
56982         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
56983         unless explicitly requested.
56984         * tests/test-quotearg.c (flag_results, main): Add additional tests.
56985
56986 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
56987
56988         Don't rely on signed integer overflowing to negative value.
56989         * lib/getugroups.c (getugroups): Include <limits.h>.
56990         Instead, compare against INT_MAX, and increment only if the test passes.
56991
56992 2008-02-13  Jim Meyering  <meyering@redhat.com>
56993         and Eric Blake  <ebb9@byu.net>
56994
56995         Avoid shadowing warning and compile errors on Linux.
56996         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
56997         forwarding macros on Linux.
56998         (dcgettext): Define a stub, for Linux.
56999         (results_g, main): Avoid warnings.
57000
57001 2008-02-12  Eric Blake  <ebb9@byu.net>
57002
57003         Silence warning in last patch.
57004         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
57005
57006         Quotearg part 4: add tests, fix c-maybe colon quoting.
57007         * lib/quotearg.h: Improve documentation.
57008         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
57009         escapes when adding outer quotes.  When quoting trigraphs, use
57010         valid C notation.  When quoting NUL, omit extra characters if next
57011         character is not digit.  Alter prototype.
57012         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
57013         callers.
57014         * modules/quotearg-tests: New module.
57015         * tests/test-quotearg.c: New test.
57016
57017 2008-02-07  Eric Blake  <ebb9@byu.net>
57018
57019         Quotearg part 3: add flag to control outer quote elision.
57020         * lib/quotearg.h (c_maybe_quoting_style): New style.
57021         (enum quoting_flags): Better documentation of flags.
57022         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
57023         c-maybe style.
57024         (quotearg_buffer_restyled): Handle new flag to elide outer
57025         quotes.
57026
57027         Quotearg part 2: add flag that can control NUL elision.
57028         * lib/quotearg.h (set_quoting_flags): New prototype.
57029         * lib/quotearg.c (struct quoting_options): Add flag field.
57030         (set_quoting_flags): New function.
57031         (quotearg_buffer_restyled): Add flags parameter.
57032         (quotearg_alloc_mem): Set the flag if length cannot be returned.
57033         (quotearg_n_options): Set the flag, since length cannot be
57034         returned.
57035         (quoting_options_from_style): Default flags correctly.
57036
57037         Quotearg part 1: more wrappers, restore quotearg_char state.
57038         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
57039         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
57040         (quotearg_colon_mem): New wrappers.
57041         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
57042         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
57043         functions.
57044         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
57045         (quotearg_colon_mem): New functions.
57046
57047 2008-02-11  Bruno Haible  <bruno@clisp.org>
57048
57049         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
57050         library in the current directory: it does not work with parallel make.
57051         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57052
57053 2008-02-11  Bruno Haible  <bruno@clisp.org>
57054
57055         * .gitattributes: New file.
57056
57057 2008-02-11  Jim Meyering  <meyering@redhat.com>
57058
57059         useless-if-before-free: Fix reversed exit values.
57060         * build-aux/useless-if-before-free: Use correct values
57061         for EXIT_MATCH and EXIT_NO_MATCH.
57062
57063         * build-aux/useless-if-before-free: Close stdout carefully.
57064
57065 2008-02-10  Bruno Haible  <bruno@clisp.org>
57066
57067         New module 'git-merge-changelog'.
57068         * modules/git-merge-changelog: New file.
57069         * lib/git-merge-changelog.c: New file.
57070
57071 2008-02-10  Jim Meyering  <meyering@redhat.com>
57072
57073         useless-if-before-free: New option: --list (-l).
57074
57075         useless-if-before-free: Don't exit immediately upon open failure.
57076         * build-aux/useless-if-before-free: Exit 2 for errors.
57077         Upon failure to open a file, don't exit immediately.
57078         Rather, just warn and continue with any remaining files.
57079
57080 2008-02-10  Bruno Haible  <bruno@clisp.org>
57081
57082         New abstract list operation 'node_set_value'.
57083         * lib/gl_list.h (gl_list_node_set_value): New function.
57084         (struct gl_list_implementation): New field node_set_value.
57085         * lib/gl_list.c (gl_list_node_set_value): New function.
57086         * lib/gl_array_list.c (gl_array_node_set_value): New function.
57087         (gl_array_list_implementation): Update.
57088         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
57089         (gl_carray_list_implementation): Update.
57090         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
57091         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
57092         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
57093         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
57094         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
57095         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
57096         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
57097         Update.
57098         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
57099         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
57100         (gl_sublist_list_implementation): Update.
57101
57102 2008-02-10  Bruno Haible  <bruno@clisp.org>
57103
57104         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
57105         Needed when ELEMENT is #defined to 'some_type *'.
57106
57107 2008-02-10  Jim Meyering  <meyering@redhat.com>
57108
57109         New script and module: useless-if-before-free
57110         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
57111         * build-aux/useless-if-before-free: New file.
57112         * modules/useless-if-before-free: New file.
57113
57114         * build-aux/gitlog-to-changelog: Use committer date, not author date.
57115
57116         xstrtol_error: Fix typo.
57117         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
57118         s/exit_failure/exit_status/.
57119
57120 2008-02-09  Jim Meyering  <meyering@redhat.com>
57121
57122         New script and module: gitlog-to-changelog
57123         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
57124         * modules/gitlog-to-changelog: New file.
57125         * build-aux/gitlog-to-changelog: New file.
57126
57127 2008-02-08  Jim Meyering  <meyering@redhat.com>
57128
57129         Avoid two "parameter unused" warnings.
57130         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
57131         Mark "st" as used.
57132
57133         Use "git COMMAND", not "git-COMMAND".
57134         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
57135         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
57136         * build-aux/git-version-gen: Use "git status", not "git-status".
57137
57138 2008-02-07  Bruno Haible  <bruno@clisp.org>
57139
57140         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
57141         Avoids a crash on Windows Vista.
57142         Reported by Adam Strzelecki <ono@java.pl> via
57143         Simon Josefsson <simon@josefsson.org>.
57144
57145 2008-02-06  Bruno Haible  <bruno@clisp.org>
57146
57147         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
57148         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
57149         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
57150         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
57151         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
57152         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
57153         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
57154         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
57155         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57156         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57157         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57158         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57159         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57160         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57161         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57162         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
57163         left-adjust flag.
57164         * tests/test-snprintf-posix.h (test_function): Likewise.
57165         * tests/test-sprintf-posix.h (test_function): Likewise.
57166         * tests/test-vasprintf-posix.c (test_function): Likewise.
57167         * doc/posix-functions/fprintf.texi: Update.
57168         * doc/posix-functions/printf.texi: Update.
57169         * doc/posix-functions/snprintf.texi: Update.
57170         * doc/posix-functions/sprintf.texi: Update.
57171         * doc/posix-functions/vfprintf.texi: Update.
57172         * doc/posix-functions/vprintf.texi: Update.
57173         * doc/posix-functions/vsnprintf.texi: Update.
57174         * doc/posix-functions/vsprintf.texi: Update.
57175         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57176
57177 2008-02-06  Bruno Haible  <bruno@clisp.org>
57178
57179         Fix bug introduced on 2008-01-26.
57180         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
57181
57182 2008-02-06  Bruno Haible  <bruno@clisp.org>
57183
57184         Fix bug introduced on 2007-06-10.
57185         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
57186         !NEED_PRINTF_FLAG_ZERO.
57187
57188 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
57189
57190         getloadavg: use libperfstat on AIX5
57191         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
57192
57193 2008-02-03  Bruno Haible  <bruno@clisp.org>
57194
57195         * lib/diffseq.h: Add comments about required #includes.
57196         Reported by Michael Biggs <gnulib@doubleplum.net>.
57197
57198 2008-02-01  Bruno Haible  <bruno@clisp.org>
57199
57200         * users.txt: Add gnuit.
57201
57202 2008-01-31  Bruno Haible  <bruno@clisp.org>
57203
57204         * lib/md4.c (set_uint32): Mark as inline.
57205         * lib/md5.c (set_uint32): Likewise.
57206         * lib/sha1.c (set_uint32): Likewise.
57207         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
57208         * m4/md5.m4 (gl_MD5): Likewise.
57209         * m4/sha1.m4 (gl_SHA1): Likewise.
57210
57211 2008-01-31  Jim Meyering  <meyering@redhat.com>
57212
57213         Use "sizeof VAR", rather than a literal "4".
57214         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
57215         * lib/md4.c (md4_read_ctx): Likewise.
57216         * lib/sha1.c (sha1_read_ctx): Likewise.
57217
57218 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57219
57220         * tests/test-sha1.c: New file, based on test-md5.c.
57221
57222         * modules/crypto/sha1-tests: New file.
57223
57224 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57225
57226         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
57227
57228 2008-01-31  Jim Meyering  <meyering@redhat.com>
57229
57230         Prefer "sizeof v" over the equivalent "4".
57231         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
57232         * lib/md5.c (set_uint32): Likewise.
57233         * lib/sha1.c (set_uint32): Likewise.
57234
57235 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57236
57237         * lib/sha1.c (set_uint32): Mark function as static.
57238
57239 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57240
57241         md2: clarify comments to say that alignment is not required.
57242         * lib/md2.h: Remove warning about alignment in comment.
57243         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
57244         never been required.
57245
57246 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57247
57248         md4: adapt alignment constraint fix from sha1.
57249         * lib/md4.c (set_uint32): New function, from sha1.c
57250         (md4_read_ctx): Use it.
57251         (md4_finish_ctx): Doc fix.
57252         * lib/md4.h: Doc fix.
57253
57254 2008-01-31  Simon Josefsson  <simon@josefsson.org>
57255
57256         md5: adapt alignment constraint fix from sha1.
57257         * lib/md5.c (set_uint32): New function, from sha1.c
57258         (md5_read_ctx): Use it.
57259         (md5_finish_ctx): Doc fix.
57260         * lib/md5.h: Doc fix.
57261
57262 2008-01-30  Peter Palfrader  <weasel@debian.org>
57263
57264         sha1: remove the result buffer alignment constraint
57265         * lib/sha1.c (set_uint32): New function.
57266         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57267         constraint.
57268         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57269         * lib/sha1.h: Likewise.
57270
57271 2008-01-30  Andreas Schwab  <schwab@suse.de>
57272             Bruno Haible  <bruno@clisp.org>
57273
57274         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57275         correct definition of LDBL_MIN_EXP.
57276
57277 2008-01-30  Karl Berry  <karl@gnu.org>
57278
57279         * config/srclist-update: try to preserve x bit on updates.
57280         * config/srclistvars.sh: update for karl.
57281
57282 2008-01-29  Jim Meyering  <meyering@redhat.com>
57283
57284         vasnprintf.c: Avoid warning about unused label
57285         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
57286         "overflow" label definition and associated code with the
57287         same cpp condition that guards the sole use of that label.
57288
57289 2008-01-26  Bruno Haible  <bruno@clisp.org>
57290
57291         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
57292         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
57293         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
57294         * lib/isnanl-nolibm.h (isnanl): Likewise.
57295         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57296
57297 2008-01-26  Bruno Haible  <bruno@clisp.org>
57298
57299         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
57300         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
57301
57302 2008-01-26  Bruno Haible  <bruno@clisp.org>
57303
57304         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
57305         GCC >= 4.0 built-in.
57306         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
57307
57308 2008-01-26  Bruno Haible  <bruno@clisp.org>
57309
57310         Rename isnan, applicable to 'double' only, to isnand.
57311         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
57312         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
57313         (configure.ac): Update.
57314         (Include): Replace "isnan.h" with "isnand.h".
57315         * m4/isnand.m4: Renamed from m4/isnan.m4.
57316         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
57317         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
57318         instead of isnan.c.
57319         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
57320         instead of HAVE_ISNAN_IN_LIBC.
57321         (isnand): Renamed from isnan.
57322         * lib/isnand.c: New file.
57323         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
57324         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
57325         (Makefile.am): Update.
57326         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
57327         Include isnand.h instead of isnan.h.
57328         (main): Test isnand instead of isnan.
57329         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
57330         isnan-nolibm.
57331         * modules/frexp (Depends-on): Likewise.
57332         * modules/frexp-tests (Depends-on): Likewise.
57333         * modules/frexp-nolibm (Depends-on): Likewise.
57334         * modules/frexp-nolibm-tests (Depends-on): Likewise.
57335         * modules/isfinite (Depends-on): Likewise.
57336         * modules/round-tests (Depends-on): Likewise.
57337         * modules/signbit (Depends-on): Likewise.
57338         * modules/signbit-tests (Depends-on): Likewise.
57339         * modules/snprintf-posix (Depends-on): Likewise.
57340         * modules/sprintf-posix (Depends-on): Likewise.
57341         * modules/trunc-tests (Depends-on): Likewise.
57342         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57343         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57344         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57345         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57346         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57347         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57348         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57349         * modules/vasnprintf-posix (Depends-on): Likewise.
57350         * modules/vasprintf-posix (Depends-on): Likewise.
57351         * modules/vfprintf-posix (Depends-on): Likewise.
57352         * modules/vsnprintf-posix (Depends-on): Likewise.
57353         * modules/vsprintf-posix (Depends-on): Likewise.
57354         * lib/frexp.c: Include isnand.h instead of isnan.h.
57355         (ISNAN): Set to isnand instead of isnan.
57356         * lib/isfinite.c: Include isnand.h instead of isnan.h.
57357         (gl_isfinited): Use isnand instead of isnan.
57358         * lib/signbitd.c: Include isnand.h instead of isnan.h.
57359         (gl_signbitd): Use isnand instead of isnan.
57360         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
57361         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
57362         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
57363         (main): Use isnand instead of isnan.
57364         * tests/test-round1.c: Include isnand.h.
57365         (main): Use isnand instead of isnan.
57366         * tests/test-round2.c: Include isnand.h instead of isnan.h.
57367         (ISNAN): Set to isnand instead of isnan.
57368         * tests/test-trunc1.c: Include isnand.h.
57369         (main): Use isnand instead of isnan.
57370         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
57371         (equal): Use isnand instead of isnan.
57372         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
57373         isnand-nolibm.
57374         * NEWS: Mention the change.
57375
57376 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57377             Bruno Haible  <bruno@clisp.org>
57378
57379         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
57380         the GCC builtins for signbits are present and set
57381         REPLACE_SIGNBIT_USING_GCC if so.
57382         * lib/math.in.h (signbit): Define using GCC builtins if
57383         REPLACE_SIGNBIT_USING_GCC is set.
57384         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
57385         REPLACE_SIGNBIT_USING_GCC.
57386         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
57387
57388 2008-01-25  Jim Meyering  <meyering@redhat.com>
57389
57390         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
57391         * lib/poll.c: Include <config.h>, not "config.h".
57392         * tests/test-getaddrinfo.c: Likewise.
57393
57394 2008-01-25  Simon Josefsson  <simon@josefsson.org>
57395
57396         * modules/sockets-tests: New file.
57397
57398 2008-01-24  Simon Josefsson  <simon@josefsson.org>
57399
57400         * modules/sockets: New module, can be used to call WSA_Startup and
57401         WSA_Cleanup when needed.
57402
57403         * lib/sockets.h, lib/sockets.c: New files.
57404
57405         * m4/sockets.m4: New file.
57406
57407         * tests/test-sockets.c: New file.
57408
57409 2008-01-19  Bruno Haible  <bruno@clisp.org>
57410
57411         * doc/posix-headers: Renamed from doc/headers.
57412         * doc/posix-functions: Renamed from doc/functions.
57413         * doc/gnulib.texi: Update.
57414
57415 2008-01-19  Bruno Haible  <bruno@clisp.org>
57416
57417         * doc/glibc-functions/strcasestr.texi: Include contents of
57418         doc/functions/strcasestr.texi, fixing the list of platforms.
57419         * doc/functions/strcasestr.texi: Remove file.
57420
57421 2008-01-19  Bruno Haible  <bruno@clisp.org>
57422
57423         * doc/glibc-functions/memmem.texi: Include contents of
57424         doc/functions/memmem.texi.
57425         * doc/functions/memmem.texi: Remove file.
57426
57427 2008-01-18  Bruno Haible  <bruno@clisp.org>
57428
57429         * doc/glibc-functions/*.texi: New files.
57430         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
57431         to use the new files.
57432
57433 2008-01-17  Bruno Haible  <bruno@clisp.org>
57434
57435         * tests/test-gethostname.c (main): Fix printf statement.
57436
57437 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57438
57439         * modules/gethostname-tests: New file.
57440
57441         * tests/test-gethostname.c: New file.
57442
57443 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57444
57445         * lib/gethostname.c: Include string.h unconditionally, strncpy is
57446         used by the UNAME case.  Reported by Bruno Haible
57447         <bruno@clisp.org>.
57448
57449 2008-01-17  Eric Blake  <ebb9@byu.net>
57450
57451         Convert c-strcasestr to be more efficient.
57452         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
57453         (Depends-on): Add c-strcase, remove malloca, strnlen.
57454         * tests/test-c-strcasestr.c (main): Enhance test.
57455         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
57456
57457 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57458
57459         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
57460         Use it in creating po/Makevars.
57461
57462 2008-01-15  Simon Josefsson  <simon@josefsson.org>
57463
57464         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
57465         Applications that requires it should initialize libgcrypt
57466         manually.
57467
57468 2008-01-16  Simon Josefsson  <simon@josefsson.org>
57469
57470         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
57471
57472 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
57473
57474         Fix problem with getdate on mingw32 reported by Simon Josefsson
57475         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
57476         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
57477         tzname", when deciding whether to declare tzname.
57478         * lib/strftime.c (tzname): Likewise.
57479
57480 2008-01-15  Bruno Haible  <bruno@clisp.org>
57481
57482         Work around a MacOS X 10.5 bug in frexpl().
57483         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
57484         * doc/functions/frexpl.texi: Document the bug.
57485         Reported by Elias Pipping <pipping@gentoo.org>.
57486
57487 2008-01-14  Eric Blake  <ebb9@byu.net>
57488
57489         Touch up previous patch.
57490         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
57491         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
57492
57493         Convert strcasestr module to use Two-Way algorithm.
57494         * modules/strcasestr-simple: New module, based on the old
57495         strcasestr, but with Two-Way rather than KMP.
57496         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
57497         * lib/string.in.h (rpl_strcasestr): Declare.
57498         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
57499         performance.
57500         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
57501         * modules/string (Makefile.am): Support strcasestr.
57502         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
57503         * modules/strcasestr-tests (Depends-on): Check for alarm.
57504         * tests/test-strcasestr.c: Augment test.
57505         * lib/str-two-way.h: Clean up stray macro.
57506         * NEWS: Document new module.
57507         * MODULES.html.sh (string handling): Likewise.
57508         * doc/functions/strcasestr.texi: New file.
57509         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
57510         here, since it is not a POSIX function.
57511
57512 2008-01-14  Colin Watson  <cjwatson@debian.org>
57513             Bruno Haible  <bruno@clisp.org>
57514
57515         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
57516         works fine; if not, set REPLACE_STRSIGNAL.
57517         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
57518         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57519         REPLACE_STRSIGNAL.
57520         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
57521         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
57522         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
57523
57524 2008-01-14  Bruno Haible  <bruno@clisp.org>
57525
57526         * modules/strsignal (Include): Change to <string.h>.
57527
57528 2008-01-14  Colin Watson  <cjwatson@debian.org>
57529
57530         * modules/argp (Notice): Add a notice recommending to change
57531         XGETTEXT_OPTIONS.
57532         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
57533
57534 2008-01-13  Colin Watson  <cjwatson@debian.org>
57535
57536         * modules/strsignal-tests: New file.
57537         * tests/test-strsignal.c: New file.
57538
57539         * lib/strsignal.c: New file, from glibc with modifications.
57540         * lib/siglist.h: New file, from glibc with modifications.
57541         * lib/string.in.h (strsignal): New declaration.
57542         * m4/strsignal.m4: New file.
57543         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57544         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
57545         * modules/strsignal: New file.
57546         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
57547         HAVE_DECL_STRSIGNAL.
57548
57549 2008-01-13  Bruno Haible  <bruno@clisp.org>
57550
57551         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
57552         locale encoding is not ASCII. Needed for OpenBSD 4.0.
57553         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57554         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57555
57556 2008-01-13  Bruno Haible  <bruno@clisp.org>
57557
57558         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
57559         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
57560         * lib/argp.h (__attribute__): Likewise.
57561         * lib/c-stack.c (__attribute__): Likewise.
57562         * lib/error.h (__attribute__): Likewise.
57563         * lib/fts.c (__attribute__): Likewise.
57564         * lib/openat.h (__attribute__): Likewise.
57565         * lib/stdio.in.h (__attribute__): Likewise.
57566         * lib/string.in.h (__attribute__): Likewise.
57567         * lib/utimens.c (__attribute__): Likewise.
57568         * lib/vasnprintf.h (__attribute__): Likewise.
57569         * lib/xalloc.h (__attribute__): Likewise.
57570         * lib/xprintf.h (__attribute__): Likewise.
57571         * lib/xstrtol.h (__attribute__): Likewise.
57572         * lib/xvasprintf.h (__attribute__): Likewise.
57573
57574 2008-01-12  Bruno Haible  <bruno@clisp.org>
57575
57576         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
57577         * doc/glibc-headers/a.out.texi: New file.
57578         * doc/glibc-headers/aliases.texi: New file.
57579         * doc/glibc-headers/alloca.texi: New file.
57580         * doc/glibc-headers/ar.texi: New file.
57581         * doc/glibc-headers/argp.texi: New file.
57582         * doc/glibc-headers/argz.texi: New file.
57583         * doc/glibc-headers/byteswap.texi: New file.
57584         * doc/glibc-headers/crypt.texi: New file.
57585         * doc/glibc-headers/endian.texi: New file.
57586         * doc/glibc-headers/envz.texi: New file.
57587         * doc/glibc-headers/err.texi: New file.
57588         * doc/glibc-headers/error.texi: New file.
57589         * doc/glibc-headers/execinfo.texi: New file.
57590         * doc/glibc-headers/fpu_control.texi: New file.
57591         * doc/glibc-headers/fstab.texi: New file.
57592         * doc/glibc-headers/fts.texi: New file.
57593         * doc/glibc-headers/getopt.texi: New file.
57594         * doc/glibc-headers/ieee754.texi: New file.
57595         * doc/glibc-headers/ifaddrs.texi: New file.
57596         * doc/glibc-headers/libintl.texi: New file.
57597         * doc/glibc-headers/mcheck.texi: New file.
57598         * doc/glibc-headers/mntent.texi: New file.
57599         * doc/glibc-headers/obstack.texi: New file.
57600         * doc/glibc-headers/paths.texi: New file.
57601         * doc/glibc-headers/printf.texi: New file.
57602         * doc/glibc-headers/pty.texi: New file.
57603         * doc/glibc-headers/resolv.texi: New file.
57604         * doc/glibc-headers/shadow.texi: New file.
57605         * doc/glibc-headers/sysexits.texi: New file.
57606         * doc/glibc-headers/ttyent.texi: New file.
57607
57608 2008-01-12  Jim Meyering  <meyering@redhat.com>
57609
57610         announce-gen: emit Gnulib's git-based version string.
57611         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
57612         New option --gnulib-version=V, where V is expected to be
57613         the output of running git describe in the gnulib directory.
57614         (get_tool_versions): Request feedback on xdelta.  I suspect it's
57615         not useful, and plan to stop publishing an xdelta file with each
57616         coreutils release.
57617
57618         * build-aux/announce-gen: Also check for lzma-compressed files.
57619
57620 2008-01-11  Bruno Haible  <bruno@clisp.org>
57621
57622         * tests/test-memmem.c (main): Increase maximum allowed time.
57623         * tests/test-strstr.c (main): Likewise.
57624
57625 2008-01-11  Bruno Haible  <bruno@clisp.org>
57626
57627         * doc/functions/memmem.texi: Add more precisions about platforms.
57628         * doc/functions/strstr.texi: Likewise.
57629
57630 2008-01-10  Eric Blake  <ebb9@byu.net>
57631
57632         * m4/strstr.m4: Delete cruft from copy-n-paste.
57633         Reported by Bruno Haible.
57634
57635 2008-01-10  Bruno Haible  <bruno@clisp.org>
57636
57637         Make c-strstr rely on strstr.
57638         * lib/c-strstr.c: Don't include str-kmp.h.
57639         (c_strstr): Define in terms of strstr.
57640         * modules/c-strstr (Files): Remove lib/str-kmp.h.
57641         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
57642
57643 2008-01-10  Bruno Haible  <bruno@clisp.org>
57644
57645         * doc/gnulib.texi (String Functions in C Locale): New section.
57646         * doc/c-ctype.texi: New file.
57647         * doc/c-strcase.texi: New file.
57648         * doc/c-strcaseeq.texi: New file.
57649         * doc/c-strcasestr.texi: New file.
57650         * doc/c-strstr.texi: New file.
57651         * doc/c-strtod.texi: New file.
57652         * doc/c-strtold.texi: New file.
57653
57654 2008-01-10  Eric Blake  <ebb9@byu.net>
57655
57656         * lib/relocatable.h: Fix a comment.
57657
57658 2008-01-10  Eric Blake  <ebb9@byu.net>
57659
57660         Share two-way algorithm.
57661         * lib/str-two-way.h: New file, merged from...
57662         * lib/memmem.c: ...here...
57663         * lib/strstr.c: ...and here.
57664         * modules/memmem (Files): Use it.
57665         * modules/strstr (Files): Likewise.
57666
57667         Avoid quadratic strstr implementations.
57668         * lib/strstr.c: New file.
57669         * m4/strstr.m4: Likewise.
57670         * modules/strstr: Likewise.
57671         * modules/strstr-tests: Likewise.
57672         * tests/test-strstr.c: Likewise.
57673         * lib/string.in.h (rpl_strstr): Declare.
57674         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
57675         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
57676         * modules/string (Makefile.am): Likewise.
57677         * MODULES.html.sh (string handling): Mention new module.
57678         * doc/functions/strstr.texi (strstr): Document the bug.
57679
57680 2008-01-10  Bruno Haible  <bruno@clisp.org>
57681
57682         * lib/relocatable.h (relocate): State whether result is freshly
57683         allocated or not.
57684         * lib/relocatable.c (relocate): Return a freshly allocated string
57685         instead of a pointer to a privately held string.
57686         Reported by Sylvain Beucler <beuc@gnu.org>.
57687
57688 2008-01-10  Colin Watson  <cjwatson@debian.org>
57689
57690         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
57691         s/S_ISNLK/S_ISLNK/.
57692
57693 2008-01-09  Bruno Haible  <bruno@clisp.org>
57694
57695         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
57696         and other files.
57697         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
57698         if it's only a guess.
57699         * modules/memmem: Simplify by depending on memmem-simple.
57700
57701 2008-01-09  Bruno Haible  <bruno@clisp.org>
57702
57703         Work around OpenBSD 4.0 tdelete() bug.
57704         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
57705         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
57706         macros and don't redefine the enum values.
57707         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
57708         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
57709         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
57710
57711 2008-01-09  Bruno Haible  <bruno@clisp.org>
57712
57713         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
57714         (main): Don't perform the tests if setlocale did not install a UTF-8
57715         locale. Needed on OpenBSD 4.0.
57716         * modules/wcwidth-tests (Depends-on): Add localcharset.
57717
57718 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57719
57720         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
57721         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
57722         * NEWS: announce this.
57723         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
57724
57725 2008-01-09  Simon Josefsson  <simon@josefsson.org>
57726         and Eric Blake  <ebb9@byu.net>
57727
57728         Add memmem-simple module.
57729         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
57730         (gl_FUNC_MEMMEM): Separate performance from presence checks.
57731         * modules/memmem-simple: New file.
57732         * modules/memmem (Description): Tweak.
57733         * MODULES.html.sh (string handling): Mention new module.
57734         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
57735         addressed by memmem-simple.
57736         * NEWS: Document the difference.
57737
57738 2008-01-09  Eric Blake  <ebb9@byu.net>
57739
57740         Give gcc some memmem optimization hints.
57741         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
57742         (strcasestr): Declare as pure.
57743         * modules/memmem (Maintainer): Claim my implementation.
57744
57745 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57746
57747         Support AIX 6.1 and higher.
57748         * build-aux/config.libpath: Likewise.
57749         * build-aux/config.rpath: Likewise.
57750
57751 2008-01-08  Jim Meyering  <meyering@redhat.com>
57752             Bruno Haible  <bruno@clisp.org>
57753
57754         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
57755         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
57756         Reported by Peter Fales in
57757         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
57758
57759 2008-01-08  Bruno Haible  <bruno@clisp.org>
57760
57761         * modules/unictype/category-of (Depends-on): Add
57762         unictype/category-none.
57763         * modules/unictype/category-and-tests (Depends-on): Add
57764         unictype/category-{L,N,Lu,Nd}.
57765         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
57766         * modules/unictype/category-or-tests (Depends-on): Add
57767         unictype/category-{L,N}.
57768         * modules/unictype/category-name-tests (Depends-on): Add
57769         unictype/category-{Z,Nl}.
57770         Reported by Simon Josefsson.
57771
57772 2008-01-08  Bruno Haible  <bruno@clisp.org>
57773
57774         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
57775         convention better.
57776         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
57777         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
57778         Reported by Peter Miller <millerp@canb.auug.org.au>.
57779
57780 2008-01-08  Eric Blake  <ebb9@byu.net>
57781
57782         Rewrite memmem to guarantee linear complexity without malloc.
57783         * lib/memmem.c (memmem): Use Two-Way rather than
57784         Knuth-Morris-Pratt, to allow O(1) space usage.
57785         (critical_factorization, two_way_short_needle)
57786         (two_way_long_needle): New functions.
57787         (knuth_morris_pratt): Delete.
57788         * modules/memmem (Depends-on): No longer need malloca or stdbool.
57789         Add stdint.
57790         * tests/test-memmem.c (main): Add tests for periodic needle and
57791         sublinear performance.
57792         * doc/functions/memmem.texi (memmem): Document other deficiencies
57793         in cygwin and older glibc.
57794
57795 2008-01-08  Bruno Haible  <bruno@clisp.org>
57796
57797         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
57798         augmentation.
57799
57800 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
57801
57802         Add a configure time option: --disable-acl.
57803         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
57804         AC_ARG_ENABLE(acl).
57805
57806 2008-01-06  Simon Josefsson  <simon@josefsson.org>
57807
57808         * tests/test-localename.c: Don't include obsolete "setenv.h".
57809
57810         * modules/localename-tests (Depends-on): Need unsetenv.
57811
57812 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57813
57814         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
57815
57816 2008-01-06  Colin Watson  <cjwatson@debian.org>
57817
57818         * users.txt: Add man-db.
57819
57820 2008-01-07  Bruno Haible  <bruno@clisp.org>
57821
57822         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
57823         previous section name.
57824
57825 2008-01-07  Bruno Haible  <bruno@clisp.org>
57826
57827         * lib/progname.c (set_program_name): Don't strip off a leading
57828         "lt-" prefix outside a .libs directory.
57829         Suggested by Paul Eggert.
57830
57831 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
57832             Bruno Haible  <bruno@clisp.org>
57833
57834         Improve memory cleanup in 'relocatable' module.
57835         * lib/relocatable.h (compute_curr_prefix): Change return type to
57836         'char *'.
57837         * lib/relocatable.c (compute_curr_prefix): Change return type to
57838         'char *'. Free curr_installdir after use.
57839         (relocate): Free curr_prefix_better after use.
57840         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
57841
57842 2008-01-01  Bruno Haible  <bruno@clisp.org>
57843
57844         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
57845         failure on older glibc systems.
57846         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57847
57848 2008-01-05  Eric Blake  <ebb9@byu.net>
57849
57850         Avoid quadratic system memmem.
57851         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
57852         Reported by Ralf Wildenhues.
57853
57854         Fix memmem test for mingw.
57855         * modules/memmem-tests (configure.ac): Check for alarm.
57856         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
57857         it.
57858         * doc/functions/memmem.texi: New file.
57859         * doc/gnulib.texi (Function Substitutes): Add memmem.
57860         Reported by Bruno Haible.
57861
57862 2008-01-04  Bruno Haible  <bruno@clisp.org>
57863
57864         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
57865         Require gl_HEADER_STRINGS_H_DEFAULTS, not
57866         gl_HEADER_STRING_H_DEFAULTS.
57867
57868 2008-01-04  Eric Blake  <ebb9@byu.net>
57869
57870         Shorten duration of memmem test.
57871         * tests/test-memmem.c (main): Use alarm to declare failure if test
57872         is taking too long.
57873         Reported by Ralf Wildenhues.
57874
57875 2007-12-21  Simon Josefsson  <simon@josefsson.org>
57876
57877         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
57878         string, needed by strerror.
57879
57880 2008-01-03  Colin Watson  <cjwatson@debian.org>
57881             Bruno Haible  <bruno@clisp.org>
57882
57883         * doc/gnulib-tool.texi (Localization): New section.
57884
57885 2008-01-02  Bruno Haible  <bruno@clisp.org>
57886
57887         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
57888         variables to 'unsigned char *' type.
57889         Reported by Paul Eggert.
57890
57891 2008-01-02  Jim Meyering  <jim@meyering.net>
57892
57893         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
57894
57895 2007-12-31  Jim Meyering  <jim@meyering.net>
57896
57897         Avoid use of private FTS type name.
57898         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
57899
57900 2007-12-30  Karl Berry  <karl@gnu.org>
57901
57902         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
57903         work around defect in Texinfo and/or the standalone Info browser.
57904
57905 2007-12-30  Bruno Haible  <bruno@clisp.org>
57906
57907         Unify 5 copies of the KMP code.
57908         * lib/str-kmp.h: New file.
57909         * lib/c-strcasestr.c: Include str-kmp.h.
57910         (knuth_morris_pratt): Remove function.
57911         (c_strcasestr): Update.
57912         * lib/c-strstr.c: Include str-kmp.h.
57913         (knuth_morris_pratt): Remove function.
57914         (c_strcasestr): Update.
57915         * lib/mbscasestr.c: Include str-kmp.h.
57916         (knuth_morris_pratt_unibyte): Remove function.
57917         * lib/mbsstr.c: Include str-kmp.h.
57918         (knuth_morris_pratt_unibyte): Remove function.
57919         * lib/strcasestr.c: Include str-kmp.h.
57920         (knuth_morris_pratt): Remove function.
57921         (strcasestr): Update.
57922         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
57923         * modules/c-strstr (Files): Likewise.
57924         * modules/mbscasestr (Files): Likewise.
57925         * modules/mbsstr (Files): Likewise.
57926         * modules/strcasestr (Files): Likewise.
57927         Suggested by Paul Eggert.
57928
57929 2007-12-30  Bruno Haible  <bruno@clisp.org>
57930
57931         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
57932         defined.
57933
57934 2007-12-30  Bruno Haible  <bruno@clisp.org>
57935
57936         * lib/xmalloca.h: Include xalloc.h.
57937         (xnmalloca): New macro.
57938
57939 2007-12-30  Bruno Haible  <bruno@clisp.org>
57940
57941         * lib/malloca.h (nmalloca): New macro.
57942         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
57943         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
57944         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
57945         knuth_morris_pratt_multibyte): Likewise.
57946         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
57947         knuth_morris_pratt_multibyte): Likewise.
57948         * lib/memmem.c (knuth_morris_pratt): Likewise.
57949         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
57950
57951 2007-12-25  Bruno Haible  <bruno@clisp.org>
57952
57953         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
57954         * lib/glob.c: Don't include openat.h.
57955         (link_exists2_p): Add back the code that deals with the
57956         !GLOB_ALTDIRFUNC case.
57957         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
57958         let it do the filename concatenation.
57959         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
57960         * modules/glob (Depends-on): Remove openat.
57961
57962 2007-12-31  Bruno Haible  <bruno@clisp.org>
57963
57964         * modules/dirfd (License): Change to LGPLv2+.
57965         Approved by Jim Meyering.
57966
57967 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57968
57969         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
57970         when multiplying M by sizeof (size_t).
57971
57972 2007-12-10  Martin Lambers  <marlam@marlam.de>
57973
57974         Override getpagesize on mingw.
57975         * lib/getpagesize.c: New file.
57976         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
57977         * modules/getpagesize (Files): Add lib/getpagesize.c.
57978         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
57979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57980         REPLACE_GETPAGESIZE.
57981         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
57982
57983 2007-12-25  Bruno Haible  <bruno@clisp.org>
57984
57985         * modules/localcharset (Notice): New field.
57986         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
57987         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
57988
57989 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57990             Bruno Haible  <bruno@clisp.org>
57991
57992         Avoid using the syntax symbol() in formatted documentation.
57993         * MODULES.html.sh (func_module): When replacing symbol() with a
57994         hyperlink, remove the parentheses. Show an error if some remain.
57995         Recognize and render the '...' syntax.
57996         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
57997         Rework. Add paragraph about GCC's inlining.
57998         * doc/alloca.texi: Likewise.
57999         * doc/error.texi: Remove parentheses from symbol reference.
58000         * doc/gnulib-intro.texi: Likewise.
58001         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
58002         * modules/fnmatch (Description): Reword to say "the ... function".
58003         * modules/full-read (Description): Likewise.
58004         * modules/full-write (Description): Likewise.
58005         * modules/safe-read (Description): Likewise.
58006         * modules/safe-write (Description): Likewise.
58007         * modules/strchrnul (Description): Likewise.
58008         * modules/trim (Description): Likewise.
58009         * modules/error (Description): Remove parentheses from symbol
58010         references.
58011         * modules/verror (Description): Likewise.
58012         Reported by Karl Berry.
58013
58014 2007-12-25  Bruno Haible  <bruno@clisp.org>
58015
58016         Fixup after 2007-10-16 commit.
58017         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
58018
58019 2007-12-24  Bruno Haible  <bruno@clisp.org>
58020
58021         Make --enable-relocatable work with DESTDIR.
58022         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
58023         to compute installdir from destprog.
58024         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
58025         also set the RELOC_DESTDIR variable.
58026         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58027
58028 2007-12-24  Bruno Haible  <bruno@clisp.org>
58029
58030         Fix link error due to xalloc_die().
58031         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
58032         of xreadlink.
58033         * lib/relocwrapper.c: Update comments.
58034         * build-aux/install-reloc: Remove xreadlink.c from file list.
58035         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
58036         xreadlink.c.
58037         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58038
58039 2007-12-24  Bruno Haible  <bruno@clisp.org>
58040
58041         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
58042         * lib/setenv.h: Remove file.
58043         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
58044         lib/setenv.h.
58045         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
58046         (Depends-on): Add stdlib.
58047         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
58048         gl_FUNC_UNSETENV.
58049         (Include): Replace setenv.h with <stdlib.h>.
58050         * modules/unsetenv: New file.
58051         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
58052         * lib/unsetenv.c: Include <stdlib.h> first.
58053         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
58054         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
58055         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
58056         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
58057         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
58058         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58059         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
58060         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
58061         * doc/functions/unsetenv.texi: Update.
58062         * modules/xsetenv (Depends-on): Add unsetenv.
58063         * modules/getdate (Depends-on): Likewise.
58064         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
58065         * lib/xsetenv.c: Don't include setenv.h.
58066         * lib/getdate.y: Likewise.
58067         * lib/relocwrapper.c: Likewise.
58068         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
58069         (Depends-on): Add stdlib.
58070         * NEWS: Mention the changes.
58071         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
58072
58073 2007-12-23  Bruno Haible  <bruno@clisp.org>
58074
58075         * lib/memmem.c (memmem): Use lowercase variable names. Tab
58076         indentation.
58077
58078 2007-12-23  Bruno Haible  <bruno@clisp.org>
58079
58080         * lib/c-strcasestr.c: Add more comments.
58081         * lib/c-strstr.c: Likewise.
58082         * lib/mbscasestr.c: Likewise.
58083         * lib/mbsstr.c: Likewise.
58084         * lib/strcasestr.c: Likewise.
58085         * lib/memmem.c: Likewise.
58086
58087 2007-12-23  Bruno Haible  <bruno@clisp.org>
58088
58089         * tests/test-memmem.c: Include <string.h> first.
58090
58091 2007-12-22  Bruno Haible  <bruno@clisp.org>
58092
58093         * gnulib-tool (func_create_testdir): Change $auxdir while generating
58094         the contents of $testsbase.
58095         Reported by Ralf Wildenhues.
58096
58097 2007-12-22  Bruno Haible  <bruno@clisp.org>
58098
58099         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
58100         two variables local_ldadd_before, local_ldadd_last.
58101
58102 2007-12-20  Eric Blake  <ebb9@byu.net>
58103
58104         Work around circular library issue when cross-compiling.
58105         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
58106         that progname.o does not need to pull in rpl_memcmp.
58107
58108 2007-12-19  Eric Blake  <ebb9@byu.net>
58109
58110         Fix memmem to avoid O(n^2) worst-case complexity.
58111         * lib/memmem.c (knuth_morris_pratt): New function.
58112         (memmem): Use it if first few naive iterations fail.
58113         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
58114         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
58115         * modules/memchr (License): Likewise.
58116         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
58117         malloca.
58118         * tests/test-memmem.c: Rewrite, borrowing ideas from
58119         test-mbsstr1.c; the old version wouldn't even compile!
58120         * modules/memmem-tests: New file.
58121         * lib/string.in.h (rpl_memmem): Add declaration.
58122         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
58123         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
58124         REPLACE_MEMMEM.
58125
58126 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
58127
58128         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
58129         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
58130         before any system include files, and undef after them all.  This
58131         should fix a problem on VMS reported by John E. Malmberg in
58132         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
58133
58134 2007-12-17  Eric Blake  <ebb9@byu.net>
58135
58136         Revert addition of verify, for BSD/OS.
58137         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
58138         can't handle large files, for the sake of obsolete platforms.
58139         * modules/fseeko (Depends-on): Remove verify.
58140         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
58141         * doc/functions/ftello.texi (ftello): Likewise.
58142         * doc/functions/fgetpos.texi (fgetpos): Likewise.
58143         Reported by Larry Jones.
58144
58145 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
58146
58147         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
58148         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
58149
58150 2007-12-17  Jim Meyering  <meyering@redhat.com>
58151
58152         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
58153         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
58154         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
58155         * modules/getcwd (Depends-on): Add openat.
58156         Reported by Petr Salinger.
58157
58158 2007-12-17  Bruno Haible  <bruno@clisp.org>
58159
58160         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
58161         avoid a segmentation fault of the configure test on x86_64 systems.
58162
58163 2007-12-15  Jim Meyering  <meyering@redhat.com>
58164
58165         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
58166
58167 2007-12-13  Eric Blake  <ebb9@byu.net>
58168
58169         Another fseek test.
58170         * tests/test-fseek.c (main): Also test ungetc handling.
58171         * tests/test-fseeko.c (main): Likewise.
58172         * modules/fseeko (Depends-on): Add verify.
58173         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
58174         large.
58175         Reported by Larry Jones.
58176
58177         Fix fseeko on mingw.
58178         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
58179         seek.
58180
58181         Beef up fseek tests.
58182         * tests/test-fseek.c (main): Also test eof handling.
58183         * tests/test-fseeko.c (main): Likewise.
58184         Reported by Larry Jones.
58185
58186 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
58187
58188         Fix fseeko on BSD-based platforms.
58189         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
58190         successful seek.
58191
58192 2007-12-12  Eric Blake  <ebb9@byu.net>
58193
58194         Allow circular dependency of separate libtests.a
58195         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
58196         when use_libtests.
58197
58198 2007-12-11  Eric Blake  <ebb9@byu.net>
58199
58200         Fix bug with -0.0L in previous patch.
58201         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
58202         * tests/test-isnan.c (main): Also test on zeroes.
58203         * tests/test-isnanf.c (main): Likewise.
58204         * tests/test-isnanl.h (main): Likewise.
58205
58206         Detect pseudo-denormals on x86 even when cross-compiling.
58207         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
58208         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
58209         invalid bit patterns that happen to satisfy ==.
58210
58211         Avoid link failures with separate libtests.a.
58212         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
58213         last, to satisfy circular dependencies.
58214
58215 2007-12-11  Eric Blake  <ebb9@byu.net>
58216         and Bruno Haible  <bruno@clisp.org>
58217
58218         Fix OpenBSD 4.0 <float.h> handling of long double.
58219         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
58220         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
58221         * doc/headers/float.texi (float.h): Document OpenBSD bug.
58222
58223 2007-12-11  Jim Meyering  <meyering@redhat.com>
58224
58225         * users.txt: Add libvirt.
58226
58227         Support versions of autoconf prior to 2.59c.
58228         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
58229         if it is not already defined.
58230
58231 2007-12-09  Bruno Haible  <bruno@clisp.org>
58232
58233         Let 'gnulib-tool --import' collect sources needed for the tests in
58234         tests/ rather than in lib/.
58235         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
58236         argument. If true, add rules to generate libtests.a, and put libtests.a
58237         into $(LDADD). Consider source files in subdirectories and set
58238         uses_subdirs.
58239         (func_emit_initmacro_start, func_emit_initmacro_end,
58240         func_emit_initmacro_done): Pass all arguments explicitly.
58241         (func_import): Determine two module lists main_modules,
58242         testsrelated_modules. Determine use_libtests. Determine two variables
58243         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
58244         instead of just sed_transform_lib_file. Determine two variables
58245         main_files and testsrelated_files. Compute 'files' as the union of
58246         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
58247         func_add_or_update. In the generated gnulib-comp.m4, collect the
58248         object files for tests/ in different variables than those for lib/.
58249         Substitute LIBTESTS_LIBDEPS.
58250         (func_create_testdir): Combine the uses_subdirs results from
58251         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
58252
58253 2007-12-09  Bruno Haible  <bruno@clisp.org>
58254
58255         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
58256         the build-aux directory.
58257
58258 2007-12-09  Bruno Haible  <bruno@clisp.org>
58259
58260         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
58261         introduced on 2006-09-09.
58262
58263 2007-12-07  Jim Meyering  <meyering@redhat.com>
58264
58265         Let these macros work also with autoconf-2.59.
58266         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58267         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58268         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58269
58270 2007-12-06  Jim Meyering  <meyering@redhat.com>
58271
58272         Avoid a configure-time syntax error in gl_FUNC_ACL.
58273         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58274         function in each branch, before testing the cache variable.
58275
58276 2007-12-04  Eric Blake  <ebb9@byu.net>
58277
58278         Make scripts executable.
58279         * build-aux/config.guess: Add execute permissions.
58280         * build-aux/config.sub: Likewise.
58281         * build-aux/gendocs.sh: Likewise.
58282
58283         Fix frexp on mingw.
58284         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
58285         cross-compiling.
58286         * doc/functions/frexp.texi (frexp): Document the bug.
58287
58288         Make cygwin fseeko check more reliable.
58289         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
58290         version numbers, rather than unrelated feature check.
58291         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
58292         * doc/functions/ftello.texi (ftello): Likewise.
58293         Reported by Bruno Haible.
58294
58295         * m4/strerror.m4: Bump version number.
58296
58297 2007-12-03  Bruno Haible  <bruno@clisp.org>
58298
58299         * doc/functions/mprotect.texi: Mention the mingw problem.
58300
58301 2007-12-03  Eric Blake  <ebb9@byu.net>
58302
58303         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
58304         REPLACE_STRERROR is initialized before this macro.
58305
58306 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58307
58308         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
58309         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
58310         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
58311         put -lsec in even for programs other than 'ls'.  This fixes a problem
58312         for gettext reported by Bruno Haible in
58313         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
58314         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
58315         Add support for Solaris 10.  This isn't efficient, but should get the
58316         job done for now.
58317
58318 2007-12-03  James Youngman  <jay@gnu.org>
58319
58320         * doc/regexprops-generic.texi: change "an close-group" to "a
58321         close-group" and "illegal" to "not allowed".
58322
58323 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58324
58325         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
58326         pr_byname.h. Needed for the rare case when the maintainer has done
58327         "make maintainer-clean" in the source directory and then attempts a
58328         build outside the source directory.
58329         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
58330         scripts_byname.h.
58331
58332 2007-12-02  Martin Lambers <marlam@marlam.de>
58333             Bruno Haible  <bruno@clisp.org>
58334
58335         * lib/getpagesize.h: Remove file.
58336         * lib/unistd.in.h: Include declaration of getpagesize here.
58337         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
58338         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
58339         HAVE_SYS_PARAM_H.
58340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
58341         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58342         * modules/getpagesize (Files): Remove lib/getpagesize.h.
58343         (Depends-on): Add unistd.
58344         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58345         (Include): Use <unistd.h> instead of getpagesize.h.
58346         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
58347         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58348         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
58349         gl_GETPAGESIZE invocation, already handled by module dependency.
58350         * lib/pagealign_alloc.c: Don't include getpagesize.h.
58351
58352 2007-12-02  Bruno Haible  <bruno@clisp.org>
58353
58354         * modules/strings-tests: New file.
58355         * tests/test-strings.c: New file.
58356
58357         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
58358         * lib/strings.in.h: New file.
58359         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
58360         * m4/strings_h.m4: New file.
58361         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
58362         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
58363         * modules/strings: New file.
58364         * modules/string (Makefile.am): Update.
58365         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
58366         Reported by Karl Berry.
58367
58368 2007-12-01  Eric Blake  <ebb9@byu.net>
58369
58370         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
58371         accomodate fix in cygwin 1.5.25.
58372
58373 2007-12-01  Jim Meyering  <meyering@redhat.com>
58374
58375         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
58376         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
58377         that would inhibit utf8-optimization of a regexp containing line-
58378         or buffer-anchors, e.g., `^', `$'.
58379
58380 2007-11-30  Bruno Haible  <bruno@clisp.org>
58381
58382         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
58383         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
58384         glthread_recursive_lock_init.
58385         * lib/lock.c (glthread_recursive_lock_init)
58386         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
58387         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58388
58389 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
58390
58391         New function qset_acl, like set_acl but with syscall semantics.
58392         * lib/acl.h (qset_acl): New decl.
58393         * lib/acl.c (qset_acl): New function.
58394         (set_acl): Use new function.  Use more-consistent diagnostics.
58395
58396 2007-11-28  Jim Meyering  <meyering@redhat.com>
58397
58398         * modules/physmem (License): Change from GPL to LGPLv2+.
58399
58400 2007-11-26  Bruno Haible  <bruno@clisp.org>
58401
58402         * lib/vasnprintf.c (decode_long_double): Don't abort if the
58403         'long double' type has excess precision.
58404         Reported by Jim Meyering in
58405         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
58406
58407 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58408
58409         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
58410         Sync from <http://gnu.org/licenses>.
58411         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
58412         with license text from same location.
58413         * doc/maintain.texi, doc/standards.texi:  Sync from
58414         <http://savannah.gnu.org/projects/gnustandards>.
58415
58416 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
58417         and Jim Meyering  <meyering@redhat.com>
58418
58419         Adjust getdate' grammar to accept a slightly more regular language.
58420         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
58421         Before, the former was rejected.
58422         * lib/getdate.y (digits_to_date_time): New function, factored
58423         out of ...
58424         (number): ...here.  Just call digits_to_date_time.
58425         (hybrid): New non-terminal to handle an <unsigned number,
58426         signed relative offset> sequence consistently.
58427
58428 2007-11-18  Jim Meyering  <meyering@redhat.com>
58429
58430         Pull my changes from coreutils:
58431         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
58432         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
58433         use of $gnulib_tool_option_extras, so that it's separated from the
58434         preceding argument.
58435
58436         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
58437         * build-aux/bootstrap (cp_mark_as_generated): Create any required
58438         parent destination directories before copying a file into place.
58439
58440 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58441
58442         bootstrap: work also with 4-argument variant of AC_INIT
58443         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
58444
58445 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58446
58447         Port test-getaddrinfo to Solaris.
58448         Problem reported by Bruno Haible in
58449         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
58450         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
58451         explanation of setting 'hints'.
58452         Don't reject an implementation merely because it returns EAI_SERVICE.
58453         (EAI_SERVICE): Define to 0 if not defined.
58454
58455 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58456
58457         The license of gnu-make and posix-shell is now "GPLed build tool".
58458         * modules/gnu-make (License): Likewise.
58459         * modules/posix-shell (License): Likewise.
58460
58461         New module posix-shell, for determining a POSIX shell
58462         or perhaps something that is close enough to a POSIX shell.
58463         * m4/posix-shell.m4: New file.
58464         * modules/posix-shell: New file.
58465
58466         * MODULES.html.sh: Mention new module.
58467
58468         New module gnu-make, for determining whether we're using GNU Make.
58469         * m4/gnu-make.m4: New file.
58470         * modules/gnu-make: New file.
58471         * MODULES.html.sh: Mention new module.
58472
58473 2007-11-14  Jim Meyering  <meyering@redhat.com>
58474
58475         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
58476         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
58477         use this macro to create a function _definition_.
58478         Remove useless "#undef ARGMATCH_DIE".
58479
58480 2007-11-14  Bruno Haible  <bruno@clisp.org>
58481
58482         * lib/config.charset: Update for OpenBSD 4.1.
58483         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
58484
58485 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
58486
58487         Document 64-bit #if problems in stdint.texi.
58488         * doc/headers/stdint.texi (stdint.h): Mention problems with
58489         64-bit-#if, and how to work around them.
58490
58491         Don't insist on 'long long int' support in the preprocessor.  It
58492         breaks too many things.  For example, PRIdMAX still uses a 'long
58493         long int' format with the latest Sun compiler, even though
58494         HAVE_LONG_LONG_INT isn't defined due to that compiler's
58495         preprocessor problem.  This causes the latest coreutils to dump
58496         core on Solaris 10 sparc with the Sun C compiler.
58497         Instead, fix the 2007-10-16 problem in a different way, by evaluating
58498         the troublesome expressions at configure-time, not at #if-time.
58499         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
58500         preprocessor.
58501         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
58502         compile-time C checks, done at 'configure'-time.
58503         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
58504         * modules/inttypes (Makefile): Substitute the new symbols that
58505         gl_INTTYPES_H now generates.
58506         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
58507
58508 2007-11-12  Bruno Haible  <bruno@clisp.org>
58509
58510         Tests for Unicode character classification functions.
58511
58512         * modules/unictype/bidicategory-byname-tests: New file.
58513         * modules/unictype/bidicategory-name-tests: New file.
58514         * modules/unictype/bidicategory-of-tests: New file.
58515         * modules/unictype/bidicategory-test-tests: New file.
58516         * modules/unictype/block-list-tests: New file.
58517         * modules/unictype/block-of-tests: New file.
58518         * modules/unictype/block-test-tests: New file.
58519         * modules/unictype/category-C-tests: New file.
58520         * modules/unictype/category-Cc-tests: New file.
58521         * modules/unictype/category-Cf-tests: New file.
58522         * modules/unictype/category-Cn-tests: New file.
58523         * modules/unictype/category-Co-tests: New file.
58524         * modules/unictype/category-Cs-tests: New file.
58525         * modules/unictype/category-L-tests: New file.
58526         * modules/unictype/category-Ll-tests: New file.
58527         * modules/unictype/category-Lm-tests: New file.
58528         * modules/unictype/category-Lo-tests: New file.
58529         * modules/unictype/category-Lt-tests: New file.
58530         * modules/unictype/category-Lu-tests: New file.
58531         * modules/unictype/category-M-tests: New file.
58532         * modules/unictype/category-Mc-tests: New file.
58533         * modules/unictype/category-Me-tests: New file.
58534         * modules/unictype/category-Mn-tests: New file.
58535         * modules/unictype/category-N-tests: New file.
58536         * modules/unictype/category-Nd-tests: New file.
58537         * modules/unictype/category-Nl-tests: New file.
58538         * modules/unictype/category-No-tests: New file.
58539         * modules/unictype/category-P-tests: New file.
58540         * modules/unictype/category-Pc-tests: New file.
58541         * modules/unictype/category-Pd-tests: New file.
58542         * modules/unictype/category-Pe-tests: New file.
58543         * modules/unictype/category-Pf-tests: New file.
58544         * modules/unictype/category-Pi-tests: New file.
58545         * modules/unictype/category-Po-tests: New file.
58546         * modules/unictype/category-Ps-tests: New file.
58547         * modules/unictype/category-S-tests: New file.
58548         * modules/unictype/category-Sc-tests: New file.
58549         * modules/unictype/category-Sk-tests: New file.
58550         * modules/unictype/category-Sm-tests: New file.
58551         * modules/unictype/category-So-tests: New file.
58552         * modules/unictype/category-Z-tests: New file.
58553         * modules/unictype/category-Zl-tests: New file.
58554         * modules/unictype/category-Zp-tests: New file.
58555         * modules/unictype/category-Zs-tests: New file.
58556         * modules/unictype/category-and-not-tests: New file.
58557         * modules/unictype/category-and-tests: New file.
58558         * modules/unictype/category-byname-tests: New file.
58559         * modules/unictype/category-name-tests: New file.
58560         * modules/unictype/category-none-tests: New file.
58561         * modules/unictype/category-of-tests: New file.
58562         * modules/unictype/category-or-tests: New file.
58563         * modules/unictype/category-test-withtable-tests: New file.
58564         * modules/unictype/combining-class-tests: New file.
58565         * modules/unictype/ctype-alnum-tests: New file.
58566         * modules/unictype/ctype-alpha-tests: New file.
58567         * modules/unictype/ctype-blank-tests: New file.
58568         * modules/unictype/ctype-cntrl-tests: New file.
58569         * modules/unictype/ctype-digit-tests: New file.
58570         * modules/unictype/ctype-graph-tests: New file.
58571         * modules/unictype/ctype-lower-tests: New file.
58572         * modules/unictype/ctype-print-tests: New file.
58573         * modules/unictype/ctype-punct-tests: New file.
58574         * modules/unictype/ctype-space-tests: New file.
58575         * modules/unictype/ctype-upper-tests: New file.
58576         * modules/unictype/ctype-xdigit-tests: New file.
58577         * modules/unictype/decimal-digit-tests: New file.
58578         * modules/unictype/digit-tests: New file.
58579         * modules/unictype/mirror-tests: New file.
58580         * modules/unictype/numeric-tests: New file.
58581         * modules/unictype/property-alphabetic-tests: New file.
58582         * modules/unictype/property-ascii-hex-digit-tests: New file.
58583         * modules/unictype/property-bidi-arabic-digit-tests: New file.
58584         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
58585         * modules/unictype/property-bidi-block-separator-tests: New file.
58586         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
58587         * modules/unictype/property-bidi-common-separator-tests: New file.
58588         * modules/unictype/property-bidi-control-tests: New file.
58589         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
58590         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
58591         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
58592         * modules/unictype/property-bidi-european-digit-tests: New file.
58593         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
58594         * modules/unictype/property-bidi-left-to-right-tests: New file.
58595         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
58596         * modules/unictype/property-bidi-other-neutral-tests: New file.
58597         * modules/unictype/property-bidi-pdf-tests: New file.
58598         * modules/unictype/property-bidi-segment-separator-tests: New file.
58599         * modules/unictype/property-bidi-whitespace-tests: New file.
58600         * modules/unictype/property-byname-tests: New file.
58601         * modules/unictype/property-combining-tests: New file.
58602         * modules/unictype/property-composite-tests: New file.
58603         * modules/unictype/property-currency-symbol-tests: New file.
58604         * modules/unictype/property-dash-tests: New file.
58605         * modules/unictype/property-decimal-digit-tests: New file.
58606         * modules/unictype/property-default-ignorable-code-point-tests: New file.
58607         * modules/unictype/property-deprecated-tests: New file.
58608         * modules/unictype/property-diacritic-tests: New file.
58609         * modules/unictype/property-extender-tests: New file.
58610         * modules/unictype/property-format-control-tests: New file.
58611         * modules/unictype/property-grapheme-base-tests: New file.
58612         * modules/unictype/property-grapheme-extend-tests: New file.
58613         * modules/unictype/property-grapheme-link-tests: New file.
58614         * modules/unictype/property-hex-digit-tests: New file.
58615         * modules/unictype/property-hyphen-tests: New file.
58616         * modules/unictype/property-id-continue-tests: New file.
58617         * modules/unictype/property-id-start-tests: New file.
58618         * modules/unictype/property-ideographic-tests: New file.
58619         * modules/unictype/property-ids-binary-operator-tests: New file.
58620         * modules/unictype/property-ids-trinary-operator-tests: New file.
58621         * modules/unictype/property-ignorable-control-tests: New file.
58622         * modules/unictype/property-iso-control-tests: New file.
58623         * modules/unictype/property-join-control-tests: New file.
58624         * modules/unictype/property-left-of-pair-tests: New file.
58625         * modules/unictype/property-line-separator-tests: New file.
58626         * modules/unictype/property-logical-order-exception-tests: New file.
58627         * modules/unictype/property-lowercase-tests: New file.
58628         * modules/unictype/property-math-tests: New file.
58629         * modules/unictype/property-non-break-tests: New file.
58630         * modules/unictype/property-not-a-character-tests: New file.
58631         * modules/unictype/property-numeric-tests: New file.
58632         * modules/unictype/property-other-alphabetic-tests: New file.
58633         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
58634         * modules/unictype/property-other-grapheme-extend-tests: New file.
58635         * modules/unictype/property-other-id-continue-tests: New file.
58636         * modules/unictype/property-other-id-start-tests: New file.
58637         * modules/unictype/property-other-lowercase-tests: New file.
58638         * modules/unictype/property-other-math-tests: New file.
58639         * modules/unictype/property-other-uppercase-tests: New file.
58640         * modules/unictype/property-paired-punctuation-tests: New file.
58641         * modules/unictype/property-paragraph-separator-tests: New file.
58642         * modules/unictype/property-pattern-syntax-tests: New file.
58643         * modules/unictype/property-pattern-white-space-tests: New file.
58644         * modules/unictype/property-private-use-tests: New file.
58645         * modules/unictype/property-punctuation-tests: New file.
58646         * modules/unictype/property-quotation-mark-tests: New file.
58647         * modules/unictype/property-radical-tests: New file.
58648         * modules/unictype/property-sentence-terminal-tests: New file.
58649         * modules/unictype/property-soft-dotted-tests: New file.
58650         * modules/unictype/property-space-tests: New file.
58651         * modules/unictype/property-terminal-punctuation-tests: New file.
58652         * modules/unictype/property-test-tests: New file.
58653         * modules/unictype/property-titlecase-tests: New file.
58654         * modules/unictype/property-unassigned-code-value-tests: New file.
58655         * modules/unictype/property-unified-ideograph-tests: New file.
58656         * modules/unictype/property-uppercase-tests: New file.
58657         * modules/unictype/property-variation-selector-tests: New file.
58658         * modules/unictype/property-white-space-tests: New file.
58659         * modules/unictype/property-xid-continue-tests: New file.
58660         * modules/unictype/property-xid-start-tests: New file.
58661         * modules/unictype/property-zero-width-tests: New file.
58662         * modules/unictype/scripts-tests: New file.
58663         * modules/unictype/syntax-c-ident-tests: New file.
58664         * modules/unictype/syntax-c-whitespace-tests: New file.
58665         * modules/unictype/syntax-java-ident-tests: New file.
58666         * modules/unictype/syntax-java-whitespace-tests: New file.
58667         * tests/unictype/test-bidi_byname.c: New file.
58668         * tests/unictype/test-bidi_name.c: New file.
58669         * tests/unictype/test-bidi_of.c: New file.
58670         * tests/unictype/test-bidi_test.c: New file.
58671         * tests/unictype/test-block_list.c: New file.
58672         * tests/unictype/test-block_of.c: New file.
58673         * tests/unictype/test-block_test.c: New file.
58674         * tests/unictype/test-categ_and.c: New file.
58675         * tests/unictype/test-categ_and_not.c: New file.
58676         * tests/unictype/test-categ_byname.c: New file.
58677         * tests/unictype/test-categ_name.c: New file.
58678         * tests/unictype/test-categ_none.c: New file.
58679         * tests/unictype/test-categ_of.c: New file.
58680         * tests/unictype/test-categ_or.c: New file.
58681         * tests/unictype/test-categ_test_withtable.c: New file.
58682         * tests/unictype/test-combining.c: New file.
58683         * tests/unictype/test-decdigit.c: New file.
58684         * tests/unictype/test-digit.c: New file.
58685         * tests/unictype/test-mirror.c: New file.
58686         * tests/unictype/test-numeric.c: New file.
58687         * tests/unictype/test-pr_byname.c: New file.
58688         * tests/unictype/test-pr_test.c: New file.
58689         * tests/unictype/test-predicate-part1.h: New file.
58690         * tests/unictype/test-predicate-part2.h: New file.
58691         * tests/unictype/test-scripts.c: New file.
58692         * tests/unictype/test-sy_c_ident.c: New file.
58693         * tests/unictype/test-sy_java_ident.c: New file.
58694
58695         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
58696         for Unicode 5.0.0.
58697         * tests/unictype/test-categ_Cc.c: Likewise.
58698         * tests/unictype/test-categ_Cf.c: Likewise.
58699         * tests/unictype/test-categ_Cn.c: Likewise.
58700         * tests/unictype/test-categ_Co.c: Likewise.
58701         * tests/unictype/test-categ_Cs.c: Likewise.
58702         * tests/unictype/test-categ_L.c: Likewise.
58703         * tests/unictype/test-categ_Ll.c: Likewise.
58704         * tests/unictype/test-categ_Lm.c: Likewise.
58705         * tests/unictype/test-categ_Lo.c: Likewise.
58706         * tests/unictype/test-categ_Lt.c: Likewise.
58707         * tests/unictype/test-categ_Lu.c: Likewise.
58708         * tests/unictype/test-categ_M.c: Likewise.
58709         * tests/unictype/test-categ_Mc.c: Likewise.
58710         * tests/unictype/test-categ_Me.c: Likewise.
58711         * tests/unictype/test-categ_Mn.c: Likewise.
58712         * tests/unictype/test-categ_N.c: Likewise.
58713         * tests/unictype/test-categ_Nd.c: Likewise.
58714         * tests/unictype/test-categ_Nl.c: Likewise.
58715         * tests/unictype/test-categ_No.c: Likewise.
58716         * tests/unictype/test-categ_P.c: Likewise.
58717         * tests/unictype/test-categ_Pc.c: Likewise.
58718         * tests/unictype/test-categ_Pd.c: Likewise.
58719         * tests/unictype/test-categ_Pe.c: Likewise.
58720         * tests/unictype/test-categ_Pf.c: Likewise.
58721         * tests/unictype/test-categ_Pi.c: Likewise.
58722         * tests/unictype/test-categ_Po.c: Likewise.
58723         * tests/unictype/test-categ_Ps.c: Likewise.
58724         * tests/unictype/test-categ_S.c: Likewise.
58725         * tests/unictype/test-categ_Sc.c: Likewise.
58726         * tests/unictype/test-categ_Sk.c: Likewise.
58727         * tests/unictype/test-categ_Sm.c: Likewise.
58728         * tests/unictype/test-categ_So.c: Likewise.
58729         * tests/unictype/test-categ_Z.c: Likewise.
58730         * tests/unictype/test-categ_Zl.c: Likewise.
58731         * tests/unictype/test-categ_Zp.c: Likewise.
58732         * tests/unictype/test-categ_Zs.c: Likewise.
58733         * tests/unictype/test-ctype_alnum.c: Likewise.
58734         * tests/unictype/test-ctype_alpha.c: Likewise.
58735         * tests/unictype/test-ctype_blank.c: Likewise.
58736         * tests/unictype/test-ctype_cntrl.c: Likewise.
58737         * tests/unictype/test-ctype_digit.c: Likewise.
58738         * tests/unictype/test-ctype_graph.c: Likewise.
58739         * tests/unictype/test-ctype_lower.c: Likewise.
58740         * tests/unictype/test-ctype_print.c: Likewise.
58741         * tests/unictype/test-ctype_punct.c: Likewise.
58742         * tests/unictype/test-ctype_space.c: Likewise.
58743         * tests/unictype/test-ctype_upper.c: Likewise.
58744         * tests/unictype/test-ctype_xdigit.c: Likewise.
58745         * tests/unictype/test-decdigit.h: Likewise.
58746         * tests/unictype/test-digit.h: Likewise.
58747         * tests/unictype/test-numeric.h: Likewise.
58748         * tests/unictype/test-pr_alphabetic.c: Likewise.
58749         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
58750         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
58751         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
58752         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
58753         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
58754         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
58755         * tests/unictype/test-pr_bidi_control.c: Likewise.
58756         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
58757         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
58758         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
58759         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
58760         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
58761         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
58762         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
58763         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
58764         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
58765         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
58766         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
58767         * tests/unictype/test-pr_combining.c: Likewise.
58768         * tests/unictype/test-pr_composite.c: Likewise.
58769         * tests/unictype/test-pr_currency_symbol.c: Likewise.
58770         * tests/unictype/test-pr_dash.c: Likewise.
58771         * tests/unictype/test-pr_decimal_digit.c: Likewise.
58772         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
58773         * tests/unictype/test-pr_deprecated.c: Likewise.
58774         * tests/unictype/test-pr_diacritic.c: Likewise.
58775         * tests/unictype/test-pr_extender.c: Likewise.
58776         * tests/unictype/test-pr_format_control.c: Likewise.
58777         * tests/unictype/test-pr_grapheme_base.c: Likewise.
58778         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
58779         * tests/unictype/test-pr_grapheme_link.c: Likewise.
58780         * tests/unictype/test-pr_hex_digit.c: Likewise.
58781         * tests/unictype/test-pr_hyphen.c: Likewise.
58782         * tests/unictype/test-pr_id_continue.c: Likewise.
58783         * tests/unictype/test-pr_id_start.c: Likewise.
58784         * tests/unictype/test-pr_ideographic.c: Likewise.
58785         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
58786         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
58787         * tests/unictype/test-pr_ignorable_control.c: Likewise.
58788         * tests/unictype/test-pr_iso_control.c: Likewise.
58789         * tests/unictype/test-pr_join_control.c: Likewise.
58790         * tests/unictype/test-pr_left_of_pair.c: Likewise.
58791         * tests/unictype/test-pr_line_separator.c: Likewise.
58792         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
58793         * tests/unictype/test-pr_lowercase.c: Likewise.
58794         * tests/unictype/test-pr_math.c: Likewise.
58795         * tests/unictype/test-pr_non_break.c: Likewise.
58796         * tests/unictype/test-pr_not_a_character.c: Likewise.
58797         * tests/unictype/test-pr_numeric.c: Likewise.
58798         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
58799         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
58800         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
58801         * tests/unictype/test-pr_other_id_continue.c: Likewise.
58802         * tests/unictype/test-pr_other_id_start.c: Likewise.
58803         * tests/unictype/test-pr_other_lowercase.c: Likewise.
58804         * tests/unictype/test-pr_other_math.c: Likewise.
58805         * tests/unictype/test-pr_other_uppercase.c: Likewise.
58806         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
58807         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
58808         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
58809         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
58810         * tests/unictype/test-pr_private_use.c: Likewise.
58811         * tests/unictype/test-pr_punctuation.c: Likewise.
58812         * tests/unictype/test-pr_quotation_mark.c: Likewise.
58813         * tests/unictype/test-pr_radical.c: Likewise.
58814         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
58815         * tests/unictype/test-pr_soft_dotted.c: Likewise.
58816         * tests/unictype/test-pr_space.c: Likewise.
58817         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
58818         * tests/unictype/test-pr_titlecase.c: Likewise.
58819         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
58820         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
58821         * tests/unictype/test-pr_uppercase.c: Likewise.
58822         * tests/unictype/test-pr_variation_selector.c: Likewise.
58823         * tests/unictype/test-pr_white_space.c: Likewise.
58824         * tests/unictype/test-pr_xid_continue.c: Likewise.
58825         * tests/unictype/test-pr_xid_start.c: Likewise.
58826         * tests/unictype/test-pr_zero_width.c: Likewise.
58827         * tests/unictype/test-sy_c_whitespace.c: Likewise.
58828         * tests/unictype/test-sy_java_whitespace.c: Likewise.
58829
58830 2007-11-12  Bruno Haible  <bruno@clisp.org>
58831
58832         Unicode character classification functions.
58833         * lib/unictype.h: New file.
58834         * modules/unictype/base: New file.
58835         * modules/unictype/category-L: New file.
58836         * modules/unictype/category-Lu: New file.
58837         * modules/unictype/category-Ll: New file.
58838         * modules/unictype/category-Lt: New file.
58839         * modules/unictype/category-Lm: New file.
58840         * modules/unictype/category-Lo: New file.
58841         * modules/unictype/category-M: New file.
58842         * modules/unictype/category-Mn: New file.
58843         * modules/unictype/category-Mc: New file.
58844         * modules/unictype/category-Me: New file.
58845         * modules/unictype/category-N: New file.
58846         * modules/unictype/category-Nd: New file.
58847         * modules/unictype/category-Nl: New file.
58848         * modules/unictype/category-No: New file.
58849         * modules/unictype/category-P: New file.
58850         * modules/unictype/category-Pc: New file.
58851         * modules/unictype/category-Pd: New file.
58852         * modules/unictype/category-Ps: New file.
58853         * modules/unictype/category-Pe: New file.
58854         * modules/unictype/category-Pi: New file.
58855         * modules/unictype/category-Pf: New file.
58856         * modules/unictype/category-Po: New file.
58857         * modules/unictype/category-S: New file.
58858         * modules/unictype/category-Sm: New file.
58859         * modules/unictype/category-Sc: New file.
58860         * modules/unictype/category-Sk: New file.
58861         * modules/unictype/category-So: New file.
58862         * modules/unictype/category-Z: New file.
58863         * modules/unictype/category-Zs: New file.
58864         * modules/unictype/category-Zl: New file.
58865         * modules/unictype/category-Zp: New file.
58866         * modules/unictype/category-C: New file.
58867         * modules/unictype/category-Cc: New file.
58868         * modules/unictype/category-Cf: New file.
58869         * modules/unictype/category-Cs: New file.
58870         * modules/unictype/category-Co: New file.
58871         * modules/unictype/category-Cn: New file.
58872         * modules/unictype/category-or: New file.
58873         * modules/unictype/category-of: New file.
58874         * modules/unictype/category-test: New file.
58875         * modules/unictype/category-test-withtable: New file.
58876         * modules/unictype/category-byname: New file.
58877         * modules/unictype/category-none: New file.
58878         * modules/unictype/category-and: New file.
58879         * modules/unictype/category-and-not: New file.
58880         * modules/unictype/category-name: New file.
58881         * modules/unictype/combining-class: New file.
58882         * modules/unictype/category-all: New file.
58883         * modules/unictype/bidicategory-all: New file.
58884         * modules/unictype/bidicategory-byname: New file.
58885         * modules/unictype/bidicategory-name: New file.
58886         * modules/unictype/bidicategory-of: New file.
58887         * modules/unictype/bidicategory-test: New file.
58888         * modules/unictype/decimal-digit: New file.
58889         * modules/unictype/digit: New file.
58890         * modules/unictype/numeric: New file.
58891         * modules/unictype/mirror: New file.
58892         * modules/unictype/property-white-space: New file.
58893         * modules/unictype/property-alphabetic: New file.
58894         * modules/unictype/property-other-alphabetic: New file.
58895         * modules/unictype/property-not-a-character: New file.
58896         * modules/unictype/property-default-ignorable-code-point: New file.
58897         * modules/unictype/property-other-default-ignorable-code-point: New
58898         file.
58899         * modules/unictype/property-deprecated: New file.
58900         * modules/unictype/property-logical-order-exception: New file.
58901         * modules/unictype/property-variation-selector: New file.
58902         * modules/unictype/property-private-use: New file.
58903         * modules/unictype/property-unassigned-code-value: New file.
58904         * modules/unictype/property-uppercase: New file.
58905         * modules/unictype/property-other-uppercase: New file.
58906         * modules/unictype/property-lowercase: New file.
58907         * modules/unictype/property-other-lowercase: New file.
58908         * modules/unictype/property-titlecase: New file.
58909         * modules/unictype/property-soft-dotted: New file.
58910         * modules/unictype/property-id-start: New file.
58911         * modules/unictype/property-other-id-start: New file.
58912         * modules/unictype/property-id-continue: New file.
58913         * modules/unictype/property-other-id-continue: New file.
58914         * modules/unictype/property-xid-start: New file.
58915         * modules/unictype/property-xid-continue: New file.
58916         * modules/unictype/property-pattern-white-space: New file.
58917         * modules/unictype/property-pattern-syntax: New file.
58918         * modules/unictype/property-join-control: New file.
58919         * modules/unictype/property-grapheme-base: New file.
58920         * modules/unictype/property-grapheme-extend: New file.
58921         * modules/unictype/property-other-grapheme-extend: New file.
58922         * modules/unictype/property-grapheme-link: New file.
58923         * modules/unictype/property-bidi-control: New file.
58924         * modules/unictype/property-bidi-left-to-right: New file.
58925         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
58926         * modules/unictype/property-bidi-arabic-right-to-left: New file.
58927         * modules/unictype/property-bidi-european-digit: New file.
58928         * modules/unictype/property-bidi-eur-num-separator: New file.
58929         * modules/unictype/property-bidi-eur-num-terminator: New file.
58930         * modules/unictype/property-bidi-arabic-digit: New file.
58931         * modules/unictype/property-bidi-common-separator: New file.
58932         * modules/unictype/property-bidi-block-separator: New file.
58933         * modules/unictype/property-bidi-segment-separator: New file.
58934         * modules/unictype/property-bidi-whitespace: New file.
58935         * modules/unictype/property-bidi-non-spacing-mark: New file.
58936         * modules/unictype/property-bidi-boundary-neutral: New file.
58937         * modules/unictype/property-bidi-pdf: New file.
58938         * modules/unictype/property-bidi-embedding-or-override: New file.
58939         * modules/unictype/property-bidi-other-neutral: New file.
58940         * modules/unictype/property-hex-digit: New file.
58941         * modules/unictype/property-ascii-hex-digit: New file.
58942         * modules/unictype/property-ideographic: New file.
58943         * modules/unictype/property-unified-ideograph: New file.
58944         * modules/unictype/property-radical: New file.
58945         * modules/unictype/property-ids-binary-operator: New file.
58946         * modules/unictype/property-ids-trinary-operator: New file.
58947         * modules/unictype/property-zero-width: New file.
58948         * modules/unictype/property-space: New file.
58949         * modules/unictype/property-non-break: New file.
58950         * modules/unictype/property-iso-control: New file.
58951         * modules/unictype/property-format-control: New file.
58952         * modules/unictype/property-dash: New file.
58953         * modules/unictype/property-hyphen: New file.
58954         * modules/unictype/property-punctuation: New file.
58955         * modules/unictype/property-line-separator: New file.
58956         * modules/unictype/property-paragraph-separator: New file.
58957         * modules/unictype/property-quotation-mark: New file.
58958         * modules/unictype/property-sentence-terminal: New file.
58959         * modules/unictype/property-terminal-punctuation: New file.
58960         * modules/unictype/property-currency-symbol: New file.
58961         * modules/unictype/property-math: New file.
58962         * modules/unictype/property-other-math: New file.
58963         * modules/unictype/property-paired-punctuation: New file.
58964         * modules/unictype/property-left-of-pair: New file.
58965         * modules/unictype/property-combining: New file.
58966         * modules/unictype/property-composite: New file.
58967         * modules/unictype/property-decimal-digit: New file.
58968         * modules/unictype/property-numeric: New file.
58969         * modules/unictype/property-diacritic: New file.
58970         * modules/unictype/property-extender: New file.
58971         * modules/unictype/property-ignorable-control: New file.
58972         * modules/unictype/property-test: New file.
58973         * modules/unictype/property-byname: New file.
58974         * modules/unictype/property-all: New file.
58975         * modules/unictype/scripts: New file.
58976         * modules/unictype/scripts-all: New file.
58977         * modules/unictype/block-of: New file.
58978         * modules/unictype/block-test: New file.
58979         * modules/unictype/block-list: New file.
58980         * modules/unictype/block-all: New file.
58981         * modules/unictype/syntax-c-whitespace: New file.
58982         * modules/unictype/syntax-java-whitespace: New file.
58983         * modules/unictype/syntax-c-ident: New file.
58984         * modules/unictype/syntax-java-ident: New file.
58985         * modules/unictype/ctype-alnum: New file.
58986         * modules/unictype/ctype-alpha: New file.
58987         * modules/unictype/ctype-cntrl: New file.
58988         * modules/unictype/ctype-digit: New file.
58989         * modules/unictype/ctype-graph: New file.
58990         * modules/unictype/ctype-lower: New file.
58991         * modules/unictype/ctype-print: New file.
58992         * modules/unictype/ctype-punct: New file.
58993         * modules/unictype/ctype-space: New file.
58994         * modules/unictype/ctype-upper: New file.
58995         * modules/unictype/ctype-xdigit: New file.
58996         * modules/unictype/ctype-blank: New file.
58997         * lib/unictype/bidi_byname.c: New file.
58998         * lib/unictype/bidi_name.c: New file.
58999         * lib/unictype/bidi_of.c: New file.
59000         * lib/unictype/bidi_test.c: New file.
59001         * lib/unictype/bitmap.h: New file.
59002         * lib/unictype/block_test.c: New file.
59003         * lib/unictype/blocks.c: New file.
59004         * lib/unictype/categ_C.c: New file.
59005         * lib/unictype/categ_Cc.c: New file.
59006         * lib/unictype/categ_Cf.c: New file.
59007         * lib/unictype/categ_Cn.c: New file.
59008         * lib/unictype/categ_Co.c: New file.
59009         * lib/unictype/categ_Cs.c: New file.
59010         * lib/unictype/categ_L.c: New file.
59011         * lib/unictype/categ_Ll.c: New file.
59012         * lib/unictype/categ_Lm.c: New file.
59013         * lib/unictype/categ_Lo.c: New file.
59014         * lib/unictype/categ_Lt.c: New file.
59015         * lib/unictype/categ_Lu.c: New file.
59016         * lib/unictype/categ_M.c: New file.
59017         * lib/unictype/categ_Mc.c: New file.
59018         * lib/unictype/categ_Me.c: New file.
59019         * lib/unictype/categ_Mn.c: New file.
59020         * lib/unictype/categ_N.c: New file.
59021         * lib/unictype/categ_Nd.c: New file.
59022         * lib/unictype/categ_Nl.c: New file.
59023         * lib/unictype/categ_No.c: New file.
59024         * lib/unictype/categ_P.c: New file.
59025         * lib/unictype/categ_Pc.c: New file.
59026         * lib/unictype/categ_Pd.c: New file.
59027         * lib/unictype/categ_Pe.c: New file.
59028         * lib/unictype/categ_Pf.c: New file.
59029         * lib/unictype/categ_Pi.c: New file.
59030         * lib/unictype/categ_Po.c: New file.
59031         * lib/unictype/categ_Ps.c: New file.
59032         * lib/unictype/categ_S.c: New file.
59033         * lib/unictype/categ_Sc.c: New file.
59034         * lib/unictype/categ_Sk.c: New file.
59035         * lib/unictype/categ_Sm.c: New file.
59036         * lib/unictype/categ_So.c: New file.
59037         * lib/unictype/categ_Z.c: New file.
59038         * lib/unictype/categ_Zl.c: New file.
59039         * lib/unictype/categ_Zp.c: New file.
59040         * lib/unictype/categ_Zs.c: New file.
59041         * lib/unictype/categ_and.c: New file.
59042         * lib/unictype/categ_and_not.c: New file.
59043         * lib/unictype/categ_byname.c: New file.
59044         * lib/unictype/categ_name.c: New file.
59045         * lib/unictype/categ_none.c: New file.
59046         * lib/unictype/categ_of.c: New file.
59047         * lib/unictype/categ_or.c: New file.
59048         * lib/unictype/categ_test.c: New file.
59049         * lib/unictype/combining.c: New file.
59050         * lib/unictype/ctype_alnum.c: New file.
59051         * lib/unictype/ctype_alpha.c: New file.
59052         * lib/unictype/ctype_blank.c: New file.
59053         * lib/unictype/ctype_cntrl.c: New file.
59054         * lib/unictype/ctype_digit.c: New file.
59055         * lib/unictype/ctype_graph.c: New file.
59056         * lib/unictype/ctype_lower.c: New file.
59057         * lib/unictype/ctype_print.c: New file.
59058         * lib/unictype/ctype_punct.c: New file.
59059         * lib/unictype/ctype_space.c: New file.
59060         * lib/unictype/ctype_upper.c: New file.
59061         * lib/unictype/ctype_xdigit.c: New file.
59062         * lib/unictype/decdigit.c: New file.
59063         * lib/unictype/digit.c: New file.
59064         * lib/unictype/identsyntaxmap.h: New file.
59065         * lib/unictype/mirror.c: New file.
59066         * lib/unictype/numeric.c: New file.
59067         * lib/unictype/pr_alphabetic.c: New file.
59068         * lib/unictype/pr_ascii_hex_digit.c: New file.
59069         * lib/unictype/pr_bidi_arabic_digit.c: New file.
59070         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
59071         * lib/unictype/pr_bidi_block_separator.c: New file.
59072         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
59073         * lib/unictype/pr_bidi_common_separator.c: New file.
59074         * lib/unictype/pr_bidi_control.c: New file.
59075         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
59076         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
59077         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
59078         * lib/unictype/pr_bidi_european_digit.c: New file.
59079         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
59080         * lib/unictype/pr_bidi_left_to_right.c: New file.
59081         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
59082         * lib/unictype/pr_bidi_other_neutral.c: New file.
59083         * lib/unictype/pr_bidi_pdf.c: New file.
59084         * lib/unictype/pr_bidi_segment_separator.c: New file.
59085         * lib/unictype/pr_bidi_whitespace.c: New file.
59086         * lib/unictype/pr_byname.c: New file.
59087         * lib/unictype/pr_byname.gperf: New file.
59088         * lib/unictype/pr_combining.c: New file.
59089         * lib/unictype/pr_composite.c: New file.
59090         * lib/unictype/pr_currency_symbol.c: New file.
59091         * lib/unictype/pr_dash.c: New file.
59092         * lib/unictype/pr_decimal_digit.c: New file.
59093         * lib/unictype/pr_default_ignorable_code_point.c: New file.
59094         * lib/unictype/pr_deprecated.c: New file.
59095         * lib/unictype/pr_diacritic.c: New file.
59096         * lib/unictype/pr_extender.c: New file.
59097         * lib/unictype/pr_format_control.c: New file.
59098         * lib/unictype/pr_grapheme_base.c: New file.
59099         * lib/unictype/pr_grapheme_extend.c: New file.
59100         * lib/unictype/pr_grapheme_link.c: New file.
59101         * lib/unictype/pr_hex_digit.c: New file.
59102         * lib/unictype/pr_hyphen.c: New file.
59103         * lib/unictype/pr_id_continue.c: New file.
59104         * lib/unictype/pr_id_start.c: New file.
59105         * lib/unictype/pr_ideographic.c: New file.
59106         * lib/unictype/pr_ids_binary_operator.c: New file.
59107         * lib/unictype/pr_ids_trinary_operator.c: New file.
59108         * lib/unictype/pr_ignorable_control.c: New file.
59109         * lib/unictype/pr_iso_control.c: New file.
59110         * lib/unictype/pr_join_control.c: New file.
59111         * lib/unictype/pr_left_of_pair.c: New file.
59112         * lib/unictype/pr_line_separator.c: New file.
59113         * lib/unictype/pr_logical_order_exception.c: New file.
59114         * lib/unictype/pr_lowercase.c: New file.
59115         * lib/unictype/pr_math.c: New file.
59116         * lib/unictype/pr_non_break.c: New file.
59117         * lib/unictype/pr_not_a_character.c: New file.
59118         * lib/unictype/pr_numeric.c: New file.
59119         * lib/unictype/pr_other_alphabetic.c: New file.
59120         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
59121         * lib/unictype/pr_other_grapheme_extend.c: New file.
59122         * lib/unictype/pr_other_id_continue.c: New file.
59123         * lib/unictype/pr_other_id_start.c: New file.
59124         * lib/unictype/pr_other_lowercase.c: New file.
59125         * lib/unictype/pr_other_math.c: New file.
59126         * lib/unictype/pr_other_uppercase.c: New file.
59127         * lib/unictype/pr_paired_punctuation.c: New file.
59128         * lib/unictype/pr_paragraph_separator.c: New file.
59129         * lib/unictype/pr_pattern_syntax.c: New file.
59130         * lib/unictype/pr_pattern_white_space.c: New file.
59131         * lib/unictype/pr_private_use.c: New file.
59132         * lib/unictype/pr_punctuation.c: New file.
59133         * lib/unictype/pr_quotation_mark.c: New file.
59134         * lib/unictype/pr_radical.c: New file.
59135         * lib/unictype/pr_sentence_terminal.c: New file.
59136         * lib/unictype/pr_soft_dotted.c: New file.
59137         * lib/unictype/pr_space.c: New file.
59138         * lib/unictype/pr_terminal_punctuation.c: New file.
59139         * lib/unictype/pr_test.c: New file.
59140         * lib/unictype/pr_titlecase.c: New file.
59141         * lib/unictype/pr_unassigned_code_value.c: New file.
59142         * lib/unictype/pr_unified_ideograph.c: New file.
59143         * lib/unictype/pr_uppercase.c: New file.
59144         * lib/unictype/pr_variation_selector.c: New file.
59145         * lib/unictype/pr_white_space.c: New file.
59146         * lib/unictype/pr_xid_continue.c: New file.
59147         * lib/unictype/pr_xid_start.c: New file.
59148         * lib/unictype/pr_zero_width.c: New file.
59149         * lib/unictype/scripts.c: New file.
59150         * lib/unictype/sy_c_ident.c: New file.
59151         * lib/unictype/sy_c_whitespace.c: New file.
59152         * lib/unictype/sy_java_ident.c: New file.
59153         * lib/unictype/sy_java_whitespace.c: New file.
59154
59155         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
59156         Unicode 5.0.0.
59157         * lib/unictype/blocks.h: Likewise.
59158         * lib/unictype/categ_C.h: Likewise.
59159         * lib/unictype/categ_Cc.h: Likewise.
59160         * lib/unictype/categ_Cf.h: Likewise.
59161         * lib/unictype/categ_Cn.h: Likewise.
59162         * lib/unictype/categ_Co.h: Likewise.
59163         * lib/unictype/categ_Cs.h: Likewise.
59164         * lib/unictype/categ_L.h: Likewise.
59165         * lib/unictype/categ_Ll.h: Likewise.
59166         * lib/unictype/categ_Lm.h: Likewise.
59167         * lib/unictype/categ_Lo.h: Likewise.
59168         * lib/unictype/categ_Lt.h: Likewise.
59169         * lib/unictype/categ_Lu.h: Likewise.
59170         * lib/unictype/categ_M.h: Likewise.
59171         * lib/unictype/categ_Mc.h: Likewise.
59172         * lib/unictype/categ_Me.h: Likewise.
59173         * lib/unictype/categ_Mn.h: Likewise.
59174         * lib/unictype/categ_N.h: Likewise.
59175         * lib/unictype/categ_Nd.h: Likewise.
59176         * lib/unictype/categ_Nl.h: Likewise.
59177         * lib/unictype/categ_No.h: Likewise.
59178         * lib/unictype/categ_P.h: Likewise.
59179         * lib/unictype/categ_Pc.h: Likewise.
59180         * lib/unictype/categ_Pd.h: Likewise.
59181         * lib/unictype/categ_Pe.h: Likewise.
59182         * lib/unictype/categ_Pf.h: Likewise.
59183         * lib/unictype/categ_Pi.h: Likewise.
59184         * lib/unictype/categ_Po.h: Likewise.
59185         * lib/unictype/categ_Ps.h: Likewise.
59186         * lib/unictype/categ_S.h: Likewise.
59187         * lib/unictype/categ_Sc.h: Likewise.
59188         * lib/unictype/categ_Sk.h: Likewise.
59189         * lib/unictype/categ_Sm.h: Likewise.
59190         * lib/unictype/categ_So.h: Likewise.
59191         * lib/unictype/categ_Z.h: Likewise.
59192         * lib/unictype/categ_Zl.h: Likewise.
59193         * lib/unictype/categ_Zp.h: Likewise.
59194         * lib/unictype/categ_Zs.h: Likewise.
59195         * lib/unictype/categ_of.h: Likewise.
59196         * lib/unictype/combining.h: Likewise.
59197         * lib/unictype/ctype_alnum.h: Likewise.
59198         * lib/unictype/ctype_alpha.h: Likewise.
59199         * lib/unictype/ctype_blank.h: Likewise.
59200         * lib/unictype/ctype_cntrl.h: Likewise.
59201         * lib/unictype/ctype_digit.h: Likewise.
59202         * lib/unictype/ctype_graph.h: Likewise.
59203         * lib/unictype/ctype_lower.h: Likewise.
59204         * lib/unictype/ctype_print.h: Likewise.
59205         * lib/unictype/ctype_punct.h: Likewise.
59206         * lib/unictype/ctype_space.h: Likewise.
59207         * lib/unictype/ctype_upper.h: Likewise.
59208         * lib/unictype/ctype_xdigit.h: Likewise.
59209         * lib/unictype/decdigit.h: Likewise.
59210         * lib/unictype/digit.h: Likewise.
59211         * lib/unictype/mirror.h: Likewise.
59212         * lib/unictype/numeric.h: Likewise.
59213         * lib/unictype/pr_alphabetic.h: Likewise.
59214         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
59215         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
59216         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
59217         * lib/unictype/pr_bidi_block_separator.h: Likewise.
59218         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
59219         * lib/unictype/pr_bidi_common_separator.h: Likewise.
59220         * lib/unictype/pr_bidi_control.h: Likewise.
59221         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
59222         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
59223         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
59224         * lib/unictype/pr_bidi_european_digit.h: Likewise.
59225         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
59226         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
59227         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
59228         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
59229         * lib/unictype/pr_bidi_pdf.h: Likewise.
59230         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
59231         * lib/unictype/pr_bidi_whitespace.h: Likewise.
59232         * lib/unictype/pr_combining.h: Likewise.
59233         * lib/unictype/pr_composite.h: Likewise.
59234         * lib/unictype/pr_currency_symbol.h: Likewise.
59235         * lib/unictype/pr_dash.h: Likewise.
59236         * lib/unictype/pr_decimal_digit.h: Likewise.
59237         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
59238         * lib/unictype/pr_deprecated.h: Likewise.
59239         * lib/unictype/pr_diacritic.h: Likewise.
59240         * lib/unictype/pr_extender.h: Likewise.
59241         * lib/unictype/pr_format_control.h: Likewise.
59242         * lib/unictype/pr_grapheme_base.h: Likewise.
59243         * lib/unictype/pr_grapheme_extend.h: Likewise.
59244         * lib/unictype/pr_grapheme_link.h: Likewise.
59245         * lib/unictype/pr_hex_digit.h: Likewise.
59246         * lib/unictype/pr_hyphen.h: Likewise.
59247         * lib/unictype/pr_id_continue.h: Likewise.
59248         * lib/unictype/pr_id_start.h: Likewise.
59249         * lib/unictype/pr_ideographic.h: Likewise.
59250         * lib/unictype/pr_ids_binary_operator.h: Likewise.
59251         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
59252         * lib/unictype/pr_ignorable_control.h: Likewise.
59253         * lib/unictype/pr_iso_control.h: Likewise.
59254         * lib/unictype/pr_join_control.h: Likewise.
59255         * lib/unictype/pr_left_of_pair.h: Likewise.
59256         * lib/unictype/pr_line_separator.h: Likewise.
59257         * lib/unictype/pr_logical_order_exception.h: Likewise.
59258         * lib/unictype/pr_lowercase.h: Likewise.
59259         * lib/unictype/pr_math.h: Likewise.
59260         * lib/unictype/pr_non_break.h: Likewise.
59261         * lib/unictype/pr_not_a_character.h: Likewise.
59262         * lib/unictype/pr_numeric.h: Likewise.
59263         * lib/unictype/pr_other_alphabetic.h: Likewise.
59264         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
59265         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59266         * lib/unictype/pr_other_id_continue.h: Likewise.
59267         * lib/unictype/pr_other_id_start.h: Likewise.
59268         * lib/unictype/pr_other_lowercase.h: Likewise.
59269         * lib/unictype/pr_other_math.h: Likewise.
59270         * lib/unictype/pr_other_uppercase.h: Likewise.
59271         * lib/unictype/pr_paired_punctuation.h: Likewise.
59272         * lib/unictype/pr_paragraph_separator.h: Likewise.
59273         * lib/unictype/pr_pattern_syntax.h: Likewise.
59274         * lib/unictype/pr_pattern_white_space.h: Likewise.
59275         * lib/unictype/pr_private_use.h: Likewise.
59276         * lib/unictype/pr_punctuation.h: Likewise.
59277         * lib/unictype/pr_quotation_mark.h: Likewise.
59278         * lib/unictype/pr_radical.h: Likewise.
59279         * lib/unictype/pr_sentence_terminal.h: Likewise.
59280         * lib/unictype/pr_soft_dotted.h: Likewise.
59281         * lib/unictype/pr_space.h: Likewise.
59282         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59283         * lib/unictype/pr_titlecase.h: Likewise.
59284         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59285         * lib/unictype/pr_unified_ideograph.h: Likewise.
59286         * lib/unictype/pr_uppercase.h: Likewise.
59287         * lib/unictype/pr_variation_selector.h: Likewise.
59288         * lib/unictype/pr_white_space.h: Likewise.
59289         * lib/unictype/pr_xid_continue.h: Likewise.
59290         * lib/unictype/pr_xid_start.h: Likewise.
59291         * lib/unictype/pr_zero_width.h: Likewise.
59292         * lib/unictype/scripts.h: Likewise.
59293         * lib/unictype/scripts_byname.gperf: Likewise.
59294         * lib/unictype/sy_c_ident.h: Likewise.
59295         * lib/unictype/sy_c_whitespace.h: Likewise.
59296         * lib/unictype/sy_java_ident.h: Likewise.
59297         * lib/unictype/sy_java_whitespace.h: Likewise.
59298
59299         * lib/unictype/Makefile: New file.
59300         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
59301         glibc.
59302         * lib/unictype/3level.h: New file, copied from glibc.
59303         * lib/unictype/3levelbit.h: New file.
59304
59305 2007-11-11  Bruno Haible  <bruno@clisp.org>
59306
59307         * modules/gperf: New file.
59308         * modules/iconv_open (Depends-on): Add it.
59309         (Makefile.am): Remove the GPERF definition.
59310
59311 2007-11-11  Bruno Haible  <bruno@clisp.org>
59312
59313         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
59314         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
59315
59316 2007-11-11  Bruno Haible  <bruno@clisp.org>
59317
59318         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
59319         (usage): Remove function.
59320
59321 2007-11-11  Bruno Haible  <bruno@clisp.org>
59322
59323         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
59324         gl_FUNC_CEILF_LIBS.
59325         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
59326         gl_FUNC_CEIL_LIBS.
59327         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
59328         gl_FUNC_CEILL_LIBS.
59329         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
59330         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
59331         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
59332
59333 2007-11-11  Bruno Haible  <bruno@clisp.org>
59334
59335         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
59336         roundf were declared but do not exist on functions.
59337         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
59338         roundl were declared but do not exist on functions.
59339         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
59340         HAVE_FLOORL_AND_CEILL, respectively.
59341         Needed for Sun C on Solaris 10.
59342
59343 2007-11-11  Bruno Haible  <bruno@clisp.org>
59344
59345         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
59346         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
59347         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
59348         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
59349         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
59350         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
59351         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
59352         HAVE_DECL_ROUNDF.
59353         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
59354         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
59355         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
59356         of HAVE_DECL_ROUND*.
59357         * modules/math (Makefile.am): Update.
59358
59359 2007-11-10  Bruno Haible  <bruno@clisp.org>
59360
59361         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
59362         ptrdiff_t as m4/intl.m4.
59363
59364 2007-11-10  Jim Meyering  <meyering@redhat.com>
59365
59366         Avoid link failure for the argmatch test.
59367         * tests/test-argmatch.c (usage): Define function to avoid a link
59368         failure: argmatch_die requires a usage function.
59369
59370 2007-11-09  Bruno Haible  <bruno@clisp.org>
59371
59372         * doc/functions/snprintf.texi: Mention BeOS deficiency.
59373         * doc/functions/vsnprintf.texi: Likewise.
59374         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
59375         with a size argument < 2.
59376
59377 2007-11-09  Bruno Haible  <bruno@clisp.org>
59378
59379         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
59380         buffer. Fixes an inefficiency introduced on 2007-11-03.
59381
59382 2007-11-09  Bruno Haible  <bruno@clisp.org>
59383
59384         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
59385         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
59386
59387 2007-11-08  Jim Meyering  <meyering@redhat.com>
59388
59389         Change cache variable name prefix "jm_" to "gl_" everywhere.
59390         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
59391         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
59392         * m4/uptime.m4: s/gl_/jm_/
59393
59394 2007-11-07  Bruno Haible  <bruno@clisp.org>
59395
59396         Update to GNU gettext 0.17.
59397         * m4/intl.m4: Update to GNU gettext 0.17.
59398         * m4/po.m4: Likewise.
59399         * modules/gettext (Files): Remove m4/ulonglong.m4.
59400         (configure.ac): Require gettext infrastructure from version 0.17.
59401
59402 2007-11-06  Bruno Haible  <bruno@clisp.org>
59403
59404         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
59405         symbolic values are not defined in a public header.
59406         * lib/freadable.c (freadable) [QNX]: Likewise.
59407         * lib/freadahead.c (freadahead) [QNX]: Likewise.
59408         * lib/freading.c (freading) [QNX]: Likewise.
59409         * lib/fseterr.c (fseterr) [QNX]: Likewise.
59410         * lib/fwritable.c (fwritable) [QNX]: Likewise.
59411         * lib/fwriting.c (fwriting) [QNX]: Likewise.
59412         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
59413         Reported by Alain Magloire.
59414
59415         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
59416
59417 2007-11-05  Bruno Haible  <bruno@clisp.org>
59418
59419         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
59420         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
59421         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
59422         Reported by Eric Blake.
59423
59424 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59425             Bruno Haible  <bruno@clisp.org>
59426
59427         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
59428         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
59429         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
59430         (malloc): Undefine also before including <stdlib.h>.
59431         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
59432         Needed on OSF/1 4.0.
59433
59434 2007-11-05  Jim Meyering  <meyering@redhat.com>
59435
59436         git-version-gen: sync from coreutils.
59437         * build-aux/git-version-gen: Add comments.
59438         Change the first '-' to '.' in the snapshot version string,
59439         e.g., 6.9-377-08144 -> 6.9.377-08144
59440         Remove first parameter.
59441         Don't declare a version "-dirty" merely because a time
59442         stamp has changed.
59443
59444 2007-11-04  Bruno Haible  <bruno@clisp.org>
59445
59446         * lib/lock.h: Protect all macro definitions containing an 'if'
59447         statement through a "do { ... } while (0)".
59448         * lib/tls.h: Likewise.
59449
59450 2007-11-04  Bruno Haible  <bruno@clisp.org>
59451
59452         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
59453
59454 2007-11-04  Bruno Haible  <bruno@clisp.org>
59455
59456         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
59457         * modules/fprintf-posix (Depends-on): Add nocrash.
59458         * modules/snprintf-posix (Depends-on): Likewise.
59459         * modules/sprintf-posix (Depends-on): Likewise.
59460         * modules/vasnprintf-posix (Depends-on): Likewise.
59461         * modules/vasprintf-posix (Depends-on): Likewise.
59462         * modules/vfprintf-posix (Depends-on): Likewise.
59463         * modules/vsnprintf-posix (Depends-on): Likewise.
59464         * modules/vsprintf-posix (Depends-on): Likewise.
59465         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59466         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59467         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59468         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59469         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59470         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59471         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59472
59473 2007-11-04  Bruno Haible  <bruno@clisp.org>
59474
59475         * modules/nocrash: New file.
59476         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
59477         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
59478
59479 2007-11-04  Bruno Haible  <bruno@clisp.org>
59480
59481         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
59482         precision handling.
59483         * tests/test-vasprintf-posix.c (test_function): Likewise.
59484         * tests/test-snprintf-posix.h (test_function): Likewise.
59485         * tests/test-sprintf-posix.h (test_function): Likewise.
59486
59487         Fix *printf behaviour for large precisions on mingw and BeOS.
59488         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
59489         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
59490         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
59491         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59492         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59493         gl_PRINTF_PRECISION and test its result. Invoke
59494         gl_PREREQ_VASNPRINTF_PRECISION.
59495         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59496         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59497         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59498         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59499         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59500         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59501         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59502         * doc/functions/fprintf.texi: Update.
59503         * doc/functions/printf.texi: Update.
59504         * doc/functions/snprintf.texi: Update.
59505         * doc/functions/sprintf.texi: Update.
59506         * doc/functions/vfprintf.texi: Update.
59507         * doc/functions/vprintf.texi: Update.
59508         * doc/functions/vsnprintf.texi: Update.
59509         * doc/functions/vsprintf.texi: Update.
59510
59511 2007-11-04  Bruno Haible  <bruno@clisp.org>
59512
59513         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
59514
59515 2007-11-04  Bruno Haible  <bruno@clisp.org>
59516
59517         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
59518         Reported by Sylvain Beucler <beuc@gnu.org>.
59519
59520 2007-11-03  Bruno Haible  <bruno@clisp.org>
59521
59522         * tests/test-fprintf-posix2.sh: New file.
59523         * tests/test-fprintf-posix2.c: New file.
59524         * modules/fprintf-posix-tests (Files): Add them.
59525         (TESTS): Add test-fprintf-posix2.sh.
59526         (configure.ac): Check for getrlimit and setrlimit.
59527         (check_PROGRAMS): Add test-fprintf-posix2.
59528
59529         * tests/test-printf-posix2.sh: New file.
59530         * tests/test-printf-posix2.c: New file.
59531         * modules/printf-posix-tests (Files): Add them.
59532         (TESTS): Add test-printf-posix2.sh.
59533         (configure.ac): Check for getrlimit and setrlimit.
59534         (check_PROGRAMS): Add test-printf-posix2.
59535
59536         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
59537         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
59538         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
59539         (decode_double): New function, copied from decode_long_double.
59540         (scale10_round_decimal_decoded): New function, extracted from
59541         scale10_round_decimal_long_double.
59542         (scale10_round_decimal_long_double): Use it.
59543         (scale10_round_decimal_double): New function.
59544         (floorlog10): New function.
59545         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
59546         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
59547         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59548         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59549         gl_PRINTF_ENOMEM and test its result. Invoke
59550         gl_PREREQ_VASNPRINTF_ENOMEM.
59551         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59552         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59553         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59554         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59555         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59556         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59557         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59558         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
59559         * modules/snprintf-posix (Depends-on): Likewise.
59560         * modules/sprintf-posix (Depends-on): Likewise.
59561         * modules/vasnprintf-posix (Depends-on): Likewise.
59562         * modules/vasprintf-posix (Depends-on): Likewise.
59563         * modules/vfprintf-posix (Depends-on): Likewise.
59564         * modules/vsnprintf-posix (Depends-on): Likewise.
59565         * modules/vsprintf-posix (Depends-on): Likewise.
59566         * doc/functions/fprintf.texi: Update.
59567         * doc/functions/printf.texi: Update.
59568         * doc/functions/snprintf.texi: Update.
59569         * doc/functions/sprintf.texi: Update.
59570         * doc/functions/vfprintf.texi: Update.
59571         * doc/functions/vprintf.texi: Update.
59572         * doc/functions/vsnprintf.texi: Update.
59573         * doc/functions/vsprintf.texi: Update.
59574
59575 2007-11-03  Bruno Haible  <bruno@clisp.org>
59576
59577         * modules/frexp-nolibm-tests: New file.
59578
59579         * modules/frexp-nolibm: New file.
59580         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
59581
59582 2007-11-03  Bruno Haible  <bruno@clisp.org>
59583
59584         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
59585         value is C99 compliant.
59586         Needed for OSF/1 5.1.
59587
59588 2007-11-03  Bruno Haible  <bruno@clisp.org>
59589
59590         Fix out-of-memory handling of vasnprintf.
59591         * lib/printf-parse.c: Include <errno.h>.
59592         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
59593         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
59594         is already set.
59595
59596 2007-11-02  Eric Blake  <ebb9@byu.net>
59597
59598         Fix tests on cygwin.
59599         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
59600
59601 2007-11-01  Bruno Haible  <bruno@clisp.org>
59602
59603         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
59604         warning.
59605         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
59606         needed for POSIX compatibility.
59607
59608 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59609
59610         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
59611         for compatibility with GNU.
59612
59613 2007-11-01  Bruno Haible  <bruno@clisp.org>
59614
59615         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
59616         (putenv): Renamed from rpl_putenv. Change argument type from
59617         'const char *' to 'char *'.
59618         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
59619         of defining putenv in config.h, just set REPLACE_PUTENV.
59620         * modules/putenv (Depends-on): Add stdlib.
59621         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59622         (Include): Use <stdlib.h>.
59623         * lib/stdlib.in.h (putenv): New declaration.
59624         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
59625         REPLACE_PUTENV.
59626         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
59627         REPLACE_PUTENV.
59628         Needed for MacOS X 10.5.0.
59629         Reported by Peter O'Gorman <peter@pogma.com>.
59630
59631 2007-11-01  Jim Meyering  <meyering@redhat.com>
59632
59633         Treat an empty date string exactly like "0".
59634         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
59635         if the remaining date string (to be parsed) is empty, use "0".
59636         Reported by Mischa Molhoek and discussed in this thread:
59637         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
59638
59639 2007-10-31  Bruno Haible  <bruno@clisp.org>
59640
59641         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
59642         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
59643         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
59644         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
59645         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
59646         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
59647
59648 2007-10-31  Bruno Haible  <bruno@clisp.org>
59649
59650         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
59651         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
59652         (AC_TYPE_LONG_LONG_INT): Use it.
59653         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
59654         it as well.
59655         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
59656         to m4/longlong.m4.
59657         * modules/stdint (Files): Remove m4/ulonglong.m4.
59658         * modules/strtoull (Files): Use m4/longlong.m4 instead of
59659         m4/ulonglong.m4.
59660         * modules/strtoumax (Files): Likewise.
59661
59662 2007-10-30  Bruno Haible  <bruno@clisp.org>
59663
59664         * modules/xvasprintf-posix: New file.
59665         Suggested by Eric Blake.
59666
59667 2007-10-30  Bruno Haible  <bruno@clisp.org>
59668
59669         * modules/xprintf-posix-tests: New file.
59670         * tests/test-xprintf-posix.sh: New file.
59671         * tests/test-xprintf-posix.c: New file.
59672         * tests/test-xfprintf-posix.c: New file.
59673
59674         * modules/xprintf-posix: New file.
59675
59676 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59677
59678         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
59679         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
59680         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
59681
59682 2007-10-29  Bruno Haible  <bruno@clisp.org>
59683
59684         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
59685         contain the special marker '_cv_'.
59686         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
59687         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
59688         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
59689         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
59690         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
59691         Reported by Ralf Wildenhues.
59692
59693 2007-10-29  Bruno Haible  <bruno@clisp.org>
59694
59695         * gnulib-tool (func_import): When --lgpl is not specified, set
59696         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
59697         GPLv3.
59698         Reported by Simon Josefsson.
59699
59700 2007-10-28  Bruno Haible  <bruno@clisp.org>
59701
59702         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
59703         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
59704         HAVE_DECL_ISFINITE.
59705         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59706         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
59707         HAVE_DECL_ISFINITE.
59708
59709 2007-10-28  Bruno Haible  <bruno@clisp.org>
59710
59711         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
59712         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
59713
59714 2007-10-28  Bruno Haible  <bruno@clisp.org>
59715
59716         Fix link errors with Sun C 5.0 on Solaris 10.
59717         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
59718         function is declared but not present in the compiler's libm.
59719         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
59720         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
59721         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
59722         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
59723         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
59724         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
59725         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
59726         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59727         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
59728         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
59729         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
59730         HAVE_DECL_FLOORL.
59731
59732 2007-10-28  Bruno Haible  <bruno@clisp.org>
59733
59734         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
59735         gl_FUNC_FLOORL. Cache the result.
59736         (gl_FUNC_FLOORL): Use it.
59737         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
59738         gl_FUNC_CEILL. Cache the result.
59739         (gl_FUNC_CEILL): Use it.
59740
59741         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
59742         gl_FUNC_FLOOR. Cache the result.
59743         (gl_FUNC_FLOOR): Use it.
59744         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
59745         gl_FUNC_CEIL. Cache the result.
59746         (gl_FUNC_CEIL): Use it.
59747
59748         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
59749         gl_FUNC_FLOORF. Cache the result.
59750         (gl_FUNC_FLOORF): Use it.
59751         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
59752         gl_FUNC_CEILF. Cache the result.
59753         (gl_FUNC_CEILF): Use it.
59754
59755 2007-10-28  Bruno Haible  <bruno@clisp.org>
59756
59757         * gnulib-tool: Allow specifying the LGPL version number through
59758         --lgpl=2 or --lgpl=3.
59759         (func_usage): Document --lgpl with argument.
59760         Handle --lgpl=... arguments.
59761         (func_import): Recognize also gl_LGPL calls with an argument. When
59762         --lgpl=2 is used and the module's license is just LGPL, report an
59763         error. Set sed_transform_lib_file according to the lgpl variable. In
59764         the generated files, use --lgpl or gl_LGPL invocations with argument,
59765         if necessary.
59766         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
59767         an LGPv2+ license.
59768         * doc/gnulib-tool.texi (Modified imports): Update explanation of
59769         gl_LGPL macro.
59770
59771 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59772             Bruno Haible  <bruno@clisp.org>
59773
59774         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
59775         (u16_uctomb_aux): Likewise.
59776         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
59777         !HAVE_INLINE.
59778         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
59779
59780 2007-10-28  Bruno Haible  <bruno@clisp.org>
59781
59782         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
59783         Invoke AM_GETTEXT_OPTION if it exists.
59784         * modules/vasprintf: Likewise.
59785         * modules/verror: Likewise.
59786         * modules/xprintf: Likewise.
59787         * modules/xvasprintf: Likewise.
59788
59789 2007-10-27  Ben Pfaff  <blp@gnu.org>
59790
59791         * lib/math.in.h: Define isfinite macro and prototypes for
59792         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
59793         implementations.
59794         * m4/math_h.m4: New substitutions for isfinite module.
59795         * lib/isfinite.c: New file.
59796         * m4/isfinite.m4: New file.
59797         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
59798         * modules/isfinite: New file.
59799         * modules/isfinite-tests: New file.
59800         * tests/tests-isfinite.c: New file.
59801         * doc/functions/isfinite.texi: Mention isfinite module.
59802         * MODULES.html.sh: Mention new module.
59803
59804 2007-10-27  Ben Pfaff  <blp@gnu.org>
59805
59806         Ralf Wildenhues reported that Tru64 4.0D declares the round
59807         functions but does not have definitions.
59808         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
59809         cannot be found in any library, set the output variable to
59810         "missing" instead of "".
59811         * m4/round.m4: Also use our substitute if we cannot find round in
59812         any library, even if it is declared.
59813         * m4/roundf.m4: Likewise for roundf.
59814         * m4/roundl.m4: Likewise for roundl.
59815         * lib/math.in.h: Undefine roundf, round, roundl before defining
59816         their replacements, to allow for hypothetical systems where these
59817         may be defined as macros but not available in libraries.
59818
59819 2007-10-27  Bruno Haible  <bruno@clisp.org>
59820
59821         * doc/gnulib.texi: Invoke @firstparagraphindent.
59822         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
59823         changes in gnulib.
59824         (Source changes): New section.
59825
59826 2007-10-26  Bruno Haible  <bruno@clisp.org>
59827
59828         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
59829         borrowed from autoconf.
59830
59831 2007-10-26  Bruno Haible  <bruno@clisp.org>
59832
59833         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
59834         strerror returned the empty string. Needed on HP-UX 11.00.
59835
59836 2007-10-24  Micah Cowan  <micah@cowan.name>
59837
59838         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
59839         * build-aux/bootstrap: Remove support for now-unnecessary option,
59840         --cvs-user, and envvars CVS_USER, CVS_RSH.
59841
59842 2007-10-24  Jim Meyering  <meyering@redhat.com>
59843
59844         Avoid diagnostics from sha1sum when there is no cached checksum.
59845         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
59846         if the po.s1 file hasn't been created yet.
59847
59848         * build-aux/bootstrap: Sync from coreutils:
59849         2007-10-24  Jim Meyering  <meyering@redhat.com>
59850         Get gnulib from the git repository, not from an obsolete cvs one.
59851         * build-aux/bootstrap: Suggestion from Micah Cowan.
59852         2007-10-04  Jim Meyering  <jim@meyering.net>
59853         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
59854         (update_po_files): Work also when there are no .po files in po/.
59855
59856 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59857
59858         * README: Append ".git" to git and cg examples.
59859         Problem reported by Benoit Sigoure.
59860
59861 2007-10-23  Micah Cowan  <micah@cowan.name>
59862
59863         * users.txt: Add wget.
59864
59865 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59866
59867         Fix linking of some unistdio tests on FreeBSD.
59868         * modules/unistdio/u16-vsnprintf-tests
59869         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
59870         * modules/unistdio/u16-vsprintf-tests
59871         (test_u16_vsnprintf1_LDADD): Likewise.
59872         * modules/unistdio/u32-vsnprintf-tests
59873         (test_u32_vsnprintf1_LDADD): Likewise.
59874         * modules/unistdio/u32-vsprintf-tests
59875         (test_u32_vsprintf1_LDADD): Likewise.
59876         * modules/unistdio/u8-vsnprintf-tests
59877         (test_u8_vsnprintf1_LDADD): Likewise.
59878         * modules/unistdio/u8-vsprintf-tests
59879         (test_u8_vsprintf1_LDADD): Likewise.
59880         * modules/unistdio/ulc-vsnprintf-tests
59881         (test_ulc_vsnprintf1_LDADD): Likewise.
59882         * modules/unistdio/ulc-vsprintf-tests
59883         (test_ulc_vsprintf1_LDADD): Likewise.
59884
59885         Fix linking of some uniconv tests on FreeBSD.
59886         * modules/uniconv/u16-conv-from-enc-tests
59887         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
59888         * modules/uniconv/u16-conv-to-enc-tests
59889         (test_u16_conv_to_enc_LDADD): Likewise.
59890         * modules/uniconv/u16-strconv-from-enc-tests
59891         (test_u16_strconv_from_enc_LDADD): Likewise.
59892         * modules/uniconv/u16-strconv-to-enc-tests
59893         (test_u16_strconv_to_enc_LDADD): Likewise.
59894         * modules/uniconv/u32-conv-from-enc-tests
59895         (test_u32_conv_from_enc_LDADD): Likewise.
59896         * modules/uniconv/u32-conv-to-enc-tests
59897         (test_u32_conv_to_enc_LDADD): Likewise.
59898         * modules/uniconv/u32-strconv-from-enc-tests
59899         (test_u32_strconv_from_enc_LDADD): Likewise.
59900         * modules/uniconv/u32-strconv-to-enc-tests
59901         (test_u32_strconv_to_enc_LDADD): Likewise.
59902         * modules/uniconv/u8-conv-from-enc-tests
59903         (test_u8_conv_from_enc_LDADD): Likewise.
59904         * modules/uniconv/u8-conv-to-enc-tests
59905         (test_u8_conv_to_enc_LDADD): Likewise.
59906         * modules/uniconv/u8-strconv-from-enc-tests
59907         (test_u8_strconv_from_enc_LDADD): Likewise.
59908         * modules/uniconv/u8-strconv-to-enc-tests
59909         (test_u8_strconv_to_enc_LDADD): Likewise.
59910
59911 2007-10-22  Bruno Haible  <bruno@clisp.org>
59912
59913         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
59914         size.
59915
59916 2007-10-22  Eric Blake  <ebb9@byu.net>
59917
59918         Tweak x*printf documentation.
59919         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
59920         variable name and comments.
59921         Suggested by Bruno Haible.
59922
59923 2007-10-22  Bruno Haible  <bruno@clisp.org>
59924
59925         * lib/acl.c (copy_acl): Fix file name in comment.
59926
59927 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59928
59929         Fix Tru64 problem with stdbool.h.
59930         * lib/stdbool.in.h (false, true):
59931         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
59932         Don't declare as an enum in this situation; it runs afoul of Tru64.
59933         Problem reported by Steven M. Schweda in
59934         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
59935
59936 2007-10-22  Eric Blake  <ebb9@byu.net>
59937
59938         Also wrap vf?printf.
59939         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
59940         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
59941         (xvprintf, xvfprintf): New functions.
59942
59943 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59944
59945         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
59946         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
59947
59948         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
59949         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
59950
59951 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59952
59953         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
59954         by Bruno Haible.
59955
59956 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59957
59958         * lib/getloadavg.c
59959         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
59960         Undef `sys' after including sys/table.h, for Tru64 4.0D.
59961
59962         * tests/test-i-ring.c: Work for C89.
59963
59964 2007-10-22  Bruno Haible  <bruno@clisp.org>
59965
59966         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
59967         -1u, in preprocessor expression, so that we don't test for the bug
59968         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
59969         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
59970
59971 2007-10-22  Eric Blake  <ebb9@byu.net>
59972
59973         * tests/test-yesno.sh: Silence stderr during test.
59974
59975 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59976
59977         * modules/crypto/gc-camellia: New file.
59978
59979         * m4/gc-camellia.m4: New file.
59980
59981         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
59982
59983         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
59984
59985 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59986
59987         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
59988         --help to stdout.  Reported by sms@antinode.org (Steven
59989         M. Schweda).
59990
59991 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59992
59993         * users.txt: Fix link to libksba.
59994
59995 2007-10-21  Ben Pfaff  <blp@gnu.org>
59996
59997         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
59998         round.c roundf implementation that depends on floorf and ceilf to
59999         be tested unconditionally.
60000
60001 2007-10-21  Ben Pfaff  <blp@gnu.org>
60002
60003         * m4/check-libm-func.m4: Removed.
60004         * m4/check-math-lib.m4: New file.
60005         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
60006         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
60007         definition and lack of AC_LIBOBJ([roundf]).
60008         * m4/roundl.m4: Ditto, and similarly for roundl.
60009         * modules/round: Reference new m4 file.
60010         * modules/roundf: Ditto.
60011         * modules/roundl: Ditto.
60012         * tests/test-round2.c (main): Use ROUND instead of round.
60013         Bug report from Bruno Haible.
60014
60015 2007-10-21  Bruno Haible  <bruno@clisp.org>
60016
60017         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
60018         context.
60019
60020 2007-10-21  Bruno Haible  <bruno@clisp.org>
60021
60022         * tests/test-wcwidth.c (main): Allow negative result for some control
60023         characters.
60024
60025         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
60026         Needed on OSF/1 5.1.
60027
60028 2007-10-21  Bruno Haible  <bruno@clisp.org>
60029
60030         * tests/test-floorf1.c: Include isnanf.h.
60031         (main): Use isnanf() instead of isnan().
60032         * tests/test-ceilf1.c: Include isnanf.h.
60033         (main): Use isnanf() instead of isnan().
60034         * tests/test-truncf1.c: Include isnanf.h.
60035         (main): Use isnanf() instead of isnan().
60036         * tests/test-roundf1.c: Include isnanf.h.
60037         (main): Use isnanf() instead of isnan().
60038
60039 2007-10-21  Eric Blake  <ebb9@byu.net>
60040
60041         * users.txt: Update URL for m4.
60042
60043 2007-10-21  Bruno Haible  <bruno@clisp.org>
60044
60045         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
60046
60047 2007-10-21  Bruno Haible  <bruno@clisp.org>
60048
60049         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
60050         Git's management files if the CVS files are not present.
60051
60052 2007-10-20  Bruno Haible  <bruno@clisp.org>
60053
60054         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
60055         gcc-3.4.x.
60056
60057 2007-10-20  Ben Pfaff  <blp@gnu.org>
60058
60059         * lib/math.in.h: Declare round, roundf, roundl if we are providing
60060         implementations.
60061         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
60062         * lib/round.c: New file.
60063         * lib/roundf.c: New file.
60064         * lib/roundl.c: New file.
60065         * m4/round.m4: New file.
60066         * m4/roundf.m4: New file.
60067         * m4/roundl.m4: New file.
60068         * m4/check-libm-func-m4: New file.
60069         * modules/math: Replace round, roundf, roundl related @VARS@ in
60070         math.in.h.
60071         * modules/round: New file.
60072         * modules/round-tests: New file.
60073         * modules/roundf: New file.
60074         * modules/roundf-tests: New file.
60075         * modules/roundl: New file.
60076         * modules/roundl-tests: New file.
60077         * tests/test-round1.c: New file.
60078         * tests/test-round2.c: New file.
60079         * tests/test-roundf1.c: New file.
60080         * tests/test-roundf2.c: New file.
60081         * tests/test-roundl.c: New file.
60082         * doc/functions/round.texi: Mention round module.
60083         * doc/functions/roundf.texi: Mention roundf module.
60084         * doc/functions/roundl.texi: Mention roundl module.
60085         * MODULES.html.sh: Mention new modules.
60086         Thanks to Bruno Haible for suggestions.
60087
60088 2007-10-20  Jim Meyering  <meyering@redhat.com>
60089
60090         * lib/xprintf.c: Include <config.h> unconditionally.
60091
60092         Change xprintf's license to GPL.
60093         * modules/xprintf (License): s/LGPL/GPL/, since this module
60094         depends on modules (exit and exitfail) which are GPL.
60095         Suggestion from Bruno Haible.
60096
60097         xprintf fixes.
60098         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
60099         Use a clearer diagnostic.
60100         Patch from Bruno Haible.
60101
60102 2007-10-20  Bruno Haible  <bruno@clisp.org>
60103
60104         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
60105         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
60106         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60107
60108 2007-10-20  Bruno Haible  <bruno@clisp.org>
60109
60110         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
60111         precision in the comparison result > x - 1 or similar.
60112         * tests/test-ceilf2.c (correct_result_p): Likewise.
60113         * tests/test-truncf2.c (correct_result_p): Likewise.
60114         * tests/test-trunc2.c (correct_result_p): Likewise.
60115         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60116
60117 2007-10-20  Bruno Haible  <bruno@clisp.org>
60118
60119         * modules/ceil: New file.
60120         * m4/ceil.m4: New file.
60121         * doc/functions/ceil.texi: Mention the 'ceil' module.
60122
60123 2007-10-20  Bruno Haible  <bruno@clisp.org>
60124
60125         * modules/floor: New file.
60126         * m4/floor.m4: New file.
60127         * doc/functions/floor.texi: Mention the 'floor' module.
60128
60129 2007-10-20  Bruno Haible  <bruno@clisp.org>
60130
60131         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
60132         of %a.
60133         * modules/floorf-tests (Depends-on): Likewise.
60134         * modules/truncf-tests (Depends-on): Likewise.
60135         * modules/trunc-tests (Depends-on): Likewise.
60136         Reported by Ben Pfaff.
60137
60138 2007-10-19  Jim Meyering  <meyering@redhat.com>
60139
60140         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
60141         Don't bother testing specific errno values.  Just test ferror.
60142
60143         New module: xprintf
60144         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
60145
60146 2007-10-19  Bruno Haible  <bruno@clisp.org>
60147
60148         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
60149         syntax.
60150         * modules/javaexec (Makefile.am): Likewise.
60151         * modules/relocatable-prog (Makefile.am): Likewise.
60152         Suggested by Jim Meyering.
60153
60154 2007-10-18  Bruno Haible  <bruno@clisp.org>
60155
60156         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
60157         Reported by Jim Meyering.
60158
60159 2007-10-18  Eric Blake  <ebb9@byu.net>
60160
60161         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
60162
60163 2007-10-18  Bruno Haible  <bruno@clisp.org>
60164
60165         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
60166         the format string into writable memory. Needed in Fortify conditions.
60167
60168 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
60169             Bruno Haible  <bruno@clisp.org>
60170
60171         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
60172         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
60173         * modules/trim (Depends-on): Add mbchar.
60174         (configure.ac): Add gl_FUNC_MBRTOWC.
60175         (Makefile.am): Augment lib_SOURCES.
60176
60177 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60178
60179         Modify glob.c to use fstatat and dirfd, to simplify it.
60180         Suggested by Eric Blake.
60181         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
60182         Don't include <stdbool.h>; not used.
60183         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
60184         (link_exists_p): Simplify implementation, since we can now assume
60185         dirfd and fstatat.
60186         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
60187
60188 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60189
60190         * gnulib-tool (func_get_dependencies): Fix sed script to
60191         match only tests.
60192
60193 2007-10-17  Bruno Haible  <bruno@clisp.org>
60194
60195         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
60196         allow locale names without encoding suffix.
60197         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60198         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60199
60200 2007-10-16  Bruno Haible  <bruno@clisp.org>
60201
60202         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
60203         * lib/getgroups.c (getgroups): Likewise.
60204         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
60205
60206 2007-10-16  Bruno Haible  <bruno@clisp.org>
60207
60208         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
60209         * modules/malloc-posix (License): Likewise.
60210         * modules/realloc-posix (License): Likewise.
60211         * modules/calloc-posix (License): Likewise.
60212         * modules/intprops (License): Change from GPL to LGPL, with
60213         Paul Eggert's approval.
60214
60215 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60216
60217         Merge glibc changes into lib/glob.c.
60218
60219         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
60220         2007-10-15 04:59:03 UTC.  Here are the changes:
60221
60222         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
60223
60224         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
60225
60226         * lib/glob.c: Add some branch prediction throughout.
60227
60228         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
60229
60230         [BZ #5103]
60231         * lib/glob.c (glob): Recognize patterns starting \/.
60232
60233         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
60234
60235         [BZ #3996]
60236         * lib/glob.c (attribute_hidden): Define if not defined.
60237         (glob): Unescape dirname, filename or username when needed and not
60238         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
60239         is NULL.  Handle unescaped [ in pattern without closing ].
60240         Don't pass GLOB_CHECK down to recursive glob for directories.
60241         (__glob_pattern_type): New function.
60242         (__glob_pattern_p): Implement using __glob_pattern_type.
60243         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
60244         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
60245         Remove unreachable code.
60246
60247         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
60248
60249         * lib/glob.c (glob_in_dir): Add some comments and asserts to
60250         explain why there are no leaks.
60251
60252         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
60253
60254         [BZ #3253]
60255         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
60256         time, rather allocate increasingly bigger arrays of pointers, if
60257         possible with alloca, if too large with malloc.
60258
60259 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
60260
60261         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
60262         Problem reported by H.Merijn Brand in
60263         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
60264         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
60265         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60266
60267 2007-10-15  Bruno Haible  <bruno@clisp.org>
60268
60269         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60270         with explicit rpl_ prefix.
60271         * lib/fopen.c (fopen): Likewise.
60272         * lib/freopen.c (freopen): Likewise.
60273         * lib/iconv.c (iconv): Likewise.
60274         * lib/iconv_close.c (iconv_close): Likewise.
60275
60276 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60277
60278         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60279
60280 2007-10-15  Bruno Haible  <bruno@clisp.org>
60281
60282         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60283         <stddef.h> instead of <stdlib.h> since we only need NULL.
60284         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60285
60286 2007-10-15  Bruno Haible  <bruno@clisp.org>
60287
60288         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
60289         Replace paragraph talking about LIBOBJS.
60290         Reported by Colin Watson <cjwatson@debian.org>.
60291
60292 2007-10-15  Bruno Haible  <bruno@clisp.org>
60293
60294         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
60295         <stdlib.h> before using NULL.
60296
60297 2007-10-15  Simon Josefsson  <simon@josefsson.org>
60298
60299         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
60300         Reported by Albert Chin <china@thewrittenword.com>.
60301
60302 2007-10-14  Bruno Haible  <bruno@clisp.org>
60303
60304         * modules/iconv_open-utf-tests: New file.
60305         * tests/test-iconv-utf.c: New file.
60306
60307         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
60308         * modules/iconv_open-utf: New file.
60309         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
60310         (iconv, iconv_close): New declarations.
60311         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
60312         be defined.
60313         (iconv_open): Add special handling of conversion between UTF-8 and
60314         UTF-{16,32}{BE,LE}.
60315         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
60316         * lib/iconv_close.c: New file.
60317         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
60318         gl_FUNC_ICONV_OPEN.
60319         (gl_FUNC_ICONV_OPEN): Use it.
60320         (gl_FUNC_ICONV_OPEN_UTF): New macro.
60321         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
60322         and REPLACE_ICONV_UTF.
60323         * modules/iconv_open (Depends-on): Add c-strcase.
60324         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
60325         ICONV_CONST.
60326         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
60327
60328 2007-10-13  Albert Chin  <china@thewrittenword.com>
60329             Bruno Haible  <bruno@clisp.org>
60330
60331         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
60332         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
60333
60334 2007-10-13  Bruno Haible  <bruno@clisp.org>
60335
60336         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
60337         defined, use the ISO C99 inline semantics.
60338         * lib/argp.h (ARGP_EI): Likewise.
60339
60340 2007-10-13  Bruno Haible  <bruno@clisp.org>
60341
60342         Handle 'inline' change in gcc 4.3.0.
60343         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
60344         argp_fmtstream_write, argp_fmtstream_set_lmargin,
60345         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
60346         argp_fmtstream_point): Disable 'extern' declaration if the function
60347         definition is going to be provided inline.
60348         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
60349         semantics, not the ISO C99 inline semantics.
60350         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
60351         'extern' declaration if the function definition is going to be provided
60352         inline.
60353         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
60354         the GNU C inline semantics, not the ISO C99 inline semantics. With
60355         GCC 4.2, avoid a warning.
60356
60357 2007-10-13  Bruno Haible  <bruno@clisp.org>
60358
60359         * lib/freading.h (freading): Enable the use of __freading for
60360         glibc >= 2.7.
60361         * lib/freading.c (freading): Likewise.
60362
60363 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60364
60365         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
60366         "warning: C99 inline functions are not supported; using GNU89".
60367
60368 2007-10-12  Bruno Haible  <bruno@clisp.org>
60369
60370         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
60371         of 2.
60372         * tests/test-ceilf2.c: New file.
60373         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
60374
60375         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
60376         * modules/ceilf-tests: Update.
60377
60378 2007-10-12  Bruno Haible  <bruno@clisp.org>
60379
60380         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
60381         of 2.
60382         * tests/test-floorf2.c: New file.
60383         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
60384
60385         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
60386         * modules/floorf-tests: Update.
60387
60388 2007-10-12  Bruno Haible  <bruno@clisp.org>
60389
60390         * tests/test-trunc2.c: New file.
60391         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
60392
60393         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
60394         * modules/trunc-tests: Update.
60395
60396 2007-10-12  Bruno Haible  <bruno@clisp.org>
60397
60398         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
60399         of 2.
60400         * tests/test-truncf2.c: New file.
60401         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
60402
60403         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
60404         * modules/truncf-tests: Update.
60405
60406 2007-10-11  Eric Blake  <ebb9@byu.net>
60407
60408         Don't claim strerror is broken on Interix.
60409         * doc/functions/strerror.texi (strerror): Known broken systems are
60410         now Solaris 8, and not Interix.
60411         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
60412         Interix on cross-compile.
60413         Reported by Martin Koeppe in
60414         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
60415
60416 2007-10-11  Bruno Haible  <bruno@clisp.org>
60417
60418         * modules/i-ring-tests: New file.
60419         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
60420         instead of assert.
60421
60422 2007-10-11  Bruno Haible  <bruno@clisp.org>
60423
60424         * modules/filenamecat-tests: New file.
60425         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
60426         * lib/filenamecat.c: Remove test code.
60427
60428 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60429
60430         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
60431
60432         * lib/strerror.c: Include <string.h> always, to test interface,
60433         and to remove the need for the dummy.
60434         Include intprops.h to compute width instead of doing it ourselves
60435         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
60436         (strerror): Define it to return NULL if there's no system strerror.
60437         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
60438         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
60439         ancient pre-strerror Unix systems well any more.  Saying "unknown
60440         system error" is enough.
60441         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
60442         simpler strerror.c implementation.
60443         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
60444         Simplify the tests to reflect the simpler strerror implementation.
60445         * modules/strerror (Depends-on): Add intprops.
60446
60447 2007-10-09  Eric Blake  <ebb9@byu.net>
60448
60449         Silence test-fpending.
60450         * modules/fpending-tests (Files): Add wrapper script.
60451         * tests/test-fpending.sh: New file.
60452
60453 2007-10-09  Bruno Haible  <bruno@clisp.org>
60454
60455         * MODULES.html.sh (func_module): Don't create a hyperlink for
60456         function names like 'printf_frexp'.
60457         (Misc): Add crc, memxor.
60458         (Characteristics of floating types): New section.
60459         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
60460         isnanf-nolibm, signbit, trunc, truncf, truncl.
60461         (Enhancements for ISO C 99 functions): New subsection Input/output.
60462         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
60463         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
60464         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
60465         (Compatibility checks for POSIX:2001 functions): Add clock-time.
60466         (Enhancements for POSIX:2001 functions): Add chdir-long.
60467         (File system functions): Add areadlink, chdir-safer, read-file.
60468         Remove cycle-check.
60469         (File system as inode set): New section.
60470         (Date and time): Add gethrxtime.
60471         (Multithreading): Add openmp.
60472         (Internationalization functions): Add localename.
60473         (Unicode string functions): Add unistr/u*-mbsnlen.
60474         (Support for maintaining and releasing projects): Add git-version-gen.
60475         (Lone files): Remove directories.
60476
60477 2007-10-08  Ben Pfaff  <blp@gnu.org>
60478
60479         * lib/xmalloca.h: Fix typo in comment.
60480
60481 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60482
60483         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
60484         when avoiding problems with integer overflow.  Use a portable test
60485         instead.
60486
60487 2007-10-08  Simon Josefsson  <simon@josefsson.org>
60488
60489         * modules/dummy (License): Change to LGPLv2+.
60490         * modules/float (License): Likewise
60491         * modules/realloc (License): Likewise
60492         * modules/stdlib (License): Likewise
60493
60494 2007-10-07  Bruno Haible  <bruno@clisp.org>
60495
60496         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
60497         * floor.c (TWO_MANT_DIG): Likewise.
60498         * ceil.c (TWO_MANT_DIG): Likewise.
60499         Reported by Ben Pfaff.
60500
60501 2007-10-07  Bruno Haible  <bruno@clisp.org>
60502
60503         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
60504         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
60505         * lib/frexp.c (FUNC): Likewise.
60506         * lib/printf-frexp.h (printf_frexp): Likewise.
60507         * lib/printf-frexpl.h (printf_frexpl): Likewise.
60508         * lib/printf-frexp.c (FUNC): Likewise.
60509         Suggested by Jim Meyering.
60510
60511 2007-10-07  Jim Meyering  <meyering@redhat.com>
60512
60513         Make xnanosleep's integer overflow test more robust.
60514         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
60515         so that gcc-4.3.0 doesn't optimize away this test for overflow.
60516
60517 2007-10-07  Bruno Haible  <bruno@clisp.org>
60518
60519         * NEWS: Mention the license change.
60520
60521         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
60522         abbreviations in the modules files.
60523
60524         Change copyright notice from GPLv2+ to GPLv3+.
60525         * README: Change copyright notice.
60526         * MODULES.html.sh: Likewise.
60527         * build-aux/bootstrap.conf: Likewise.
60528         * build-aux/config.libpath: Likewise.
60529         * build-aux/csharpcomp.sh.in: Likewise.
60530         * build-aux/csharpexec.sh.in: Likewise.
60531         * build-aux/install-reloc: Likewise.
60532         * build-aux/javacomp.sh.in: Likewise.
60533         * build-aux/javaexec.sh.in: Likewise.
60534         * build-aux/ldd.sh.in: Likewise.
60535         * build-aux/reloc-ldflags: Likewise.
60536         * build-aux/relocatable.sh.in: Likewise.
60537         * build-aux/x-to-1.in: Likewise.
60538         * check-module: Likewise.
60539         * config/srclistvars.sh: Likewise.
60540         * gnulib-tool: Likewise.
60541         * lib/acl-internal.h: Likewise.
60542         * lib/acl.c: Likewise.
60543         * lib/acl.h: Likewise.
60544         * lib/acl_entries.c: Likewise.
60545         * lib/areadlink-with-size.c: Likewise.
60546         * lib/areadlink.c: Likewise.
60547         * lib/areadlink.h: Likewise.
60548         * lib/argmatch.c: Likewise.
60549         * lib/argmatch.h: Likewise.
60550         * lib/argp-ba.c: Likewise.
60551         * lib/argp-eexst.c: Likewise.
60552         * lib/argp-fmtstream.c: Likewise.
60553         * lib/argp-fmtstream.h: Likewise.
60554         * lib/argp-fs-xinl.c: Likewise.
60555         * lib/argp-help.c: Likewise.
60556         * lib/argp-namefrob.h: Likewise.
60557         * lib/argp-parse.c: Likewise.
60558         * lib/argp-pin.c: Likewise.
60559         * lib/argp-pv.c: Likewise.
60560         * lib/argp-pvh.c: Likewise.
60561         * lib/argp-xinl.c: Likewise.
60562         * lib/argp.h: Likewise.
60563         * lib/at-func.c: Likewise.
60564         * lib/atanl.c: Likewise.
60565         * lib/backupfile.c: Likewise.
60566         * lib/backupfile.h: Likewise.
60567         * lib/basename.c: Likewise.
60568         * lib/binary-io.h: Likewise.
60569         * lib/byteswap.in.h: Likewise.
60570         * lib/c-stack.c: Likewise.
60571         * lib/c-stack.h: Likewise.
60572         * lib/c-strcasestr.c: Likewise.
60573         * lib/c-strcasestr.h: Likewise.
60574         * lib/c-strstr.c: Likewise.
60575         * lib/c-strstr.h: Likewise.
60576         * lib/c-strtod.c: Likewise.
60577         * lib/calloc.c: Likewise.
60578         * lib/canon-host.c: Likewise.
60579         * lib/canon-host.h: Likewise.
60580         * lib/canonicalize-lgpl.c: Likewise.
60581         * lib/canonicalize.c: Likewise.
60582         * lib/canonicalize.h: Likewise.
60583         * lib/ceil.c: Likewise.
60584         * lib/ceilf.c: Likewise.
60585         * lib/ceill.c: Likewise.
60586         * lib/chdir-long.c: Likewise.
60587         * lib/chdir-long.h: Likewise.
60588         * lib/chdir-safer.c: Likewise.
60589         * lib/chdir-safer.h: Likewise.
60590         * lib/chown.c: Likewise.
60591         * lib/classpath.c: Likewise.
60592         * lib/classpath.h: Likewise.
60593         * lib/clean-temp.c: Likewise.
60594         * lib/clean-temp.h: Likewise.
60595         * lib/cloexec.c: Likewise.
60596         * lib/close-stream.c: Likewise.
60597         * lib/closein.c: Likewise.
60598         * lib/closein.h: Likewise.
60599         * lib/closeout.c: Likewise.
60600         * lib/closeout.h: Likewise.
60601         * lib/concat-filename.c: Likewise.
60602         * lib/copy-file.c: Likewise.
60603         * lib/copy-file.h: Likewise.
60604         * lib/count-one-bits.h: Likewise.
60605         * lib/crc.c: Likewise.
60606         * lib/crc.h: Likewise.
60607         * lib/creat-safer.c: Likewise.
60608         * lib/csharpcomp.c: Likewise.
60609         * lib/csharpcomp.h: Likewise.
60610         * lib/csharpexec.c: Likewise.
60611         * lib/csharpexec.h: Likewise.
60612         * lib/cycle-check.c: Likewise.
60613         * lib/cycle-check.h: Likewise.
60614         * lib/diacrit.c: Likewise.
60615         * lib/diacrit.h: Likewise.
60616         * lib/diffseq.h: Likewise.
60617         * lib/dirchownmod.c: Likewise.
60618         * lib/dirent.in.h: Likewise.
60619         * lib/dirfd.c: Likewise.
60620         * lib/dirfd.h: Likewise.
60621         * lib/dirname.c: Likewise.
60622         * lib/dirname.h: Likewise.
60623         * lib/dummy.c: Likewise.
60624         * lib/dup-safer.c: Likewise.
60625         * lib/dup2.c: Likewise.
60626         * lib/eealloc.h: Likewise.
60627         * lib/error.c: Likewise.
60628         * lib/error.h: Likewise.
60629         * lib/euidaccess.c: Likewise.
60630         * lib/exclude.c: Likewise.
60631         * lib/exclude.h: Likewise.
60632         * lib/execute.c: Likewise.
60633         * lib/execute.h: Likewise.
60634         * lib/exitfail.c: Likewise.
60635         * lib/exitfail.h: Likewise.
60636         * lib/expl.c: Likewise.
60637         * lib/fatal-signal.c: Likewise.
60638         * lib/fatal-signal.h: Likewise.
60639         * lib/fbufmode.c: Likewise.
60640         * lib/fbufmode.h: Likewise.
60641         * lib/fchdir.c: Likewise.
60642         * lib/fchmodat.c: Likewise.
60643         * lib/fchownat.c: Likewise.
60644         * lib/fcntl--.h: Likewise.
60645         * lib/fcntl-safer.h: Likewise.
60646         * lib/fcntl.in.h: Likewise.
60647         * lib/fd-safer.c: Likewise.
60648         * lib/fflush.c: Likewise.
60649         * lib/file-has-acl.c: Likewise.
60650         * lib/file-set.c: Likewise.
60651         * lib/file-type.c: Likewise.
60652         * lib/file-type.h: Likewise.
60653         * lib/fileblocks.c: Likewise.
60654         * lib/filemode.c: Likewise.
60655         * lib/filemode.h: Likewise.
60656         * lib/filename.h: Likewise.
60657         * lib/filenamecat.c: Likewise.
60658         * lib/filenamecat.h: Likewise.
60659         * lib/findprog.c: Likewise.
60660         * lib/findprog.h: Likewise.
60661         * lib/float.in.h: Likewise.
60662         * lib/floor.c: Likewise.
60663         * lib/floorf.c: Likewise.
60664         * lib/floorl.c: Likewise.
60665         * lib/fopen-safer.c: Likewise.
60666         * lib/fopen.c: Likewise.
60667         * lib/fpending.c: Likewise.
60668         * lib/fpending.h: Likewise.
60669         * lib/fprintf.c: Likewise.
60670         * lib/fprintftime.h: Likewise.
60671         * lib/fpucw.h: Likewise.
60672         * lib/fpurge.c: Likewise.
60673         * lib/fpurge.h: Likewise.
60674         * lib/freadable.c: Likewise.
60675         * lib/freadable.h: Likewise.
60676         * lib/freadahead.c: Likewise.
60677         * lib/freadahead.h: Likewise.
60678         * lib/freading.c: Likewise.
60679         * lib/freading.h: Likewise.
60680         * lib/free.c: Likewise.
60681         * lib/freopen.c: Likewise.
60682         * lib/frexp.c: Likewise.
60683         * lib/frexpl.c: Likewise.
60684         * lib/fseek.c: Likewise.
60685         * lib/fseterr.c: Likewise.
60686         * lib/fseterr.h: Likewise.
60687         * lib/fstatat.c: Likewise.
60688         * lib/fstrcmp.c: Likewise.
60689         * lib/fstrcmp.h: Likewise.
60690         * lib/fsusage.c: Likewise.
60691         * lib/fsusage.h: Likewise.
60692         * lib/ftell.c: Likewise.
60693         * lib/ftello.c: Likewise.
60694         * lib/fts-cycle.c: Likewise.
60695         * lib/fts.c: Likewise.
60696         * lib/fts_.h: Likewise.
60697         * lib/full-read.c: Likewise.
60698         * lib/full-read.h: Likewise.
60699         * lib/full-write.c: Likewise.
60700         * lib/full-write.h: Likewise.
60701         * lib/fwritable.c: Likewise.
60702         * lib/fwritable.h: Likewise.
60703         * lib/fwriteerror.c: Likewise.
60704         * lib/fwriteerror.h: Likewise.
60705         * lib/fwriting.c: Likewise.
60706         * lib/fwriting.h: Likewise.
60707         * lib/gcd.c: Likewise.
60708         * lib/gcd.h: Likewise.
60709         * lib/getcwd.c: Likewise.
60710         * lib/getdate.h: Likewise.
60711         * lib/getdate.y: Likewise.
60712         * lib/getdomainname.c: Likewise.
60713         * lib/getdomainname.h: Likewise.
60714         * lib/getgroups.c: Likewise.
60715         * lib/gethostname.c: Likewise.
60716         * lib/gethrxtime.c: Likewise.
60717         * lib/gethrxtime.h: Likewise.
60718         * lib/getloadavg.c: Likewise.
60719         * lib/getndelim2.c: Likewise.
60720         * lib/getndelim2.h: Likewise.
60721         * lib/getnline.c: Likewise.
60722         * lib/getnline.h: Likewise.
60723         * lib/getopt.c: Likewise.
60724         * lib/getopt.in.h: Likewise.
60725         * lib/getopt1.c: Likewise.
60726         * lib/getopt_int.h: Likewise.
60727         * lib/getpagesize.h: Likewise.
60728         * lib/getsubopt.c: Likewise.
60729         * lib/gettime.c: Likewise.
60730         * lib/getugroups.c: Likewise.
60731         * lib/getugroups.h: Likewise.
60732         * lib/getusershell.c: Likewise.
60733         * lib/gl_anyavltree_list1.h: Likewise.
60734         * lib/gl_anyavltree_list2.h: Likewise.
60735         * lib/gl_anyhash_list1.h: Likewise.
60736         * lib/gl_anyhash_list2.h: Likewise.
60737         * lib/gl_anylinked_list1.h: Likewise.
60738         * lib/gl_anylinked_list2.h: Likewise.
60739         * lib/gl_anyrbtree_list1.h: Likewise.
60740         * lib/gl_anyrbtree_list2.h: Likewise.
60741         * lib/gl_anytree_list1.h: Likewise.
60742         * lib/gl_anytree_list2.h: Likewise.
60743         * lib/gl_anytree_oset.h: Likewise.
60744         * lib/gl_anytreehash_list1.h: Likewise.
60745         * lib/gl_anytreehash_list2.h: Likewise.
60746         * lib/gl_array_list.c: Likewise.
60747         * lib/gl_array_list.h: Likewise.
60748         * lib/gl_array_oset.c: Likewise.
60749         * lib/gl_array_oset.h: Likewise.
60750         * lib/gl_avltree_list.c: Likewise.
60751         * lib/gl_avltree_list.h: Likewise.
60752         * lib/gl_avltree_oset.c: Likewise.
60753         * lib/gl_avltree_oset.h: Likewise.
60754         * lib/gl_avltreehash_list.c: Likewise.
60755         * lib/gl_avltreehash_list.h: Likewise.
60756         * lib/gl_carray_list.c: Likewise.
60757         * lib/gl_carray_list.h: Likewise.
60758         * lib/gl_linked_list.c: Likewise.
60759         * lib/gl_linked_list.h: Likewise.
60760         * lib/gl_linkedhash_list.c: Likewise.
60761         * lib/gl_linkedhash_list.h: Likewise.
60762         * lib/gl_list.c: Likewise.
60763         * lib/gl_list.h: Likewise.
60764         * lib/gl_oset.c: Likewise.
60765         * lib/gl_oset.h: Likewise.
60766         * lib/gl_rbtree_list.c: Likewise.
60767         * lib/gl_rbtree_list.h: Likewise.
60768         * lib/gl_rbtree_oset.c: Likewise.
60769         * lib/gl_rbtree_oset.h: Likewise.
60770         * lib/gl_rbtreehash_list.c: Likewise.
60771         * lib/gl_rbtreehash_list.h: Likewise.
60772         * lib/gl_sublist.c: Likewise.
60773         * lib/gl_sublist.h: Likewise.
60774         * lib/group-member.c: Likewise.
60775         * lib/group-member.h: Likewise.
60776         * lib/hard-locale.c: Likewise.
60777         * lib/hard-locale.h: Likewise.
60778         * lib/hash-pjw.c: Likewise.
60779         * lib/hash-pjw.h: Likewise.
60780         * lib/hash-triple.c: Likewise.
60781         * lib/hash.c: Likewise.
60782         * lib/hash.h: Likewise.
60783         * lib/human.c: Likewise.
60784         * lib/human.h: Likewise.
60785         * lib/i-ring.c: Likewise.
60786         * lib/i-ring.h: Likewise.
60787         * lib/idcache.c: Likewise.
60788         * lib/imaxabs.c: Likewise.
60789         * lib/imaxdiv.c: Likewise.
60790         * lib/inet_pton.c: Likewise.
60791         * lib/inet_pton.h: Likewise.
60792         * lib/intprops.h: Likewise.
60793         * lib/inttostr.c: Likewise.
60794         * lib/inttostr.h: Likewise.
60795         * lib/inttypes.in.h: Likewise.
60796         * lib/isapipe.c: Likewise.
60797         * lib/isdir.c: Likewise.
60798         * lib/isnan.c: Likewise.
60799         * lib/isnan.h: Likewise.
60800         * lib/isnanf.c: Likewise.
60801         * lib/isnanf.h: Likewise.
60802         * lib/isnanl-nolibm.h: Likewise.
60803         * lib/isnanl.c: Likewise.
60804         * lib/isnanl.h: Likewise.
60805         * lib/javacomp.c: Likewise.
60806         * lib/javacomp.h: Likewise.
60807         * lib/javaexec.c: Likewise.
60808         * lib/javaexec.h: Likewise.
60809         * lib/javaversion.c: Likewise.
60810         * lib/javaversion.h: Likewise.
60811         * lib/javaversion.java: Likewise.
60812         * lib/lbrkprop.h: Likewise.
60813         * lib/lchmod.h: Likewise.
60814         * lib/lchown.c: Likewise.
60815         * lib/ldexpl.c: Likewise.
60816         * lib/linebreak.c: Likewise.
60817         * lib/linebreak.h: Likewise.
60818         * lib/linebuffer.c: Likewise.
60819         * lib/linebuffer.h: Likewise.
60820         * lib/locale.in.h: Likewise.
60821         * lib/logl.c: Likewise.
60822         * lib/long-options.c: Likewise.
60823         * lib/long-options.h: Likewise.
60824         * lib/lstat.c: Likewise.
60825         * lib/lstat.h: Likewise.
60826         * lib/math.in.h: Likewise.
60827         * lib/mbchar.c: Likewise.
60828         * lib/mbchar.h: Likewise.
60829         * lib/mbfile.h: Likewise.
60830         * lib/mbiter.h: Likewise.
60831         * lib/mbscasecmp.c: Likewise.
60832         * lib/mbscasestr.c: Likewise.
60833         * lib/mbschr.c: Likewise.
60834         * lib/mbscspn.c: Likewise.
60835         * lib/mbslen.c: Likewise.
60836         * lib/mbsncasecmp.c: Likewise.
60837         * lib/mbsnlen.c: Likewise.
60838         * lib/mbspbrk.c: Likewise.
60839         * lib/mbspcasecmp.c: Likewise.
60840         * lib/mbsrchr.c: Likewise.
60841         * lib/mbssep.c: Likewise.
60842         * lib/mbsspn.c: Likewise.
60843         * lib/mbsstr.c: Likewise.
60844         * lib/mbstok_r.c: Likewise.
60845         * lib/mbswidth.c: Likewise.
60846         * lib/mbswidth.h: Likewise.
60847         * lib/mbuiter.h: Likewise.
60848         * lib/memcasecmp.c: Likewise.
60849         * lib/memcasecmp.h: Likewise.
60850         * lib/memchr.c: Likewise.
60851         * lib/memcmp.c: Likewise.
60852         * lib/memcoll.c: Likewise.
60853         * lib/memcoll.h: Likewise.
60854         * lib/memcpy.c: Likewise.
60855         * lib/memrchr.c: Likewise.
60856         * lib/mkancesdirs.c: Likewise.
60857         * lib/mkdir-p.c: Likewise.
60858         * lib/mkdir-p.h: Likewise.
60859         * lib/mkdir.c: Likewise.
60860         * lib/mkdirat.c: Likewise.
60861         * lib/mkdtemp.c: Likewise.
60862         * lib/mkstemp-safer.c: Likewise.
60863         * lib/mkstemp.c: Likewise.
60864         * lib/modechange.c: Likewise.
60865         * lib/modechange.h: Likewise.
60866         * lib/mountlist.c: Likewise.
60867         * lib/mountlist.h: Likewise.
60868         * lib/mpsort.c: Likewise.
60869         * lib/nanosleep.c: Likewise.
60870         * lib/obstack.c: Likewise.
60871         * lib/obstack.h: Likewise.
60872         * lib/open-safer.c: Likewise.
60873         * lib/open.c: Likewise.
60874         * lib/openat-die.c: Likewise.
60875         * lib/openat-priv.h: Likewise.
60876         * lib/openat-proc.c: Likewise.
60877         * lib/openat.c: Likewise.
60878         * lib/openat.h: Likewise.
60879         * lib/pagealign_alloc.c: Likewise.
60880         * lib/pagealign_alloc.h: Likewise.
60881         * lib/physmem.c: Likewise.
60882         * lib/physmem.h: Likewise.
60883         * lib/pipe-safer.c: Likewise.
60884         * lib/pipe.c: Likewise.
60885         * lib/pipe.h: Likewise.
60886         * lib/posixtm.c: Likewise.
60887         * lib/posixtm.h: Likewise.
60888         * lib/posixver.c: Likewise.
60889         * lib/printf-frexp.c: Likewise.
60890         * lib/printf-frexp.h: Likewise.
60891         * lib/printf-frexpl.c: Likewise.
60892         * lib/printf-frexpl.h: Likewise.
60893         * lib/printf.c: Likewise.
60894         * lib/progname.c: Likewise.
60895         * lib/progname.h: Likewise.
60896         * lib/progreloc.c: Likewise.
60897         * lib/putenv.c: Likewise.
60898         * lib/quote.c: Likewise.
60899         * lib/quote.h: Likewise.
60900         * lib/quotearg.c: Likewise.
60901         * lib/quotearg.h: Likewise.
60902         * lib/raise.c: Likewise.
60903         * lib/readline.c: Likewise.
60904         * lib/readline.h: Likewise.
60905         * lib/readlink.c: Likewise.
60906         * lib/readtokens.c: Likewise.
60907         * lib/readtokens.h: Likewise.
60908         * lib/readtokens0.c: Likewise.
60909         * lib/readtokens0.h: Likewise.
60910         * lib/readutmp.c: Likewise.
60911         * lib/readutmp.h: Likewise.
60912         * lib/realloc.c: Likewise.
60913         * lib/relocwrapper.c: Likewise.
60914         * lib/rename-dest-slash.c: Likewise.
60915         * lib/rename.c: Likewise.
60916         * lib/rmdir.c: Likewise.
60917         * lib/rpmatch.c: Likewise.
60918         * lib/safe-read.c: Likewise.
60919         * lib/safe-read.h: Likewise.
60920         * lib/safe-write.c: Likewise.
60921         * lib/safe-write.h: Likewise.
60922         * lib/same-inode.h: Likewise.
60923         * lib/same.c: Likewise.
60924         * lib/same.h: Likewise.
60925         * lib/save-cwd.c: Likewise.
60926         * lib/save-cwd.h: Likewise.
60927         * lib/savedir.c: Likewise.
60928         * lib/savedir.h: Likewise.
60929         * lib/savewd.c: Likewise.
60930         * lib/savewd.h: Likewise.
60931         * lib/search.in.h: Likewise.
60932         * lib/setenv.c: Likewise.
60933         * lib/setenv.h: Likewise.
60934         * lib/settime.c: Likewise.
60935         * lib/sh-quote.c: Likewise.
60936         * lib/sh-quote.h: Likewise.
60937         * lib/sig2str.c: Likewise.
60938         * lib/sig2str.h: Likewise.
60939         * lib/signal.in.h: Likewise.
60940         * lib/signbitd.c: Likewise.
60941         * lib/signbitf.c: Likewise.
60942         * lib/signbitl.c: Likewise.
60943         * lib/sigprocmask.c: Likewise.
60944         * lib/sincosl.c: Likewise.
60945         * lib/sleep.c: Likewise.
60946         * lib/sprintf.c: Likewise.
60947         * lib/sqrtl.c: Likewise.
60948         * lib/stat-time.h: Likewise.
60949         * lib/stdio--.h: Likewise.
60950         * lib/stdio-safer.h: Likewise.
60951         * lib/stdlib--.h: Likewise.
60952         * lib/stdlib-safer.h: Likewise.
60953         * lib/stdlib.in.h: Likewise.
60954         * lib/stpcpy.c: Likewise.
60955         * lib/stpncpy.c: Likewise.
60956         * lib/strchrnul.c: Likewise.
60957         * lib/strcspn.c: Likewise.
60958         * lib/strerror.c: Likewise.
60959         * lib/strftime.c: Likewise.
60960         * lib/strftime.h: Likewise.
60961         * lib/striconveh.c: Likewise.
60962         * lib/striconveh.h: Likewise.
60963         * lib/striconveha.c: Likewise.
60964         * lib/striconveha.h: Likewise.
60965         * lib/stripslash.c: Likewise.
60966         * lib/strnlen1.c: Likewise.
60967         * lib/strnlen1.h: Likewise.
60968         * lib/strtod.c: Likewise.
60969         * lib/strtoimax.c: Likewise.
60970         * lib/strtok_r.c: Likewise.
60971         * lib/strtol.c: Likewise.
60972         * lib/strtoll.c: Likewise.
60973         * lib/strtoul.c: Likewise.
60974         * lib/strtoull.c: Likewise.
60975         * lib/sysexits.in.h: Likewise.
60976         * lib/tempname.c: Likewise.
60977         * lib/tempname.h: Likewise.
60978         * lib/timespec.h: Likewise.
60979         * lib/tls.c: Likewise.
60980         * lib/tls.h: Likewise.
60981         * lib/tmpdir.c: Likewise.
60982         * lib/tmpdir.h: Likewise.
60983         * lib/tmpfile-safer.c: Likewise.
60984         * lib/tmpfile.c: Likewise.
60985         * lib/trigl.c: Likewise.
60986         * lib/trigl.h: Likewise.
60987         * lib/trim.c: Likewise.
60988         * lib/trim.h: Likewise.
60989         * lib/trunc.c: Likewise.
60990         * lib/truncf.c: Likewise.
60991         * lib/truncl.c: Likewise.
60992         * lib/tsearch.c: Likewise.
60993         * lib/unicodeio.c: Likewise.
60994         * lib/unicodeio.h: Likewise.
60995         * lib/unistd--.h: Likewise.
60996         * lib/unistd-safer.h: Likewise.
60997         * lib/unistdio/ulc-fprintf.c: Likewise.
60998         * lib/unistdio/ulc-vfprintf.c: Likewise.
60999         * lib/unlinkdir.c: Likewise.
61000         * lib/unlinkdir.h: Likewise.
61001         * lib/unlocked-io.h: Likewise.
61002         * lib/unsetenv.c: Likewise.
61003         * lib/userspec.c: Likewise.
61004         * lib/utime.c: Likewise.
61005         * lib/utimecmp.c: Likewise.
61006         * lib/utimecmp.h: Likewise.
61007         * lib/utimens.c: Likewise.
61008         * lib/verify.h: Likewise.
61009         * lib/verror.c: Likewise.
61010         * lib/verror.h: Likewise.
61011         * lib/version-etc-fsf.c: Likewise.
61012         * lib/version-etc.c: Likewise.
61013         * lib/version-etc.h: Likewise.
61014         * lib/vfprintf.c: Likewise.
61015         * lib/vprintf.c: Likewise.
61016         * lib/vsprintf.c: Likewise.
61017         * lib/w32spawn.h: Likewise.
61018         * lib/wait-process.c: Likewise.
61019         * lib/wait-process.h: Likewise.
61020         * lib/wcwidth.c: Likewise.
61021         * lib/write-any-file.c: Likewise.
61022         * lib/xalloc-die.c: Likewise.
61023         * lib/xalloc.h: Likewise.
61024         * lib/xasprintf.c: Likewise.
61025         * lib/xgetcwd.c: Likewise.
61026         * lib/xgetcwd.h: Likewise.
61027         * lib/xgetdomainname.c: Likewise.
61028         * lib/xgetdomainname.h: Likewise.
61029         * lib/xgethostname.c: Likewise.
61030         * lib/xmalloc.c: Likewise.
61031         * lib/xmalloca.c: Likewise.
61032         * lib/xmalloca.h: Likewise.
61033         * lib/xmemcoll.c: Likewise.
61034         * lib/xnanosleep.c: Likewise.
61035         * lib/xreadlink.c: Likewise.
61036         * lib/xreadlink.h: Likewise.
61037         * lib/xsetenv.c: Likewise.
61038         * lib/xsetenv.h: Likewise.
61039         * lib/xstriconv.c: Likewise.
61040         * lib/xstriconv.h: Likewise.
61041         * lib/xstrndup.c: Likewise.
61042         * lib/xstrndup.h: Likewise.
61043         * lib/xstrtod.c: Likewise.
61044         * lib/xstrtod.h: Likewise.
61045         * lib/xstrtol-error.c: Likewise.
61046         * lib/xstrtol.c: Likewise.
61047         * lib/xstrtol.h: Likewise.
61048         * lib/xtime.h: Likewise.
61049         * lib/xvasprintf.c: Likewise.
61050         * lib/xvasprintf.h: Likewise.
61051         * lib/yesno.c: Likewise.
61052         * lib/yesno.h: Likewise.
61053         * posix-modules: Likewise.
61054         * tests/test-alloca-opt.c: Likewise.
61055         * tests/test-arcfour.c: Likewise.
61056         * tests/test-arctwo.c: Likewise.
61057         * tests/test-argmatch.c: Likewise.
61058         * tests/test-argp-2.sh: Likewise.
61059         * tests/test-argp.c: Likewise.
61060         * tests/test-arpa_inet.c: Likewise.
61061         * tests/test-array_list.c: Likewise.
61062         * tests/test-array_oset.c: Likewise.
61063         * tests/test-atexit.c: Likewise.
61064         * tests/test-avltree_list.c: Likewise.
61065         * tests/test-avltree_oset.c: Likewise.
61066         * tests/test-avltreehash_list.c: Likewise.
61067         * tests/test-base64.c: Likewise.
61068         * tests/test-binary-io.c: Likewise.
61069         * tests/test-byteswap.c: Likewise.
61070         * tests/test-c-ctype.c: Likewise.
61071         * tests/test-c-strcasecmp.c: Likewise.
61072         * tests/test-c-strcasestr.c: Likewise.
61073         * tests/test-c-strncasecmp.c: Likewise.
61074         * tests/test-c-strstr.c: Likewise.
61075         * tests/test-canonicalize-lgpl.c: Likewise.
61076         * tests/test-canonicalize.c: Likewise.
61077         * tests/test-carray_list.c: Likewise.
61078         * tests/test-ceilf.c: Likewise.
61079         * tests/test-ceill.c: Likewise.
61080         * tests/test-count-one-bits.c: Likewise.
61081         * tests/test-crc.c: Likewise.
61082         * tests/test-dirname.c: Likewise.
61083         * tests/test-fbufmode.c: Likewise.
61084         * tests/test-fcntl.c: Likewise.
61085         * tests/test-fflush.c: Likewise.
61086         * tests/test-floorf.c: Likewise.
61087         * tests/test-floorl.c: Likewise.
61088         * tests/test-fopen.c: Likewise.
61089         * tests/test-fprintf-posix.c: Likewise.
61090         * tests/test-fprintf-posix.h: Likewise.
61091         * tests/test-fpurge.c: Likewise.
61092         * tests/test-freadable.c: Likewise.
61093         * tests/test-freadahead.c: Likewise.
61094         * tests/test-freading.c: Likewise.
61095         * tests/test-freopen.c: Likewise.
61096         * tests/test-frexp.c: Likewise.
61097         * tests/test-frexpl.c: Likewise.
61098         * tests/test-fseek.c: Likewise.
61099         * tests/test-fseeko.c: Likewise.
61100         * tests/test-fseterr.c: Likewise.
61101         * tests/test-fstrcmp.c: Likewise.
61102         * tests/test-ftell.c: Likewise.
61103         * tests/test-ftello.c: Likewise.
61104         * tests/test-fwritable.c: Likewise.
61105         * tests/test-fwriting.c: Likewise.
61106         * tests/test-getaddrinfo.c: Likewise.
61107         * tests/test-getpass.c: Likewise.
61108         * tests/test-gettimeofday.c: Likewise.
61109         * tests/test-hmac-md5.c: Likewise.
61110         * tests/test-hmac-sha1.c: Likewise.
61111         * tests/test-iconv.c: Likewise.
61112         * tests/test-iconvme.c: Likewise.
61113         * tests/test-inttypes.c: Likewise.
61114         * tests/test-isnan.c: Likewise.
61115         * tests/test-isnanf.c: Likewise.
61116         * tests/test-isnanl-nolibm.c: Likewise.
61117         * tests/test-isnanl.c: Likewise.
61118         * tests/test-isnanl.h: Likewise.
61119         * tests/test-ldexpl.c: Likewise.
61120         * tests/test-linked_list.c: Likewise.
61121         * tests/test-linkedhash_list.c: Likewise.
61122         * tests/test-locale.c: Likewise.
61123         * tests/test-localename.c: Likewise.
61124         * tests/test-lock.c: Likewise.
61125         * tests/test-lseek.c: Likewise.
61126         * tests/test-malloca.c: Likewise.
61127         * tests/test-math.c: Likewise.
61128         * tests/test-mbscasecmp.c: Likewise.
61129         * tests/test-mbscasestr1.c: Likewise.
61130         * tests/test-mbscasestr2.c: Likewise.
61131         * tests/test-mbscasestr3.c: Likewise.
61132         * tests/test-mbscasestr4.c: Likewise.
61133         * tests/test-mbschr.c: Likewise.
61134         * tests/test-mbscspn.c: Likewise.
61135         * tests/test-mbsncasecmp.c: Likewise.
61136         * tests/test-mbspbrk.c: Likewise.
61137         * tests/test-mbspcasecmp.c: Likewise.
61138         * tests/test-mbsrchr.c: Likewise.
61139         * tests/test-mbsspn.c: Likewise.
61140         * tests/test-mbsstr1.c: Likewise.
61141         * tests/test-mbsstr2.c: Likewise.
61142         * tests/test-mbsstr3.c: Likewise.
61143         * tests/test-md5.c: Likewise.
61144         * tests/test-memmem.c: Likewise.
61145         * tests/test-netinet_in.c: Likewise.
61146         * tests/test-open.c: Likewise.
61147         * tests/test-printf-frexp.c: Likewise.
61148         * tests/test-printf-frexpl.c: Likewise.
61149         * tests/test-printf-posix.c: Likewise.
61150         * tests/test-printf-posix.h: Likewise.
61151         * tests/test-rbtree_list.c: Likewise.
61152         * tests/test-rbtree_oset.c: Likewise.
61153         * tests/test-rbtreehash_list.c: Likewise.
61154         * tests/test-read-file.c: Likewise.
61155         * tests/test-rijndael.c: Likewise.
61156         * tests/test-search.c: Likewise.
61157         * tests/test-signbit.c: Likewise.
61158         * tests/test-sleep.c: Likewise.
61159         * tests/test-snprintf-posix.c: Likewise.
61160         * tests/test-snprintf-posix.h: Likewise.
61161         * tests/test-snprintf.c: Likewise.
61162         * tests/test-sprintf-posix.c: Likewise.
61163         * tests/test-sprintf-posix.h: Likewise.
61164         * tests/test-stat-time.c: Likewise.
61165         * tests/test-stdbool.c: Likewise.
61166         * tests/test-stdint.c: Likewise.
61167         * tests/test-stdio.c: Likewise.
61168         * tests/test-stdlib.c: Likewise.
61169         * tests/test-stpncpy.c: Likewise.
61170         * tests/test-strcasestr.c: Likewise.
61171         * tests/test-striconv.c: Likewise.
61172         * tests/test-striconveh.c: Likewise.
61173         * tests/test-striconveha.c: Likewise.
61174         * tests/test-string.c: Likewise.
61175         * tests/test-sys_select.c: Likewise.
61176         * tests/test-sys_socket.c: Likewise.
61177         * tests/test-sys_stat.c: Likewise.
61178         * tests/test-sys_time.c: Likewise.
61179         * tests/test-sysexits.c: Likewise.
61180         * tests/test-time.c: Likewise.
61181         * tests/test-tls.c: Likewise.
61182         * tests/test-trunc.c: Likewise.
61183         * tests/test-truncf.c: Likewise.
61184         * tests/test-truncl.c: Likewise.
61185         * tests/test-unistd.c: Likewise.
61186         * tests/test-vasnprintf-posix.c: Likewise.
61187         * tests/test-vasnprintf-posix2.c: Likewise.
61188         * tests/test-vasnprintf.c: Likewise.
61189         * tests/test-vasprintf-posix.c: Likewise.
61190         * tests/test-vasprintf.c: Likewise.
61191         * tests/test-verify.c: Likewise.
61192         * tests/test-vfprintf-posix.c: Likewise.
61193         * tests/test-vprintf-posix.c: Likewise.
61194         * tests/test-vsnprintf-posix.c: Likewise.
61195         * tests/test-vsnprintf.c: Likewise.
61196         * tests/test-vsprintf-posix.c: Likewise.
61197         * tests/test-wchar.c: Likewise.
61198         * tests/test-wctype.c: Likewise.
61199         * tests/test-wcwidth.c: Likewise.
61200         * tests/test-xstrtol.c: Likewise.
61201         * tests/test-xvasprintf.c: Likewise.
61202         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
61203         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
61204         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61205         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61206         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61207         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
61208         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61209         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61210         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61211         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
61212         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61213         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61214         * tests/uniname/test-uninames.c: Likewise.
61215         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
61216         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
61217         * tests/unistdio/test-u16-printf1.h: Likewise.
61218         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
61219         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
61220         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
61221         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
61222         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
61223         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
61224         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
61225         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
61226         * tests/unistdio/test-u32-printf1.h: Likewise.
61227         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
61228         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
61229         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
61230         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
61231         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
61232         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
61233         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
61234         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
61235         * tests/unistdio/test-u8-printf1.h: Likewise.
61236         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
61237         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
61238         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
61239         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
61240         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
61241         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
61242         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
61243         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
61244         * tests/unistdio/test-ulc-printf1.h: Likewise.
61245         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
61246         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
61247         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
61248         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
61249         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
61250         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
61251         * tests/uniwidth/test-u16-strwidth.c: Likewise.
61252         * tests/uniwidth/test-u16-width.c: Likewise.
61253         * tests/uniwidth/test-u32-strwidth.c: Likewise.
61254         * tests/uniwidth/test-u32-width.c: Likewise.
61255         * tests/uniwidth/test-u8-strwidth.c: Likewise.
61256         * tests/uniwidth/test-u8-width.c: Likewise.
61257         * tests/uniwidth/test-uc_width.c: Likewise.
61258         * config/srclist-update: Likewise.
61259         (fixlicense): Update to GPLv3+.
61260
61261         Change copyright notice from LGPLv2.1+ to LGPLv3+.
61262         * tests/test-tsearch.c: Change copyright notice.
61263
61264         Change copyright notice from LGPLv2.0+ to LGPLv3+.
61265         * lib/c-strcaseeq.h: Change copyright notice.
61266         * lib/streq.h: Likewise.
61267         * lib/uniconv.h: Likewise.
61268         * lib/uniconv/u-conv-from-enc.h: Likewise.
61269         * lib/uniconv/u-conv-to-enc.h: Likewise.
61270         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61271         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61272         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61273         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61274         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61275         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61276         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61277         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61278         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61279         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61280         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61281         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61282         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61283         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
61284         * lib/uniconv/u8-conv-from-enc.c: Likewise.
61285         * lib/uniconv/u8-conv-to-enc.c: Likewise.
61286         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
61287         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
61288         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
61289         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
61290         * lib/uniname.h: Likewise.
61291         * lib/uniname/uniname.c: Likewise.
61292         * lib/unistdio.h: Likewise.
61293         * lib/unistdio/u-asnprintf.h: Likewise.
61294         * lib/unistdio/u-asprintf.h: Likewise.
61295         * lib/unistdio/u-printf-args.c: Likewise.
61296         * lib/unistdio/u-printf-args.h: Likewise.
61297         * lib/unistdio/u-printf-parse.h: Likewise.
61298         * lib/unistdio/u-snprintf.h: Likewise.
61299         * lib/unistdio/u-sprintf.h: Likewise.
61300         * lib/unistdio/u-vasprintf.h: Likewise.
61301         * lib/unistdio/u-vsnprintf.h: Likewise.
61302         * lib/unistdio/u-vsprintf.h: Likewise.
61303         * lib/unistdio/u16-asnprintf.c: Likewise.
61304         * lib/unistdio/u16-asprintf.c: Likewise.
61305         * lib/unistdio/u16-printf-parse.c: Likewise.
61306         * lib/unistdio/u16-snprintf.c: Likewise.
61307         * lib/unistdio/u16-sprintf.c: Likewise.
61308         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
61309         * lib/unistdio/u16-u16-asprintf.c: Likewise.
61310         * lib/unistdio/u16-u16-snprintf.c: Likewise.
61311         * lib/unistdio/u16-u16-sprintf.c: Likewise.
61312         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
61313         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
61314         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
61315         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
61316         * lib/unistdio/u16-vasnprintf.c: Likewise.
61317         * lib/unistdio/u16-vasprintf.c: Likewise.
61318         * lib/unistdio/u16-vsnprintf.c: Likewise.
61319         * lib/unistdio/u16-vsprintf.c: Likewise.
61320         * lib/unistdio/u32-asnprintf.c: Likewise.
61321         * lib/unistdio/u32-asprintf.c: Likewise.
61322         * lib/unistdio/u32-printf-parse.c: Likewise.
61323         * lib/unistdio/u32-snprintf.c: Likewise.
61324         * lib/unistdio/u32-sprintf.c: Likewise.
61325         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
61326         * lib/unistdio/u32-u32-asprintf.c: Likewise.
61327         * lib/unistdio/u32-u32-snprintf.c: Likewise.
61328         * lib/unistdio/u32-u32-sprintf.c: Likewise.
61329         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
61330         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
61331         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
61332         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
61333         * lib/unistdio/u32-vasnprintf.c: Likewise.
61334         * lib/unistdio/u32-vasprintf.c: Likewise.
61335         * lib/unistdio/u32-vsnprintf.c: Likewise.
61336         * lib/unistdio/u32-vsprintf.c: Likewise.
61337         * lib/unistdio/u8-asnprintf.c: Likewise.
61338         * lib/unistdio/u8-asprintf.c: Likewise.
61339         * lib/unistdio/u8-printf-parse.c: Likewise.
61340         * lib/unistdio/u8-snprintf.c: Likewise.
61341         * lib/unistdio/u8-sprintf.c: Likewise.
61342         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
61343         * lib/unistdio/u8-u8-asprintf.c: Likewise.
61344         * lib/unistdio/u8-u8-snprintf.c: Likewise.
61345         * lib/unistdio/u8-u8-sprintf.c: Likewise.
61346         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
61347         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
61348         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
61349         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
61350         * lib/unistdio/u8-vasnprintf.c: Likewise.
61351         * lib/unistdio/u8-vasprintf.c: Likewise.
61352         * lib/unistdio/u8-vsnprintf.c: Likewise.
61353         * lib/unistdio/u8-vsprintf.c: Likewise.
61354         * lib/unistdio/ulc-asnprintf.c: Likewise.
61355         * lib/unistdio/ulc-asprintf.c: Likewise.
61356         * lib/unistdio/ulc-printf-parse.c: Likewise.
61357         * lib/unistdio/ulc-snprintf.c: Likewise.
61358         * lib/unistdio/ulc-sprintf.c: Likewise.
61359         * lib/unistdio/ulc-vasnprintf.c: Likewise.
61360         * lib/unistdio/ulc-vasprintf.c: Likewise.
61361         * lib/unistdio/ulc-vsnprintf.c: Likewise.
61362         * lib/unistdio/ulc-vsprintf.c: Likewise.
61363         * lib/unistr.h: Likewise.
61364         * lib/unistr/u-cpy-alloc.h: Likewise.
61365         * lib/unistr/u-cpy.h: Likewise.
61366         * lib/unistr/u-endswith.h: Likewise.
61367         * lib/unistr/u-move.h: Likewise.
61368         * lib/unistr/u-set.h: Likewise.
61369         * lib/unistr/u-startswith.h: Likewise.
61370         * lib/unistr/u-stpcpy.h: Likewise.
61371         * lib/unistr/u-stpncpy.h: Likewise.
61372         * lib/unistr/u-strcat.h: Likewise.
61373         * lib/unistr/u-strcpy.h: Likewise.
61374         * lib/unistr/u-strcspn.h: Likewise.
61375         * lib/unistr/u-strdup.h: Likewise.
61376         * lib/unistr/u-strlen.h: Likewise.
61377         * lib/unistr/u-strncat.h: Likewise.
61378         * lib/unistr/u-strncpy.h: Likewise.
61379         * lib/unistr/u-strnlen.h: Likewise.
61380         * lib/unistr/u-strpbrk.h: Likewise.
61381         * lib/unistr/u-strspn.h: Likewise.
61382         * lib/unistr/u-strstr.h: Likewise.
61383         * lib/unistr/u-strtok.h: Likewise.
61384         * lib/unistr/u16-check.c: Likewise.
61385         * lib/unistr/u16-chr.c: Likewise.
61386         * lib/unistr/u16-cmp.c: Likewise.
61387         * lib/unistr/u16-cpy-alloc.c: Likewise.
61388         * lib/unistr/u16-cpy.c: Likewise.
61389         * lib/unistr/u16-endswith.c: Likewise.
61390         * lib/unistr/u16-mblen.c: Likewise.
61391         * lib/unistr/u16-mbsnlen.c: Likewise.
61392         * lib/unistr/u16-mbtouc-aux.c: Likewise.
61393         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
61394         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
61395         * lib/unistr/u16-mbtouc.c: Likewise.
61396         * lib/unistr/u16-mbtoucr.c: Likewise.
61397         * lib/unistr/u16-move.c: Likewise.
61398         * lib/unistr/u16-next.c: Likewise.
61399         * lib/unistr/u16-prev.c: Likewise.
61400         * lib/unistr/u16-set.c: Likewise.
61401         * lib/unistr/u16-startswith.c: Likewise.
61402         * lib/unistr/u16-stpcpy.c: Likewise.
61403         * lib/unistr/u16-stpncpy.c: Likewise.
61404         * lib/unistr/u16-strcat.c: Likewise.
61405         * lib/unistr/u16-strchr.c: Likewise.
61406         * lib/unistr/u16-strcmp.c: Likewise.
61407         * lib/unistr/u16-strcpy.c: Likewise.
61408         * lib/unistr/u16-strcspn.c: Likewise.
61409         * lib/unistr/u16-strdup.c: Likewise.
61410         * lib/unistr/u16-strlen.c: Likewise.
61411         * lib/unistr/u16-strmblen.c: Likewise.
61412         * lib/unistr/u16-strmbtouc.c: Likewise.
61413         * lib/unistr/u16-strncat.c: Likewise.
61414         * lib/unistr/u16-strncmp.c: Likewise.
61415         * lib/unistr/u16-strncpy.c: Likewise.
61416         * lib/unistr/u16-strnlen.c: Likewise.
61417         * lib/unistr/u16-strpbrk.c: Likewise.
61418         * lib/unistr/u16-strrchr.c: Likewise.
61419         * lib/unistr/u16-strspn.c: Likewise.
61420         * lib/unistr/u16-strstr.c: Likewise.
61421         * lib/unistr/u16-strtok.c: Likewise.
61422         * lib/unistr/u16-to-u32.c: Likewise.
61423         * lib/unistr/u16-to-u8.c: Likewise.
61424         * lib/unistr/u16-uctomb-aux.c: Likewise.
61425         * lib/unistr/u16-uctomb.c: Likewise.
61426         * lib/unistr/u32-check.c: Likewise.
61427         * lib/unistr/u32-chr.c: Likewise.
61428         * lib/unistr/u32-cmp.c: Likewise.
61429         * lib/unistr/u32-cpy-alloc.c: Likewise.
61430         * lib/unistr/u32-cpy.c: Likewise.
61431         * lib/unistr/u32-endswith.c: Likewise.
61432         * lib/unistr/u32-mblen.c: Likewise.
61433         * lib/unistr/u32-mbsnlen.c: Likewise.
61434         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
61435         * lib/unistr/u32-mbtouc.c: Likewise.
61436         * lib/unistr/u32-mbtoucr.c: Likewise.
61437         * lib/unistr/u32-move.c: Likewise.
61438         * lib/unistr/u32-next.c: Likewise.
61439         * lib/unistr/u32-prev.c: Likewise.
61440         * lib/unistr/u32-set.c: Likewise.
61441         * lib/unistr/u32-startswith.c: Likewise.
61442         * lib/unistr/u32-stpcpy.c: Likewise.
61443         * lib/unistr/u32-stpncpy.c: Likewise.
61444         * lib/unistr/u32-strcat.c: Likewise.
61445         * lib/unistr/u32-strchr.c: Likewise.
61446         * lib/unistr/u32-strcmp.c: Likewise.
61447         * lib/unistr/u32-strcpy.c: Likewise.
61448         * lib/unistr/u32-strcspn.c: Likewise.
61449         * lib/unistr/u32-strdup.c: Likewise.
61450         * lib/unistr/u32-strlen.c: Likewise.
61451         * lib/unistr/u32-strmblen.c: Likewise.
61452         * lib/unistr/u32-strmbtouc.c: Likewise.
61453         * lib/unistr/u32-strncat.c: Likewise.
61454         * lib/unistr/u32-strncmp.c: Likewise.
61455         * lib/unistr/u32-strncpy.c: Likewise.
61456         * lib/unistr/u32-strnlen.c: Likewise.
61457         * lib/unistr/u32-strpbrk.c: Likewise.
61458         * lib/unistr/u32-strrchr.c: Likewise.
61459         * lib/unistr/u32-strspn.c: Likewise.
61460         * lib/unistr/u32-strstr.c: Likewise.
61461         * lib/unistr/u32-strtok.c: Likewise.
61462         * lib/unistr/u32-to-u16.c: Likewise.
61463         * lib/unistr/u32-to-u8.c: Likewise.
61464         * lib/unistr/u32-uctomb.c: Likewise.
61465         * lib/unistr/u8-check.c: Likewise.
61466         * lib/unistr/u8-chr.c: Likewise.
61467         * lib/unistr/u8-cmp.c: Likewise.
61468         * lib/unistr/u8-cpy-alloc.c: Likewise.
61469         * lib/unistr/u8-cpy.c: Likewise.
61470         * lib/unistr/u8-endswith.c: Likewise.
61471         * lib/unistr/u8-mblen.c: Likewise.
61472         * lib/unistr/u8-mbsnlen.c: Likewise.
61473         * lib/unistr/u8-mbtouc-aux.c: Likewise.
61474         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
61475         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
61476         * lib/unistr/u8-mbtouc.c: Likewise.
61477         * lib/unistr/u8-mbtoucr.c: Likewise.
61478         * lib/unistr/u8-move.c: Likewise.
61479         * lib/unistr/u8-next.c: Likewise.
61480         * lib/unistr/u8-prev.c: Likewise.
61481         * lib/unistr/u8-set.c: Likewise.
61482         * lib/unistr/u8-startswith.c: Likewise.
61483         * lib/unistr/u8-stpcpy.c: Likewise.
61484         * lib/unistr/u8-stpncpy.c: Likewise.
61485         * lib/unistr/u8-strcat.c: Likewise.
61486         * lib/unistr/u8-strchr.c: Likewise.
61487         * lib/unistr/u8-strcmp.c: Likewise.
61488         * lib/unistr/u8-strcpy.c: Likewise.
61489         * lib/unistr/u8-strcspn.c: Likewise.
61490         * lib/unistr/u8-strdup.c: Likewise.
61491         * lib/unistr/u8-strlen.c: Likewise.
61492         * lib/unistr/u8-strmblen.c: Likewise.
61493         * lib/unistr/u8-strmbtouc.c: Likewise.
61494         * lib/unistr/u8-strncat.c: Likewise.
61495         * lib/unistr/u8-strncmp.c: Likewise.
61496         * lib/unistr/u8-strncpy.c: Likewise.
61497         * lib/unistr/u8-strnlen.c: Likewise.
61498         * lib/unistr/u8-strpbrk.c: Likewise.
61499         * lib/unistr/u8-strrchr.c: Likewise.
61500         * lib/unistr/u8-strspn.c: Likewise.
61501         * lib/unistr/u8-strstr.c: Likewise.
61502         * lib/unistr/u8-strtok.c: Likewise.
61503         * lib/unistr/u8-to-u16.c: Likewise.
61504         * lib/unistr/u8-to-u32.c: Likewise.
61505         * lib/unistr/u8-uctomb-aux.c: Likewise.
61506         * lib/unistr/u8-uctomb.c: Likewise.
61507         * lib/unitypes.h: Likewise.
61508         * lib/uniwidth.h: Likewise.
61509         * lib/uniwidth/cjk.h: Likewise.
61510         * lib/uniwidth/u16-strwidth.c: Likewise.
61511         * lib/uniwidth/u16-width.c: Likewise.
61512         * lib/uniwidth/u32-strwidth.c: Likewise.
61513         * lib/uniwidth/u32-width.c: Likewise.
61514         * lib/uniwidth/u8-strwidth.c: Likewise.
61515         * lib/uniwidth/u8-width.c: Likewise.
61516         * lib/uniwidth/width.c: Likewise.
61517
61518 2007-10-07  Bruno Haible  <bruno@clisp.org>
61519
61520         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
61521         The file is still under LGPL (see modules/inttypes).
61522
61523 2007-10-06  Bruno Haible  <bruno@clisp.org>
61524
61525         * modules/trunc (Dependencies): Add 'extensions'.
61526         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
61527         Reported by Ben Pfaff <blp@gnu.org>.
61528
61529 2007-10-06  Bruno Haible  <bruno@clisp.org>
61530
61531         * modules/freopen-tests: New file.
61532         * tests/test-freopen.c: New file.
61533
61534         * modules/fopen-tests: New file.
61535         * tests/test-fopen.c: New file.
61536
61537         * modules/fopen: New file.
61538         * lib/fopen.c: New file.
61539         * m4/fopen.m4: New file.
61540         * modules/freopen: New file.
61541         * lib/freopen.c: New file.
61542         * m4/freopen.m4: New file.
61543         * lib/stdio.in.h (fopen, freopen): New declarations.
61544         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
61545         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61546         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
61547         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61548         * doc/functions/fopen.texi: Mention the 'fopen' module.
61549         * doc/functions/freopen.texi: Mention the 'freopen' module.
61550
61551 2007-10-06  Bruno Haible  <bruno@clisp.org>
61552
61553         * modules/open-tests: New file.
61554         * tests/test-open.c: New file.
61555
61556         * modules/open: New file.
61557         * lib/open.c: New file.
61558         * m4/open.m4: New file.
61559         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
61560         lib/open.c does.
61561         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
61562         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
61563         macros.
61564         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
61565         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
61566         REPLACE_OPEN.
61567         * doc/functions/open.texi: Mention the 'open' module.
61568
61569 2007-10-04  Bruno Haible  <bruno@clisp.org>
61570
61571         * modules/ceill-tests: New file.
61572         * tests/test-ceill.c: New file.
61573
61574         * modules/ceill: New file.
61575         * lib/ceill.c: Replace entire file.
61576         * m4/ceill.m4: New file.
61577         * lib/math.in.h (ceill): Replace declaration.
61578         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
61579         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
61580         * doc/functions/ceill.texi: Mention the 'ceill' module.
61581         * modules/mathl (Files): Remove lib/ceill.c.
61582         (Depends-on): Add ceill.
61583
61584 2007-10-04  Bruno Haible  <bruno@clisp.org>
61585
61586         * modules/ceilf-tests: New file.
61587         * tests/test-ceilf.c: New file.
61588
61589         * modules/ceilf: New file.
61590         * lib/ceil.c: New file.
61591         * lib/ceilf.c: New file.
61592         * m4/ceilf.m4: New file.
61593         * lib/math.in.h (ceilf): New declaration.
61594         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
61595         HAVE_DECL_CEILF.
61596         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
61597         HAVE_DECL_CEILF.
61598         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
61599
61600 2007-10-04  Bruno Haible  <bruno@clisp.org>
61601
61602         * modules/floorl-tests: New file.
61603         * tests/test-floorl.c: New file.
61604
61605         * modules/floorl: New file.
61606         * lib/floorl.c: Replace entire file.
61607         * m4/floorl.m4: New file.
61608         * lib/math.in.h (floorl): Replace declaration.
61609         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
61610         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
61611         * doc/functions/floorl.texi: Mention the 'floorl' module.
61612         * modules/mathl (Files): Remove lib/floorl.c.
61613         (Depends-on): Add floorl.
61614
61615 2007-10-04  Bruno Haible  <bruno@clisp.org>
61616
61617         * modules/floorf-tests: New file.
61618         * tests/test-floorf.c: New file.
61619
61620         * modules/floorf: New file.
61621         * lib/floor.c: New file.
61622         * lib/floorf.c: New file.
61623         * m4/floorf.m4: New file.
61624         * lib/math.in.h (floorf): New declaration.
61625         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
61626         HAVE_DECL_FLOORF.
61627         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
61628         HAVE_DECL_FLOORF.
61629         * doc/functions/floorf.texi: Mention the 'floorf' module.
61630
61631 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
61632             Bruno Haible  <bruno@clisp.org>
61633
61634         Advertise for the Git server instead of the CVS server.
61635         * doc/gnulib-intro.texi (Steady Development): Mention the Git
61636         repository instead of the CVS one.
61637         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
61638         about all VCS systems generically.
61639         * doc/gnulib.texi (Introduction): Capitalize `Git'.
61640
61641 2007-10-04  Bruno Haible  <bruno@clisp.org>
61642
61643         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
61644         means.
61645         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
61646
61647 2007-10-04  Bruno Haible  <bruno@clisp.org>
61648
61649         * modules/truncl-tests: New file.
61650         * tests/test-truncl.c: New file.
61651
61652         * modules/truncl: New file.
61653         * lib/truncl.c: New file.
61654         * m4/truncl.m4: New file.
61655         * lib/math.in.h (truncl): New declaration.
61656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
61657         HAVE_DECL_TRUNCL.
61658         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
61659         HAVE_DECL_TRUNCL.
61660         * doc/functions/truncl.texi: Mention the 'truncl' module.
61661
61662 2007-10-04  Bruno Haible  <bruno@clisp.org>
61663
61664         * modules/truncf-tests: New file.
61665         * tests/test-truncf.c: New file.
61666
61667         * modules/truncf: New file.
61668         * lib/trunc.c: Make paramerizable through USE_* macros.
61669         * lib/truncf.c: New file.
61670         * m4/truncf.m4: New file.
61671         * lib/math.in.h (truncf): New declaration.
61672         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
61673         HAVE_DECL_TRUNCF.
61674         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
61675         HAVE_DECL_TRUNCF.
61676         * doc/functions/truncf.texi: Mention the 'truncf' module.
61677
61678 2007-10-03  Bruno Haible  <bruno@clisp.org>
61679
61680         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61681         augmentation also for tests modules.
61682         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
61683         * modules/atexit-tests (Makefile.am): Likewise.
61684         * modules/binary-io-tests (Makefile.am): Likewise.
61685         * modules/c-strcase-tests (Makefile.am): Likewise.
61686         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
61687         * modules/canonicalize-tests (Makefile.am): Likewise.
61688         * modules/closein-tests (Makefile.am): Likewise.
61689         * modules/fprintf-posix-tests (Makefile.am): Likewise.
61690         * modules/freadahead-tests (Makefile.am): Likewise.
61691         * modules/fseek-tests (Makefile.am): Likewise.
61692         * modules/fseeko-tests (Makefile.am): Likewise.
61693         * modules/ftell-tests (Makefile.am): Likewise.
61694         * modules/ftello-tests (Makefile.am): Likewise.
61695         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
61696         * modules/isnanl-tests (Makefile.am): Likewise.
61697         * modules/lseek-tests (Makefile.am): Likewise.
61698         * modules/mbscasecmp-tests (Makefile.am): Likewise.
61699         * modules/mbscasestr-tests (Makefile.am): Likewise.
61700         * modules/mbschr-tests (Makefile.am): Likewise.
61701         * modules/mbscspn-tests (Makefile.am): Likewise.
61702         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
61703         * modules/mbspbrk-tests (Makefile.am): Likewise.
61704         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
61705         * modules/mbsrchr-tests (Makefile.am): Likewise.
61706         * modules/mbsspn-tests (Makefile.am): Likewise.
61707         * modules/mbsstr-tests (Makefile.am): Likewise.
61708         * modules/printf-posix-tests (Makefile.am): Likewise.
61709         * modules/snprintf-posix-tests (Makefile.am): Likewise.
61710         * modules/sprintf-posix-tests (Makefile.am): Likewise.
61711         * modules/tsearch-tests (Makefile.am): Likewise.
61712         * modules/uniname/uniname-tests (Makefile.am): Likewise.
61713         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
61714         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
61715         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
61716         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
61717         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
61718         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
61719         * modules/vprintf-posix-tests (Makefile.am): Likewise.
61720         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
61721         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
61722         * modules/xstrtoimax-tests (Makefile.am): Likewise.
61723         * modules/xstrtol-tests (Makefile.am): Likewise.
61724         * modules/xstrtoumax-tests (Makefile.am): Likewise.
61725         * modules/yesno-tests (Makefile.am): Likewise.
61726
61727 2007-10-03  Bruno Haible  <bruno@clisp.org>
61728
61729         * modules/trunc-tests: New file.
61730         * tests/test-trunc.c: New file.
61731
61732         * modules/trunc: New file.
61733         * lib/trunc.c: New file.
61734         * m4/trunc.m4: New file.
61735         * lib/math.in.h (trunc): New declaration.
61736         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
61737         HAVE_DECL_TRUNC.
61738         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
61739         HAVE_DECL_TRUNC.
61740         * doc/functions/trunc.texi: Mention the 'trunc' module.
61741
61742 2007-10-03  Bruno Haible  <bruno@clisp.org>
61743
61744         * tests/test-fpending.c: New file, mostly copied
61745         from coreutils/lib/t-fpending.c.
61746         * modules/fpending-tests: New file.
61747
61748 2007-10-03  Bruno Haible  <bruno@clisp.org>
61749
61750         Port the stdio extensions to QNX (untested).
61751         * lib/fseterr.c (fseterr): Add support for QNX.
61752         * lib/fbufmode.c (fbufmode): Likewise.
61753         * lib/freadable.c (freadable): Likewise.
61754         * lib/fwritable.c (fwritable): Likewise.
61755         * lib/freading.c (freading): Likewise.
61756         * lib/fwriting.c (fwriting): Likewise.
61757         * lib/freadahead.c (freadahed): Likewise.
61758         * lib/fpurge.c (fpurge): Likewise.
61759         * lib/fseeko.c (rpl_fseeko): Likewise.
61760
61761 2007-10-03  Bruno Haible  <bruno@clisp.org>
61762             Jim Meyering  <jim@meyering.net>
61763             Eric Blake  <ebb9@byu.net>
61764
61765         * doc/relocatable.texi: Use @command instead of @program.
61766
61767 2007-10-02  Jim Meyering  <jim@meyering.net>
61768
61769         Perform one more "_.h" -> ".in.h" substitution.
61770         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
61771         instead of unistd_.h here, too.
61772
61773 2007-10-01  Bruno Haible  <bruno@clisp.org>
61774
61775         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
61776         Needed for the alloca-opt module.
61777
61778 2007-09-30  Bruno Haible  <bruno@clisp.org>
61779
61780         * lib/alloca.in.h: Renamed from lib/alloca_.h.
61781         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
61782         alloca_.h.
61783         * lib/argz.in.h: Renamed from lib/argz_.h.
61784         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
61785         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
61786         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
61787         byteswap_.h.
61788         * lib/dirent.in.h: Renamed from lib/dirent_.h.
61789         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
61790         dirent_.h.
61791         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
61792         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
61793         fcntl_.h.
61794         * lib/float.in.h: Renamed from lib/float_.h.
61795         * modules/float (Files, Makefile.am): Use float.in.h instead of
61796         float_.h.
61797         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
61798         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
61799         fnmatch_.h.
61800         * lib/getopt.in.h: Renamed from lib/getopt_.h.
61801         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
61802         getopt_.h.
61803         * lib/glob.in.h: Renamed from lib/glob_.h.
61804         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
61805         * lib/iconv.in.h: Renamed from lib/iconv_.h.
61806         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
61807         iconv_.h.
61808         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
61809         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
61810         inttypes_.h.
61811         * lib/locale.in.h: Renamed from lib/locale_.h.
61812         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
61813         locale_.h.
61814         * lib/math.in.h: Renamed from lib/math_.h.
61815         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
61816         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
61817         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
61818         of netinet_in_.h. Add dependency.
61819         * lib/poll.in.h: Renamed from lib/poll_.h.
61820         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
61821         * lib/search.in.h: Renamed from lib/search_.h.
61822         * modules/search (Files, Makefile.am): Use search.in.h instead of
61823         search_.h.
61824         * lib/signal.in.h: Renamed from lib/signal_.h.
61825         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
61826         _signal.h.
61827         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
61828         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
61829         stdbool_.h.
61830         * lib/stdint.in.h: Renamed from lib/stdint_.h.
61831         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
61832         stdint_.h.
61833         * lib/stdio.in.h: Renamed from lib/stdio_.h.
61834         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
61835         stdio_.h.
61836         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
61837         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
61838         stdlib_.h.
61839         * lib/string.in.h: Renamed from lib/string_.h.
61840         * modules/string (Files, Makefile.am): Use string.in.h instead of
61841         string_.h.
61842         * doc/gnulib-tool.texi (Initial import): Update.
61843         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
61844         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
61845         of sys_select_.h. Add dependency.
61846         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
61847         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
61848         of sys_socket_.h.
61849         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
61850         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
61851         sys_stat_.h.
61852         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
61853         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
61854         sys_time_.h.
61855         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
61856         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
61857         sysexits_.h.
61858         * lib/time.in.h: Renamed from lib/time_.h.
61859         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
61860         * lib/unistd.in.h: Renamed from lib/unistd_.h.
61861         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
61862         unistd_.h.
61863         * lib/wchar.in.h: Renamed from lib/wchar_.h.
61864         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
61865         wchar_.h.
61866         * lib/wctype.in.h: Renamed from lib/wctype_.h.
61867         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
61868         wctype_.h.
61869         * build-aux/bootstrap (slurp): Update.
61870         * lib/.cppi-disable: Update.
61871
61872 2007-09-30  Bruno Haible  <bruno@clisp.org>
61873
61874         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
61875         Needed on BeOS.
61876
61877 2007-09-30  Bruno Haible  <bruno@clisp.org>
61878
61879         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
61880
61881 2007-09-29  Bruno Haible  <bruno@clisp.org>
61882
61883         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
61884
61885 2007-09-29  Bruno Haible  <bruno@clisp.org>
61886
61887         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
61888         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
61889         * build-aux/install-reloc: Compile also areadlink.c.
61890         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
61891
61892 2007-09-29  Bruno Haible  <bruno@clisp.org>
61893
61894         * gnulib-tool (func_emit_initmacro_done): Indentation.
61895
61896 2007-09-29  Bruno Haible  <bruno@clisp.org>
61897
61898         * README: Add CVS checkout update instructions.
61899         Info from Bob Proulx <bob@proulx.com>.
61900
61901 2007-09-28  Eric Blake  <ebb9@byu.net>
61902
61903         Provide move-if-change.
61904         * build-aux/move-if-change: New file, based on best practice
61905         rather than any canonical upstream location.
61906
61907 2007-09-28  Jim Meyering  <jim@meyering.net>
61908
61909         Fix canonicalize loop-detection corner case.
61910         Do not attempt to stat the symlink values stored via seen_triple.
61911         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
61912         on linux-2.6.18, (but not 2.6.22).
61913         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
61914         triple_compare.  The former compares dev,ino,filename, while the latter
61915         would actually stat dirname(filename) when dev and ino were equal.
61916         * lib/hash-triple.c: Install <string.h>.
61917         (STREQ): Define.
61918         (triple_compare_ino_str): New function.
61919         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
61920
61921 2007-09-28  Eric Blake  <ebb9@byu.net>
61922
61923         Enforce that AC_REPLACE_FUNCS files exist.
61924         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
61925         override check for typos.
61926
61927         Fix test-closein on Solaris 10.
61928         * tests/test-closein.c (main): Don't assume stdin can be inherited
61929         closed on all systems.
61930         * tests/test-closein.sh: Likewise.
61931         Reported by Piotr Tarnowski.
61932
61933 2007-09-28  Jim Meyering  <jim@meyering.net>
61934
61935         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
61936
61937 2007-09-27  Jim Meyering  <jim@meyering.net>
61938
61939         canonicalize: Avoid a false-positive cycle failure.
61940         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
61941         Sort.  Remove cycle-check.
61942         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
61943         not cycle-check.h.
61944         (seen_triple): New function.
61945         (canonicalize_filename_mode): Use it instead of cycle-check.
61946         * tests/test-canonicalize.c: Add a test for this bug.
61947         * tests/test-canonicalize.sh: Set up and run the test.
61948
61949         New module, file-set, from coreutils.
61950         * modules/file-set: Define it.
61951         * lib/file-set.c, lib/file-set.h: Implement.
61952
61953         New module, hash-triple, from coreutils.
61954         * modules/hash-triple: Define it.
61955         * lib/hash-triple.c, lib/hash-triple.h: Implement.
61956
61957 2007-09-25  Eric Blake  <ebb9@byu.net>
61958
61959         Fix strerror on Interix.
61960         * lib/string_.h (strerror): Declare replacement.
61961         * doc/functions/strerror.texi (strerror): Document the Interix
61962         shortcoming.
61963         * modules/string (Makefile.am): Support new hooks.
61964         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
61965         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
61966         gl_FUNC_STRERROR_SEPARATE.
61967         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
61968         * lib/strerror.c (rpl_strerror): Provide replacement.
61969         * modules/strerror (Depends-on): Add string.
61970         (configure.ac): Detect use of module.
61971         * tests/test-strerror.c: New file.
61972         * modules/strerror-tests: New test module.
61973         * modules/argp (Depends-on): Add strerror.
61974         * modules/error (Depends-on): Likewise.
61975         Reported by Martin Koeppe.
61976
61977 2007-09-24  Bruno Haible  <bruno@clisp.org>
61978
61979         * README: Update git instructions.
61980
61981 2007-09-24  Eric Blake  <ebb9@byu.net>
61982
61983         Revert fpending breakage from 2007-09-08.
61984         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
61985         __fpending.c.
61986
61987 2007-09-24  Jim Meyering  <jim@meyering.net>
61988
61989         filenamecat.c: Add a test.
61990         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
61991         showing how the function works when DIR is the empty string.
61992
61993 2007-09-21  Simon Josefsson  <simon@josefsson.org>
61994
61995         * tests/test-canonicalize.sh: Turn on executable bit.
61996
61997 2007-09-19  Eric Blake  <ebb9@byu.net>
61998
61999         * README: Update CVS instructions.
62000
62001 2007-09-18  Bruno Haible  <bruno@clisp.org>
62002
62003         * modules/areadlink: New file.
62004         * lib/areadlink.h (areadlink): New declaration.
62005         * lib/areadlink.c: New file, based on lib/xreadlink.c.
62006
62007 2007-09-17  Jim Meyering  <jim@meyering.net>
62008
62009         * lib/savewd.c (ESTALE) [!defined]: Define.
62010         Reported to be required on Interix by Martin Koeppe.
62011
62012 2007-09-17  Bruno Haible  <bruno@clisp.org>
62013
62014         * gnulib-tool (func_version): Use $version.
62015
62016 2007-09-16  Bruno Haible  <bruno@clisp.org>
62017
62018         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
62019         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
62020         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
62021         Reported by Greg Schafer <gschafer@zip.com.au>.
62022
62023 2007-09-15  Bruno Haible  <bruno@clisp.org>
62024
62025         * gnulib-tool (sed): Try a little harder to make bash understand the
62026         alias.
62027         Reported by Bruce Korb <bruce.korb@gmail.com>.
62028
62029 2007-09-13  Eric Blake  <ebb9@byu.net>
62030
62031         * ChangeLog: Remove conflict markers.
62032
62033 2007-09-13  Simon Josefsson  <simon@josefsson.org>
62034
62035         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
62036         Reported by Bruno Haible <bruno@clisp.org>.
62037
62038 2007-09-12  Bruno Haible  <bruno@clisp.org>
62039
62040         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
62041         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
62042         is not defined.
62043
62044 2007-09-12  Eric Blake  <ebb9@byu.net>
62045
62046         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
62047         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
62048         Autoconf definition.
62049         * modules/euidaccess (Depends-on): Add extensions, for
62050         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
62051         * modules/fnmatch (Depends-on): Likewise.
62052         * modules/getaddrinfo (Depends-on): Likewise.
62053         * modules/getdelim (Depends-on): Likewise.
62054         * modules/getline (Depends-on): Likewise.
62055         * modules/getsubopt (Depends-on): Likewise.
62056         * modules/gettext (Depends-on): Likewise.
62057         * modules/group-member (Depends-on): Likewise.
62058         * modules/mbchar (Depends-on): Likewise.
62059         * modules/memmem (Depends-on): Likewise.
62060         * modules/mempcpy (Depends-on): Likewise.
62061         * modules/memrchr (Depends-on): Likewise.
62062         * modules/pagealign_alloc (Depends-on): Likewise.
62063         * modules/readutmp (Depends-on): Likewise.
62064         * modules/stpcpy (Depends-on): Likewise.
62065         * modules/stpncpy (Depends-on): Likewise.
62066         * modules/strchrnul (Depends-on): Likewise.
62067         * modules/strndup (Depends-on): Likewise.
62068         * modules/strsep (Depends-on): Likewise.
62069         * modules/strverscmp (Depends-on): Likewise.
62070         * modules/vasprintf (Depends-on): Likewise.
62071         * modules/wcwidth (Depends-on): Likewise.
62072         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
62073         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
62074         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
62075         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
62076         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
62077         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62078         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
62079         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
62080         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
62081         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
62082         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
62083         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
62084         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
62085         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
62086         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
62087         * m4/readutmp.m4 (gl_READUTMP): Likewise.
62088         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62089         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
62090         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
62091         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
62092         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
62093         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
62094         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
62095         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
62096         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
62097         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62098         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
62099         so that lock.m4 can be used in gettext without extensions module.
62100
62101 2007-09-11  Bruno Haible  <bruno@clisp.org>
62102
62103         * m4/isc-posix.m4: Remove file.
62104         Suggested by Eric Blake.
62105
62106 2007-09-11  Eric Blake  <ebb9@byu.net>
62107
62108         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
62109
62110 2007-09-10  Bruno Haible  <bruno@clisp.org>
62111
62112         * posix-modules: Fix typo in error message.
62113         Reported by Matt <mkraai@beckman.com>.
62114
62115 2007-09-09  Bruno Haible  <bruno@clisp.org>
62116
62117         * doc/functions/getdelim.texi: Update list of platforms lacking the
62118         function.
62119         * doc/functions/getline.texi: Likewise.
62120
62121 2007-09-09  Jim Meyering  <jim@meyering.net>
62122
62123         * lib/hash.c (hash_initialize): Detect calloc failure.
62124         Reported by Bruno Haible.
62125
62126 2007-09-09  Bruno Haible  <bruno@clisp.org>
62127
62128         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
62129         malloc or realloc fails.
62130
62131 2007-09-09  Bruno Haible  <bruno@clisp.org>
62132
62133         * modules/getcwd (Depends-on): Add malloc-posix.
62134         * modules/glob (Depends-on): Likewise.
62135         * modules/putenv (Depends-on): Likewise.
62136         * modules/strdup (Depends-on): Likewise.
62137         * modules/getdelim (Depends-on): Add realloc-posix.
62138         * modules/read-file (Depends-on): Likewise.
62139
62140 2007-09-09  Bruno Haible  <bruno@clisp.org>
62141
62142         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
62143         (gl_FUNC_MALLOC_POSIX): Require it.
62144         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
62145         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
62146         * modules/realloc (Files): Add m4/malloc.m4.
62147         * modules/calloc (Files): Likewise.
62148
62149 2007-09-09  Bruno Haible  <bruno@clisp.org>
62150
62151         * modules/malloc-posix: New file.
62152         * modules/malloc (Depends-on): Add malloc-posix.
62153         * lib/malloc.c: Include errno.h.
62154         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
62155         and a POSIX-compatible malloc into a single function. Set ENOMEM
62156         when returning NULL.
62157         * m4/malloc.m4: New file.
62158         * doc/functions/malloc.texi: Mention the malloc-posix module.
62159         * lib/stdlib_.h (malloc): New declaration.
62160         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62161         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
62162         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
62163         and HAVE_MALLOC_POSIX.
62164
62165 2007-09-09  Bruno Haible  <bruno@clisp.org>
62166
62167         * modules/realloc-posix: New file.
62168         * modules/realloc (Depends-on): Add realloc-posix.
62169         * lib/realloc.c: Include errno.h.
62170         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
62171         and a POSIX-compatible realloc into a single function. Set ENOMEM
62172         when returning NULL.
62173         * m4/realloc.m4: New file.
62174         * doc/functions/realloc.texi: Mention the realloc-posix module.
62175         * lib/stdlib_.h (realloc): New declaration.
62176         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62177         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
62178         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
62179         and HAVE_REALLOC_POSIX.
62180
62181 2007-09-09  Bruno Haible  <bruno@clisp.org>
62182
62183         * modules/calloc-posix: New file.
62184         * modules/calloc (Depends-on): Add calloc-posix.
62185         * lib/calloc.c: Include errno.h.
62186         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
62187         and a POSIX-compatible calloc into a single function. Set ENOMEM
62188         when returning NULL.
62189         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
62190         * doc/functions/calloc.texi: Mention the calloc-posix module.
62191         * lib/stdlib_.h (calloc): New declaration.
62192         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
62193         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
62194         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
62195         and HAVE_CALLOC_POSIX.
62196
62197 2007-09-09  Bruno Haible  <bruno@clisp.org>
62198
62199         Allow for modules to show an arbitrary notice.
62200         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
62201         * gnulib-tool: New option --extract-notice.
62202         (func_usage): Document it.
62203         (sed_extract_prog): Update.
62204         (func_get_notice): New function.
62205         (func_modules_notice): New function.
62206         (func_import, func_create_testdir): Invoke it.
62207         Suggested by Jim Meyering.
62208
62209 2007-09-09  Bruno Haible  <bruno@clisp.org>
62210
62211         * gnulib-tool: New options --verbose, --quiet.
62212         (func_usage): Document them.
62213         (verbose): New variable.
62214         (func_execute_command): New function.
62215         (func_import): Don't show the module list and the file list if
62216         $verbose < 0.
62217         (func_create_testdir): Likewise. Use func_execute_command.
62218         (func_create_megatestdir): Use func_execute_command.
62219
62220 2007-09-08  Bruno Haible  <bruno@clisp.org>
62221
62222         * gnulib-tool (func_import): Prefer rsync over wget when available,
62223         for fetching the PO files.
62224
62225 2007-09-08  Bruno Haible  <bruno@clisp.org>
62226
62227         * posix-modules: New file. Portions copied from gnulib-tool.
62228         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
62229
62230 2007-09-08  Jim Meyering  <jim@meyering.net>
62231
62232         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
62233         * lib/fpending.h: Rename from __fpending.h.
62234         * lib/fpending.c: Rename from __fpending.c.
62235         Include "fpending.h", not "__fpending.h".
62236         * lib/__fpending.h, lib/__fpending.c: Remove files.
62237         * modules/fpending (Files): Reflect new file names.
62238         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
62239
62240 2007-09-08  Bruno Haible  <bruno@clisp.org>
62241
62242         * m4/inttypes-h.m4: Remove stub file.
62243
62244 2007-09-07  Simon Josefsson  <simon@josefsson.org>
62245
62246         * doc/headers/stdint.texi: Discuss #include_next issue.
62247
62248 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
62249
62250         * build-aux/bootstrap: Remove obsolete comment about wget --help.
62251
62252 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62253
62254         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
62255         in variable name.
62256
62257 2007-09-03  Jim Meyering  <jim@meyering.net>
62258
62259         New module: git-version-gen.
62260         * modules/git-version-gen: New file.
62261
62262         Import changes from coreutils for bootstrap script.
62263
62264         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
62265
62266         bootstrap: uses rsync to download the .po files
62267         * build-aux/bootstrap (po_download_command_format): New global.
62268         (download_po_files): Use rsync.
62269         (update_po_files): Don't remove .po files after download,
62270         so future rsync runs can take advantage of the copies.
62271
62272         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62273
62274         Solve the unnecessary-.po-file-regeneration problem once and for all.
62275         * build-aux/bootstrap (download_po_files): New function, renamed from
62276         get_translations.  Now, downloads, but doesn't update LINGUAS.
62277         (update_po_files): New function.
62278
62279         bootstrap: Ignore more.
62280         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62281         uniwidth to e.g., lib/.gitignore.
62282         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62283
62284         * build-aux/bootstrap: New setting: vc_ignore.
62285         (insert_sorted_if_absent): Create $file if absent.
62286         Adapt to new, possibly empty, list: $vc_ignore.
62287
62288         bootstrap: generate more ignorable names
62289         * build-aux/bootstrap (slurp): When generating ignorable names,
62290         also map .sin to .sed, .gperf to .c, and .y to .c.
62291
62292 2007-09-03  Jim Meyering  <jim@meyering.net>
62293
62294         * build-aux/git-version-gen: New file, from coreutils.  For details, see
62295         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
62296
62297 2007-09-02  Bruno Haible  <bruno@clisp.org>
62298
62299         Fix mis-recognition of 'mcs' on QNX 6.
62300         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
62301         output contains the string "Mono".
62302         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
62303         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
62304
62305 2007-09-01  Bruno Haible  <bruno@clisp.org>
62306
62307         Fix collision between uniwidth/* and linebreak modules.
62308         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
62309         u32_width): Remove declarations.
62310         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
62311         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
62312         streq3, streq2, streq1, streq0): Remove functions.
62313         (STREQ): Remove macro.
62314         (is_cjk_encoding): Remove function.
62315         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
62316         (uc_width, u8_width, u16_width, u32_width): Remove functions.
62317         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
62318         * NEWS: Document the change.
62319
62320 2007-09-01  Bruno Haible  <bruno@clisp.org>
62321
62322         * lib/streq.h: Add double-inclusion guard.
62323
62324 2007-09-01  Karl Berry  <karl@gnu.org>
62325
62326         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
62327
62328 2007-08-28  Jim Meyering  <jim@meyering.net>
62329
62330         Rename mreadlink_with_size to areadlink_with_size.
62331         * NEWS: Document the change.
62332         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
62333         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
62334         * lib/mreadlink.h: Rename this to...
62335         * lib/areadlink.h: ...this.
62336         * modules/mreadlink-with-size: Rename this to...
62337         * modules/areadlink-with-size: ...this.
62338         * lib/canonicalize.c: Reflect the renaming.
62339         * modules/canonicalize: Likewise.
62340
62341 2007-08-26  Bruno Haible  <bruno@clisp.org>
62342
62343         * gnulib-tool (func_import): When deciding which files to remove,
62344         consider also dangling symbolic links.
62345         Reported by Eric Blake.
62346
62347 2007-08-26  Bruno Haible  <bruno@clisp.org>
62348
62349         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
62350
62351 2007-08-23  Simon Josefsson  <simon@josefsson.org>
62352
62353         * lib/readline.c: Don't include getline.h, the prototype is now
62354         found in stdio.h.
62355
62356 2007-08-23  Jim Meyering  <jim@meyering.net>
62357
62358         Getdelim touchup.
62359         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
62360         around the funlockfile call, since funlockfile never sets errno.
62361         Don't set errno upon failed realloc.
62362
62363 2007-08-22  Eric Blake  <ebb9@byu.net>
62364
62365         Getline touchups.
62366         * lib/getdelim.c (getdelim): Revert regression that required *n to
62367         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
62368         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
62369         getdelim, rather than whether implementation is missing.
62370         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
62371         * lib/stdio_.h (getline): Also declare if replacement is
62372         required.
62373         * doc/functions/getdelim.texi: New file.
62374         * doc/functions/getline.texi: Likewise.
62375         * doc/gnulib.texi (Function Substitutes): Add new files.
62376         Reported by Bruno Haible.
62377
62378 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
62379
62380         * users.txt: Add Guile.
62381
62382 2007-08-22  Eric Blake  <ebb9@byu.net>
62383
62384         * tests/test-getdelim.c (main): Use remove, not unlink.
62385         * tests/test-getline.c (main): Likewise.
62386
62387         Move getline and getdelim into stdio.h, per POSIX 200x.
62388         * modules/getline (Files): Remove getline.h.
62389         (Depends-on): Add stdio.
62390         (configure.ac): Add module indicator.
62391         * modules/getdelim (Files): Remove getdelim.h.
62392         (Depends-on): Add stdio.
62393         (configure.ac): Add module indicator.
62394         * modules/stdio (Makefile.am): Work with new indicators.
62395         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
62396         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
62397         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62398         * lib/getdelim.h: Delete.
62399         * lib/getline.h: Delete.
62400         * lib/stdio_.h (getdelim, getline): Declare.
62401         * modules/getdelim-tests: New module.
62402         * modules/getline-tests: Likewise.
62403         * tests/test-getdelim.c: New file.
62404         * tests/test-getline.c: Likewise.
62405         * NEWS: Document the change.
62406         * lib/getline.c: Update choice of header.
62407         * lib/csharpcomp.c: Likewise.
62408         * lib/getpass.c: Likewise.
62409         * lib/javacomp.c: Likewise.
62410         * lib/javaversion.c: Likewise.
62411         * lib/yesno.c: Likewise.
62412         * lib/getdelim.c: Likewise.
62413         (getdelim): Set errno on failure, and avoid memory leak.
62414
62415 2007-08-19  Bruno Haible  <bruno@clisp.org>
62416
62417         * modules/closein (Depends-on): Add freadahead.
62418         * lib/closein.c: Include freadahead.h.
62419         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
62420         is zero.
62421
62422 2007-08-19  Bruno Haible  <bruno@clisp.org>
62423
62424         * modules/freadahead-tests: New file.
62425         * tests/test-freadahead.sh: New file.
62426         * tests/test-freadahead.c: New file.
62427
62428         * modules/freadahead: New file.
62429         * lib/freadahead.h: New file.
62430         * lib/freadahead.c: New file.
62431         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
62432         fbufmode, fpurge, freadable, fwritable.
62433
62434 2007-08-19  Eric Blake  <ebb9@byu.net>
62435
62436         Test yesno in combination with closein.
62437         * lib/yesno.c (yesno): Document use of stdin.
62438         * modules/yesno-tests (Files): New module.
62439         * tests/test-yesno.c (main): New file.
62440         * tests/test-yesno.sh: Likewise.
62441
62442 2007-08-19  Bruno Haible  <bruno@clisp.org>
62443
62444         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
62445         * lib/fseeko.c (rpl_fseeko): Likewise.
62446         * lib/fseterr.c (fseterr): Likewise.
62447
62448 2007-08-19  Bruno Haible  <bruno@clisp.org>
62449
62450         * tests/test-lseek.c (main): Disable a test for BeOS.
62451         * doc/functions/lseek.texi: Document the BeOS bug.
62452
62453 2007-08-19  Bruno Haible  <bruno@clisp.org>
62454             Eric Blake  <ebb9@byu.net>
62455
62456         * lib/lseek.c: Include <sys/stat.h>.
62457         (rpl_lseek): Add workaround code also for Unix platforms.
62458         Needed for BeOS.
62459         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
62460         * doc/functions/lseek.texi: Document BeOS definiency.
62461
62462 2007-08-18  Bruno Haible  <bruno@clisp.org>
62463
62464         * modules/fstrcmp-tests: New file.
62465         * tests/test-fstrcmp.c: New file.
62466
62467 2007-08-18  Bruno Haible  <bruno@clisp.org>
62468
62469         * modules/fstrcmp: New file, from GNU gettext with modifications.
62470         * lib/fstrcmp.h: New file, from GNU gettext.
62471         * lib/fstrcmp.c: New file, from GNU gettext.
62472         * MODULES.html.sh (String handling): Add fstrcmp.
62473
62474 2007-08-18  Bruno Haible  <bruno@clisp.org>
62475
62476         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
62477         'bool'.
62478         (diag, compareseq): Remove const from the ctxt argument.
62479         (USE_HEURISTIC): Undefine at the end.
62480
62481 2007-08-18  Jim Meyering  <jim@meyering.net>
62482
62483         New file: lib/idcache.h
62484         * NEWS: Mention the addition.
62485         * modules/idcache (Files): Add lib/idcache.h
62486         * lib/idcache.c: Include "idcache.h".
62487         Don't include <sys/types.h>.
62488         Add a FIXME comment.
62489         Move file-scoped "static" declarations to the top.
62490         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
62491
62492 2007-08-17  Bruno Haible  <bruno@clisp.org>
62493         and Paul Eggert  <eggert@cs.ucla.edu>
62494
62495         * MODULES.html.sh: Add diffseq.
62496         * modules/diffseq: New file.
62497         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
62498         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
62499
62500 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62501
62502         Import changes from coreutils for bootstrap script.
62503
62504         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
62505
62506         * build-aux/bootstrap (slurp): Work even in environments where
62507         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
62508         current code does not slurp files whose names start with ".", and
62509         this looks like it might be a troublesome area.
62510
62511         2007-07-11  Jim Meyering  <jim@meyering.net>
62512
62513         If there's a GPL vN copyright comment, require that N == 3.
62514
62515         2007-07-08  Jim Meyering  <jim@meyering.net>
62516
62517         Run the coreutils-specific code only if tests/Makefile.am.in exists.
62518         * build-aux/bootstrap (mam_template): Move definition out of loop.
62519
62520         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
62521
62522         * build-aux/bootstrap (symlink_to_dir): Rename function from
62523         symlink_to_gnulib.  Add a directory parameter.  Update all
62524         callers.
62525         (cp_mark_as_generated): Also check for -- and link to -- files in
62526         gl/.
62527
62528         2007-07-08  Jim Meyering  <jim@meyering.net>
62529
62530         Adapt to deeper hierarchy in gnulib.
62531         * build-aux/bootstrap (symlink_to_dir): If the destination
62532         directory doesn't exist, create it. This is required at least for
62533         "lib/uniwidth/cjk.h".
62534
62535         2007-05-15  Jim Meyering  <jim@meyering.net>
62536
62537         * build-aux/bootstrap: Now that generated Makefile.am files
62538         are no longer under version control, they must be created at
62539         bootstrap time.
62540
62541 2007-08-14  Ben Pfaff  <blp@gnu.org>
62542
62543         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
62544
62545 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62546
62547         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
62548         given the changes below.
62549         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
62550         even on hosts that have padding bits beyond the supported 64.
62551
62552 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62553
62554         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
62555         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
62556         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
62557         depends on it.
62558         (xstrtol_error): Remove.
62559         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
62560         but with a different signature.
62561         (ATTRIBUTE_NORETURN, __attribute__): New macros.
62562         * lib/xstrtol-error.c: Include exitfail.h.
62563         (xstrtol_fatal): New function, with a different signature from the
62564         old xstrtol_error, so that the caller need not worry about passing
62565         in an exit status, or about storage management of the option argument.
62566         (xstrtol_error): Now a static function.  Redo signature to
62567         implement xstrtol_fatal.  Output the correct number of hyphens in
62568         front of the option so that the caller need not worry about
62569         storage management.
62570         (N_): New macro.
62571         (_): Remove; not used now.
62572         * modules/xstrtol: Depend on getopt.
62573         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
62574         of old STRTOL_FATAL_ERROR macro.
62575         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
62576         of test program.
62577         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
62578         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
62579
62580 2007-08-08  Eric Blake  <ebb9@byu.net>
62581
62582         * lib/xstrtol-error.c: Add missing include.
62583
62584         Move xstrtol messages into gnulib domain, when --pobase is used.
62585         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
62586         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
62587         * modules/xstrtol (Files): Distribute new file.
62588         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
62589         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
62590         * tests/test-xstrtol.c: ...into new file.
62591         * tests/test-xstrtoul.c: Also test xstrtoul.
62592         * tests/test-xstrtoimax.c: Also test xstrtoimax.
62593         * tests/test-xstrtoumax.c: Also test xstrtoumax.
62594         * tests/test-xstrtol.sh: Drive the tests.
62595         * tests/test-xstrtoimax.sh: Likewise.
62596         * tests/test-xstrtoumax.sh: Likewise.
62597         * modules/xstrtol-tests: New module.
62598         * modules/xstrtoimax-tests: Likewise.
62599         * modules/xstrtoumax-tests: Likewise.
62600
62601 2007-08-08  Jim Meyering  <jim@meyering.net>
62602
62603         New function: mfile_name_concat.
62604         * lib/filenamecat.c (mfile_name_concat): New function, just like
62605         file_name_concat, but return NULL upon failure rather than exiting
62606         with a diagnostic.
62607         * lib/filenamecat.h: Declare it.
62608
62609 2007-08-07  Bruno Haible  <bruno@clisp.org>
62610
62611         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
62612         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
62613         warning from gcc.
62614         Reported by Eric Blake.
62615
62616 2007-08-07  Simon Josefsson  <simon@josefsson.org>
62617
62618         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
62619         * modules/crypto/arcfour (License): Likewise.
62620         * modules/crypto/des-tests (License): Likewise.
62621         * modules/crypto/gc-arctwo-tests (License): Likewise.
62622         * modules/crypto/gc-des-tests (License): Likewise.
62623         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
62624         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
62625         * modules/crypto/gc-md2-tests (License): Likewise.
62626         * modules/crypto/gc-md4-tests (License): Likewise.
62627         * modules/crypto/gc-md5-tests (License): Likewise.
62628         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
62629         * modules/crypto/gc-rijndael-tests (License): Likewise.
62630         * modules/crypto/gc-sha1-tests (License): Likewise.
62631         * modules/crypto/gc-tests (License): Likewise.
62632         * modules/crypto/hmac-md5 (License): Likewise.
62633         * modules/crypto/hmac-sha1 (License): Likewise.
62634         * modules/crypto/md2-tests (License): Likewise.
62635         * modules/crypto/md4-tests (License): Likewise.
62636         * modules/crypto/md5 (License): Likewise.
62637         * modules/crypto/rijndael (License): Likewise.
62638         * modules/crypto/sha1 (License): Likewise.
62639         * modules/memxor (License): Likewise.
62640
62641 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62642         and Bruno Haible  <bruno@clisp.org>
62643
62644         * NEWS: Describe interface changes to human, xstrtol.
62645         * lib/human.h: Include <xstrtol.h>.
62646         (human_options): Return enum strtol_error, not int.  Remove
62647         bool arg; take int * instead.
62648         * lib/human.c: Don't include "gettext.h".
62649         (_): Remove; no longer used.
62650         Don't include <xstrtol.h>, since human.h does it.
62651         (human_options): Adjust to abovementioned interface changes.
62652         Do not report error to stderr; that's now the caller's
62653         responsibility.
62654         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
62655         interface change.
62656         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
62657         Str, Argument_type_string.  All uses changed.  Put " argument"
62658         in diagnostics to make them clearer.  Change wording of suffix
62659         message for clarity.
62660         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
62661         Argument_type_string.
62662         (STRTOL_FATAL_WARN): Remove; no longer used.
62663         * modules/human (Depends-on): Remove gettext-h.
62664
62665 2007-08-06  Simon Josefsson  <simon@josefsson.org>
62666
62667         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
62668
62669 2007-07-31  Bruno Haible  <bruno@clisp.org>
62670
62671         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
62672         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
62673         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
62674
62675 2007-07-31  Bruno Haible  <bruno@clisp.org>
62676
62677         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
62678         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
62679
62680 2007-07-30  Bruno Haible  <bruno@clisp.org>
62681
62682         * modules/base64 (License): Use the synonymous term "LGPLv2+".
62683         * modules/c-ctype (License): Likewise.
62684         * modules/c-strcase (License): Likewise.
62685         * modules/check-version (License): Likewise.
62686         * modules/iconv (License): Likewise.
62687         * modules/iconv_open (License): Likewise.
62688         * modules/read-file (License): Likewise.
62689         * modules/striconv (License): Likewise.
62690         * modules/strverscmp (License): Likewise.
62691         * modules/vasprintf (License): Likewise.
62692         * modules/crypto/des (License): Likewise.
62693         * modules/crypto/gc (License): Likewise.
62694         * modules/crypto/gc-arcfour (License): Likewise.
62695         * modules/crypto/gc-arctwo (License): Likewise.
62696         * modules/crypto/gc-des (License): Likewise.
62697         * modules/crypto/gc-hmac-md5 (License): Likewise.
62698         * modules/crypto/gc-hmac-sha1 (License): Likewise.
62699         * modules/crypto/gc-md2 (License): Likewise.
62700         * modules/crypto/gc-md4 (License): Likewise.
62701         * modules/crypto/gc-md5 (License): Likewise.
62702         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
62703         * modules/crypto/gc-random (License): Likewise.
62704         * modules/crypto/gc-rijndael (License): Likewise.
62705         * modules/crypto/gc-sha1 (License): Likewise.
62706         * modules/crypto/md2 (License): Likewise.
62707         * modules/crypto/md4 (License): Likewise.
62708
62709 2007-07-30  Jim Meyering  <jim@meyering.net>
62710
62711         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
62712         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
62713         it has valid stat data.  This bug would cause du not to count the
62714         sizes of inaccessible directories.
62715         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
62716         in <http://bugzilla.redhat.com/250077>.
62717
62718 2007-07-25  Peter O'Gorman  <peter@pogma.com>
62719             Bruno Haible  <bruno@clisp.org>
62720
62721         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
62722         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
62723         #include_next, gives a diagnostic about it, but reports no error in
62724         the exit code.
62725         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
62726
62727 2007-07-24  Ben Pfaff  <blp@gnu.org>
62728
62729         Improve name: "count-one-bits" is better than "popcount".
62730         * MODULES.html.sh: Update name.
62731         * lib/popcount.h: Renamed lib/count-one-bits.h.
62732         (popcount): Renamed count_one_bits.
62733         (popcountl): Renamed count_one_bits_l.
62734         (popcountll): Renamed count_one_bits_ll.
62735         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
62736         * modules/popcount: Renamed module/count-one-bits.
62737         * modules/popcount-tests: Renamed module/count-one-bits-tests.
62738         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
62739
62740 2007-07-23  Ben Pfaff  <blp@gnu.org>
62741
62742         * lib/popcount.h (popcount32): Reduce size of constants, to allow
62743         better code generation, and add U to large constants to avoid
62744         warnings, in non-GCC case.
62745         Suggested by Bruno Haible.
62746
62747 2007-07-23  Ben Pfaff  <blp@gnu.org>
62748
62749         * lib/popcount.h: Use verify_true instead of if...abort.
62750         * modules/popcount: Depend on verify module.
62751         Suggested by Jim Meyering.
62752
62753 2007-07-23  Bruno Haible  <bruno@clisp.org>
62754
62755         * gnulib-tool (func_import): Create a .cvsignore file also when the
62756         directory is not yet in CVS but the toplevel directory is. When
62757         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
62758         Reported by Karl Berry.
62759
62760 2007-07-22  Ben Pfaff  <blp@gnu.org>
62761
62762         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
62763         case.
62764         Suggested by Eric Blake.
62765
62766 2007-07-22  Ben Pfaff  <blp@gnu.org>
62767
62768         New module: popcount.
62769         * MODULES.html.sh: Add popcount.
62770         * modules/popcount: New file.
62771         * modules/popcount-tests: New file.
62772         * tests/test-popcount.c: New file.
62773         * lib/popcount.h: New file.
62774         * m4/popcount.m4: New file.
62775
62776 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62777
62778         * build-aux/announce-gen: Update to GPLv3.
62779
62780         * build-aux/config.guess: Update from config.
62781
62782 2007-07-21  Bruno Haible  <bruno@clisp.org>
62783
62784         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
62785         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
62786
62787 2007-07-20  Jim Meyering  <jim@meyering.net>
62788
62789         * check-module: Diagnose a self-dependency.
62790
62791 2007-07-19  Bruno Haible  <bruno@clisp.org>
62792
62793         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
62794         empty.
62795         Reported by Eric Blake.
62796
62797 2007-07-18  Bruno Haible  <bruno@clisp.org>
62798
62799         * gnulib-tool: New options --po-base, --po-domain.
62800         (func_usage): Document them.
62801         (pobase, po_domain): New variables.
62802         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
62803         DEFAULT_TEXT_DOMAIN.
62804         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
62805         (func_import): Consider pobase and po_domain. Create a po/ directory.
62806         (func_create_testdir): Set pobase and po_domain to empty.
62807         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
62808         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
62809
62810 2007-07-18  Bruno Haible  <bruno@clisp.org>
62811
62812         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62813         EXTRA_DIST augmentation for files in build-aux/.
62814
62815 2007-07-16  Bruno Haible  <bruno@clisp.org>
62816
62817         * modules/lseek (License): Use the synonymous term "LGPLv2+".
62818         * modules/getdelim (License): Likewise.
62819
62820 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62821
62822         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
62823         * modules/d-type (License): Likewise.
62824         * modules/extensions (License): Likewise.
62825         * modules/fnmatch (License): Likewise.
62826         * modules/fseeko (License): Likewise.
62827         * modules/getaddrinfo (License): Likewise.
62828         * modules/getline (License): Likewise.
62829         * modules/getlogin_r (License): Likewise.
62830         * modules/getpass (License): Likewise.
62831         * modules/gettimeofday (License): Likewise.
62832         * modules/glob (License): Likewise.
62833         * modules/inet_ntop (License): Likewise.
62834         * modules/malloc (License): Likewise.
62835         * modules/malloca (License): Likewise.
62836         * modules/memmem (License): Likewise.
62837         * modules/mempcpy (License): Likewise.
62838         * modules/memset (License): Likewise.
62839         * modules/minmax (License): Likewise.
62840         * modules/mktime (License): Likewise.
62841         * modules/netinet_in (License): Likewise.
62842         * modules/pathmax (License): Likewise.
62843         * modules/poll (License): Likewise.
62844         * modules/regex (License): Likewise.
62845         * modules/snprintf (License): Likewise.
62846         * modules/stdbool (License): Likewise.
62847         * modules/stdint (License): Likewise.
62848         * modules/stdio (License): Likewise.
62849         * modules/strcase (License): Likewise.
62850         * modules/strcasestr (License): Likewise.
62851         * modules/strdup (License): Likewise.
62852         * modules/string (License): Likewise.
62853         * modules/strndup (License): Likewise.
62854         * modules/strnlen (License): Likewise.
62855         * modules/strpbrk (License): Likewise.
62856         * modules/strptime (License): Likewise.
62857         * modules/strsep (License): Likewise.
62858         * modules/sys_select (License): Likewise.
62859         * modules/sys_socket (License): Likewise.
62860         * modules/sys_stat (License): Likewise.
62861         * modules/sys_time (License): Likewise.
62862         * modules/time (License): Likewise.
62863         * modules/time_r (License): Likewise.
62864         * modules/timegm (License): Likewise.
62865         * modules/unistd (License): Likewise.
62866         * modules/vsnprintf (License): Likewise.
62867         * modules/wctype (License): Likewise.
62868
62869 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62870
62871         * modules/argz (License): LGPLv2+.
62872
62873 2007-07-15  Karl Berry  <karl@gnu.org>
62874
62875         * doc/gnulib.texi: revise node structure per new fdl.texi.
62876
62877 2007-07-14  Bruno Haible  <bruno@clisp.org>
62878
62879         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
62880         the output file.
62881         * lib/uniname/uninames.h: Regenerated.
62882
62883 2007-07-14  Karl Berry  <karl@gnu.org>
62884
62885         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
62886         omitting sectioning and index commands.
62887
62888 2007-07-13  Bruno Haible  <bruno@clisp.org>
62889
62890         New gnulib-tool option --more-symlinks.
62891         * gnulib-tool (func_usage): Document --more-symlinks.
62892         (do_copyrights): New variable.
62893         Recognize option --more-symlinks.
62894         (func_import): Don't add a copyright notice transform to
62895         sed_transform_lib_file if do_copyrights is empty.
62896
62897 2007-07-13  Bruno Haible  <bruno@clisp.org>
62898
62899         * lib/vasnprintf.c (decimal_point_char): Define also if
62900         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
62901         && !NEED_PRINTF_DIRECTIVE_A.
62902         Reported by Clemens Koller <clemens.koller@anagramm.de> via
62903         Gary V. Vaughan <gary@gnu.org>.
62904
62905 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
62906
62907         * lib/inttypes_.h: Undo previous change, since it was fixed
62908         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
62909
62910 2007-07-13  Bruno Haible  <bruno@clisp.org>
62911
62912         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
62913         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
62914
62915 2007-07-13  Jim Meyering  <jim@meyering.net>
62916
62917         df: Don't fail for Tru64's "file-on-file mount".
62918         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
62919         so we fall through and use statfs instead.  Details here:
62920         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
62921         Reported by Albert Chin.
62922
62923 2007-07-13  Bruno Haible  <bruno@clisp.org>
62924
62925         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
62926         * modules/configmake (License): Likewise.
62927         * modules/gettext (License): Likewise.
62928         * modules/gettext-h (License): Likewise.
62929         * modules/include_next (License): Likewise.
62930         * modules/link-warning (License): Likewise.
62931         * modules/localcharset (License): Likewise.
62932         * modules/localename (License): Likewise.
62933         * modules/lock (License): Likewise.
62934         * modules/relocatable-lib-lgpl (License): Likewise.
62935         * modules/size_max (License): Likewise.
62936         * modules/vasnprintf (License): Likewise.
62937         * modules/wchar (License): Likewise.
62938         * modules/xsize (License): Likewise.
62939
62940 2007-07-13  Bruno Haible  <bruno@clisp.org>
62941
62942         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
62943         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
62944
62945 2007-07-12  Bruno Haible  <bruno@clisp.org>
62946
62947         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
62948         in the modules files.
62949
62950 2007-07-11  Karl Berry  <karl@gnu.org>
62951
62952         * MODULES.html.sh (func_module): use
62953          sed -e '\|^'"${includefile}"'$|d'
62954          instead of /.../d, to avoid errors on $includefile's containing /.
62955
62956 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62957
62958         * gnulib-tool (func_import): Avoid duplication of --avoid
62959         statements
62960         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
62961         names to `_' in variable names.
62962
62963 2007-07-10  Eric Blake  <ebb9@byu.net>
62964
62965         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
62966         * NEWS: Document this change.
62967
62968 2007-07-08  Bruno Haible  <bruno@clisp.org>
62969
62970         Update to Unicode 5.0.
62971         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
62972         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
62973         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
62974         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
62975         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
62976         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
62977         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
62978         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
62979         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
62980         U+10A3F, U+1D242..U+1D244.
62981         (nonspacing_table_ind): Update.
62982         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
62983         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
62984
62985 2007-07-08  Bruno Haible  <bruno@clisp.org>
62986
62987         Update to Unicode 5.0.
62988         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
62989         code transform. Extend the name index field of unicode_name_to_code and
62990         unicode_code_to_name from 16 to 24 bits.
62991         * lib/uniname/uniname.c (unicode_character_name,
62992         unicode_name_character): Add the range 0x12xxx to the code transform.
62993         * lib/uniname/uninames.h: Regenerated.
62994         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
62995
62996 2007-07-07  Bruno Haible  <bruno@clisp.org>
62997
62998         * modules/wcwidth-tests: New file.
62999         * tests/test-wcwidth.c: New file.
63000
63001         Work around MacOS X wcwidth() bug.
63002         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
63003         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
63004         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
63005         original wcwidth in non-UTF-8 locales.
63006         * modules/wcwidth (Depends-on): Add localcharset, streq,
63007         uniwidth/width.
63008         * doc/functions/wcwidth.texi: Update.
63009
63010 2007-07-07  Bruno Haible  <bruno@clisp.org>
63011
63012         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
63013         (wcwidth): New declaration.
63014         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
63015         macros.
63016         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
63017         here. Prepare for creating <wchar.h> unconditionally.
63018         * modules/wchar (Depends-on): Add link-warning.
63019         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
63020         REPLACE_WCWIDTH, and GL_LINK_WARNING.
63021         * lib/wcwidth.h: Remove file.
63022         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
63023         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
63024         * modules/wcwidth (Files): Remove lib/wcwidth.h.
63025         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
63026         (Include): Replace wcwidth.h with <wchar.h>.
63027         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
63028         * lib/mbchar.h: Don't include wcwidth.h.
63029         * lib/mbswidth.c: Likewise.
63030         * NEWS: Mention the change.
63031
63032 2007-07-07  Bruno Haible  <bruno@clisp.org>
63033
63034         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
63035         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
63036         definition with an external declaration.
63037         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
63038         defined as a function. Remove AC_C_INLINE requirement.
63039         * modules/wcwidth (Files): Add lib/wcwidth.c.
63040         (Makefile.am): Remove redundant statement.
63041
63042 2007-07-07  Bruno Haible  <bruno@clisp.org>
63043
63044         * MODULES.html.sh (Unicode string functions): Add the new modules.
63045
63046         * tests/uniwidth/test-u32-strwidth.c: New file.
63047         * modules/uniwidth/u32-strwidth-tests: New file.
63048
63049         * lib/uniwidth/u32-strwidth.c: New file.
63050         * modules/uniwidth/u32-strwidth: New file.
63051
63052         * tests/uniwidth/test-u16-strwidth.c: New file.
63053         * modules/uniwidth/u16-strwidth-tests: New file.
63054
63055         * lib/uniwidth/u16-strwidth.c: New file.
63056         * modules/uniwidth/u16-strwidth: New file.
63057
63058         * tests/uniwidth/test-u8-strwidth.c: New file.
63059         * modules/uniwidth/u8-strwidth-tests: New file.
63060
63061         * lib/uniwidth/u8-strwidth.c: New file.
63062         * modules/uniwidth/u8-strwidth: New file.
63063
63064         * tests/uniwidth/test-u32-width.c: New file.
63065         * modules/uniwidth/u32-width-tests: New file.
63066
63067         * lib/uniwidth/u32-width.c: New file.
63068         * modules/uniwidth/u32-width: New file.
63069
63070         * tests/uniwidth/test-u16-width.c: New file.
63071         * modules/uniwidth/u16-width-tests: New file.
63072
63073         * lib/uniwidth/u16-width.c: New file.
63074         * modules/uniwidth/u16-width: New file.
63075
63076         * tests/uniwidth/test-u8-width.c: New file.
63077         * modules/uniwidth/u8-width-tests: New file.
63078
63079         * lib/uniwidth/u8-width.c: New file.
63080         * modules/uniwidth/u8-width: New file.
63081
63082         * tests/uniwidth/test-uc_width.c: New file.
63083         * modules/uniwidth/width-tests: New file.
63084
63085         * lib/uniwidth/width.c: New file, from GNU libiconv.
63086         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
63087         * modules/uniwidth/width: New file.
63088
63089         * lib/uniwidth.h: New file, from GNU libiconv.
63090         * modules/uniwidth/base: New file.
63091
63092 2007-07-07  Bruno Haible  <bruno@clisp.org>
63093
63094         * lib/uniname.h: New file, from GNU gettext.
63095         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
63096         * lib/uniname/uninames.h: New file, from GNU gettext.
63097         * lib/uniname/uniname.c: New file, from GNU gettext.
63098         * tests/uniname/test-uninames.sh: New file.
63099         * tests/uniname/test-uninames.c: New file, from GNU gettext.
63100         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
63101         * modules/uniname/base: New file.
63102         * modules/uniname/uniname: New file.
63103         * modules/uniname/uniname-tests: New file.
63104         * MODULES.html.sh (Unicode string functions): Add the new modules.
63105
63106 2007-07-06  Bruno Haible  <bruno@clisp.org>
63107
63108         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
63109
63110 2007-07-06  Bruno Haible  <bruno@clisp.org>
63111
63112         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
63113         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
63114         includes <cygwin/sys_time.h> which includes <sys/select.h> which
63115         include <sys/time.h>.
63116         Reported by Eric Blake.
63117
63118 2007-07-06  Eric Blake  <ebb9@byu.net>
63119
63120         Fix testing canonicalize on cygwin.
63121         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63122         Revert patch from 2007-06-19.
63123         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
63124         canonicalize module is also in use.
63125         * tests/test-canonicalize.c: New file.
63126         * tests/test-canonicalize.sh: Likewise.
63127         * modules/canonicalize-tests: Likewise.
63128
63129 2007-07-06  Jim Meyering  <jim@meyering.net>
63130
63131         * lib/getugroups.c (getugroups): Detect getgrent failure.
63132         Adjust comment to reflect reality: this function may return -1.
63133
63134 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
63135
63136         * build-aux/bootstrap (TP_URL,get_translations): Update to use
63137         the new TP address.
63138         (usage): Fix typo
63139         (gnulib_mk): New variable.
63140
63141 2007-07-05  Jim Meyering  <jim@meyering.net>
63142
63143         Don't let endgrent clobber errno, no matter how improbable.
63144         * lib/getugroups.c (getugroups): Save and restore errno around
63145         endgrent call.
63146
63147         Close the group DB even when failing with 2^31 or more members.
63148         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
63149
63150 2007-07-04  Jim Meyering  <jim@meyering.net>
63151
63152         * lib/getugroups.h: New file.
63153         * lib/getugroups.c: Include "getugroups.h".
63154         Remove uses of "register" keyword.
63155         Move local variable, "cp", down into scope where used.
63156         Give "username" parameter the "const" attribute.
63157         * modules/getugroups (Files): Add lib/getugroups.h
63158
63159 2007-07-04  Karl Berry  <karl@gnu.org>
63160
63161         * MODULES.html.sh (func_all_modules): Complete rename of
63162         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
63163
63164 2007-07-02  Bruno Haible  <bruno@clisp.org>
63165
63166         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
63167         mode, when inttypes.h comes from gnulib.
63168         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
63169
63170 2007-07-02  Simon Josefsson  <simon@josefsson.org>
63171
63172         * NEWS: Mention lgpl module name change.
63173
63174         * modules/lgpl-2.1: Renamed from lgpl.
63175
63176         * NEWS: Mention gpl module name change.
63177
63178         * modules/gpl-3.0: New file, based on gpl-2.0.
63179
63180         * modules/gpl-2.0: Renamed from gpl.
63181
63182         * modules/gpl: Fix filename, doc/gpl.texi is now found at
63183         doc/gpl-2.0.texi.
63184
63185 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
63186
63187         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
63188         #define __STDC_LIMIT_MACROS temporarily while including
63189         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
63190         Problem reported by Joel E. Denny in
63191         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
63192
63193 2007-07-01  Bruno Haible  <bruno@clisp.org>
63194
63195         * lib/unistdio.h: New file.
63196         * lib/unistdio/u-asnprintf.h: New file.
63197         * lib/unistdio/u-asprintf.h: New file.
63198         * lib/unistdio/u-printf-args.c: New file.
63199         * lib/unistdio/u-printf-args.h: New file.
63200         * lib/unistdio/u-printf-parse.h: New file.
63201         * lib/unistdio/u-snprintf.h: New file.
63202         * lib/unistdio/u-sprintf.h: New file.
63203         * lib/unistdio/u-vasprintf.h: New file.
63204         * lib/unistdio/u-vsnprintf.h: New file.
63205         * lib/unistdio/u-vsprintf.h: New file.
63206         * lib/unistdio/ulc-asnprintf.c: New file.
63207         * lib/unistdio/ulc-asprintf.c: New file.
63208         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
63209         * lib/unistdio/ulc-printf-parse.c: New file.
63210         * lib/unistdio/ulc-snprintf.c: New file.
63211         * lib/unistdio/ulc-sprintf.c: New file.
63212         * lib/unistdio/ulc-vasnprintf.c: New file.
63213         * lib/unistdio/ulc-vasprintf.c: New file.
63214         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
63215         * lib/unistdio/ulc-vsnprintf.c: New file.
63216         * lib/unistdio/ulc-vsprintf.c: New file.
63217         * lib/unistdio/u8-asnprintf.c: New file.
63218         * lib/unistdio/u8-asprintf.c: New file.
63219         * lib/unistdio/u8-printf-parse.c: New file.
63220         * lib/unistdio/u8-snprintf.c: New file.
63221         * lib/unistdio/u8-sprintf.c: New file.
63222         * lib/unistdio/u8-vasnprintf.c: New file.
63223         * lib/unistdio/u8-vasprintf.c: New file.
63224         * lib/unistdio/u8-vsnprintf.c: New file.
63225         * lib/unistdio/u8-vsprintf.c: New file.
63226         * lib/unistdio/u8-u8-asnprintf.c: New file.
63227         * lib/unistdio/u8-u8-asprintf.c: New file.
63228         * lib/unistdio/u8-u8-snprintf.c: New file.
63229         * lib/unistdio/u8-u8-sprintf.c: New file.
63230         * lib/unistdio/u8-u8-vasnprintf.c: New file.
63231         * lib/unistdio/u8-u8-vasprintf.c: New file.
63232         * lib/unistdio/u8-u8-vsnprintf.c: New file.
63233         * lib/unistdio/u8-u8-vsprintf.c: New file.
63234         * lib/unistdio/u16-asnprintf.c: New file.
63235         * lib/unistdio/u16-asprintf.c: New file.
63236         * lib/unistdio/u16-printf-parse.c: New file.
63237         * lib/unistdio/u16-snprintf.c: New file.
63238         * lib/unistdio/u16-sprintf.c: New file.
63239         * lib/unistdio/u16-vasnprintf.c: New file.
63240         * lib/unistdio/u16-vasprintf.c: New file.
63241         * lib/unistdio/u16-vsnprintf.c: New file.
63242         * lib/unistdio/u16-vsprintf.c: New file.
63243         * lib/unistdio/u16-u16-asnprintf.c: New file.
63244         * lib/unistdio/u16-u16-asprintf.c: New file.
63245         * lib/unistdio/u16-u16-snprintf.c: New file.
63246         * lib/unistdio/u16-u16-sprintf.c: New file.
63247         * lib/unistdio/u16-u16-vasnprintf.c: New file.
63248         * lib/unistdio/u16-u16-vasprintf.c: New file.
63249         * lib/unistdio/u16-u16-vsnprintf.c: New file.
63250         * lib/unistdio/u16-u16-vsprintf.c: New file.
63251         * lib/unistdio/u32-asnprintf.c: New file.
63252         * lib/unistdio/u32-asprintf.c: New file.
63253         * lib/unistdio/u32-printf-parse.c: New file.
63254         * lib/unistdio/u32-snprintf.c: New file.
63255         * lib/unistdio/u32-sprintf.c: New file.
63256         * lib/unistdio/u32-vasnprintf.c: New file.
63257         * lib/unistdio/u32-vasprintf.c: New file.
63258         * lib/unistdio/u32-vsnprintf.c: New file.
63259         * lib/unistdio/u32-vsprintf.c: New file.
63260         * lib/unistdio/u32-u32-asnprintf.c: New file.
63261         * lib/unistdio/u32-u32-asprintf.c: New file.
63262         * lib/unistdio/u32-u32-snprintf.c: New file.
63263         * lib/unistdio/u32-u32-sprintf.c: New file.
63264         * lib/unistdio/u32-u32-vasnprintf.c: New file.
63265         * lib/unistdio/u32-u32-vasprintf.c: New file.
63266         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63267         * lib/unistdio/u32-u32-vsprintf.c: New file.
63268         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63269         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63270         * tests/unistdio/test-ulc-printf1.h: New file.
63271         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63272         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63273         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63274         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63275         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63276         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63277         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63278         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63279         * tests/unistdio/test-u8-asnprintf1.c: New file.
63280         * tests/unistdio/test-u8-asnprintf1.h: New file.
63281         * tests/unistdio/test-u8-printf1.h: New file.
63282         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63283         * tests/unistdio/test-u8-vasnprintf2.c: New file.
63284         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
63285         * tests/unistdio/test-u8-vasnprintf3.c: New file.
63286         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
63287         * tests/unistdio/test-u8-vasprintf1.c: New file.
63288         * tests/unistdio/test-u8-vsnprintf1.c: New file.
63289         * tests/unistdio/test-u8-vsprintf1.c: New file.
63290         * tests/unistdio/test-u16-asnprintf1.c: New file.
63291         * tests/unistdio/test-u16-asnprintf1.h: New file.
63292         * tests/unistdio/test-u16-printf1.h: New file.
63293         * tests/unistdio/test-u16-vasnprintf1.c: New file.
63294         * tests/unistdio/test-u16-vasnprintf2.c: New file.
63295         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
63296         * tests/unistdio/test-u16-vasnprintf3.c: New file.
63297         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
63298         * tests/unistdio/test-u16-vasprintf1.c: New file.
63299         * tests/unistdio/test-u16-vsnprintf1.c: New file.
63300         * tests/unistdio/test-u16-vsprintf1.c: New file.
63301         * tests/unistdio/test-u32-asnprintf1.c: New file.
63302         * tests/unistdio/test-u32-asnprintf1.h: New file.
63303         * tests/unistdio/test-u32-printf1.h: New file.
63304         * tests/unistdio/test-u32-vasnprintf1.c: New file.
63305         * tests/unistdio/test-u32-vasnprintf2.c: New file.
63306         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
63307         * tests/unistdio/test-u32-vasnprintf3.c: New file.
63308         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
63309         * tests/unistdio/test-u32-vasprintf1.c: New file.
63310         * tests/unistdio/test-u32-vsnprintf1.c: New file.
63311         * tests/unistdio/test-u32-vsprintf1.c: New file.
63312         * modules/unistdio/base: New file.
63313         * modules/unistdio/u-printf-args: New file.
63314         * modules/unistdio/ulc-asnprintf: New file.
63315         * modules/unistdio/ulc-asprintf: New file.
63316         * modules/unistdio/ulc-fprintf: New file.
63317         * modules/unistdio/ulc-printf-parse: New file.
63318         * modules/unistdio/ulc-snprintf: New file.
63319         * modules/unistdio/ulc-sprintf: New file.
63320         * modules/unistdio/ulc-vasnprintf: New file.
63321         * modules/unistdio/ulc-vasprintf: New file.
63322         * modules/unistdio/ulc-vfprintf: New file.
63323         * modules/unistdio/ulc-vsnprintf: New file.
63324         * modules/unistdio/ulc-vsprintf: New file.
63325         * modules/unistdio/u8-asnprintf: New file.
63326         * modules/unistdio/u8-asprintf: New file.
63327         * modules/unistdio/u8-printf-parse: New file.
63328         * modules/unistdio/u8-snprintf: New file.
63329         * modules/unistdio/u8-sprintf: New file.
63330         * modules/unistdio/u8-vasnprintf: New file.
63331         * modules/unistdio/u8-vasprintf: New file.
63332         * modules/unistdio/u8-vsnprintf: New file.
63333         * modules/unistdio/u8-vsprintf: New file.
63334         * modules/unistdio/u8-u8-asnprintf: New file.
63335         * modules/unistdio/u8-u8-asprintf: New file.
63336         * modules/unistdio/u8-u8-snprintf: New file.
63337         * modules/unistdio/u8-u8-sprintf: New file.
63338         * modules/unistdio/u8-u8-vasnprintf: New file.
63339         * modules/unistdio/u8-u8-vasprintf: New file.
63340         * modules/unistdio/u8-u8-vsnprintf: New file.
63341         * modules/unistdio/u8-u8-vsprintf: New file.
63342         * modules/unistdio/u16-asnprintf: New file.
63343         * modules/unistdio/u16-asprintf: New file.
63344         * modules/unistdio/u16-printf-parse: New file.
63345         * modules/unistdio/u16-snprintf: New file.
63346         * modules/unistdio/u16-sprintf: New file.
63347         * modules/unistdio/u16-vasnprintf: New file.
63348         * modules/unistdio/u16-vasprintf: New file.
63349         * modules/unistdio/u16-vsnprintf: New file.
63350         * modules/unistdio/u16-vsprintf: New file.
63351         * modules/unistdio/u16-u16-asnprintf: New file.
63352         * modules/unistdio/u16-u16-asprintf: New file.
63353         * modules/unistdio/u16-u16-snprintf: New file.
63354         * modules/unistdio/u16-u16-sprintf: New file.
63355         * modules/unistdio/u16-u16-vasnprintf: New file.
63356         * modules/unistdio/u16-u16-vasprintf: New file.
63357         * modules/unistdio/u16-u16-vsnprintf: New file.
63358         * modules/unistdio/u16-u16-vsprintf: New file.
63359         * modules/unistdio/u32-asnprintf: New file.
63360         * modules/unistdio/u32-asprintf: New file.
63361         * modules/unistdio/u32-printf-parse: New file.
63362         * modules/unistdio/u32-snprintf: New file.
63363         * modules/unistdio/u32-sprintf: New file.
63364         * modules/unistdio/u32-vasnprintf: New file.
63365         * modules/unistdio/u32-vasprintf: New file.
63366         * modules/unistdio/u32-vsnprintf: New file.
63367         * modules/unistdio/u32-vsprintf: New file.
63368         * modules/unistdio/u32-u32-asnprintf: New file.
63369         * modules/unistdio/u32-u32-asprintf: New file.
63370         * modules/unistdio/u32-u32-snprintf: New file.
63371         * modules/unistdio/u32-u32-sprintf: New file.
63372         * modules/unistdio/u32-u32-vasnprintf: New file.
63373         * modules/unistdio/u32-u32-vasprintf: New file.
63374         * modules/unistdio/u32-u32-vsnprintf: New file.
63375         * modules/unistdio/u32-u32-vsprintf: New file.
63376         * modules/unistdio/ulc-asnprintf-tests: New file.
63377         * modules/unistdio/ulc-vasnprintf-tests: New file.
63378         * modules/unistdio/ulc-vasprintf-tests: New file.
63379         * modules/unistdio/ulc-vsnprintf-tests: New file.
63380         * modules/unistdio/ulc-vsprintf-tests: New file.
63381         * modules/unistdio/u8-asnprintf-tests: New file.
63382         * modules/unistdio/u8-vasnprintf-tests: New file.
63383         * modules/unistdio/u8-vasprintf-tests: New file.
63384         * modules/unistdio/u8-vsnprintf-tests: New file.
63385         * modules/unistdio/u8-vsprintf-tests: New file.
63386         * modules/unistdio/u16-asnprintf-tests: New file.
63387         * modules/unistdio/u16-vasnprintf-tests: New file.
63388         * modules/unistdio/u16-vasprintf-tests: New file.
63389         * modules/unistdio/u16-vsnprintf-tests: New file.
63390         * modules/unistdio/u16-vsprintf-tests: New file.
63391         * modules/unistdio/u32-asnprintf-tests: New file.
63392         * modules/unistdio/u32-vasnprintf-tests: New file.
63393         * modules/unistdio/u32-vasprintf-tests: New file.
63394         * modules/unistdio/u32-vsnprintf-tests: New file.
63395         * modules/unistdio/u32-vsprintf-tests: New file.
63396         * MODULES.html.sh (Unicode string functions): Add the new modules.
63397
63398 2007-07-01  Bruno Haible  <bruno@clisp.org>
63399
63400         * lib/sprintf.c (sprintf): Limit the available length estimation,
63401         to avoid address wraparound.
63402         * lib/vsprintf.c (vsprintf): Likewise.
63403         * modules/sprintf-posix (Dependencies): Add stdint.
63404         * modules/vsprintf-posix (Dependencies): Likewise.
63405
63406 2007-07-01  Bruno Haible  <bruno@clisp.org>
63407
63408         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
63409         Windows PATH as well. Conservative double-quoting. Comments.
63410
63411 2007-07-01  Bruno Haible  <bruno@clisp.org>
63412             Eric Blake  <ebb9@byu.net>
63413             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63414
63415         * gnulib-tool (self_abspathname): Fix algorithm to cope with
63416         empty components in $PATH, denoting '.'.
63417
63418 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63419
63420         * gnulib-tool: Fix indentation.
63421         (func_create_megatestdir): Likewise.
63422         Report by Bruno Haible.
63423
63424 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63425
63426         Sync from Automake.
63427         * build-aux/gnupload: Fix shell portability issues with for loops.
63428         Report by Karl Berry.
63429
63430 2007-06-29  Simon Josefsson  <simon@josefsson.org>
63431
63432         * build-aux/maint.mk (POURL): Use translationproject.org.
63433
63434 2007-06-27  Simon Josefsson  <simon@josefsson.org>
63435             Bruno Haible  <bruno@clisp.org>
63436
63437         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
63438         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
63439         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
63440         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
63441         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
63442
63443 2007-06-27  Bruno Haible  <bruno@clisp.org>
63444
63445         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
63446         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
63447
63448 2007-06-26  Karl Berry  <karl@gnu.org>
63449
63450         * MODULES.html.sh: remove xreadlink-with-size.
63451
63452 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63453
63454         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
63455         method that I hope also handles the double-include problem noted
63456         by Bruno Haible in
63457         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
63458
63459 2007-06-23  Bruno Haible  <bruno@clisp.org>
63460
63461         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63462         Don't let the 'mostlyclean' target fail if the last subdirectory could
63463         not be removed.
63464         Reported by Karl Berry.
63465
63466 2007-06-23  Bruno Haible  <bruno@clisp.org>
63467
63468         * gnulib-tool (echo): Add a speedier workaround for ksh.
63469         * tests/test-echo.sh: Likewise.
63470
63471 2007-06-23  Bruno Haible  <bruno@clisp.org>
63472
63473         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
63474         * tests/test-echo.sh: Likewise.
63475
63476 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63477
63478         * gnulib-tool (IFS): Initialize early, so we don't set it to
63479         empty later.
63480         (self_abspathname): Rewrite algorithm to set it, reindent.
63481         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
63482         (func_create_megatestdir): Merge some sed scripts.
63483
63484 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63485
63486         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
63487         exposed by Sun Studio 11 cc on Solaris 8.
63488
63489 2007-06-22  Bruno Haible  <bruno@clisp.org>
63490
63491         * gnulib-tool (echo): Ensure the echo primitive does not interpret
63492         backslashes.
63493         * tests/test-echo.sh: New file.
63494
63495 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63496
63497         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
63498         simplify `sed_replace_build_aux' scripts, they are portable but
63499         echoing them with `echo' is not.
63500         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
63501
63502 2007-06-21  Karl Berry  <karl@gnu.org>
63503
63504         * config/srclist.txt: guess we can't handle the licenses via
63505         srclist at the moment.
63506
63507 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63508
63509         * MODULES.html.sh: Add include_next.
63510         * modules/include_next: New file.
63511
63512 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63513
63514         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
63515         INCLUDE_NEXT.
63516         (gl_CHECK_NEXT_HEADERS): New macro.
63517         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
63518         the obsolescent gl_ABSOLUTE_HEADER.
63519         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
63520         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
63521         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
63522         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
63523         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
63524         * m4/math_h.m4 (gl_MATH_H): Likewise.
63525         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
63526         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
63527         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
63528         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63529         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
63530         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
63531         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
63532         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63533         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
63534         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
63535         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
63536         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
63537         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
63538         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
63539         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
63540         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63541         * m4/inttypes.m4 (gl_INTTYPES_H): Define
63542         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
63543         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
63544         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
63545         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
63546         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
63547         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
63548         * lib/float_.h: Likewise.
63549         * lib/inttypes_.h: Likewise.
63550         * lib/math_.h: Likewise.
63551         * lib/search_.h: Likewise.
63552         * lib/signal_.h: Likewise.
63553         * lib/stdint_.h: Likewise.
63554         * lib/stdio_.h: Likewise.
63555         * lib/stdlib_.h: Likewise.
63556         * lib/string_.h: Likewise.
63557         * lib/sys_stat_.h: Likewise.
63558         * lib/sys_time_.h: Likewise.
63559         * lib/time_.h: Likewise.
63560         * lib/unistd_.h: Likewise.
63561         * lib/wchar_.h: Likewise.
63562         * lib/wctype_.h: Likewise.
63563         * lib/dirent_.h: Likewise.
63564         * lib/iconv_.h: Likewise.
63565         * lib/locale_.h: Likewise.
63566         * lib/netinet_in_.h: Likewise.
63567         * lib/sys_select_.h: Likewise.
63568         * lib/sys_socket_.h: Likewise.
63569         * lib/sysexits_.h: Likewise.
63570         * modules/fcntl (Depends-on): Depend on include_next, not
63571         absolute_header.
63572         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
63573         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
63574         * modules/fchdir: Likewise.
63575         * modules/float: Likewise.
63576         * modules/iconv_open: Likewise.
63577         * modules/inttypes: Likewise.
63578         * modules/locale: Likewise.
63579         * modules/math: Likewise.
63580         * modules/netinet_in: Likewise.
63581         * modules/search: Likewise.
63582         * modules/signal: Likewise.
63583         * modules/stdint: Likewise.
63584         * modules/stdio: Likewise.
63585         * modules/stdlib: Likewise.
63586         * modules/string: Likewise.
63587         * modules/sys_select: Likewise.
63588         * modules/sys_socket: Likewise.
63589         * modules/sys_stat: Likewise.
63590         * modules/sys_time: Likewise.
63591         * modules/sysexits: Likewise.
63592         * modules/time: Likewise.
63593         * modules/unistd: Likewise.
63594         * modules/wchar: Likewise.
63595         * modules/wctype: Likewise.
63596         * modules/sys_stat: Change maintainer to "all".
63597         * modules/unistd: Likewise.
63598
63599 2007-06-20  Karl Berry  <karl@gnu.org>
63600
63601         * config/srclist.txt: track www changes in license files.
63602
63603 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
63604
63605         * build-aux/bootstrap: Remove stray dot.
63606         Make sure build_aux settings are honored when linking
63607         gnulib_extra_files.
63608
63609 2007-06-19  Eric Blake  <ebb9@byu.net>
63610
63611         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63612         Allow compilation on cygwin.
63613
63614 2007-06-19  Jim Meyering  <jim@meyering.net>
63615
63616         xreadlink-with-size: Remove module.  No longer used.
63617         Ex-callers now use xreadlink or mreadlink-with-size.
63618         * modules/xreadlink-with-size: Remove module.
63619         * lib/xreadlink-with-size.c: Remove file.
63620         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
63621         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
63622         just before the function definition *is* accurate.
63623
63624         Eliminate one way canonicalize_filename_mode could exit.
63625         * lib/canonicalize.c (canonicalize_filename_mode):
63626         Use mreadlink_with_size, not xreadlink_with_size.
63627
63628 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
63629
63630         Detect porting problems to FreeBSD/arm, which has time_t wider than
63631         long int.  Original problem reported for GNU diff by Xin Li in
63632         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
63633         * modules/getdate (Depends-on): Add intprops, verify.
63634         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
63635         is an integer type no wider than long int.
63636
63637 2007-06-18  Jim Meyering  <jim@meyering.net>
63638
63639         New module: mreadlink-with-size.
63640         * MODULES.html.sh: Add mreadlink-with-size.
63641         * modules/mreadlink-with-size: New module
63642         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
63643         not xreadlink-with-size.
63644         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
63645
63646 2007-06-16  Bruno Haible  <bruno@clisp.org>
63647
63648         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
63649         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
63650         Reported by Gary V. Vaughan <gary@gnu.org>.
63651
63652 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
63653
63654         Revamp lchown so that it lives in unistd.h where it belongs.
63655         * lib/lchown.h: Remove.
63656         * lib/dirchownmod.c: Don't include lib/lchown.h.
63657         * lib/fchownat.c: Likewise.
63658         * lib/openat.c: Likewise.
63659         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
63660         does not follow symlinks.
63661         (EOPNOTSUPP): Define if not defined.
63662         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
63663         is defined to 0.
63664         (lchown): New decl.
63665         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
63666         Do not check for lchown decl.
63667         Set REPLACE_LCHOWN.
63668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
63669         REPLACE_LCHOWN.
63670         * modules/chown: Make it clear it follows symlinks.
63671         * modules/lchown: Make it clear it doesn't follow symlinks.
63672         (Files): Remove lib/lchown.h
63673         (Depends-on): Add unistd.
63674         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
63675         (Include): Include <unistd.h>, not "lchown.h".
63676         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
63677         REPLACE_LCHOWN.
63678
63679 2007-06-15  Jim Meyering  <jim@meyering.net>
63680
63681         Change license (GPL to LGPL) of fsusage and dependents.
63682         * modules/fsusage (License): Change to LGPL.
63683         * modules/full-read (License): Likewise.
63684         * modules/full-write (License): Likewise.
63685         * modules/safe-read (License): Likewise.
63686         * modules/safe-write (License): Likewise.
63687
63688 2007-06-14  Ben Pfaff  <blp@gnu.org>
63689
63690         Missing part of allocsa -> malloca transition.
63691         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
63692         gl_MALLOCA.
63693
63694 2007-06-12  Bruno Haible  <bruno@clisp.org>
63695
63696         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
63697         to ia64, x86_64, i386.
63698         Reported by Eric Blake.
63699
63700 2007-06-12  Bruno Haible  <bruno@clisp.org>
63701
63702         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
63703         cross-compiling to x86_64.
63704
63705 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
63706
63707         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
63708         glitch reported by Ralf Wildenhues in
63709         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
63710
63711         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
63712         Vin Shelton.
63713
63714 2007-06-11  Bruno Haible  <bruno@clisp.org>
63715
63716         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
63717         replacement string.
63718         Reported by Eric Blake.
63719
63720 2007-06-10  Bruno Haible  <bruno@clisp.org>
63721
63722         Prepare vasnprintf code for use with Unicode strings.
63723         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
63724         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
63725         TYPE_U32_STRING.
63726         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
63727         a_u32_string variants.
63728         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63729         * lib/printf-args.c: Don't include config.h and the specification
63730         header if PRINTF_FETCHARGS is already defined.
63731         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63732         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
63733         TYPE_U16_STRING, TYPE_U32_STRING.
63734         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
63735         u16_directive, u16_directives, u32_directive, u32_directives): New
63736         types.
63737         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
63738         New declarations.
63739         * lib/printf-parse.c: Don't include config.h and the specification
63740         header if PRINTF_PARSE is already defined. Eliminate the set of
63741         parameters for WIDE_CHAR_VERSION; the user of this file must provide
63742         them now. Include c-ctype.h.
63743         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
63744         directive and CHAR_T_ONLY_ASCII.
63745         * lib/vasnprintf.c: Don't include config.h and the specification header
63746         if VASNPRINTF is already defined.
63747         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
63748         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
63749         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
63750         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
63751         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
63752         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
63753         code accordingly.
63754         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
63755         pad_ourselves also in this case, with the 'c' and 's' directives, and
63756         with a different notion of "width".
63757         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
63758
63759 2007-06-10  Bruno Haible  <bruno@clisp.org>
63760
63761         * modules/unistr/u32-mbsnlen: New file.
63762         * lib/unistr/u32-mbsnlen.c: New file.
63763
63764         * modules/unistr/u16-mbsnlen: New file.
63765         * lib/unistr/u16-mbsnlen.c: New file.
63766
63767         * modules/unistr/u8-mbsnlen: New file.
63768         * lib/unistr/u8-mbsnlen.c: New file.
63769
63770         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
63771         declarations.
63772
63773 2007-06-10  Bruno Haible  <bruno@clisp.org>
63774
63775         * lib/string_.h (mbsnlen): New declaration.
63776         * lib/mbsnlen.c: New file.
63777         * m4/mbsnlen.m4: New file.
63778         * modules/mbsnlen: New file.
63779         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
63780         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
63781         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
63782
63783 2007-06-10  Bruno Haible  <bruno@clisp.org>
63784
63785         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
63786
63787 2007-06-10  Bruno Haible  <bruno@clisp.org>
63788
63789         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
63790         * lib/mbuiter.h: Likewise.
63791
63792 2007-06-10  Bruno Haible  <bruno@clisp.org>
63793
63794         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
63795         declaration.
63796
63797 2007-06-10  Karl Berry  <karl@gnu.org>
63798
63799         * config/srclist.txt: remove gettext entries, Bruno prefers
63800         to update individually.
63801
63802 2007-06-10  Bruno Haible  <bruno@clisp.org>
63803
63804         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
63805         'maxlen'. Ensure only length + width bytes are allocated, not
63806         length + 1 + width.
63807
63808 2007-06-09  Bruno Haible  <bruno@clisp.org>
63809
63810         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
63811         (CHAR_T): Remove macro.
63812         (VASNPRINTF): Update.
63813
63814 2007-06-09  Bruno Haible  <bruno@clisp.org>
63815
63816         * MODULES.html.sh (Unicode string functions): Add the new modules.
63817
63818         * modules/uniconv/u32-conv-to-enc: New file.
63819         * lib/uniconv/u32-conv-to-enc.c: New file.
63820         * modules/uniconv/u32-conv-to-enc-tests: New file.
63821         * tests/uniconv/test-u32-conv-to-enc.c: New file.
63822
63823         * modules/uniconv/u16-conv-to-enc: New file.
63824         * lib/uniconv/u16-conv-to-enc.c: New file.
63825         * lib/uniconv/u-conv-to-enc.h: New file.
63826         * modules/uniconv/u16-conv-to-enc-tests: New file.
63827         * tests/uniconv/test-u16-conv-to-enc.c: New file.
63828
63829         * modules/uniconv/u8-conv-to-enc: New file.
63830         * lib/uniconv/u8-conv-to-enc.c: New file.
63831         * modules/uniconv/u8-conv-to-enc-tests: New file.
63832         * tests/uniconv/test-u8-conv-to-enc.c: New file.
63833
63834         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
63835         u32_conv_to_encoding): New declarations.
63836
63837 2007-06-09  Bruno Haible  <bruno@clisp.org>
63838
63839         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
63840
63841 2007-06-09  Bruno Haible  <bruno@clisp.org>
63842
63843         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
63844         * modules/malloca: Renamed from modules/allocsa, updated.
63845         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
63846         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
63847         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
63848         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
63849         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
63850         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
63851         * modules/xmalloca: Renamed from modules/xallocsa, updated.
63852         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
63853         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
63854         * modules/c-strcasestr (Depends-on): Update.
63855         * lib/c-strcasestr.c: Update.
63856         * modules/c-strstr (Depends-on): Update.
63857         * lib/c-strstr.c: Update.
63858         * modules/canonicalize-lgpl (Depends-on): Update.
63859         * lib/canonicalize-lgpl.c: Update.
63860         * modules/clean-temp (Depends-on): Update.
63861         * lib/clean-temp.c: Update.
63862         * modules/csharpcomp (Depends-on): Update.
63863         * lib/csharpcomp.c: Update.
63864         * modules/csharpexec (Depends-on): Update.
63865         * lib/csharpexec.c: Update.
63866         * modules/javacomp (Depends-on): Update.
63867         * lib/javacomp.c: Update.
63868         * modules/javaexec (Depends-on): Update.
63869         * lib/javaexec.c: Update.
63870         * modules/mbscasestr (Depends-on): Update.
63871         * lib/mbscasestr.c: Update.
63872         * modules/mbsstr (Depends-on): Update.
63873         * lib/mbsstr.c: Update.
63874         * modules/setenv (Depends-on): Update.
63875         * lib/setenv.c: Update.
63876         * modules/strcasestr (Depends-on): Update.
63877         * lib/strcasestr.c: Update.
63878         * modules/striconveha (Depends-on): Update.
63879         * lib/striconveha.c: Update.
63880         * modules/relocatable-prog-wrapper (Files): Update.
63881         * lib/relocwrapper.c: Update.
63882         * build-aux/install-reloc: Update.
63883         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
63884
63885 2007-06-08  Bruno Haible  <bruno@clisp.org>
63886
63887         Port to uClibc.
63888         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
63889         * lib/fpurge.c (fpurge): Likewise.
63890         * lib/freading.c (freading): Likewise.
63891         * lib/fseeko.c (rpl_fseeko): Likewise.
63892         * lib/fseterr.c (fseterr): Likewise.
63893         * lib/fwriting.c (fwriting): Likewise.
63894         * tests/test-fflush.c (main): Avoid a failure on uClibc.
63895
63896 2007-06-08  Bruno Haible  <bruno@clisp.org>
63897
63898         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
63899         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
63900         * modules/gettext (Files): Add m4/intlmacosx.m4.
63901
63902 2007-06-07  Bruno Haible  <bruno@clisp.org>
63903
63904         * modules/localename-tests: New file.
63905         * tests/test-localename.c: New file.
63906
63907         New module 'localename'.
63908         * lib/localename.h: New file.
63909         * lib/localename.c: New file, from GNU gettext.
63910         * m4/localename.m4: New file.
63911         * modules/localename: New file.
63912
63913 2007-06-07  Bruno Haible  <bruno@clisp.org>
63914
63915         Work around the lack of <wchar.h> on some builds of uClibc.
63916         * doc/headers/wchar.texi: Update.
63917         * lib/wchar_.h: Include <wchar.h> only if it exists.
63918         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
63919         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
63920         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
63921         doesn't exist.
63922         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
63923         * modules/mbfile (Depends-on): Add wchar.
63924         * modules/mbiter (Depends-on): Likewise.
63925         * modules/mbuiter (Depends-on): Likewise.
63926         Reported by Simon Josefsson.
63927
63928 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
63929
63930         Work around problem reported by Steven M. Schweda in
63931         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
63932         Tru64 5.1B with the Compaq compiler environment installed declares
63933         an 'isblank' function but does not define it in the C library.
63934         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
63935         * lib/regex_internal.h (isblank): Likewise.
63936         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
63937         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63938
63939 2007-06-05  Bruno Haible  <bruno@clisp.org>
63940
63941         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
63942         ia64.
63943         * modules/printf-safe: New file.
63944         * modules/fprintf-posix (Depends-on): Add printf-safe.
63945         * modules/printf-posix (Depends-on): Likewise.
63946         * modules/snprintf-posix (Depends-on): Likewise.
63947         * modules/sprintf-posix (Depends-on): Likewise.
63948         * modules/vasnprintf-posix (Depends-on): Likewise.
63949         * modules/vasprintf-posix (Depends-on): Likewise.
63950         * modules/vfprintf-posix (Depends-on): Likewise.
63951         * modules/vprintf-posix (Depends-on): Likewise.
63952         * modules/vsnprintf-posix (Depends-on): Likewise.
63953         * modules/vsprintf-posix (Depends-on): Likewise.
63954         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
63955         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
63956         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
63957         "no" on i386, x86_64, ia64.
63958         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
63959         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63960         on i386, x86_64, ia64.
63961         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
63962         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63963         on i386, x86_64, ia64.
63964         * tests/test-vasnprintf-posix.c: Include float.h.
63965         (LDBL80_WORDS): New macro.
63966         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63967         on i386, x86_64, ia64.
63968         * tests/test-vasprintf-posix.c: Include float.h.
63969         (LDBL80_WORDS): New macro.
63970         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63971         on i386, x86_64, ia64.
63972         * tests/test-snprintf-posix.c: Include float.h.
63973         * tests/test-sprintf-posix.c: Likewise.
63974         * tests/test-vsnprintf-posix.c: Likewise.
63975         * tests/test-vsprintf-posix.c: Likewise.
63976
63977 2007-06-05  Bruno Haible  <bruno@clisp.org>
63978
63979         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
63980         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
63981         non-IEEE numbers on i386, x86_64, ia64.
63982         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
63983         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
63984         * tests/test-isnanl.h: Include float.h.
63985         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
63986
63987 2007-06-05  Bruno Haible  <bruno@clisp.org>
63988
63989         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
63990         also the %a / %A. Handle the %a / %A code before this extra handling.
63991
63992 2007-06-05  Bruno Haible  <bruno@clisp.org>
63993
63994         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
63995         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
63996
63997 2007-06-05  Bruno Haible  <bruno@clisp.org>
63998
63999         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
64000         typo in variable name.
64001
64002 2007-06-05  Eric Blake  <ebb9@byu.net>
64003
64004         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
64005         Reported by Simon Josefsson.
64006
64007 2007-06-04  Bruno Haible  <bruno@clisp.org>
64008
64009         Avoid test failures on some PowerPC platforms.
64010         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
64011         Define differently for PowerPC.
64012         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
64013         Reported by Gary V. Vaughan <gary@gnu.org>.
64014
64015 2007-06-02  Bruno Haible  <bruno@clisp.org>
64016
64017         Fix test-stdint failure on FreeBSD/ia64.
64018         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
64019         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
64020         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
64021         * doc/headers/stdint.texi: Update.
64022
64023 2007-06-01  Bruno Haible  <bruno@clisp.org>
64024
64025         * tests/test-binary-io.c (main): Pass a third argument to open().
64026         Reported by Gary V. Vaughan <gary@gnu.org>.
64027
64028 2007-06-01  Bruno Haible  <bruno@clisp.org>
64029
64030         * doc/functions/frexpl.texi: Update for mingw.
64031
64032 2007-06-01  Bruno Haible  <bruno@clisp.org>
64033
64034         * tests/test-lseek.c (main): Disable test of errno for invalid third
64035         argument.
64036         * doc/functions/lseek.texi: Update.
64037         Reported by Gary V. Vaughan <gary@gnu.org>.
64038
64039 2007-05-28  Bruno Haible  <bruno@clisp.org>
64040
64041         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
64042
64043 2007-05-31  Eric Blake  <ebb9@byu.net>
64044
64045         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
64046         cross compiling.
64047
64048 2007-05-30  Eric Blake  <ebb9@byu.net>
64049         and Bruno Haible  <bruno@clisp.org>
64050
64051         Work around mingw test failures exposed by m4-1.4.9b.
64052         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
64053         * tests/test-unistd.c: Disable uid_t and git_t tests for the
64054         moment.
64055
64056 2007-05-30  Bruno Haible  <bruno@clisp.org>
64057
64058         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
64059         assuming that they are closed. Needed on HP-UX 11.
64060
64061 2007-05-29  Bruno Haible  <bruno@clisp.org>
64062
64063         Fix a problem with #include_next.
64064         * lib/dirent_.h: Split the double-inclusion guard.
64065         * lib/fcntl_.h: Likewise.
64066         * lib/float_.h: Likewise.
64067         * lib/iconv_.h: Likewise.
64068         * lib/inttypes_.h: Likewise.
64069         * lib/locale_.h: Likewise.
64070         * lib/math_.h: Likewise.
64071         * lib/netinet_in_.h: Likewise.
64072         * lib/search_.h: Likewise.
64073         * lib/signal_.h: Likewise.
64074         * lib/stdint_.h: Likewise.
64075         * lib/stdio_.h: Likewise.
64076         * lib/stdlib_.h: Likewise.
64077         * lib/string_.h: Likewise.
64078         * lib/sys_select_.h: Likewise.
64079         * lib/sys_socket_.h: Likewise.
64080         * lib/sys_stat_.h: Likewise.
64081         * lib/sys_time_.h: Likewise.
64082         * lib/sysexits_.h: Likewise.
64083         * lib/time_.h: Likewise.
64084         * lib/unistd_.h: Likewise.
64085         * lib/wchar_.h: Likewise.
64086         * lib/wctype_.h: Likewise.
64087
64088 2007-05-29  Bruno Haible  <bruno@clisp.org>
64089
64090         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
64091         for the moment.
64092
64093 2007-05-29  Bruno Haible  <bruno@clisp.org>
64094
64095         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
64096         invocation.
64097         Reported by Eric Blake.
64098
64099 2007-05-29  Bruno Haible  <bruno@clisp.org>
64100
64101         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
64102         compiling case.
64103
64104 2007-05-29  Eric Blake  <ebb9@byu.net>
64105             Bruno Haible  <bruno@clisp.org>
64106
64107         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
64108         cross compiles.
64109
64110 2007-05-28  Eric Blake  <ebb9@byu.net>
64111
64112         * modules/closein-tests (test_closein_LDADD): Support test on
64113         cygwin with libtool.
64114
64115 2007-05-28  Bruno Haible  <bruno@clisp.org>
64116
64117         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
64118         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64119         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64120         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64121         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64122         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64123         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64124         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64125         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64126
64127 2007-05-28  Eric Blake  <ebb9@byu.net>
64128
64129         Unconditionally include <config.h> in unit tests.
64130         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
64131         * tests/test-allocsa.c, tests/test-arcfour.c,
64132         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
64133         tests/test-array_list.c, tests/test-array_oset.c,
64134         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
64135         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
64136         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
64137         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
64138         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
64139         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
64140         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
64141         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
64142         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
64143         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
64144         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
64145         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
64146         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
64147         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
64148         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
64149         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
64150         test-md5.c, test-memmem.c, test-printf-posix.c,
64151         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
64152         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
64153         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
64154         test-strcasestr.c, test-striconv.c, test-striconveh.c,
64155         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
64156         test-vasnprintf-posix2.c, test-vasnprintf.c,
64157         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
64158         test-vfprintf-posix.c, test-vprintf-posix.c,
64159         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
64160         test-xvasprintf.c: Likewise.
64161
64162 2007-05-28  Bruno Haible  <bruno@clisp.org>
64163
64164         * gnulib-tool (func_import): Remember the --with-tests command-line
64165         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
64166         Reported by Eric Blake.
64167
64168 2007-05-28  Bruno Haible  <bruno@clisp.org>
64169
64170         * modules/ftell-tests: New file.
64171         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
64172         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
64173
64174         * lib/ftell.c: New file.
64175         * modules/ftell: New file.
64176         * m4/ftell.m4: New file.
64177         * doc/functions/ftell.texi: Update.
64178         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
64179         REPLACE_FTELL.
64180         * lib/stdio_.h (rpl_ftell): New declaration.
64181         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
64182         REPLACE_FTELL.
64183
64184 2007-05-28  Eric Blake  <ebb9@byu.net>
64185
64186         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
64187
64188 2007-05-28  Bruno Haible  <bruno@clisp.org>
64189
64190         * modules/fseek-tests: New file.
64191         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
64192         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
64193
64194         * lib/fseek.c: New file.
64195         * modules/fseek: New file.
64196         * m4/fseek.m4: New file.
64197         * doc/functions/fseek.texi: Update.
64198         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
64199         REPLACE_FSEEK.
64200         * lib/stdio_.h (rpl_fseek): New declaration.
64201         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
64202         REPLACE_FSEEK.
64203
64204 2007-05-28  Bruno Haible  <bruno@clisp.org>
64205
64206         * lib/stdio_.h (fflush): More comments.
64207
64208 2007-05-28  Bruno Haible  <bruno@clisp.org>
64209
64210         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
64211         runtime test.
64212
64213 2007-05-28  Eric Blake  <ebb9@byu.net>
64214
64215         Improve lseek module.
64216         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
64217         * lib/unistd_.h (lseek): Scale back link warning message.
64218         * tests/test-lseek.c: Beef up test.
64219         * tests/test-lseek.sh: Exercise more facets of lseek.
64220         Reported by Bruno Haible.
64221
64222 2007-05-28  Bruno Haible  <bruno@clisp.org>
64223
64224         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
64225         to define.
64226
64227 2007-05-27  Bruno Haible  <bruno@clisp.org>
64228
64229         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
64230
64231 2007-05-27  Bruno Haible  <bruno@clisp.org>
64232
64233         * modules/openmp: New file.
64234         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
64235         Noah Misch.
64236
64237 2007-05-26  Bruno Haible  <bruno@clisp.org>
64238
64239         * modules/chdir-long (Depends-on): Add fchdir.
64240         * modules/chdir-safer (Depends-on): Likewise.
64241         * modules/fts (Depends-on): Likewise.
64242         * modules/fts-lgpl (Depends-on): Likewise.
64243         * modules/openat (Depends-on): Likewise.
64244         * modules/savewd (Depends-on): Likewise.
64245
64246 2007-05-24  Eric Blake  <ebb9@byu.net>
64247
64248         Fix lseek on mingw.
64249         * modules/lseek: New module.
64250         * m4/lseek.m4: New file.
64251         * lib/lseek.c: New file.
64252         * modules/lseek-tests: New file.
64253         * tests/test-lseek.c: New file.
64254         * tests/test-lseek.sh: New file.
64255         * MODULES.html.sh: Document lseek module.
64256         * modules/fflush (Depends-on): Add lseek, fseeko.
64257         * modules/fseeko (Depends-on): Likewise.
64258         * modules/ftello (Depends-on): Likewise.
64259         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
64260         broken.
64261         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
64262         broken.
64263         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
64264         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
64265         * lib/ftello.c (rpl_ftello): Likewise.
64266         * tests/test-fseeko.c (main): Test this.
64267         * tests/test-fseeko.sh: Likewise.
64268         * tests/test-ftello.c (main): Likewise.
64269         * tests/test-ftello.sh: Likewise.
64270         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64271         implies replacing fseek.
64272         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64273         HAVE_FTELLO.
64274         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64275         * modules/unistd (Makefile.am): Likewise.
64276         * lib/unistd_.h (lseek): Declare a replacement.
64277         * doc/functions/lseek.texi (lseek): Document this fix.
64278         * doc/functions/fseek.texi (fseek): Likewise.
64279         * doc/functions/ftell.texi (ftell): Likewise.
64280
64281 2007-05-24  Bruno Haible  <bruno@clisp.org>
64282
64283         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
64284         in the printed representation of a NaN.
64285         * tests/test-vasprintf-posix.c (test_function): Likewise.
64286         * tests/test-snprintf-posix.h (test_function): Likewise.
64287         * tests/test-sprintf-posix.h (test_function): Likewise.
64288         Reported by Eric Blake.
64289
64290 2007-05-23  Eric Blake  <ebb9@byu.net>
64291
64292         Fix fseeko/ftello on cygwin 1.5.24.
64293         * doc/functions/fseeko.texi (fseeko): Document the fix.
64294         * doc/functions/ftello.texi (ftello): Document the fix.
64295         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
64296         * doc/functions/stdout.text (stdout): New file.
64297         * doc/functions/stderr.text (stderr): New file.
64298         * doc/gnulib.texi (Function Substitutes): Use new files.
64299         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
64300         prior to 1.7.0.
64301         * tests/test-ftello.c (main): Likewise for ftello.
64302         * tests/test-fseeko.sh: New file.
64303         * tests/test-ftello.sh: New file.
64304         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
64305         with seekable stdin.
64306         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
64307         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
64308         (gl_REPLACE_FSEEKO): New macro.
64309         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
64310         * modules/fseeko (Files): Distribute fseeko.c.
64311         * modules/ftello (Files): Distribute ftello.c.
64312         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
64313         mode.
64314         * lib/ftello.c (rpl_ftello): New file.
64315         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
64316         fseeko, ftello.
64317         (gl_STDIN_LARGE_OFFSET): New macro.
64318         * modules/stdio (Makefile.am): Perform the replacement.
64319         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
64320
64321 2007-05-23  Bruno Haible  <bruno@clisp.org>
64322
64323         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
64324         GNULIB_POSIXCHECK is defined.
64325
64326 2007-05-21  Bruno Haible  <bruno@clisp.org>
64327
64328         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
64329         Check also the output for NaN arguments. When cross-compiling, guess
64330         no on IRIX.
64331         * lib/vasnprintf.c: Update comments.
64332         * tests/test-vasnprintf-posix.c (strisnan): New function.
64333         (test_function): Use it.
64334         * tests/test-vasprintf-posix.c (strisnan): New function.
64335         (test_function): Use it.
64336         * tests/test-snprintf-posix.h (strisnan): New function.
64337         (test_function): Use it.
64338         * tests/test-sprintf-posix.h (strisnan): New function.
64339         (test_function): Use it.
64340         Reported by Eric Blake.
64341
64342 2007-05-20  Bruno Haible  <bruno@clisp.org>
64343
64344         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
64345         numbers that fails on BeOS.
64346         * doc/functions/frexpl.texi: Update.
64347
64348 2007-05-20  Jim Meyering  <jim@meyering.net>
64349
64350         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
64351         forced upon us by glibc-2.6.
64352
64353 2007-05-20  Bruno Haible  <bruno@clisp.org>
64354
64355         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
64356         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
64357         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
64358         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
64359         NEED_PRINTF_INFINITE.
64360         (is_infinitel): New function.
64361         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
64362         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
64363         gl_PREREQ_VASNPRINTF_INFINITE.
64364         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
64365         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64366         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
64367         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
64368         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
64369         gl_PREREQ_VASNPRINTF_INFINITE.
64370         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64371         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64372         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64373         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64374         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64375         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64376         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64377         * doc/functions/fprintf.texi: Update.
64378         * doc/functions/printf.texi: Update.
64379         * doc/functions/snprintf.texi: Update.
64380         * doc/functions/sprintf.texi: Update.
64381         * doc/functions/vfprintf.texi: Update.
64382         * doc/functions/vprintf.texi: Update.
64383         * doc/functions/vsnprintf.texi: Update.
64384         * doc/functions/vsprintf.texi: Update.
64385
64386 2007-05-20  Bruno Haible  <bruno@clisp.org>
64387
64388         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
64389         was not found in libc.
64390         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
64391
64392 2007-05-20  Bruno Haible  <bruno@clisp.org>
64393
64394         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64395         printed as "-nan" instead of "nan".
64396         * tests/test-vasprintf-posix.c (test_function): Likewise.
64397         * tests/test-snprintf-posix.h (test_function): Likewise.
64398         * tests/test-sprintf-posix.h (test_function): Likewise.
64399         Needed for HP-UX 11.
64400
64401 2007-05-20  Jim Meyering  <jim@meyering.net>
64402
64403         Fix buggy test for the fchownat-deref bug.
64404         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
64405         symlink required for the run-test.  Without it, this test would
64406         always declare that fchownat doesn't work, and client code would
64407         unnecessarily use the replacement function with fixed libc.
64408         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
64409         Reported by Greg Schafer.
64410
64411 2007-05-19  Bruno Haible  <bruno@clisp.org>
64412
64413         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
64414         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
64415         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
64416         Needed for IRIX 6.5 and Solaris 2.5.1.
64417
64418 2007-05-19  Bruno Haible  <bruno@clisp.org>
64419
64420         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
64421         (test_function): Skip tests involving -0.0 on platforms where
64422         -0.0 = 0.0.
64423         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
64424         (test_function): Skip tests involving -0.0 on platforms where
64425         -0.0 = 0.0.
64426         * tests/test-snprintf-posix.h (have_minus_zero): New function.
64427         (test_function): Skip tests involving -0.0 on platforms where
64428         -0.0 = 0.0.
64429         * tests/test-sprintf-posix.h (have_minus_zero): New function.
64430         (test_function): Skip tests involving -0.0 on platforms where
64431         -0.0 = 0.0.
64432         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
64433         tests.
64434         * tests/test-printf-posix.h (test_function): Likewise.
64435         * tests/test-printf-posix.output: Remove all -0.0 related results.
64436         Needed for IRIX 6.5.
64437
64438 2007-05-19  Bruno Haible  <bruno@clisp.org>
64439
64440         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64441         printed as "nan0x7fffffff" instead of "nan".
64442         * tests/test-vasprintf-posix.c (test_function): Likewise.
64443         * tests/test-snprintf-posix.h (test_function): Likewise.
64444         * tests/test-sprintf-posix.h (test_function): Likewise.
64445         * tests/test-fprintf-posix.h (NaN): Remove macro.
64446         (test_function): Remove all NaN related tests.
64447         * tests/test-printf-posix.h (NaN): Remove macro.
64448         (test_function): Remove all NaN related tests.
64449         * tests/test-printf-posix.output: Remove all NaN related results.
64450         Needed for IRIX 6.5.
64451
64452 2007-05-19  Bruno Haible  <bruno@clisp.org>
64453
64454         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
64455         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64456
64457 2007-05-19  Bruno Haible  <bruno@clisp.org>
64458
64459         * lib/float_.h: New file.
64460         * m4/float_h.m4: New file.
64461         * modules/float: New file.
64462         * modules/isnanl (Dependencies): Add float.
64463         * modules/isnanl-nolibm (Dependencies): Likewise.
64464         * modules/mathl (Dependencies): Likewise.
64465         * modules/printf-frexpl (Dependencies): Likewise.
64466         * modules/signbit (Dependencies): Likewise.
64467         * modules/vasnprintf (Dependencies): Likewise.
64468         * doc/headers/float.texi: Update.
64469
64470 2007-05-19  Jim Meyering  <jim@meyering.net>
64471
64472         * lib/utimens.c (gl_futimens): Rename from futimens,
64473         now that glibc-2.6 declares futimens.
64474         * lib/utimens.h: Likewise.
64475
64476 2007-05-19  Bruno Haible  <bruno@clisp.org>
64477
64478         Avoid test failures on mingw.
64479         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
64480         * tests/test-printf-posix.sh: Likewise.
64481         * tests/test-vfprintf-posix.sh: Likewise.
64482         * tests/test-vprintf-posix.sh: Likewise.
64483
64484 2007-05-19  Bruno Haible  <bruno@clisp.org>
64485
64486         Fix *printf result for NaN, Inf, -0.0 on mingw.
64487         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
64488         * lib/vasnprintf.c: Include math.h and isnan.h.
64489         (is_infinite_or_zero): New function.
64490         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
64491         values in the %f, %F, %e, %E, %g, %G directives.
64492         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
64493         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64494         gl_PRINTF_INFINITE and test its result. Invoke
64495         gl_PREREQ_VASNPRINTF_INFINITE.
64496         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64497         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64498         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64499         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64500         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64501         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64502         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64503         * doc/functions/fprintf.texi: Update.
64504         * doc/functions/printf.texi: Update.
64505         * doc/functions/snprintf.texi: Update.
64506         * doc/functions/sprintf.texi: Update.
64507         * doc/functions/vfprintf.texi: Update.
64508         * doc/functions/vprintf.texi: Update.
64509         * doc/functions/vsnprintf.texi: Update.
64510         * doc/functions/vsprintf.texi: Update.
64511
64512 2007-05-19  Bruno Haible  <bruno@clisp.org>
64513
64514         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
64515         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
64516         Instead of multiplying with 10^k, set extra_zeroes to k.
64517         (scale10_round_long_double): Remove function.
64518
64519 2007-05-18  Bruno Haible  <bruno@clisp.org>
64520
64521         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
64522         introduced on 2007-05-06.
64523
64524 2007-05-18  Bruno Haible  <bruno@clisp.org>
64525
64526         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
64527         %g directives.
64528         * tests/test-vasprintf-posix.c (test_function): Likewise.
64529         * tests/test-snprintf-posix.h (test_function): Likewise.
64530         * tests/test-sprintf-posix.h (test_function): Likewise.
64531
64532 2007-05-18  Bruno Haible  <bruno@clisp.org>
64533
64534         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
64535         (strmatch): New function.
64536         (test_function): Test the %f directive on numbers of various exponents.
64537         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
64538         (strmatch): New function.
64539         (test_function): Test the %f directive on numbers of various exponents.
64540         * tests/test-snprintf-posix.h (strmatch): New function.
64541         (test_function): Test the %f directive on numbers of various exponents.
64542         * tests/test-sprintf-posix.h (strmatch): New function.
64543         (test_function): Test the %f directive on numbers of various exponents.
64544         * tests/test-snprintf-posix.c (SIZEOF): New macro.
64545         * tests/test-sprintf-posix.c (SIZEOF): New macro.
64546         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
64547         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
64548
64549 2007-05-18  Bruno Haible  <bruno@clisp.org>
64550
64551         Add support for 'long double' number output.
64552         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
64553         * lib/vasnprintf.c: Include math.h and float+.h.
64554         (mp_limb_t): New type.
64555         (GMP_LIMB_BITS): New macro.
64556         (mp_twolimb_t): New type.
64557         (GMP_TWOLIMB_BITS): New macro.
64558         (mpn_t): New type.
64559         (multiply, divide, convert_to_decimal, decode_long_double,
64560         scale10_round_long_double, scale10_round_decimal_long_double,
64561         floorlog10l): New functions.
64562         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
64563         for the %f, %F, %e, %E, %g, %G directives.
64564         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
64565         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64566         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
64567         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
64568         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64569         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64570         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64571         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64572         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64573         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64574         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64575         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
64576         * modules/snprintf-posix (Depends-on): Likewise.
64577         * modules/sprintf-posix (Depends-on): Likewise.
64578         * modules/vasnprintf-posix (Depends-on): Likewise.
64579         * modules/vasprintf-posix (Depends-on): Likewise.
64580         * modules/vfprintf-posix (Depends-on): Likewise.
64581         * modules/vsnprintf-posix (Depends-on): Likewise.
64582         * modules/vsprintf-posix (Depends-on): Likewise.
64583         * modules/vasnprintf (Files): Add lib/float+.h.
64584         * doc/functions/fprintf.texi: Update.
64585         * doc/functions/printf.texi: Update.
64586         * doc/functions/snprintf.texi: Update.
64587         * doc/functions/sprintf.texi: Update.
64588         * doc/functions/vfprintf.texi: Update.
64589         * doc/functions/vprintf.texi: Update.
64590         * doc/functions/vsnprintf.texi: Update.
64591         * doc/functions/vsprintf.texi: Update.
64592
64593 2007-05-18  Bruno Haible  <bruno@clisp.org>
64594
64595         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
64596
64597 2007-05-18  Bruno Haible  <bruno@clisp.org>
64598
64599         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
64600         for printing 64-bit integers. Needed for mingw.
64601
64602 2007-05-18  Bruno Haible  <bruno@clisp.org>
64603
64604         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
64605         gl_FUNC_FREXPL_WORKS.
64606         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
64607
64608 2007-05-18  Bruno Haible  <bruno@clisp.org>
64609
64610         * modules/frexpl-nolibm-tests: New file.
64611
64612         * modules/frexpl-nolibm: New file.
64613         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
64614
64615 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64616
64617         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
64618         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64619         GCC 4.2, which otherwise issues a lot of warnings.
64620         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
64621         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
64622         Likewise.
64623         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
64624         * modules/iconv_open (iconv.h): Likewise.
64625         * modules/locale (locale.h): Likewise.
64626         * modules/netinet_in (netinet/in.h): Likewise.
64627         * modules/sys_select (sys_select.h): Likewise.
64628         * modules/sys_socket (sys/socket.h): Likewise.
64629         * modules/sys_stat (sys/stat.h): Likewise.
64630         * modules/sysexits (sysexits.h): Likewise.
64631         * modules/unistd (unistd.h): Likewise.
64632
64633 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64634
64635         * modules/closein-tests (Makefile.am): Distribute
64636         `test-closein.sh'.
64637
64638 2007-05-17  Bruno Haible  <bruno@clisp.org>
64639
64640         * tests/test-printf-posix.output: Renamed from
64641         tests/test-fprintf-posix.out.
64642         * modules/fprintf-posix-tests: Update.
64643         * modules/printf-posix-tests: Update.
64644         * modules/vfprintf-posix-tests: Update.
64645         * modules/vprintf-posix-tests: Update.
64646         * tests/test-fprintf-posix.sh: Update.
64647         * tests/test-printf-posix.sh: Update.
64648         * tests/test-vfprintf-posix.sh: Update.
64649         * tests/test-vprintf-posix.sh: Update.
64650         Reported by Ralf Wildenhues.
64651
64652 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64653
64654         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
64655         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64656         GCC 4.2, which otherwise issues a lot of warnings.
64657         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
64658         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
64659         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
64660         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
64661         it should no longer be needed.
64662         * lib/string_.h: Likewise.
64663         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
64664         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
64665         * modules/inttypes (inttypes.h): Likewise.
64666         * modules/math (math.h): Likewise.
64667         * modules/search (search.h): Likewise.
64668         * modules/signal (signal.h): Likewise.
64669         * modules/stdint (stdint.h): Likewise.
64670         * modules/stdio (stdio.h): Likewise.
64671         * modules/stdlib (stdlib.h): Likewise.
64672         * modules/string (string.h): Likewise.
64673         * modules/sys_time (sys/time.h): Likewise.
64674         * modules/time (time.h): Likewise.
64675         * modules/wchar (wchar.h): Likewise.
64676         * modules/wctype (wtype.h): Likewise.
64677
64678 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64679
64680         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
64681
64682 2007-05-13  Bruno Haible  <bruno@clisp.org>
64683
64684         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
64685         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64686         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
64687         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64688         (gl_PREREQ_STRTOK_R): Don't require it here.
64689
64690 2007-05-13  Bruno Haible  <bruno@clisp.org>
64691
64692         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
64693         when used in C++ mode.
64694
64695 2007-05-12  Bruno Haible  <bruno@clisp.org>
64696
64697         * lib/linebuffer.h: Tweak doc.
64698         * lib/linebuffer.c: Likewise.
64699
64700 2007-05-12  James Youngman  <jay@gnu.org>
64701
64702         * lib/linebuffer.c (readlinebuffer_delim): New function,
64703         like readlinebuffer, but use a caller-specified delimiter.
64704         (readlinebuffer): Just call readlinebuffer_delim with '\n'
64705         as the delimiter.
64706         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
64707
64708 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64709
64710         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
64711         * modules/openat (Files): Remove openat-die.c.
64712         (Depends-on): Add openat-die.
64713         * modules/openat-die: New module.
64714
64715 2007-05-06  Bruno Haible  <bruno@clisp.org>
64716
64717         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
64718         Update with info about Cygwin.
64719         * doc/functions/fprintf.texi: Update.
64720         * doc/functions/printf.texi: Update.
64721         * doc/functions/snprintf.texi: Update.
64722         * doc/functions/sprintf.texi: Update.
64723         * doc/functions/vfprintf.texi: Update.
64724         * doc/functions/vprintf.texi: Update.
64725         * doc/functions/vsnprintf.texi: Update.
64726         * doc/functions/vsprintf.texi: Update.
64727         Reported by Eric Blake.
64728
64729 2007-05-06  Bruno Haible  <bruno@clisp.org>
64730
64731         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
64732         padding ourselves for the floating-point directives.
64733         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
64734         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
64735         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64736         gl_PRINTF_FLAG_ZERO and test its result. Invoke
64737         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
64738         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64739         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64740         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64741         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64742         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64743         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64744         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64745         * tests/test-snprintf-posix.h (test_function): Also check the width
64746         and some flags in the %f directive.
64747         * tests/test-sprintf-posix.h (test_function): Likewise.
64748         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64749         * tests/test-vasprintf-posix.c (test_function): Likewise.
64750         * doc/functions/fprintf.texi: Update.
64751         * doc/functions/printf.texi: Update.
64752         * doc/functions/snprintf.texi: Update.
64753         * doc/functions/sprintf.texi: Update.
64754         * doc/functions/vfprintf.texi: Update.
64755         * doc/functions/vprintf.texi: Update.
64756         * doc/functions/vsnprintf.texi: Update.
64757         * doc/functions/vsprintf.texi: Update.
64758
64759 2007-05-06  Bruno Haible  <bruno@clisp.org>
64760
64761         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
64762         pass the ' flag character to sprintf or snprintf.
64763         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
64764         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
64765         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64766         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
64767         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
64768         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64769         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64770         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64771         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64772         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64773         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64774         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64775         * tests/test-snprintf-posix.h (test_function): Also check the grouping
64776         flag.
64777         * tests/test-sprintf-posix.h (test_function): Likewise.
64778         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64779         * tests/test-vasprintf-posix.c (test_function): Likewise.
64780         * doc/functions/fprintf.texi: Update.
64781         * doc/functions/printf.texi: Update.
64782         * doc/functions/snprintf.texi: Update.
64783         * doc/functions/sprintf.texi: Update.
64784         * doc/functions/vfprintf.texi: Update.
64785         * doc/functions/vprintf.texi: Update.
64786         * doc/functions/vsnprintf.texi: Update.
64787         * doc/functions/vsprintf.texi: Update.
64788
64789 2007-05-01  Bruno Haible  <bruno@clisp.org>
64790
64791         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
64792
64793 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
64794
64795         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
64796         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
64797
64798 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64799
64800         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
64801         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
64802         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
64803
64804 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
64805
64806         * lib/argp-help.c (struct hol_entry): New member `ord'.
64807         (HOL_ENTRY_PTRCMP): Use ord for comparison
64808         (hol_sort): Initialize ord.
64809
64810 2007-05-01  Bruno Haible  <bruno@clisp.org>
64811
64812         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
64813         Reported by Eric Blake.
64814         * doc/gnulib.texi (Function Substitutes): Update.
64815
64816 2007-05-01  Bruno Haible  <bruno@clisp.org>
64817
64818         * doc/functions.texi: Remove file, now redundant through
64819         doc/functions/*.texi.
64820
64821 2007-05-01  Bruno Haible  <bruno@clisp.org>
64822
64823         * modules/argp (Depends-on): Add sleep.
64824
64825 2007-05-01  Bruno Haible  <bruno@clisp.org>
64826
64827         * modules/sleep-tests: New file.
64828         * tests/test-sleep.c: New file.
64829
64830         * modules/sleep: New file.
64831         * lib/sleep.c: New file.
64832         * m4/sleep.m4: New file.
64833         * lib/unistd_.h (sleep): New declaration.
64834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
64835         HAVE_SLEEP.
64836         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
64837         * doc/functions/sleep.texi: Document the sleep module.
64838
64839 2007-05-01  Bruno Haible  <bruno@clisp.org>
64840
64841         * lib/sigprocmask.h: Remove file.
64842         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
64843         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
64844         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
64845         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
64846         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
64847         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
64848         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
64849         HAVE_SIGSET_T as a shell variable.
64850         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
64851         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
64852         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
64853         (Depends-on): Add signal. Remove verify.
64854         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
64855         (Include): Mention <signal.h> instead of sigprocmask.h.
64856         * NEWS: Mention the change.
64857         * lib/fatal-signal.c: Don't include sigprocmask.h.
64858
64859 2007-05-01  Bruno Haible  <bruno@clisp.org>
64860
64861         * modules/signal: New file.
64862         * lib/signal_.h: New file.
64863         * m4/signal_h.m4: New file.
64864
64865 2007-05-01  Bruno Haible  <bruno@clisp.org>
64866
64867         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
64868         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
64869         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
64870         HAVE_WCTYPE_CTMP_BUG into wctype.h.
64871
64872 2007-05-01  Bruno Haible  <bruno@clisp.org>
64873
64874         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
64875         configure time.
64876         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
64877         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
64878         * modules/sys_stat (Makefile.am): Substitute their values into
64879         sys/stat.h.
64880
64881 2007-05-01  Bruno Haible  <bruno@clisp.org>
64882
64883         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
64884         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
64885         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
64886
64887 2007-05-01  Bruno Haible  <bruno@clisp.org>
64888
64889         * doc/header/assert.texi: Undo last change: don't mention the gnulib
64890         'assert' module here.
64891
64892 2007-05-01  Bruno Haible  <bruno@clisp.org>
64893
64894         * doc/functions/*.texi: New files.
64895         * doc/functions/google-ranking.txt: New file.
64896         * doc/gnulib.texi (Function Substitutes): New chapter.
64897         (ctime, inet_ntoa): Remove sections.
64898         * doc/ctime.texi: Remove file.
64899         * doc/inet_ntoa.texi: Remove file.
64900         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
64901         dependencies.
64902         (%.info): New rule, specifying a --reference-limit.
64903
64904 2007-05-01  Bruno Haible  <bruno@clisp.org>
64905
64906         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
64907
64908 2007-05-01  Bruno Haible  <bruno@clisp.org>
64909
64910         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
64911         the portability of 'mkdir' to mingw systems.
64912
64913 2007-05-01  Bruno Haible  <bruno@clisp.org>
64914
64915         * doc/headers/google-ranking.txt: New file.
64916
64917 2007-04-30  Eric Blake  <ebb9@byu.net>
64918
64919         Prefer fseeko to fseek.
64920         * modules/getpass (Depends-on): Add fseeko.
64921         * lib/getpass.c (getpass): Use fseeko, not fseek.
64922
64923 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
64924
64925         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
64926         assumes the sorting is stable, while most qsort implementations
64927         are not.  Use argument addresses to ensure they never compare as
64928         equal.
64929
64930         * tests/test-argp-2.sh (usage-indent test): Fix output
64931         (func_compare): Restore diff options
64932         * tests/test-argp.c: Restore #include "progname.h"
64933
64934 2007-04-29  Bruno Haible  <bruno@clisp.org>
64935
64936         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
64937         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64938         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
64939         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64940         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
64941         (configure.ac): Define CHECK_SNPRINTF_POSIX.
64942         (TESTS, check_PROGRAMS): Add test-snprintf.
64943         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
64944         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
64945         (TESTS, check_PROGRAMS): Add test-vsnprintf.
64946         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
64947         assertions that fail on HP-UX, OSF/1, or IRIX.
64948         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
64949
64950 2007-04-29  Bruno Haible  <bruno@clisp.org>
64951
64952         * MODULES.html.sh (posix_functions): Remove 'contents'.
64953
64954 2007-04-29  Karl Berry  <karl@gnu.org>
64955
64956         * config/srclist.txt (gendocs_template_min): new entry.
64957
64958 2007-04-29  Bruno Haible  <bruno@clisp.org>
64959
64960         Work around fpurge bug on BSD systems.
64961         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
64962         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
64963         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
64964         fpurge to rpl_fpurge if the system already has this function.
64965         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
64966         the case where the system already has this function. Correct invariants
64967         on BSD systems.
64968         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
64969         BSD systems.
64970
64971 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
64972
64973         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
64974         proposed by Sven Verdoolaege.
64975
64976         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
64977         options.
64978         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
64979         (usage and help tests): Update
64980
64981 2007-04-29  Bruno Haible  <bruno@clisp.org>
64982
64983         * tests/test-fflush.c (main): Use a file of size 17, not 10.
64984         Print more information in case of failure. Disable a test on BeOS.
64985
64986 2007-04-29  Bruno Haible  <bruno@clisp.org>
64987
64988         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
64989         This helps debugging on systems on which no gdb is available.
64990
64991 2007-04-29  Bruno Haible  <bruno@clisp.org>
64992
64993         * lib/freading.h: Improve comments.
64994         * lib/fwriting.h: Likewise.
64995         * tests/test-freading.c (main): Don't check freading immediately after
64996         repositioning. Needed for glibc.
64997
64998 2007-04-29  Bruno Haible  <bruno@clisp.org>
64999
65000         * lib/freading.c (freading): Trivial simplification.
65001
65002 2007-04-28  Bruno Haible  <bruno@clisp.org>
65003
65004         * tests/test-fwriting.c (main): Also test the interaction between
65005         fflush and fwriting.
65006         * modules/fwriting-tests (Depends-on): Add fflush.
65007
65008         * tests/test-freading.c (main): Also test the interaction between
65009         fflush and freading.
65010         * modules/freading-tests (Depends-on): Add fflush.
65011
65012 2007-04-28  Bruno Haible  <bruno@clisp.org>
65013
65014         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
65015         fseeko and ftello.
65016         Suggested by Eric Blake.
65017
65018 2007-04-28  Jim Meyering  <jim@meyering.net>
65019
65020         Avoid false-negative in gl_STDINT_H's C99 conformance test.
65021         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
65022         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
65023
65024 2007-04-27  Eric Blake  <ebb9@byu.net>
65025
65026         * doc/headers/assert.texi (assert.h): Document assert module use.
65027
65028 2007-04-27  Bruno Haible  <bruno@clisp.org>
65029
65030         * doc/headers/*.texi: New files.
65031         * doc/gnulib.texi (Header File Substitutes): New chapter.
65032         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
65033         dependencies.
65034         (standards.info ,standards.html, standards.dvi): Update dependencies.
65035         (mostlyclean, clean): New targets.
65036
65037 2007-04-27  Bruno Haible  <bruno@clisp.org>
65038
65039         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
65040         * modules/sysexits (Files, Makefile.am): Update.
65041
65042         * lib/sys_socket_.h: Renamed from lib/socket_.h.
65043         * modules/sys_socket (Files, Makefile.am): Update.
65044
65045         * lib/sys_stat_.h: Renamed from lib/stat_.h.
65046         * modules/sys_stat (Files, Makefile.am): Update.
65047
65048 2007-04-27  Eric Blake  <ebb9@byu.net>
65049
65050         * lib/freading.h: Improve comments.
65051         * lib/fwriting.h: Likewise.
65052         * lib/fflush.c: Likewise.
65053
65054         Fix closein for mingw.
65055         * modules/closein-tests: Add tests for closein.
65056         * tests/test-closein.c: New file.
65057         * tests/test-closein.sh: Likewise.
65058         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
65059         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
65060
65061 2007-04-27  Bruno Haible  <bruno@clisp.org>
65062
65063         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
65064         version is < 6.
65065         * lib/math_.h [__DECC]: Likewise.
65066         * lib/stdio_.h [__DECC]: Likewise.
65067         * lib/stdlib_.h [__DECC]: Likewise.
65068         * lib/string_.h [__DECC]: Likewise.
65069         * lib/time_.h [__DECC]: Likewise.
65070         * lib/wchar_.h [__DECC]: Likewise.
65071         * lib/wctype_.h [__DECC]: Likewise.
65072
65073 2007-04-27  Bruno Haible  <bruno@clisp.org>
65074
65075         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
65076
65077 2007-04-27  Bruno Haible  <bruno@clisp.org>
65078
65079         * lib/fflush.c: Add comments.
65080         * modules/fpurge-tests (Depends-on): Add fflush.
65081         * modules/freadable-tests (Depends-on): Likewise.
65082         * modules/fwritable-tests (Depends-on): Likewise.
65083
65084 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
65085
65086         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
65087         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
65088         Report by Bruno Haible <bruno@clisp.org>.
65089
65090 2007-04-26  Eric Blake  <ebb9@byu.net>
65091
65092         Fix fflush on mingw.
65093         * modules/fflush (Depends-on): Add freading.
65094         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
65095         but unread data.
65096
65097 2007-04-26  Eric Blake  <ebb9@byu.net>
65098         and Bruno Haible  <bruno@clisp.org>
65099
65100         Implement freading and fwriting.
65101         * lib/freading.c: New file.
65102         * lib/freading.h: Likewise.
65103         * m4/freading.m4: Likewise.
65104         * modules/freading: Likewise.
65105         * modules/freading-tests: Likewise.
65106         * tests/test-freading.c: Likewise.
65107         * lib/fwriting.c: New file.
65108         * lib/fwriting.h: Likewise.
65109         * m4/fwriting.m4: Likewise.
65110         * modules/fwriting: Likewise.
65111         * modules/fwriting-tests: Likewise.
65112         * tests/test-fwriting.c: Likewise.
65113         * MODULES.html.sh (File stream based Input/Output): Mention them.
65114
65115 2007-04-26  Bruno Haible  <bruno@clisp.org>
65116
65117         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
65118         'long' when we assume it.
65119         Suggested by Eric Blake.
65120
65121 2007-04-26  Bruno Haible  <bruno@clisp.org>
65122
65123         Ensure fseeko, ftello are declared on glibc systems.
65124         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
65125         * modules/fseeko (configure.ac-early): Likewise.
65126         * modules/ftello (configure.ac-early): Likewise.
65127         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
65128         AC_FUNC_FSEEKO for this.
65129         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
65130         (gl_CHECK_FSEEKO): Remove macro.
65131
65132 2007-04-26  Bruno Haible  <bruno@clisp.org>
65133
65134         * tests/test-fflush.c (main): Also check the ftell result after
65135         fflush and fseek/fseeko.
65136         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
65137         file descriptor position cache in the stream.
65138         * lib/fseeko.c (rpl_fseeko): Likewise.
65139
65140 2007-04-26  Bruno Haible  <bruno@clisp.org>
65141
65142         * modules/fflush-tests (Depends-on): Add fseeko.
65143
65144 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
65145             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65146
65147         * lib/argz_.h: ensure error_t definition is obtained in same
65148         mechanism system argz.h would have.
65149         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
65150         argz facilities are known bad.  Err on the side of caution if
65151         cross-compiling.
65152
65153 2007-04-25  Eric Blake  <ebb9@byu.net>
65154
65155         * lib/fpurge.c (includes): Use stdlib.h for free.
65156         * tests/test-fflush.c (main): Also test fflush-fseeko.
65157
65158 2007-04-25  Bruno Haible  <bruno@clisp.org>
65159
65160         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
65161         * lib/fseeko.c: New file.
65162         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
65163         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
65164         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
65165         gl_FUNC_FSEEKO.
65166         (gl_FUNC_FSEEKO): Invoke it.
65167         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
65168         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
65169         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
65170
65171 2007-04-25  Bruno Haible  <bruno@clisp.org>
65172
65173         * modules/fflush (Depends-on): Add ftello.
65174
65175 2007-04-25  Bruno Haible  <bruno@clisp.org>
65176
65177         * modules/ftello-tests: New file.
65178         * tests/test-ftello.c: New file.
65179
65180         * modules/ftello: New file.
65181         * m4/ftello.m4: New file.
65182         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
65183         HAVE_FTELLO.
65184         * lib/stdio_.h (ftello): New declaration.
65185         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
65186         HAVE_FTELLO.
65187
65188 2007-04-25  Bruno Haible  <bruno@clisp.org>
65189
65190         * modules/fseeko-tests: New file.
65191         * tests/test-fseeko.c: New file.
65192
65193         * modules/fseeko: New file.
65194         * m4/fseeko.m4: New file.
65195         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
65196         HAVE_FSEEKO.
65197         * lib/stdio_.h (fseeko): New declaration.
65198         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
65199         HAVE_FSEEKO.
65200
65201 2007-04-25  Bruno Haible  <bruno@clisp.org>
65202
65203         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
65204
65205 2007-04-25  Bruno Haible  <bruno@clisp.org>
65206
65207         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
65208         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
65209         * tests/test-unistd.c: Likewise.
65210         * tests/test-fcntl.c: Likewise.
65211
65212 2007-04-23  Eric Blake  <ebb9@byu.net>
65213
65214         * lib/fflush.c: Fix missing include.
65215         Reported by Bruno Haible.
65216
65217 2007-04-23  Bruno Haible  <bruno@clisp.org>
65218
65219         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
65220         Reported by Eric Blake.
65221
65222 2007-04-23  Bruno Haible  <bruno@clisp.org>
65223
65224         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
65225
65226 2007-04-23  Bruno Haible  <bruno@clisp.org>
65227
65228         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
65229
65230 2007-04-23  Bruno Haible  <bruno@clisp.org>
65231
65232         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
65233         Needed on HP-UX 11.
65234
65235 2007-04-16  Eric Blake  <ebb9@byu.net>
65236
65237         Make fflush rely on fpurge.
65238         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
65239         open coding all variants.
65240         * modules/fflush (Depends-on): Add fpurge and unistd.
65241         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
65242         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
65243
65244         Fix --with-tests compilation on cygwin.
65245         * modules/argmatch-tests (Makefile.am): List gnulib library first
65246         in LDADD.
65247         * modules/argp-tests (Makefile.am): Likewise.
65248         * modules/array-list-tests (Makefile.am): Likewise.
65249         * modules/array-oset-tests (Makefile.am): Likewise.
65250         * modules/avltree-list-tests (Makefile.am): Likewise.
65251         * modules/avltree-oset-tests (Makefile.am): Likewise.
65252         * modules/avltreehash-list-tests (Makefile.am): Likewise.
65253         * modules/carray-list-tests (Makefile.am): Likewise.
65254         * modules/dirname-tests (Makefile.am): Likewise.
65255         * modules/frexp-tests (Makefile.am): Likewise.
65256         * modules/isnanl-tests (Makefile.am): Likewise.
65257         * modules/linked-list-tests (Makefile.am): Likewise.
65258         * modules/linkedhash-list-tests (Makefile.am): Likewise.
65259         * modules/lock-tests (Makefile.am): Likewise.
65260         * modules/rbtree-list-tests (Makefile.am): Likewise.
65261         * modules/rbtree-oset-tests (Makefile.am): Likewise.
65262         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
65263         * modules/tls-tests (Makefile.am): Likewise.
65264         * modules/tsearch-tests (Makefile.am): Likewise.
65265         * modules/xvasprintf-tests (Makefile.am): Likewise.
65266
65267         Fix fpurge for cygwin.
65268         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65269         value.
65270         * modules/fpurge-tests (Depends-on): Clean up trash.
65271
65272 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65273
65274         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65275
65276         * m4/autobuild.m4: Re-indent.
65277
65278 2007-04-13  Bruno Haible  <bruno@clisp.org>
65279
65280         * modules/fpurge-tests: New file.
65281         * tests/test-fpurge.c: New file.
65282
65283         * modules/fpurge: New file.
65284         * lib/fpurge.h: New file.
65285         * lib/fpurge.c: New file.
65286         * m4/fpurge.m4: New file.
65287
65288 2007-04-13  Bruno Haible  <bruno@clisp.org>
65289
65290         * modules/fbufmode-tests: New file.
65291         * tests/test-fbufmode.c: New file.
65292
65293         * modules/fbufmode: New file.
65294         * lib/fbufmode.h: New file.
65295         * lib/fbufmode.c: New file.
65296         * m4/fbufmode.m4: New file.
65297
65298 2007-04-13  Bruno Haible  <bruno@clisp.org>
65299
65300         * modules/fwritable-tests: New file.
65301         * tests/test-fwritable.c: New file.
65302
65303         * modules/fwritable: New file.
65304         * lib/fwritable.h: New file.
65305         * lib/fwritable.c: New file.
65306         * m4/fwritable.m4: New file.
65307
65308 2007-04-13  Bruno Haible  <bruno@clisp.org>
65309
65310         * modules/freadable-tests: New file.
65311         * tests/test-freadable.c: New file.
65312
65313         * modules/freadable: New file.
65314         * lib/freadable.h: New file.
65315         * lib/freadable.c: New file.
65316         * m4/freadable.m4: New file.
65317
65318 2007-04-13  Bruno Haible  <bruno@clisp.org>
65319
65320         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
65321         MOSTLYCLEANFILES.
65322
65323 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65324
65325         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
65326         gzip bootstrap.conf to avoid dragging in i18n machinery.
65327         (gnulib_tool_option): Use it.
65328
65329 2007-04-13  Bruno Haible  <bruno@clisp.org>
65330
65331         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
65332         %F directives.
65333         * tests/test-vasprintf-posix.c (test_function): Likewise.
65334         * tests/test-snprintf-posix.h (test_function): Likewise.
65335         * tests/test-sprintf-posix.h (test_function): Likewise.
65336         * tests/test-fprintf-posix.h (test_function): Likewise.
65337         * tests/test-printf-posix.h (test_function): Likewise.
65338         * tests/test-fprintf-posix.out: Likewise.
65339
65340 2007-04-13  Bruno Haible  <bruno@clisp.org>
65341
65342         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
65343         * modules/tls-tests (configure.ac): Likewise.
65344         Reported by Arto C. Nirkko <anirkko@insel.ch>.
65345
65346 2007-04-13  Bruno Haible  <bruno@clisp.org>
65347
65348         * lib/tls.c (glthread_tls_get): Fix return type.
65349         Patch by Arto C. Nirkko <anirkko@insel.ch>.
65350
65351 2007-04-12  Eric Blake  <ebb9@byu.net>
65352
65353         * modules/gettime (Depends-on): Remove gettime.
65354         Reported by Dmitry V. Levin.
65355
65356 2007-04-12  Bruno Haible  <bruno@clisp.org>
65357
65358         * modules/fflush (Include): Mention <stdio.h>.
65359         * modules/strtoimax (Include): Mention <inttypes.h>.
65360         * modules/strtoumax (Include): Likewise.
65361
65362 2007-04-12  Eric Blake  <ebb9@byu.net>
65363
65364         * .cvsignore: New file.
65365         * .gitignore: Likewise.
65366
65367 2007-04-12  Bruno Haible  <bruno@clisp.org>
65368
65369         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
65370         not before, since $(LDADD) often contains libgnu.a.
65371         * modules/striconv-tests (test_striconv_LDADD): Likewise.
65372         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
65373         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
65374         Needed on Cygwin.
65375
65376 2007-04-12  Eric Blake  <ebb9@byu.net>
65377
65378         Work around glibc's failure to flush stdin on fclose.
65379         * lib/closein.c (close_stdin): Flush stdin before closing.
65380
65381         Work around glibc's failure to reset seekable stdin on exit.
65382         * modules/closein: New module.
65383         * lib/closein.c: New file.
65384         * lib/closein.h: Likewise.
65385         * m4/closein.m4: Likewise.
65386         * MODULES.html.sh (File stream based Input/Output): Document it.
65387
65388 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65389
65390         * gnulib-tool: Rename generated 'autobuild' script to
65391         'do-autobuild' in --create-megatestdir output.
65392
65393         * doc/gnulib.texi (Build robot for gnulib): Fix.
65394
65395 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65396
65397         * modules/sysexits (Depends-on): Add absolute-header.
65398
65399 2007-04-12  Eric Blake  <ebb9@byu.net>
65400
65401         No need to preserve errno on success.
65402         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
65403         Reported by Bruno Haible.
65404
65405 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65406
65407         * MODULES.html.sh (Support for maintaining and releasing
65408         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
65409
65410 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65411
65412         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
65413
65414 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65415
65416         * modules/autobuild: New module.
65417
65418         * m4/autobuild.m4: New file.
65419
65420 2007-04-11  Bruno Haible  <bruno@clisp.org>
65421
65422         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
65423         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
65424         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
65425         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
65426         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65427         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65428         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65429         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65430         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65431         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65432         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
65433         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65434         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65435         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
65436         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65437         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65438         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
65439         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65440         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65441         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
65442         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65443         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65444         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
65445         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65446         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65447         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
65448         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65449         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65450         Reported by Eric Blake.
65451
65452 2007-04-11  Bruno Haible  <bruno@clisp.org>
65453
65454         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
65455
65456 2007-04-10  Bruno Haible  <bruno@clisp.org>
65457
65458         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
65459         for NaN and Infinity. Needed on FreeBSD 6.1.
65460         * tests/test-vasnprintf-posix.c (test_function): Undo last change
65461         regarding results for "%010a" of Infinity and NaN.
65462         * tests/test-vasprintf-posix.c (test_function): Likewise.
65463         * tests/test-snprintf-posix.h (test_function): Likewise.
65464         * tests/test-sprintf-posix.h (test_function): Likewise.
65465         * tests/test-fprintf-posix.h (test_function): Likewise.
65466         * tests/test-printf-posix.h (test_function): Likewise.
65467         * tests/test-fprintf-posix.out: Likewise.
65468
65469 2007-04-10  Bruno Haible  <bruno@clisp.org>
65470
65471         * modules/locale-tests: New file.
65472         * tests/test-locale.c: New file.
65473
65474         * modules/locale: New file.
65475         * lib/locale_.h: New file.
65476         * m4/locale_h.m4: New file.
65477
65478 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
65479             Bruno Haible  <bruno@clisp.org>
65480
65481         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
65482         be determined, test for availability of the copysignf, copysign,
65483         copysignl functions.
65484         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
65485         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
65486         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
65487
65488 2007-04-09  Eric Blake  <ebb9@byu.net>
65489
65490         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
65491         * modules/stdio (Makefile.am): Support fflush.
65492         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
65493         * modules/fflush: New file.
65494         * lib/fflush.c: Likewise.
65495         * m4/fflush.m4: Likewise.
65496         * modules/fflush-tests: New test.
65497         * tests/test-fflush.c: Likewise.
65498         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
65499
65500 2007-04-06  Bruno Haible  <bruno@clisp.org>
65501
65502         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
65503         (VASNPRINTF): Use signbit for faster determination whether to print a
65504         minus sign.
65505         * modules/vasnprintf (Files): Remove lib/float+.h.
65506         * modules/fprintf-posix (Depends-on): Add signbit.
65507         * modules/snprintf-posix (Depends-on): Likewise.
65508         * modules/sprintf-posix (Depends-on): Likewise.
65509         * modules/vasnprintf-posix (Depends-on): Likewise.
65510         * modules/vasprintf-posix (Depends-on): Likewise.
65511         * modules/vfprintf-posix (Depends-on): Likewise.
65512         * modules/vsnprintf-posix (Depends-on): Likewise.
65513         * modules/vsprintf-posix (Depends-on): Likewise.
65514
65515 2007-04-06  Bruno Haible  <bruno@clisp.org>
65516
65517         * tests/test-frexp.c (main): Test also the sign bit of zero results.
65518         * tests/test-frexpl.c (main): Likewise.
65519         * tests/test-ldexpl.c (main): Likewise.
65520         * modules/frexp-tests (Depends-on): Add signbit.
65521         * modules/frexpl-tests (Depdends-on): Likewise.
65522         * modules/ldexpl-tests (Depdends-on): Likewise.
65523
65524 2007-04-06  Bruno Haible  <bruno@clisp.org>
65525
65526         * modules/signbit-tests: New file.
65527         * tests/test-signbit.c: New file.
65528
65529         * modules/signbit: New file.
65530         * lib/signbitf.c: New file.
65531         * lib/signbitd.c: New file.
65532         * lib/signbitl.c: New file.
65533         * m4/signbit.m4: New file.
65534         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
65535         (signbit): New macro.
65536         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
65537         REPLACE_SIGNBIT.
65538         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
65539         REPLACE_FREXPL into math.h.
65540
65541 2007-04-06  Bruno Haible  <bruno@clisp.org>
65542
65543         * modules/isnanf-nolibm-tests: New file.
65544         * tests/test-isnanf.c: New file.
65545
65546         * modules/isnanf-nolibm: New file.
65547         * lib/isnanf.h: New file.
65548         * lib/isnanf.c: New file.
65549         * lib/isnan.c: Consider the USE_FLOAT macro.
65550         * m4/isnanf.m4: New file.
65551
65552 2007-04-06  Bruno Haible  <bruno@clisp.org>
65553
65554         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
65555         (Link): New section.
65556
65557         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
65558
65559 2007-04-06  Bruno Haible  <bruno@clisp.org>
65560
65561         Assume the 'long double' type.
65562         * m4/longdouble.m4: Remove file.
65563         * config/srclist.txt: Don't mention longdouble.m4.
65564         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
65565         * lib/float+.h: Likewise.
65566         * lib/frexp.c: Likewise.
65567         * lib/printf-args.h: Likewise.
65568         * lib/printf-args.c: Likewise.
65569         * lib/printf-frexp.c: Likewise.
65570         * lib/printf-parse.c: Likewise.
65571         * lib/vasnprintf.c: Likewise.
65572         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
65573         * m4/intl.m4: Likewise.
65574         * m4/isnanl.m4: Likewise.
65575         * m4/printf.m4: Likewise.
65576         * m4/printf-frexpl.m4: Likewise.
65577         * m4/vasnprintf.m4: Likewise.
65578         * modules/allocsa (Files): Remove m4/longdouble.m4.
65579         * modules/gettext (Files): Likewise.
65580         * modules/relocatable-prog-wrapper (Files): Likewise.
65581         * modules/vasnprintf (Files): Likewise.
65582         * modules/isnanl (Files): Likewise.
65583         (Include): Simplify.
65584         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
65585         (Include): Simplify.
65586         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
65587         (Include): Simplify.
65588         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
65589         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65590         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
65591         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65592         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65593         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65594         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
65595         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65596         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65597         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65598         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
65599         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65600         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
65601         * tests/test-isnanl.c: Likewise.
65602         * tests/test-snprintf-posix.h: Likewise.
65603         * tests/test-sprintf-posix.h: Likewise.
65604         * tests/test-vasnprintf-posix.c: Likewise.
65605         * tests/test-vasnprintf-posix2.c: Likewise.
65606         * tests/test-vasprintf-posix.c: Likewise.
65607
65608 2007-04-06  Bruno Haible  <bruno@clisp.org>
65609
65610         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
65611         * lib/math_.h [__DECC]: Include the overridden include file through
65612         #include_next, outside the double-inclusion guard.
65613         * lib/stdio_.h [__DECC]: Likewise.
65614         * lib/stdlib_.h [__DECC]: Likewise.
65615         * lib/string_.h [__DECC]: Likewise.
65616         * lib/time_.h [__DECC]: Likewise.
65617         * lib/wchar_.h [__DECC]: Likewise.
65618         * lib/wctype_.h [__DECC]: Likewise.
65619         * lib/inttypes_.h [__DECC]: Likewise.
65620         Reported by Albert Chin <china@thewrittenword.com> in
65621         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
65622
65623 2007-04-04  Eric Blake  <ebb9@byu.net>
65624
65625         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
65626         1.5.x.
65627
65628 2007-04-04  Bruno Haible  <bruno@clisp.org>
65629
65630         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
65631         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
65632
65633 2007-04-04  Bruno Haible  <bruno@clisp.org>
65634
65635         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
65636         results for "%010a" of Infinity and NaN.
65637         * tests/test-vasprintf-posix.c (test_function): Likewise.
65638         * tests/test-snprintf-posix.h (test_function): Likewise.
65639         * tests/test-sprintf-posix.h (test_function): Likewise.
65640         * tests/test-fprintf-posix.h (test_function): Remove these tests.
65641         * tests/test-printf-posix.h (test_function): Likewise.
65642         * tests/test-fprintf-posix.out: Update.
65643         Needed for FreeBSD 6.1.
65644
65645 2007-04-04  Bruno Haible  <bruno@clisp.org>
65646
65647         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
65648         directly used by the gnulib modules nor by gnulib-tool.
65649
65650 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65651
65652         * DEPENDENCIES: Give overall description of version dependency
65653         desirability.  Use more-typical names for apps.
65654         Add shell, coreutils, diffutils, grep, tar, gzip.
65655
65656 2007-04-04  Simon Josefsson  <simon@josefsson.org>
65657
65658         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
65659
65660 2007-04-04  Karl Berry  <karl@gnu.org>
65661
65662         * MODULES.html.sh (func_module): missing '.
65663
65664 2007-04-03  Bruno Haible  <bruno@clisp.org>
65665
65666         * modules/argmatch-tests (Makefile.am): New variable
65667         test_argmatch_LDADD.
65668         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
65669         * modules/array-list-tests (Makefile.am): New variable
65670         test_array_list_LDADD.
65671         * modules/array-oset-tests (Makefile.am): New variable
65672         test_array_oset_LDADD.
65673         * modules/avltree-list-tests (Makefile.am): New variable
65674         test_avltree_list_LDADD.
65675         * modules/avltree-oset-tests (Makefile.am): New variable
65676         test_avltree_oset_LDADD.
65677         * modules/avltreehash-list-tests (Makefile.am): New variable
65678         test_avltreehash_list_LDADD.
65679         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
65680         test_canonicalize_lgpl_LDADD.
65681         * modules/carray-list-tests (Makefile.am): New variable
65682         test_carray_list_LDADD.
65683         * modules/dirname-tests (Makefile.am): New variable
65684         test_dirname_LDADD.
65685         * modules/linked-list-tests (Makefile.am): New variable
65686         test_linked_list_LDADD.
65687         * modules/linkedhash-list-tests (Makefile.am): New variable
65688         test_linkedhash_list_LDADD.
65689         * modules/rbtree-list-tests (Makefile.am): New variable
65690         test_rbtree_list_LDADD.
65691         * modules/rbtree-oset-tests (Makefile.am): New variable
65692         test_rbtree_oset_LDADD.
65693         * modules/rbtreehash-list-tests (Makefile.am): New variable
65694         test_rbtreehash_list_LDADD.
65695         * modules/xvasprintf-tests (Makefile.am): New variable
65696         test_xvasprintf_LDADD.
65697         Reported by Eric Blake.
65698
65699 2007-04-03  Eric Blake  <ebb9@byu.net>
65700
65701         * DEPENDENCIES: Weaken m4 requirements.
65702
65703 2007-04-03  Bruno Haible  <bruno@clisp.org>
65704
65705         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
65706         * modules/isnanl-tests (configure.ac): Likewise.
65707
65708 2007-04-03  Ben Pfaff  <blp@gnu.org>
65709
65710         * modules/iconv_open: Add $(srcdir)/ to source directory
65711         references in Makefile fragments that call gperf, to fix VPATH
65712         builds.
65713
65714 2007-04-03  Bruno Haible  <bruno@clisp.org>
65715
65716         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
65717         * lib/ldexpl.c: Undo last change.
65718
65719 2007-04-03  Bruno Haible  <bruno@clisp.org>
65720
65721         * modules/printf-frexpl (Depends-on): Undo last change.
65722         (Files): Add m4/ldexpl.m4.
65723
65724 2007-04-03  Bruno Haible  <bruno@clisp.org>
65725
65726         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
65727         * modules/isnanl (Link): New section.
65728
65729         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
65730         * modules/frexp (Link): New section.
65731
65732         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
65733         * modules/frexpl (Link): New section.
65734
65735         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
65736         * modules/ldexpl (Link): New section.
65737
65738 2007-04-03  Bruno Haible  <bruno@clisp.org>
65739
65740         * modules/TEMPLATE-EXTENDED: New file.
65741         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
65742
65743 2007-04-03  Bruno Haible  <bruno@clisp.org>
65744
65745         * DEPENDENCIES: New file.
65746         Suggested by Simon Josefsson.
65747
65748 2007-04-03  Bruno Haible  <bruno@clisp.org>
65749
65750         * doc/gnulib.texi: Escape @.
65751
65752 2007-04-03  James Youngman  <jay@gnu.org>
65753         and Paul Eggert  <eggert@cs.ucla.edu>
65754
65755         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
65756         birthtime on all systems that have birthtime, not just those which
65757         use st_birthtimensec rather than st_birthtim.  Putting zero in
65758         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
65759         that the birth time is not available for files on an NFS mount.
65760
65761 2007-04-03  Simon Josefsson  <simon@josefsson.org>
65762
65763         * modules/memxor: Move back from crypto/, suggested by Bruno.
65764         * modules/crypto/hmac-sha1: Fix memxor dependency.
65765
65766         * modules/crypto/gc: Moved from ../.
65767
65768 2007-04-02  Eric Blake  <ebb9@byu.net>
65769
65770         * lib/ldexpl.c (includes): Avoid libm.
65771
65772         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
65773
65774 2007-04-02  Bruno Haible  <bruno@clisp.org>
65775
65776         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
65777         on IRIX.
65778
65779 2007-04-02  Bruno Haible  <bruno@clisp.org>
65780
65781         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
65782         x86 or x86_64 platforms running MacOS X.
65783         Reported by Ryan Schmidt <@ryandesign.com>.
65784
65785 2007-04-02  Bruno Haible  <bruno@clisp.org>
65786
65787         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
65788         i386.
65789
65790 2007-04-01  Simon Josefsson  <simon@josefsson.org>
65791
65792         * modules/crypto/arcfour: Moved from ../.
65793         * modules/crypto/arcfour-tests: Moved from ../.
65794         * modules/crypto/arctwo: Moved from ../.
65795         * modules/crypto/arctwo-tests: Moved from ../.
65796         * modules/crypto/des: Moved from ../.
65797         * modules/crypto/des-tests: Moved from ../.
65798         * modules/crypto/gc-arcfour: Moved from ../.
65799         * modules/crypto/gc-arcfour-tests: Moved from ../.
65800         * modules/crypto/gc-arctwo: Moved from ../.
65801         * modules/crypto/gc-arctwo-tests: Moved from ../.
65802         * modules/crypto/gc-des: Moved from ../.
65803         * modules/crypto/gc-des-tests: Moved from ../.
65804         * modules/crypto/gc-hmac-md5: Moved from ../.
65805         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
65806         * modules/crypto/gc-hmac-sha1: Moved from ../.
65807         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
65808         * modules/crypto/gc-md2: Moved from ../.
65809         * modules/crypto/gc-md2-tests: Moved from ../.
65810         * modules/crypto/gc-md4: Moved from ../.
65811         * modules/crypto/gc-md4-tests: Moved from ../.
65812         * modules/crypto/gc-md5: Moved from ../.
65813         * modules/crypto/gc-md5-tests: Moved from ../.
65814         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
65815         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
65816         * modules/crypto/gc-random: Moved from ../.
65817         * modules/crypto/gc-rijndael: Moved from ../.
65818         * modules/crypto/gc-rijndael-tests: Moved from ../.
65819         * modules/crypto/gc-sha1: Moved from ../.
65820         * modules/crypto/gc-sha1-tests: Moved from ../.
65821         * modules/crypto/gc-tests: Moved from ../.
65822         * modules/crypto/hmac-md5: Moved from ../.
65823         * modules/crypto/hmac-md5-tests: Moved from ../.
65824         * modules/crypto/hmac-sha1: Moved from ../.
65825         * modules/crypto/hmac-sha1-tests: Moved from ../.
65826         * modules/crypto/md2: Moved from ../.
65827         * modules/crypto/md2-tests: Moved from ../.
65828         * modules/crypto/md4: Moved from ../.
65829         * modules/crypto/md4-tests: Moved from ../.
65830         * modules/crypto/md5: Moved from ../.
65831         * modules/crypto/md5-tests: Moved from ../.
65832         * modules/crypto/memxor: Moved from ../.
65833         * modules/crypto/rijndael: Moved from ../.
65834         * modules/crypto/rijndael-tests: Moved from ../.
65835         * modules/crypto/sha1: Moved from ../.
65836
65837 2007-03-30  James Youngman  <jay@gnu.org>
65838
65839         * tests/test-stat-time.c (prepare_test): use chmod() rather than
65840         rename() to change the ctime of a file (because ctime is unaffected
65841         by rename on jfs2 on AIX 5.1).
65842         (main): Start by doing cleanup, in case a previous run failed leaving
65843         test files behind.
65844
65845 2007-03-31  Bruno Haible  <bruno@clisp.org>
65846
65847         Support old proprietary implementations of iconv.
65848         * modules/iconv_open: New file.
65849         * lib/iconv_.h: New file.
65850         * m4/iconv_h.m4: New file.
65851         * lib/iconv_open.c: New file.
65852         * lib/iconv_open-aix.gperf: New file.
65853         * lib/iconv_open-hpux.gperf: New file.
65854         * lib/iconv_open-irix.gperf: New file.
65855         * lib/iconv_open-osf.gperf: New file.
65856         * m4/iconv_open.m4: New file.
65857         * modules/linebreak (Depends-on): Add iconv_open.
65858         * modules/striconv (Depends-on): Likewise.
65859         * modules/striconveh (Depends-on): Likewise.
65860         * modules/unicodeio (Depends-on): Likewise.
65861         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
65862         (iconv_t)(-1).
65863         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
65864         conversion if cd is (iconv_t)(-1).
65865         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
65866         is not possible.
65867
65868 2007-03-31  Bruno Haible  <bruno@clisp.org>
65869
65870         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65871         work on Solaris either. Protect also second use of "autodetect_jp".
65872
65873 2007-03-31  Bruno Haible  <bruno@clisp.org>
65874
65875         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
65876         the function is not present.
65877
65878 2007-03-31  Bruno Haible  <bruno@clisp.org>
65879
65880         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
65881         the function is not present.
65882
65883 2007-03-31  Bruno Haible  <bruno@clisp.org>
65884
65885         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
65886         a bug in HP-UX iconv_open().
65887
65888 2007-03-31  Bruno Haible  <bruno@clisp.org>
65889
65890         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
65891         (Mathematics <math.h>): New section, add fpieee.
65892         (Input/output <stdio.h>): Add fseterr.
65893         (Mathematics <math.h>): New section, add printf-frexp.
65894         (Container data structures): Add sublist.
65895         (Core language properties): Add fpucw, inline.
65896         (Functions for greatest-width integer types <inttypes.h>): Add
65897         imaxabs, imaxdiv, inttypes.
65898         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
65899         isnanl-nolibm, ldexp.
65900         (Mathematics <math.h>): New section, add printf-frexpl.
65901         (Support for systems lacking POSIX:2001): Add fprintf-posix,
65902         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
65903         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
65904         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
65905         (Unicode string functions): Add unistr/u*-mbtoucr.
65906         (Java): Add javacomp-script, javaexec-script.
65907         (C#): Add csharpcomp-script, csharpexec-script.
65908         (Support for building libraries and executables): Add havelib,
65909         relocatable-*.
65910         (Support for maintaining and releasing projects): Renamed from
65911         'Support for maintaining and release projects'. Add announce-gen.
65912
65913 2007-03-31  Bruno Haible  <bruno@clisp.org>
65914
65915         * README: Talk primarily about git.
65916         (git and CVS): Renamed from CVS.
65917         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
65918         gnulib is available through git.
65919         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
65920
65921 2007-03-30  Bruno Haible  <bruno@clisp.org>
65922
65923         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
65924         * lib/poll_.h: Likewise.
65925         * lib/stat_.h: Likewise.
65926         * lib/sys_time_.h: Likewise.
65927         * lib/sysexit_.h: Likewise.
65928         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
65929         * lib/stdbool_.h: Likewise.
65930         * lib/byteswap_.h: Add double-inclusion guard.
65931
65932 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
65933
65934         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
65935
65936 2007-03-30  Karl Berry  <karl@gnu.org>
65937
65938         * config/srclist-update: double space after USA in the license
65939         substitution, since that's how it's usually (?) written.
65940
65941 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
65942
65943         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
65944         reported by Bruno Haible.
65945
65946 2007-03-29  Bruno Haible  <bruno@clisp.org>
65947
65948         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
65949         a bug in AIX iconv().
65950
65951 2007-03-29  Bruno Haible  <bruno@clisp.org>
65952
65953         * modules/ldexpl-tests: New file.
65954         * tests/test-ldexpl.c: New file.
65955
65956 2007-03-29  Bruno Haible  <bruno@clisp.org>
65957
65958         * lib/ldexpl.c: Include fpucw.h.
65959         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
65960         multiplication.
65961         * modules/ldexpl (Depends-on): Add fpucw.
65962
65963 2007-03-29  Bruno Haible  <bruno@clisp.org>
65964
65965         * modules/ldexpl: New file.
65966         * m4/ldexpl.m4: New file.
65967         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
65968         set.
65969         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
65970         REPLACE_LDEXPL.
65971         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
65972         REPLACE_LDEXPL.
65973         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65974         gl_FUNC_LDEXPL_WORKS.
65975         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
65976         * modules/mathl (Files): Remove lib/ldexpl.c.
65977         (Depends-on): Add ldexpl.
65978
65979 2007-03-29  Bruno Haible  <bruno@clisp.org>
65980
65981         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
65982
65983 2007-03-29  Bruno Haible  <bruno@clisp.org>
65984
65985         * tests/test-striconveh.c (main): Don't assume that a direct conversion
65986         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
65987         and possibly also HP-UX.
65988         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65989         work on AIX, IRIX, HP-UX, OSF/1.
65990         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
65991         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
65992         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
65993         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
65994         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
65995         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
65996
65997 2007-03-29  Bruno Haible  <bruno@clisp.org>
65998
65999         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
66000
66001 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66002
66003         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
66004         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
66005
66006 2007-03-29  Eric Blake  <ebb9@byu.net>
66007
66008         * lib/acl-internal.h: Remove redundant include.
66009         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
66010         Cygwin when a file is locked.
66011
66012 2007-03-29  Bruno Haible  <bruno@clisp.org>
66013
66014         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
66015         file.
66016         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
66017
66018 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
66019
66020         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
66021         try to remove a parent directory if the child couldn't be removed
66022         (except for the first rmdir, which could fail because the child
66023         doesn't exist).  Problem reported by Jeff Blaine in
66024         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
66025
66026 2007-03-28  Bruno Haible  <bruno@clisp.org>
66027
66028         * lib/striconveh.c (utf8conv_carefully): New function.
66029         (mem_cd_iconveh_internal): Invoke it.
66030
66031 2007-03-28  Bruno Haible  <bruno@clisp.org>
66032
66033         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
66034         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
66035         input.
66036         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
66037         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
66038         unistr/u8-uctomb.
66039
66040 2007-03-28  Bruno Haible  <bruno@clisp.org>
66041
66042         * modules/unistr/u8-mbtoucr: New file.
66043         * lib/unistr/u8-mbtoucr.c: New file.
66044         * modules/unistr/u16-mbtoucr: New file.
66045         * lib/unistr/u16-mbtoucr.c: New file.
66046         * modules/unistr/u16-mbtoucr: New file.
66047         * lib/unistr/u16-mbtoucr.c: New file.
66048         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
66049
66050 2007-03-27  Simon Josefsson  <simon@josefsson.org>
66051             Bruno Haible  <bruno@clisp.org>
66052
66053         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
66054         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
66055         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
66056
66057         * m4/stdio_h.m4: Add stubs for vasprintf too.
66058
66059         * modules/stdio: Support vasprintf in sed command.
66060
66061         * modules/vasprintf: Depend on stdio for prototypes.  Remove
66062         vasprintf.h.  Add stdio module indicator.
66063
66064         * lib/stdio_.h: Declare asprintf and vasprintf, based on
66065         vasprintf.h.
66066
66067         * lib/vasprintf.h: File removed.
66068
66069         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
66070         * lib/vasprintf.c: Ditto.
66071         * lib/xvasprintf.c: Ditto.
66072         * tests/test-vasprintf-posix.c: Ditto.
66073         * tests/test-vasprintf.c: Ditto.
66074
66075 2007-03-27  Bruno Haible  <bruno@clisp.org>
66076
66077         Make vasnprintf multithread-safe.
66078         * lib/vasnprintf.c (decimal_point_char): New function.
66079         (VASNPRINTF): Use it.
66080         Suggested by Simon Josefsson.
66081
66082 2007-03-27  Eric Blake  <ebb9@byu.net>
66083
66084         Support sub-second birthtime on cygwin.
66085         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
66086         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
66087         (get_stat_birthtime): Also work with st_birthtim.
66088
66089 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
66090
66091         * lib/stat-time.h (USE_BIRTHTIME): Remove.
66092         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
66093         (get_stat_birthtime_ns): Do not try to use "spare" fields.
66094         (get_stat_birthtime_ns): Simplify compile-time tests.
66095         (get_stat_birthtime): Change the API to look like
66096         get_stat_mtime etc., except return a negative tv_nsec on error.
66097         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
66098         Don't check for "spare" fields.
66099         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
66100         or for struct stat.st_birthtime, as these tests aren't used.
66101         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
66102
66103 2007-03-27  Bruno Haible  <bruno@clisp.org>
66104
66105         * lib/stat-time.h: Include <sys/stat.h>.
66106
66107 2007-03-27  James Youngman  <jay@gnu.org>
66108
66109         * lib/stat-time.h (get_stat_birthtime): New function for
66110           retrieving st_birthtime as provided by UFS2 (hence *BSD).
66111         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
66112           and its variants.
66113         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
66114         * modules/stat-time-test: New file.
66115         * tests/test-stat-time.c: New test, devised by Bruno Haible.
66116
66117 2007-03-26  Bruno Haible  <bruno@clisp.org>
66118
66119         Better support of signalling NaNs.
66120         * lib/atanl.c: Include isnanl.h.
66121         (atanl): Perform test for NaN at the beginning of the function and
66122         through a call to isnanl.
66123         * lib/cosl.c: Include isnanl.h.
66124         (cosl): Perform test for NaN at the beginning of the function and
66125         through a call to isnanl.
66126         * lib/ldexpl.c: Include isnanl.h.
66127         (ldexpl): Perform test for NaN through a call to isnanl.
66128         * lib/logl.c: Include isnanl.h.
66129         (logl): Perform test for NaN at the beginning of the function and
66130         through a call to isnanl.
66131         * lib/sinl.c: Include isnanl.h.
66132         (sinl): Perform test for NaN at the beginning of the function and
66133         through a call to isnanl.
66134         * lib/sqrtl.c: Include isnanl.h.
66135         (sqrtl): Perform test for NaN at the beginning of the function and
66136         through a call to isnanl.
66137         * lib/tanl.c: Include isnanl.h.
66138         (tanl): Perform test for NaN at the beginning of the function and
66139         through a call to isnanl.
66140         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
66141         * modules/mathl (Depends-on): Add isnanl.
66142
66143 2007-03-26  Eric Blake  <ebb9@byu.net>
66144
66145         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
66146         regression in logic sense of previous patch.
66147
66148 2007-03-26  Bruno Haible  <bruno@clisp.org>
66149
66150         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
66151         unportable shell command "if ! ...".
66152         Reported by Ralf Wildenhues.
66153
66154 2007-03-25  Bruno Haible  <bruno@clisp.org>
66155
66156         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
66157         <sysexits.h> file, and only add EX_CONFIG.
66158         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
66159         absolute file name and whether it is sufficient. Substitute also
66160         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
66161         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
66162         ABSOLUTE_SYSEXITS_H into sysexits.h.
66163
66164 2007-03-25  Bruno Haible  <bruno@clisp.org>
66165
66166         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
66167         hints is NULL.
66168
66169 2007-03-25  Bruno Haible  <bruno@clisp.org>
66170
66171         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
66172         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
66173
66174 2007-03-25  Bruno Haible  <bruno@clisp.org>
66175
66176         * lib/vasnprintf.c: Include langinfo.h.
66177         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
66178         multithread-safe.
66179         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
66180         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
66181         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66182         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66183         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66184         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66185         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66186         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
66187         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66188         Reported by Simon Josefsson.
66189
66190 2007-03-25  Bruno Haible  <bruno@clisp.org>
66191
66192         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
66193         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
66194         * modules/vasnprintf (Depends-on): Add stdint.
66195
66196 2007-03-25  Bruno Haible  <bruno@clisp.org>
66197
66198         * modules/fpieee: New file.
66199         * m4/fpieee.m4: New file.
66200         * modules/isnan-nolibm (Depends-on): Add fpieee.
66201         * modules/isnanl-nolibm (Depends-on): Add fpieee.
66202         * modules/isnanl (Depends-on): Add fpieee.
66203
66204 2007-03-25  Bruno Haible  <bruno@clisp.org>
66205
66206         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
66207
66208 2007-03-25  Bruno Haible  <bruno@clisp.org>
66209
66210         Avoid test failures on IRIX 6.5.
66211         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
66212         (main): Use it.
66213         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
66214         macros.
66215         (main): Use them.
66216
66217 2007-03-25  Bruno Haible  <bruno@clisp.org>
66218
66219         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
66220         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
66221         exists but doesn't work.
66222         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
66223         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
66224         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
66225         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
66226         math.h.
66227
66228 2007-03-25  Bruno Haible  <bruno@clisp.org>
66229
66230         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
66231         returns inf. Needed on IRIX 6.5.
66232
66233 2007-03-25  Bruno Haible  <bruno@clisp.org>
66234
66235         * tests/test-frexpl.c: Include isnanl-nolibm.h.
66236         (main): Use isnanl instead of x != x idiom.
66237         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
66238
66239         * tests/test-frexp.c: Include isnan.h.
66240         (main): Use isnan instead of x != x idiom.
66241         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
66242
66243 2007-03-25  Bruno Haible  <bruno@clisp.org>
66244
66245         * tests/test-frexp.c (NaN): New function/macro.
66246         (main): Use it instead of 0.0 / 0.0.
66247         * tests/test-isnan.c (NaN): New function/macro.
66248         (main): Use it instead of 0.0 / 0.0.
66249         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
66250         (test_function): Use it instead of 0.0 / 0.0.
66251         * tests/test-vasprintf-posix.c (NaN): New function/macro.
66252         (test_function): Use it instead of 0.0 / 0.0.
66253         * tests/test-snprintf-posix.h (NaN): New function/macro.
66254         (test_function): Use it instead of 0.0 / 0.0.
66255         * tests/test-sprintf-posix.h (NaN): New function/macro.
66256         (test_function): Use it instead of 0.0 / 0.0.
66257         * tests/test-fprintf-posix.h (NaN): New function/macro.
66258         (test_function): Use it instead of 0.0 / 0.0.
66259         * tests/test-printf-posix.h (NaN): New function/macro.
66260         (test_function): Use it instead of 0.0 / 0.0.
66261
66262         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
66263
66264 2007-03-25  Bruno Haible  <bruno@clisp.org>
66265
66266         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66267
66268 2007-03-25  Bruno Haible  <bruno@clisp.org>
66269
66270         * lib/regexec.c (merge_state_with_log): Make static.
66271
66272 2007-03-25  Bruno Haible  <bruno@clisp.org>
66273
66274         * lib/trigl.c (kernel_rem_pio2): Make static.
66275
66276 2007-03-25  Bruno Haible  <bruno@clisp.org>
66277
66278         * lib/sincosl.c (sincosl_table): Make static.
66279
66280 2007-03-25  Bruno Haible  <bruno@clisp.org>
66281
66282         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66283         if the compiler does not support C99.
66284
66285 2007-03-25  Bruno Haible  <bruno@clisp.org>
66286
66287         * modules/time (Makefile.am): Ensure all rule action lines start with a
66288         tab.
66289
66290 2007-03-24  Bruno Haible  <bruno@clisp.org>
66291
66292         * modules/tsearch-tests: New file.
66293         * tests/test-tsearch.sh: New file.
66294         * tests/test-tsearch.c: New file, mostly copied from glibc.
66295
66296         * modules/search-tests: New file.
66297         * tests/test-search.c: New file.
66298
66299         * modules/search: New file.
66300         * lib/search_.h: New file, incorporating lib/tsearch.h.
66301         * m4/search_h.m4: New file.
66302         * lib/tsearch.h: Remove file.
66303         * lib/tsearch.c: Include search.h instead of tsearch.h.
66304         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
66305         HAVE_TSEARCH.
66306         * modules/tsearch (Files): Remove lib/tsearch.h.
66307         (Depends-on): Add search.
66308         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
66309         (Include): Change tsearch.h into search.h.
66310
66311 2007-03-24  Bruno Haible  <bruno@clisp.org>
66312
66313         * modules/fpucw: New file.
66314         * lib/fpucw.h: New file.
66315         * lib/frexp.c: Include fpucw.h.
66316         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66317         (FUNC): Use them.
66318         * lib/printf-frexp.c: Include fpucw.h.
66319         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66320         (FUNC): Use them.
66321         * lib/vasnprintf.c: Include fpucw.h.
66322         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
66323         'long double' calculations.
66324         * tests/test-frexpl.c: Include fpucw.h.
66325         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66326         * tests/test-printf-frexpl.c: Include fpucw.h.
66327         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66328         * modules/frexpl (Depends-on): Add fpucw.
66329         * modules/printf-frexpl (Depends-on): Likewise.
66330         * modules/fprintf-posix (Depends-on): Likewise.
66331         * modules/snprintf-posix (Depends-on): Likewise.
66332         * modules/sprintf-posix (Depends-on): Likewise.
66333         * modules/vasnprintf-posix (Depends-on): Likewise.
66334         * modules/vasprintf-posix (Depends-on): Likewise.
66335         * modules/vfprintf-posix (Depends-on): Likewise.
66336         * modules/vsnprintf-posix (Depends-on): Likewise.
66337         * modules/vsprintf-posix (Depends-on): Likewise.
66338         * modules/frexpl-tests (Depends-on): Likewise.
66339         * modules/printf-frexpl-tests (Depends-on): Likewise.
66340
66341 2007-03-24  Bruno Haible  <bruno@clisp.org>
66342
66343         * lib/float+.h: New file.
66344         * lib/isnan.c: Include float+.h.
66345         (SIZE): New macro.
66346         (FUNC): Compare only SIZE bytes of the value.
66347         * lib/vasnprintf.c: Include float+.h.
66348         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
66349         SIZEOF_LDBL or SIZEOF_DBL bytes.
66350         * modules/isnan-nolibm (Files): Add lib/float+.h.
66351         * modules/isnanl-nolibm (Files): Add lib/float+.h.
66352         * modules/isnanl (Files): Add lib/float+.h.
66353         * modules/vasnprintf (Files): Add lib/float+.h.
66354
66355 2007-03-24  Bruno Haible  <bruno@clisp.org>
66356
66357         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
66358         include isnanl-nolibm.h.
66359
66360 2007-03-24  Bruno Haible  <bruno@clisp.org>
66361
66362         * tests/test-read-file.c (main): Don't produce spurious output for
66363         expected situations. Make the test fail if it encountered unexpected
66364         results.
66365
66366 2007-03-24  Bruno Haible  <bruno@clisp.org>
66367
66368         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
66369         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
66370
66371 2007-03-24  Bruno Haible  <bruno@clisp.org>
66372
66373         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
66374
66375 2007-03-24  Bruno Haible  <bruno@clisp.org>
66376
66377         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
66378         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
66379
66380         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
66381         * modules/utf8-ucs4: Turn into a symbolic link to module
66382         unistr/u8-mbtouc.
66383
66384         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
66385         utf8-ucs4-unsafe.
66386         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
66387         unistr/u8-mbtouc-unsafe.
66388
66389         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
66390         * modules/utf16-ucs4: Turn into a symbolic link to module
66391         unistr/u16-mbtouc.
66392
66393         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
66394         utf16-ucs4-unsafe.
66395         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
66396         unistr/u16-mbtouc-unsafe.
66397
66398         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
66399         * modules/ucs4-utf8: Turn into a symbolic link to module
66400         unistr/u8-ubtomb.
66401
66402         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
66403         * modules/ucs4-utf16: Turn into a symbolic link to module
66404         unistr/u16-ubtomb.
66405
66406 2007-03-24  Bruno Haible  <bruno@clisp.org>
66407
66408         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
66409         Enable the function only if HAVE_INLINE.
66410         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
66411         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66412         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
66413         Enable the function only if HAVE_INLINE.
66414         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
66415         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66416         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
66417         Enable the function only if HAVE_INLINE.
66418         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
66419         Enable the function only if HAVE_INLINE.
66420         * modules/utf8-ucs4: Update.
66421         * modules/utf8-ucs4-unsafe: Update.
66422         * modules/utf16-ucs4: Update.
66423         * modules/utf16-ucs4-unsafe: Update.
66424         * modules/ucs4-utf8: Update.
66425         * modules/ucs4-utf16: Update.
66426
66427 2007-03-24  Bruno Haible  <bruno@clisp.org>
66428
66429         * lib/utf8-ucs4.h: Remove file.
66430         * lib/utf8-ucs4-unsafe.h: Remove file.
66431         * lib/utf16-ucs4.h: Remove file.
66432         * lib/utf16-ucs4-unsafe.h: Remove file.
66433         * lib/ucs4-utf8.h: Remove file.
66434         * lib/ucs4-utf16.h: Remove file.
66435         * lib/unistr.h: Include their previous contents.
66436         * m4/utf-ucs4.m4: Remove file.
66437         * m4/ucs4-utf.m4: Remove file.
66438         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
66439         (Depends-on): Add unistr/base.
66440         (configure.ac): Remove gl_UTF_UCS4.
66441         (Makefile.am): Update.
66442         (Include): Change to unistr.h.
66443         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
66444         (Depends-on): Add unistr/base.
66445         (configure.ac): Remove gl_UTF_UCS4.
66446         (Makefile.am): Update.
66447         (Include): Change to unistr.h.
66448         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
66449         (Depends-on): Add unistr/base.
66450         (configure.ac): Remove gl_UTF_UCS4.
66451         (Makefile.am): Update.
66452         (Include): Change to unistr.h.
66453         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
66454         (Depends-on): Add unistr/base.
66455         (configure.ac): Remove gl_UTF_UCS4.
66456         (Makefile.am): Update.
66457         (Include): Change to unistr.h.
66458         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
66459         (Depends-on): Add unistr/base.
66460         (configure.ac): Remove gl_UCS4_UTF.
66461         (Makefile.am): Update.
66462         (Include): Change to unistr.h.
66463         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
66464         (Depends-on): Add unistr/base.
66465         (configure.ac): Remove gl_UCS4_UTF.
66466         (Makefile.am): Update.
66467         (Include): Change to unistr.h.
66468         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
66469         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
66470         utf8-ucs4-unsafe.h.
66471         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
66472         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
66473         utf16-ucs4-unsafe.h.
66474         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
66475         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
66476         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
66477         * lib/unistr/u8-strchr.c: Likewise.
66478         * lib/unistr/u8-strrchr.c: Likewise.
66479         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
66480         * lib/unistr/u16-strchr.c: Likewise.
66481         * lib/unistr/u16-strrchr.c: Likewise.
66482         * lib/striconveh.c: Update.
66483         * lib/linebreak.c: Update.
66484
66485 2007-03-24  Bruno Haible  <bruno@clisp.org>
66486
66487         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
66488         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
66489
66490 2007-03-22  Bruno Haible  <bruno@clisp.org>
66491
66492         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
66493
66494 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66495
66496         * MODULES.html.sh (File system functions): New module write-any-file.
66497         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
66498         * m4/write-any-file.m4: New files.
66499
66500 2007-03-23  Eric Blake  <ebb9@byu.net>
66501
66502         * gnulib-tool: Rearrange space-tab sequences, since some editors
66503         like to eat them.
66504
66505 2007-03-23  Eric Blake  <ebb9@byu.net>
66506
66507         * lib/version-etc.c (version_etc_va): Update license wording to
66508         be more concise.  Recommended by Richard Stallman.
66509
66510 2007-03-22  Bruno Haible  <bruno@clisp.org>
66511
66512         * lib/poll.c (MSG_PEEK): New fallback definition.
66513
66514 2007-03-22  Bruno Haible  <bruno@clisp.org>
66515
66516         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
66517         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
66518         (main): Update.
66519         Fixes a compilation error on BeOS.
66520
66521 2007-03-22  Bruno Haible  <bruno@clisp.org>
66522
66523         * modules/frexpl-tests: New file.
66524         * tests/test-frexpl.c: New file.
66525
66526         * modules/frexpl: New file.
66527         * m4/frexpl.m4: New file.
66528         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
66529         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
66530         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
66531         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
66532         (Depends-on): Add frexpl. Remove isnanl-nolibm.
66533         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
66534
66535 2007-03-22  Bruno Haible  <bruno@clisp.org>
66536
66537         * lib/frexpl.c: Share code with lib/frexp.c.
66538         * modules/mathl (Files): Add lib/frexp.c.
66539         (Depends-on): Add isnanl-nolibm.
66540
66541 2007-03-22  Bruno Haible  <bruno@clisp.org>
66542
66543         * modules/printf-frexp (Files): Add m4/frexp.m4.
66544         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
66545         only if the found frexp function actually works.
66546
66547 2007-03-22  Bruno Haible  <bruno@clisp.org>
66548
66549         * lib/frexp.c: Remove older implementation that uses divisions.
66550
66551 2007-03-21  Bruno Haible  <bruno@clisp.org>
66552
66553         * modules/frexp-tests: New file.
66554         * tests/test-frexp.c: New file.
66555
66556         * modules/frexp: New file.
66557         * lib/frexp.c: New file.
66558         * m4/frexp.m4: New file.
66559         * lib/math_.h (frexp): New declaration.
66560         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
66561         REPLACE_FREXP.
66562         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
66563
66564 2007-03-21  Bruno Haible  <bruno@clisp.org>
66565
66566         * modules/isnanl-tests: New file.
66567         * tests/test-isnanl.c: New file.
66568
66569         * modules/isnanl: New file.
66570         * lib/isnanl.h: New file.
66571         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
66572         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
66573         gl_FUNC_ISNANL_WORKS.
66574         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
66575         New macros.
66576
66577 2007-03-21  Bruno Haible  <bruno@clisp.org>
66578
66579         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
66580         lib/isnanl.h.
66581         (Include): Update.
66582         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
66583         * lib/vasnprintf.c: Update.
66584         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
66585         tests/test-isnanl.h, remove tests/test-isnanl.c.
66586         (Makefile.am): Update.
66587         * tests/test-isnanl-nolibm.c: New file.
66588         * tests/test-isnanl.h: New file.
66589         * tests/test-isnanl.c: Remove file.
66590
66591 2007-03-21  Jim Meyering  <jim@meyering.net>
66592
66593         When trying to open ".", treat ESTALE like EACCES.
66594         * lib/savewd.c (savewd_save): Resort to forking not just upon
66595         failure with EACCES, but also when errno is ESTALE.
66596
66597 2007-03-20  Bruno Haible  <bruno@clisp.org>
66598
66599         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
66600         Needed on AIX 5.1. Reported by Matthew Woehlke.
66601
66602 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66603
66604         Suggestions by Bruno Haible:
66605         * lib/acl-internal.h: Include "gettext.h" rather than rolling
66606         our own.
66607         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
66608         * modules/acl (Depends-on): Add gettext.
66609
66610 2007-03-19  Bruno Haible  <bruno@clisp.org>
66611
66612         * modules/iconvme: Remove file.
66613         * lib/iconvme.h: Remove file.
66614         * lib/iconvme.c: Remove file.
66615         * m4/iconvme.m4: Remove file.
66616
66617 2007-03-19  Bruno Haible  <bruno@clisp.org>
66618
66619         * doc/relocatable-maint.texi: Break long shell script line.
66620         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66621
66622 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66623
66624         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
66625         handle file_has_acl.
66626         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
66627         * lib/acl.c: Move header inclusions and related macro defns into
66628         lib/acl-internal.h.
66629         (S_ISLNK): Remove defn, since that's now done for us.
66630         (file_has_acl): Move to lib/file-has-acl.c.
66631         Call acl_trivial if available.  This is the crucial part of the fix.
66632         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
66633         shared within the library.  Rewrite a bit, partly to make it compatible
66634         with the GNU coding style.
66635         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
66636         Remove unnecessary double-quotes.
66637         Don't test for acl_to_text; the build will catch that.
66638         Replace acl_entries if it doesn't exist and it is needed.
66639         Check for -lsec and acl_trivial (as used on Solaris 10).
66640         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
66641         lib/file-has-acl.c.
66642         (Depends-on): Add sys_stat, for S_ISLNK.
66643
66644 2007-03-19  Ben Pfaff  <blp@gnu.org>
66645
66646         * doc/gnulib.texi: Fix typos.
66647         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66648
66649 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66650
66651         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
66652         If size is zero here, buf must be zero.
66653
66654 2007-03-19  Simon Josefsson  <simon@josefsson.org>
66655
66656         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
66657         <bruno@clisp.org>.
66658
66659 2007-03-18  Bruno Haible  <bruno@clisp.org>
66660
66661         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
66662         Suggested by Eric Blake.
66663
66664 2007-03-18  Ben Pfaff  <blp@gnu.org>
66665
66666         * doc/relocatable.texi: Recommend using as prefix a directory
66667         that does not exist and will never be created.  Based on
66668         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
66669         and others.
66670
66671 2007-03-17  Bruno Haible  <bruno@clisp.org>
66672
66673         * lib/fchownat.c: Include lchown.h.
66674
66675 2007-03-17  Bruno Haible  <bruno@clisp.org>
66676
66677         Fix endless loop when the given allocated size was > INT_MAX.
66678         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
66679         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
66680         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
66681         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
66682         * lib/sprintf.c (sprintf): Likewise.
66683
66684 2007-03-17  Bruno Haible  <bruno@clisp.org>
66685
66686         * tests/test-argp-2.sh (func_compare): Output a context diff.
66687
66688 2007-03-17  Bruno Haible  <bruno@clisp.org>
66689
66690         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
66691         locale's decimal-point character.
66692
66693 2007-03-17  Bruno Haible  <bruno@clisp.org>
66694
66695         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
66696         before comparing it. Needed because on some platforms (e.g. x86) a
66697         'long double' occupies less bytes than sizeof (long double).
66698
66699 2007-03-17  Bruno Haible  <bruno@clisp.org>
66700
66701         * tests/test-crc.c (main): Make printf statements 64-bit clean.
66702         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
66703         * tests/test-getaddrinfo.c (simple): Likewise.
66704         * tests/test-read-file.c (main): Likewise.
66705
66706 2007-03-17  Bruno Haible  <bruno@clisp.org>
66707
66708         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
66709
66710 2007-03-17  Bruno Haible  <bruno@clisp.org>
66711
66712         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
66713         unused variable.
66714
66715 2007-03-17  Bruno Haible  <bruno@clisp.org>
66716
66717         * tests/test-c-strcasecmp.c: Include c-strcase.h.
66718         * tests/test-c-strncasecmp.c: Likewise.
66719
66720 2007-03-17  Bruno Haible  <bruno@clisp.org>
66721
66722         * modules/stdlib (Depends-on): Add unistd.
66723         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
66724         Needed for MacOS X 10.3.
66725
66726 2007-03-17  Bruno Haible  <bruno@clisp.org>
66727
66728         * lib/unistr/u-strdup.h: Include <stdlib.h>.
66729
66730 2007-03-17  Bruno Haible  <bruno@clisp.org>
66731
66732         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
66733
66734 2007-03-17  Bruno Haible  <bruno@clisp.org>
66735
66736         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
66737         to reflect files copied from gnulib (with or without modifications).
66738         Suggested by Jim Meyering.
66739
66740 2007-03-17  Eric Blake  <ebb9@byu.net>
66741
66742         * NEWS: Document stdlib change from 2007-02-18.
66743
66744 2007-03-17  Jim Meyering  <jim@meyering.net>
66745
66746         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
66747         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
66748         someone uses a name containing shell meta-characters.
66749         Reported by Alfred M. Szmidt.
66750
66751         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
66752
66753 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66754
66755         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
66756         and copy gettext configuration files only if configure.ac contains
66757         a use of AM_GNU_GETTEXT_VERSION.
66758
66759 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66760
66761         * build-aux/bootstrap (gnulib_name): New variable.
66762         (gnulib_tool_options): Use it.
66763
66764 2007-03-13  Simon Josefsson  <simon@josefsson.org>
66765
66766         * tests/test-des.c: Use new namespace.
66767
66768 2007-03-15  Bruno Haible  <bruno@clisp.org>
66769
66770         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
66771         Reported by James Youngman <jay@gnu.org>.
66772
66773 2007-03-15  Bruno Haible  <bruno@clisp.org>
66774
66775         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
66776         declared prototype. Needed with cc on OSF/1 5.1.
66777
66778 2007-03-15  Bruno Haible  <bruno@clisp.org>
66779
66780         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
66781         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
66782         (struct gl_list_implementation): Add dispose_fn argument to the
66783         'create_empty', 'create' methods.
66784         (struct gl_list_impl_base): Add field 'dispose_fn'.
66785         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
66786         argument.
66787         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
66788         dispose_fn argument.
66789         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
66790         dispose_fn on the dropped values.
66791         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
66792         dispose_fn argument.
66793         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
66794         dropped values.
66795         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
66796         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66797         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
66798         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66799         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
66800         argument.
66801         (gl_tree_list_free): Call dispose_fn on the dropped values.
66802         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
66803         the dropped values.
66804         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66805         Add dispose_fn argument.
66806         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
66807         Call dispose_fn on the dropped values.
66808         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
66809         Add dispose_fn argument.
66810         (gl_sublist_create): Initialize the 'dispose_fn' field.
66811         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
66812         * tests/test-array_list.c (main): Update.
66813         * tests/test-carray_list.c (main): Update.
66814         * tests/test-avltree_list.c (main): Update.
66815         * tests/test-rbtree_list.c (main): Update.
66816         * tests/test-avltreehash_list.c (main): Update.
66817         * tests/test-rbtreehash_list.c (main): Update.
66818         * tests/test-linked_list.c (main): Update.
66819         * tests/test-linkedhash_list.c (main): Update.
66820         * tests/test-array_oset.c (main): Update.
66821
66822 2007-03-15  Bruno Haible  <bruno@clisp.org>
66823
66824         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
66825         (gl_oset_create_empty): Add dispose_fn argument.
66826         (struct gl_oset_implementation): Add dispose_fn argument to
66827         'create_empty' method.
66828         (struct gl_oset_impl_base): Add dispose_fn field.
66829         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
66830         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
66831         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
66832         values.
66833         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
66834         (gl_tree_oset_free): Call dispose_fn on the dropped values.
66835         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66836         dropped value.
66837         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66838         dropped value.
66839         * tests/test-array_oset.c (main): Update.
66840         * tests/test-avltree_oset.c (main): Update.
66841         * tests/test-rbtree_oset.c (main): Update.
66842         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
66843
66844 2007-03-13  Bruno Haible  <bruno@clisp.org>
66845
66846         * tests/test-stdbool.c (i): Update after last patch.
66847
66848 2007-03-12  Bruno Haible  <bruno@clisp.org>
66849
66850         * lib/quotearg.c: Include <wctype.h> early, before the definition of
66851         the iswprint macro. Needed on Solaris 2.5.1.
66852
66853 2007-03-12  Bruno Haible  <bruno@clisp.org>
66854
66855         * tests/test-printf-frexp.c (main): Declare x as volatile.
66856
66857 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66858
66859         * doc/gnulib.texi (Build robot for gnulib): New section.
66860
66861 2007-03-12  Jim Meyering  <jim@meyering.net>
66862
66863         * build-aux/bootstrap: New file.
66864         * build-aux/bootstrap.conf: New file, from coreutils.
66865
66866 2007-03-11  Bruno Haible  <bruno@clisp.org>
66867
66868         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
66869
66870 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66871
66872         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
66873         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
66874         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
66875
66876 2007-03-11  Bruno Haible  <bruno@clisp.org>
66877
66878         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
66879         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
66880
66881 2007-03-11  Bruno Haible  <bruno@clisp.org>
66882
66883         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
66884         formula. Needed for SunPRO C 5.0.
66885
66886 2007-03-11  Bruno Haible  <bruno@clisp.org>
66887
66888         * modules/long-options (Depends-on): Add getopt.
66889
66890 2007-03-11  Bruno Haible  <bruno@clisp.org>
66891
66892         * modules/modechange (Depends-on): Add stdbool.
66893
66894 2007-03-11  Bruno Haible  <bruno@clisp.org>
66895
66896         * modules/i-ring (Depends-on): Add stdbool.
66897
66898 2007-03-11  Bruno Haible  <bruno@clisp.org>
66899
66900         * modules/gc-des (Depends-on): Add stdbool.
66901
66902 2007-03-11  Bruno Haible  <bruno@clisp.org>
66903
66904         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
66905
66906 2007-03-11  Bruno Haible  <bruno@clisp.org>
66907
66908         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
66909
66910 2007-03-11  Bruno Haible  <bruno@clisp.org>
66911
66912         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
66913
66914 2007-03-11  Bruno Haible  <bruno@clisp.org>
66915
66916         * lib/vasnprintf.c (sprintf): Undefine.
66917
66918 2007-03-11  Bruno Haible  <bruno@clisp.org>
66919
66920         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
66921         initializers in SunPRO C and Compaq C compilers.
66922
66923 2007-03-11  Bruno Haible  <bruno@clisp.org>
66924
66925         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
66926         decrementing code ANSI C compliant.
66927
66928 2007-03-11  Bruno Haible  <bruno@clisp.org>
66929
66930         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
66931         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
66932
66933 2007-03-11  Bruno Haible  <bruno@clisp.org>
66934
66935         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
66936         <stdbool.h> substitute doesn't pass.
66937
66938 2007-03-11  Bruno Haible  <bruno@clisp.org>
66939
66940         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
66941
66942 2007-03-11  Bruno Haible  <bruno@clisp.org>
66943
66944         * gnulib-tool (func_create_megatestdir): Create also an autobuild
66945         script, for submission to autobuild.josefsson.org.
66946
66947 2007-03-10  Bruno Haible  <bruno@clisp.org>
66948
66949         * modules/canonicalize-lgpl-tests: New file.
66950         * tests/test-canonicalize-lgpl.sh: New file.
66951         * tests/test-canonicalize-lgpl.c: New file.
66952
66953         * modules/c-strcase-tests: New file.
66954         * tests/test-c-strcase.sh: New file.
66955         * tests/test-c-strcasecmp.c: New file.
66956         * tests/test-c-strncasecmp.c: New file.
66957
66958         * modules/atexit-tests: New file.
66959         * tests/test-atexit.sh: New file.
66960         * tests/test-atexit.c: New file.
66961
66962 2007-03-10  Bruno Haible  <bruno@clisp.org>
66963
66964         * tests/test-binary-io.sh: Use temporary filenames that are not so
66965         likely to clash with those of other tests (in a parallel make).
66966         * tests/test-binary-io.c: Likewise.
66967
66968 2007-03-10  Bruno Haible  <bruno@clisp.org>
66969
66970         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
66971         fallback; use #error instead.
66972         Suggested by Simon Josefsson.
66973
66974 2007-03-10  Bruno Haible  <bruno@clisp.org>
66975
66976         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
66977         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
66978         first and the last.
66979
66980 2007-03-10  Bruno Haible  <bruno@clisp.org>
66981
66982         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
66983
66984 2007-03-10  Bruno Haible  <bruno@clisp.org>
66985
66986         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
66987         "make distcheck".
66988         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
66989         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
66990         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
66991
66992 2007-03-10  Bruno Haible  <bruno@clisp.org>
66993
66994         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
66995         variable.
66996         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
66997         variable.
66998
66999 2007-03-09  Eric Blake  <ebb9@byu.net>
67000         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
67001
67002         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
67003         types are not being provided by gnulib.
67004         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
67005         types are supported.
67006
67007 2007-03-10  Bruno Haible  <bruno@clisp.org>
67008
67009         * lib/stdio_.h (__attribute__): New macro.
67010         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
67011         vsprintf): Specify __attribute__ __format__ for GCC.
67012         Suggested by Eric Blake.
67013
67014 2007-03-09  Bruno Haible  <bruno@clisp.org>
67015
67016         * modules/printf-posix-tests: New file.
67017         * tests/test-printf-posix.sh: New file.
67018         * tests/test-printf-posix.c: New file.
67019
67020         * modules/printf-posix: New file.
67021         * lib/printf.c: New file.
67022         * m4/printf-posix-rpl.m4: New file.
67023         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
67024         REPLACE_PRINTF.
67025         * lib/stdio_.h (printf): New declaration.
67026         (format, __format__, ____printf____, ____scanf____, ____strftime____,
67027         ____strfmon____): New macros.
67028         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
67029         REPLACE_PRINTF.
67030
67031 2007-03-09  Bruno Haible  <bruno@clisp.org>
67032
67033         * tests/test-vasnprintf-posix2.sh: New file.
67034         * tests/test-vasnprintf-posix2.c: New file.
67035         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
67036         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
67037         (Makefile.am): Activate test-vasnprintf-posix2.sh.
67038
67039         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
67040         a locale dependent decimal point, rather than always '.'.
67041
67042 2007-03-09  Eric Blake  <ebb9@byu.net>
67043
67044         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
67045         spite of platforms like Tandem/NSK that define it to -1.
67046
67047 2007-03-08  Bruno Haible  <bruno@clisp.org>
67048
67049         * modules/vprintf-posix-tests: New file.
67050         * tests/test-vprintf-posix.sh: New file.
67051         * tests/test-vprintf-posix.c: New file.
67052         * tests/test-printf-posix.h: New file.
67053
67054         * modules/vprintf-posix: New file.
67055         * lib/vprintf.c: New file.
67056         * m4/vprintf-posix.m4: New file.
67057         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
67058         REPLACE_VPRINTF.
67059         * lib/stdio_.h (vprintf): New declaration.
67060         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
67061         REPLACE_VPRINTF.
67062
67063 2007-03-08  Bruno Haible  <bruno@clisp.org>
67064
67065         * modules/fprintf-posix-tests: New file.
67066         * tests/test-fprintf-posix.sh: New file.
67067         * tests/test-fprintf-posix.c: New file.
67068
67069         * modules/fprintf-posix: New file.
67070         * lib/fprintf.c: New file.
67071         * m4/fprintf-posix.m4: New file.
67072         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
67073         REPLACE_FPRINTF.
67074         * lib/stdio_.h (fprintf): New declaration.
67075         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
67076         REPLACE_FPRINTF.
67077
67078 2007-03-08  Bruno Haible  <bruno@clisp.org>
67079
67080         * modules/vfprintf-posix-tests: New file.
67081         * tests/test-vfprintf-posix.sh: New file.
67082         * tests/test-vfprintf-posix.c: New file.
67083         * tests/test-fprintf-posix.h: New file.
67084         * tests/test-fprintf-posix.out: New file.
67085
67086         * modules/vfprintf-posix: New file.
67087         * lib/vfprintf.c: New file.
67088         * m4/vfprintf-posix.m4: New file.
67089         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
67090         REPLACE_VFPRINTF.
67091         * lib/stdio_.h (vfprintf): New declaration.
67092         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
67093         REPLACE_VFPRINTF.
67094
67095 2007-03-08  Bruno Haible  <bruno@clisp.org>
67096
67097         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
67098
67099 2007-03-08  Bruno Haible  <bruno@clisp.org>
67100
67101         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
67102         instead of 'expr' invocations.
67103         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67104         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67105         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67106         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67107         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67108         Suggested by Paul Eggert.
67109
67110 2007-03-08  Bruno Haible  <bruno@clisp.org>
67111
67112         * modules/fseterr-tests: New file.
67113         * tests/test-fseterr.c: New file.
67114
67115         * modules/fseterr: New file.
67116         * lib/fseterr.h: New file.
67117         * lib/fseterr.c: New file.
67118
67119 2007-03-08  Bruno Haible  <bruno@clisp.org>
67120
67121         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
67122         * lib/getopt_.h: Likewise.
67123         * lib/mbswidth.h: Likewise.
67124         * lib/setenv.h: Likewise.
67125         * lib/vasnprintf.h: Likewise.
67126         * lib/vasprintf.h: Likewise.
67127         * lib/verror.h: Likewise.
67128         * lib/xsetenv.h: Likewise.
67129         * lib/xvasprintf.h: Likewise.
67130
67131 2007-03-08  Jim Meyering  <jim@meyering.net>
67132
67133         * users.txt: Add parted.
67134
67135         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
67136
67137 2007-03-07  Bruno Haible  <bruno@clisp.org>
67138
67139         * m4/printf.m4: Make the shell script snippets copy&pastable.
67140
67141 2007-03-02  Bruno Haible  <bruno@clisp.org>
67142
67143         * lib/netinet_in_.h: New file.
67144         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
67145         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
67146         * modules/netinet_in (Files): Add lib/netinet_in_.h.
67147         (Depends-on): Add absolute-header.
67148         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
67149         into netinet/in.h.
67150
67151 2007-03-03  Bruno Haible  <bruno@clisp.org>
67152
67153         * lib/sys_select_.h: New file.
67154         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
67155         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
67156         * modules/sys_select (Files): Add lib/sys_select_.h.
67157         (Depends-on): Add absolute-header.
67158         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
67159         into sys/select.h.
67160
67161 2007-03-02  Bruno Haible  <bruno@clisp.org>
67162
67163         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
67164         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
67165         values.
67166         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
67167         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
67168         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
67169         * modules/sys_socket (Depends-on): Add absolute-header.
67170         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
67171         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
67172         (Include): Remove requirement of inclusion of <sys/types.h>.
67173
67174 2007-03-02  Bruno Haible  <bruno@clisp.org>
67175
67176         * lib/byteswap_.h (bswap_32): Fix formula.
67177
67178 2007-03-06  Bruno Haible  <bruno@clisp.org>
67179
67180         * modules/sprintf-posix-tests: New file.
67181         * tests/test-sprintf-posix.c: New file.
67182
67183         * modules/sprintf-posix: New file.
67184         * lib/sprintf.c: New file.
67185         * m4/sprintf-posix.m4: New file.
67186         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
67187         REPLACE_SPRINTF.
67188         * lib/stdio_.h (sprintf): New declaration.
67189         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
67190         REPLACE_SPRINTF.
67191
67192 2007-03-06  Bruno Haible  <bruno@clisp.org>
67193
67194         * modules/vsprintf-posix-tests: New file.
67195         * tests/test-vsprintf-posix.c: New file.
67196         * tests/test-sprintf-posix.h: New file.
67197
67198         * modules/vsprintf-posix: New file.
67199         * lib/vsprintf.c: New file.
67200         * m4/vsprintf-posix.m4: New file.
67201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
67202         REPLACE_VSPRINTF.
67203         * lib/stdio_.h (vsprintf): New declaration.
67204         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
67205         REPLACE_VSPRINTF.
67206
67207 2007-03-06  Bruno Haible  <bruno@clisp.org>
67208
67209         * modules/vsnprintf (Depend-on): Remove minmax.
67210
67211 2007-03-06  Bruno Haible  <bruno@clisp.org>
67212
67213         * modules/snprintf-posix-tests: New file.
67214         * tests/test-snprintf-posix.c: New file.
67215
67216         * modules/snprintf-posix: New file.
67217         * m4/snprintf-posix.m4: New file.
67218         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
67219         gl_FUNC_SNPRINTF.
67220         (gl_FUNC_SNPRINTF): Invoke it.
67221         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
67222         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
67223         is set.
67224         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
67225
67226 2007-03-06  Bruno Haible  <bruno@clisp.org>
67227
67228         * modules/vsnprintf-posix-tests: New file.
67229         * tests/test-vsnprintf-posix.c: New file.
67230         * tests/test-snprintf-posix.h: New file.
67231
67232         * modules/vsnprintf-posix: New file.
67233         * m4/vsnprintf-posix.m4: New file.
67234         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
67235         gl_FUNC_VSNPRINTF.
67236         (gl_FUNC_VSNPRINTF): Invoke it.
67237         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
67238         * lib/stdio_.h (vsnprintf): Define as a replacement if
67239         REPLACE_VSNPRINTF is set.
67240         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
67241
67242 2007-03-06  Bruno Haible  <bruno@clisp.org>
67243
67244         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
67245         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
67246
67247 2007-03-06  Bruno Haible  <bruno@clisp.org>
67248
67249         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
67250         (asinl): Declare also if HAVE_DECL_ASINL is set.
67251         (atanl): Declare also if HAVE_DECL_ATANL is set.
67252         (ceill): Declare also if HAVE_DECL_CEILL is set.
67253         (cosl): Declare also if HAVE_DECL_COSL is set.
67254         (expl): Declare also if HAVE_DECL_EXPL is set.
67255         (floorl): Declare also if HAVE_DECL_FLOORL is set.
67256         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
67257         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
67258         (logl): Declare also if HAVE_DECL_LOGL is set.
67259         (sinl): Declare also if HAVE_DECL_SINL is set.
67260         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
67261         (tanl): Declare also if HAVE_DECL_TANL is set.
67262         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
67263         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
67264         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
67265         declaration of frexpl, ldexpl.
67266         * modules/printf-frexpl (Depends-on): Add math.
67267         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67268
67269 2007-03-05  Bruno Haible  <bruno@clisp.org>
67270
67271         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67272         frexpl and ldexpl are declared.
67273         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67274
67275 2007-03-05  Bruno Haible  <bruno@clisp.org>
67276
67277         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67278         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67279
67280 2007-03-05  Bruno Haible  <bruno@clisp.org>
67281
67282         * lib/stdio_.h: Include <stddef.h>.
67283
67284 2007-03-05  Bruno Haible  <bruno@clisp.org>
67285
67286         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
67287
67288 2007-03-05  Bruno Haible  <bruno@clisp.org>
67289
67290         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
67291         NetBSD 4, from Ralf Wildenhues.
67292
67293 2007-03-04  Bruno Haible  <bruno@clisp.org>
67294
67295         * lib/vasprintf.h: Update #if logic for the case when the functions
67296         exist but are overridden.
67297
67298 2007-03-04  Bruno Haible  <bruno@clisp.org>
67299
67300         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
67301         implementations: glibc-2.4 and MacOS X 10.3.
67302         * tests/test-vasnprintf-posix.c (test_function): Test also the case
67303         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
67304         * tests/test-vasprintf-posix.c (test_function): Likewise.
67305
67306 2007-03-04  Bruno Haible  <bruno@clisp.org>
67307
67308         * modules/vasprintf-posix-tests: New file.
67309         * tests/test-vasprintf-posix.c: New file.
67310
67311         * modules/vasprintf-posix: New file.
67312         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
67313         defined.
67314         * m4/vasprintf-posix.m4: New file.
67315         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
67316         gl_FUNC_VASPRINTF.
67317         (gl_FUNC_VASPRINTF): Invoke it.
67318         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
67319         here.
67320         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
67321
67322 2007-03-04  Bruno Haible  <bruno@clisp.org>
67323
67324         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
67325         REPLACE_GETTIMEOFDAY.
67326         * modules/sys_time (Makefile.am): Likewise.
67327         * m4/sys_time_h.m4: Likewise.
67328         * m4/gettimeofday.m4: Likewise.
67329
67330 2007-03-04  Bruno Haible  <bruno@clisp.org>
67331
67332         * modules/vasnprintf-posix-tests: New file.
67333         * tests/test-vasnprintf-posix.c: New file.
67334
67335         * modules/vasnprintf-posix: New file.
67336         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
67337         printf-frexpl.h.
67338         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
67339         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
67340         REPLACE_VASNPRINTF is defined.
67341         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
67342         gl_FUNC_VASNPRINTF.
67343         (gl_FUNC_VASNPRINTF): Invoke it.
67344         * m4/vasnprintf-posix.m4: New file.
67345         * m4/printf.m4: New file.
67346
67347 2007-03-04  Bruno Haible  <bruno@clisp.org>
67348
67349         Compile progreloc.c only if --enable-relocatable is specified.
67350         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
67351         if --enable-relocatable was specified.
67352         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
67353         lib_SOURCES.
67354
67355 2007-03-04  Jim Meyering  <jim@meyering.net>
67356
67357         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
67358         Use it consistently, rather than enumerating errno constants.
67359
67360 2007-03-04  Bruno Haible  <bruno@clisp.org>
67361
67362         * modules/xvasprintf-tests: New file.
67363         * tests/test-xvasprintf.c: New file.
67364
67365         * modules/vasprintf-tests: New file.
67366         * tests/test-vasprintf.c: New file.
67367
67368         * modules/vasnprintf-tests: New file.
67369         * tests/test-vasnprintf.c: New file.
67370
67371         * modules/vsnprintf-tests: New file.
67372         * tests/test-vsnprintf.c: New file.
67373
67374         * modules/snprintf-tests: New file.
67375         * tests/test-snprintf.c: New file.
67376
67377 2007-03-04  Bruno Haible  <bruno@clisp.org>
67378
67379         Compile relocatable.c only if --enable-relocatable is specified.
67380         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
67381         gl_RELOCATABLE_LIBRARY.
67382         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
67383         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
67384         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
67385         gl_RELOCATABLE_LIBRARY.
67386         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
67387         (Makefile.am): Remove lib_SOURCES.
67388         * modules/relocatable-lib-lgpl (configure.ac): Invoke
67389         gl_RELOCATABLE_LIBRARY.
67390         (Makefile.am): Remove lib_SOURCES.
67391         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
67392         always.
67393         * modules/relocatable-prog-wrapper (configure.ac): Invoke
67394         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
67395
67396 2007-03-04  Bruno Haible  <bruno@clisp.org>
67397
67398         * modules/argmatch-tests: New file.
67399         * tests/test-argmatch.c: New file.
67400
67401         * tests/test-allocsa.c (main): Halve the number of loop runs.
67402
67403         * modules/alloca-opt-tests: New file.
67404         * tests/test-alloca-opt.c: New file.
67405
67406 2007-03-04  Jim Meyering  <jim@meyering.net>
67407
67408         Work around difference between Linux ACLs and Solaris 10 ZFS.
67409         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
67410         for EINVAL.
67411
67412 2007-03-03  Bruno Haible  <bruno@clisp.org>
67413
67414         * modules/relocatable-prog (Depends-on): Add back progreloc's
67415         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
67416
67417 2007-03-03  Bruno Haible  <bruno@clisp.org>
67418
67419         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
67420         * modules/relocatable-lib: New file.
67421
67422 2007-03-03  Bruno Haible  <bruno@clisp.org>
67423
67424         * modules/relocatable-prog: Renamed from modules/relocatable.
67425         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
67426
67427 2007-03-03  Bruno Haible  <bruno@clisp.org>
67428
67429         * modules/relocatable-script (Files): Add doc/relocatable.texi,
67430         m4/relocatable-lib.m4.
67431         (Depends-on): Remove 'relocatable'.
67432         (configure.ac): Add gl_RELOCATABLE_NOP.
67433
67434 2007-03-03  Bruno Haible  <bruno@clisp.org>
67435
67436         * modules/relocatable-prog-wrapper: New file.
67437         * modules/relocatable (Depends-on): Add it. Remove all other
67438         dependencies except progname.
67439         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
67440
67441         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
67442         (gl_FUNC_STRERROR): Nop.
67443         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
67444
67445         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
67446         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
67447
67448         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
67449         (gl_FUNC_READLINK): Update.
67450
67451         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
67452
67453 2007-03-03  Bruno Haible  <bruno@clisp.org>
67454
67455         * lib/xreadlink.c: Include <unistd.h> unconditionally.
67456         * modules/xreadlink (Depends-on): Add unistd.
67457         * modules/xreadlink-with-size (Depends-on): Likewise.
67458
67459 2007-03-03  Bruno Haible  <bruno@clisp.org>
67460
67461         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
67462         extracted from gt_FUNC_SETENV.
67463         (gt_FUNC_SETENV): Remove macro.
67464         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
67465         remove gt_FUNC_SETENV.
67466
67467 2007-03-03  Bruno Haible  <bruno@clisp.org>
67468
67469         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
67470         ENABLE_RELOCATABLE here.
67471         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
67472
67473 2007-03-03  Bruno Haible  <bruno@clisp.org>
67474
67475         * modules/rbtreehash-list-tests (Depends-on): Add progname.
67476         * tests/test-rbtreehash_list.c: Include progname.h.
67477         (main): Call set_program_name.
67478
67479         * modules/rbtree-oset-tests (Depends-on): Add progname.
67480         * tests/test-rbtree_oset.c: Include progname.h.
67481         (main): Call set_program_name.
67482
67483         * modules/rbtree-list-tests (Depends-on): Add progname.
67484         * tests/test-rbtree_list.c: Include progname.h.
67485         (main): Call set_program_name.
67486
67487         * modules/linked-list-tests (Depends-on): Add progname.
67488         * tests/test-linked_list.c: Include progname.h.
67489         (main): Call set_program_name.
67490
67491 2007-03-03  Bruno Haible  <bruno@clisp.org>
67492
67493         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
67494         All uses of __restrict changed to _Restrict_.
67495         * lib/glob_.h (__restrict): Remove macro.
67496
67497 2007-03-02  Bruno Haible  <bruno@clisp.org>
67498
67499         * modules/gettext (configure.ac): Require gettext infrastructure
67500         from version 0.16.1.
67501
67502 2007-03-02  Bruno Haible  <bruno@clisp.org>
67503
67504         * modules/linkedhash-list-tests (Depends-on): Add progname.
67505         * tests/test-linkedhash_list.c: Include progname.h.
67506         (main): Call set_program_name.
67507
67508         * modules/carray-list-tests (Depends-on): Add progname.
67509         * tests/test-carray_list.c: Include progname.h.
67510         (main): Call set_program_name.
67511
67512         * modules/avltreehash-list-tests (Depends-on): Add progname.
67513         * tests/test-avltreehash_list.c: Include progname.h.
67514         (main): Call set_program_name.
67515
67516         * modules/avltree-oset-tests (Depends-on): Add progname.
67517         * tests/test-avltree_oset.c: Include progname.h.
67518         (main): Call set_program_name.
67519
67520         * modules/avltree-list-tests (Depends-on): Add progname.
67521         * tests/test-avltree_list.c: Include progname.h.
67522         (main): Call set_program_name.
67523
67524         * modules/array-oset-tests (Depends-on): Add progname.
67525         * tests/test-array_oset.c: Include progname.h.
67526         (main): Call set_program_name.
67527
67528         * modules/array-list-tests (Depends-on): Add progname.
67529         * tests/test-array_list.c: Include progname.h.
67530         (main): Call set_program_name.
67531
67532         * modules/argp-tests (Depends-on): Add progname.
67533         * tests/test-argp.c: Include argp.h first. Include progname.h.
67534         (main): Call set_program_name.
67535
67536 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
67537
67538         * doc/gnulib-tool.texi (Initial import): Reword description of
67539         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
67540         limited effect even if defined after the first system include.
67541
67542 2007-03-01  Bruno Haible  <bruno@clisp.org>
67543
67544         * build-aux/config.libpath: Update to libtool-1.5.22.
67545         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67546
67547 2007-03-01  Bruno Haible  <bruno@clisp.org>
67548
67549         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
67550         foo_CFLAGS.
67551         Reported by Ralf Wildenhues.
67552
67553 2007-03-01  Bruno Haible  <bruno@clisp.org>
67554
67555         * build-aux/install-reloc: Remove object files left over by some
67556         compilers.
67557         Reported by Ralf Wildenhues.
67558
67559 2007-03-01  Bruno Haible  <bruno@clisp.org>
67560
67561         * build-aux/install-reloc: Break long lines.
67562
67563 2007-03-01  Bruno Haible  <bruno@clisp.org>
67564
67565         * doc/relocatable.texi: Document that it may not work on OpenBSD.
67566         Reported by Ralf Wildenhues.
67567
67568 2007-03-01  Bruno Haible  <bruno@clisp.org>
67569
67570         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
67571         include ordering constraints.
67572
67573 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67574
67575         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
67576         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
67577         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
67578         as another example.
67579         * lib/time_.h: Fix misspelling.
67580         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67581         Require gl_HEADER_TIME_H_DEFAULTS.
67582         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
67583         * m4/time_r.m4 (gl_TIME_R): Likewise.
67584         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
67585
67586 2007-03-01  Bruno Haible  <bruno@clisp.org>
67587
67588         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
67589         * m4/utimens.m4 (gl_UTIMENS): Likewise.
67590
67591 2007-03-01  Jim Meyering  <jim@meyering.net>
67592
67593         * modules/xreadlink (Maintainer): Add my name.
67594         * modules/xreadlink-with-size (Depends-on): Alphabetize.
67595
67596 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
67597             Bruno Haible  <bruno@clisp.org>
67598
67599         * build-aux/install-reloc: Compile also c-ctype.c.
67600         * build-aux/relocatable.sh.in: New file.
67601         * doc/relocatable.texi: New file.
67602         * doc/relocatable-maint.texi: New file.
67603         * doc/gnulib.texi: Include relocatable-maint.texi.
67604         * lib/progreloc.c: Include unistd.h unconditionally.
67605         * lib/relocwrapper.c: Include unistd.h unconditionally.
67606         Include c-ctype.h.
67607         (add_dotbin): Use c_tolower.
67608         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
67609         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
67610         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
67611         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
67612         to m4/relocatable-lib.m4.
67613         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
67614         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
67615         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
67616         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
67617         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
67618         * modules/relocatable: New file.
67619         * modules/relocatable-lib: New file.
67620         * modules/relocatable-script: New file.
67621
67622 2007-02-28  Bruno Haible  <bruno@clisp.org>
67623
67624         Import --enable-relocatable infrastructure.
67625         * build-aux/config.libpath: New file, from GNU gettext.
67626         * build-aux/install-reloc: New file, from GNU gettext.
67627         * build-aux/reloc-ldflags: New file, from GNU gettext.
67628         * lib/relocatable.h: New file, from GNU gettext.
67629         * lib/relocatable.c: New file, from GNU gettext.
67630         * lib/relocwrapper.c: New file, from GNU gettext.
67631         * m4/relocatable.m4: New file, from GNU gettext.
67632
67633 2007-02-28  Bruno Haible  <bruno@clisp.org>
67634
67635         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
67636
67637         * modules/xreadlink: New file, from GNU gettext with modifications.
67638         * lib/xreadlink.c: New file, from GNU gettext.
67639         * lib/xreadlink.h: Add comments.
67640         (xreadlink): New declaration.
67641
67642         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
67643         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
67644         lib/xreadlink-with-size.c.
67645         (configure.ac): Remove gl_XREADLINK invocation.
67646         (Makefile.am): Augment lib_SOURCES.
67647         * m4/xreadlink.m4: Remove file.
67648         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
67649         (xreadlink_with_size): Renamed from xreadink.
67650         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
67651         * modules/canonicalize (Depends-on): Replace xreadlink with
67652         xreadlink-with-size.
67653         * lib/canonicalize.c (canonicalize_filename_mode): Update.
67654
67655 2007-02-25  Jim Meyering  <jim@meyering.net>
67656
67657         * build-aux/announce-gen: When complaining about excess arguments,
67658         list them.
67659
67660 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67661
67662         * README: Document signed integer overflow situation more
67663         accurately.
67664
67665 2007-02-25  Bruno Haible  <bruno@clisp.org>
67666
67667         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
67668         'a' or 'A' conversion.
67669
67670 2007-02-25  Bruno Haible  <bruno@clisp.org>
67671
67672         * modules/filename: Renamed from modules/pathname.
67673         (Files): Replace lib/pathname.h with lib/filename.h. Replace
67674         lib/concatpath.c with lib/concat-filename.c.
67675         (Makefile.am): Update.
67676         (Include): Replace pathname.h with filename.h.
67677         * lib/filename.h: Renamed from lib/pathname.h.
67678         (concatenated_filename): Renamed from concatenated_pathname.
67679         * lib/concat-filename.c: Renamed from lib/concatpath.c.
67680         (concatenated_filename): Renamed from concatenated_pathname.
67681         * lib/findprog.c: Include filename.h instead of pathname.h.
67682         (find_in_path): Update.
67683         * lib/javacomp.c: Include filename.h instead of pathname.h.
67684         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
67685         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
67686         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
67687         is_oldgcj_14_13_usable, is_javac_usable): Update.
67688         * lib/javaexec.c: Include filename.h instead of pathname.h.
67689         (execute_java_class): Update.
67690         * modules/findprog: Update.
67691         * modules/javacomp: Update.
67692         * modules/javaexec: Update.
67693         * MODULES.html.sh (File system functions): Add 'filename', remove
67694         'pathname'.
67695
67696 2007-02-25  Bruno Haible  <bruno@clisp.org>
67697
67698         * modules/printf-frexpl-tests: New file.
67699         * tests/test-printf-frexpl.c: New file.
67700
67701         * modules/printf-frexpl: New file.
67702         * lib/printf-frexpl.h: New file.
67703         * lib/printf-frexpl.c: New file.
67704         * m4/printf-frexpl.m4: New file.
67705
67706 2007-02-25  Bruno Haible  <bruno@clisp.org>
67707
67708         * modules/printf-frexp-tests: New file.
67709         * tests/test-printf-frexp.c: New file.
67710
67711         * modules/printf-frexp: New file.
67712         * lib/printf-frexp.h: New file.
67713         * lib/printf-frexp.c: New file.
67714         * m4/printf-frexp.m4: New file.
67715
67716 2007-02-25  Bruno Haible  <bruno@clisp.org>
67717
67718         Assume automake >= 1.10 for the tests.
67719         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
67720         * modules/arctwo-tests: Likewise.
67721         * modules/argp-tests: Likewise.
67722         * modules/avltree-list-tests: Likewise.
67723         * modules/avltree-oset-tests: Likewise.
67724         * modules/avltreehash-list-tests: Likewise.
67725         * modules/carray-list-tests: Likewise.
67726         * modules/crc-tests: Likewise.
67727         * modules/des-tests: Likewise.
67728         * modules/gc-arcfour-tests: Likewise.
67729         * modules/gc-arctwo-tests: Likewise.
67730         * modules/gc-des-tests: Likewise.
67731         * modules/gc-hmac-md5-tests: Likewise.
67732         * modules/gc-hmac-sha1-tests: Likewise.
67733         * modules/gc-md2-tests: Likewise.
67734         * modules/gc-md4-tests: Likewise.
67735         * modules/gc-md5-tests: Likewise.
67736         * modules/gc-pbkdf2-sha1-tests: Likewise.
67737         * modules/gc-rijndael-tests: Likewise.
67738         * modules/gc-sha1-tests: Likewise.
67739         * modules/gc-tests: Likewise.
67740         * modules/getaddrinfo-tests: Likewise.
67741         * modules/hmac-md5-tests: Likewise.
67742         * modules/hmac-sha1-tests: Likewise.
67743         * modules/linked-list-tests: Likewise.
67744         * modules/linkedhash-list-tests: Likewise.
67745         * modules/lock-tests: Likewise.
67746         * modules/md2-tests: Likewise.
67747         * modules/md4-tests: Likewise.
67748         * modules/md5-tests: Likewise.
67749         * modules/rbtree-list-tests: Likewise.
67750         * modules/rbtree-oset-tests: Likewise.
67751         * modules/rbtreehash-list-tests: Likewise.
67752         * modules/read-file-tests: Likewise.
67753         * modules/rijndael-tests: Likewise.
67754         * modules/stdint-tests: Likewise.
67755         * modules/tls-tests: Likewise.
67756
67757 2007-02-24  Bruno Haible  <bruno@clisp.org>
67758
67759         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
67760         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
67761         function; instead check whether isnan with a double argument links.
67762         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
67763         function; instead check whether isnan with a 'long double' argument
67764         links.
67765         Reported by Eric Blake <ebb9@byu.net>.
67766
67767 2007-02-24  Bruno Haible  <bruno@clisp.org>
67768
67769         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
67770         defined.
67771         * lib/isnanl.c: Remove all code. Just include isnan.c.
67772         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
67773
67774 2007-02-25  Jim Meyering  <jim@meyering.net>
67775
67776         Avoid conflicting types for 'unsetenv' on FreeBSD.
67777         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
67778         conflicting with FreeBSD's (5.0 and 6.1) function declaration
67779         in stdlib.h.
67780
67781 2007-02-24  Bruno Haible  <bruno@clisp.org>
67782
67783         * modules/isnanl-nolibm-tests: New file.
67784         * tests/test-isnanl.c: New file.
67785
67786         * modules/isnanl-nolibm: New file.
67787         * lib/isnanl.h: New file.
67788         * lib/isnanl.c: New file.
67789         * m4/isnanl.m4: New file.
67790
67791 2007-02-24  Bruno Haible  <bruno@clisp.org>
67792
67793         * modules/isnan-nolibm-tests: New file.
67794         * tests/test-isnan.c: New file.
67795
67796         * modules/isnan-nolibm: New file.
67797         * lib/isnan.h: New file.
67798         * lib/isnan.c: New file.
67799         * m4/isnan.m4: New file.
67800
67801 2007-02-24  Bruno Haible  <bruno@clisp.org>
67802
67803         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
67804         assume that an exponent fits in 20 bits.
67805
67806 2007-02-24  Jim Meyering  <jim@meyering.net>
67807
67808         * m4/regex.m4: Update the description of the configure-time option,
67809         --without-included-regex, to state accurately what the defaults are,
67810         and perhaps to give people an idea why using this option is risky.
67811
67812 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67813
67814         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
67815         loops on small arguments.  This attempts to avoid the problem
67816         Bruno Haible reported for AIX 4.3.2 in
67817         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
67818
67819 2007-02-23  Bruno Haible  <bruno@clisp.org>
67820
67821         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
67822         Needed for help2man.
67823
67824 2007-02-23  Karl Berry  <karl@gnu.org>
67825
67826         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
67827         exists, foo.h should be cvs-ignored, not committed.
67828
67829 2007-02-23  Eric Blake  <ebb9@byu.net>
67830
67831         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
67832         * lib/stat-time.h (includes): Likewise.
67833         * lib/utimecmp.c (includes): Likewise.
67834         * lib/utimens.h (includes): Likewise.
67835         * lib/getdate.y (includes): Also include "timespec.h" for use
67836         internal to the module.
67837         * modules/utimens (Depends-on): Revert yesterday's patch.
67838         * modules/nanosleep (Depends-on): Add missing dependency.
67839
67840 2007-02-22  Bruno Haible  <bruno@clisp.org>
67841
67842         * lib/glob.c: Don't include getlogin_r.h.
67843
67844 2007-02-22  Jim Meyering  <jim@meyering.net>
67845
67846         * modules/utimens (Depends-on): Add timespec, required for
67847         utimens.h's inclusion of timespec.h.
67848
67849 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
67850
67851         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
67852         long unreadable paths in GNU/Linux.  Problem reported by Andreas
67853         Schwab in
67854         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
67855         I'll try to think of a better way to fix the Solaris problem.
67856
67857         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
67858         like glibc; on Solaris 10, it fails with errno == EINVAL.
67859         POSIX says the behavior is unspecified if the first argument is NULL,
67860         so play it safe and never pass NULL to the system getcwd.
67861
67862 2007-02-21  Jim Meyering  <jim@meyering.net>
67863
67864         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
67865         of gettimeofday.  It would conflict with the one now always
67866         provided via sys_time_.h.  Reported by Matthew Woehlke, as
67867         an IRIX 6.5 build failure.
67868
67869 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67870
67871         Minor fixups to port to Solaris 10 with Sun C 5.8.
67872         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
67873         * modules/getcwd (Depends-on): Add dirfd.
67874         * lib/putenv.c (putenv): #undef it.
67875         (rpl_putenv): New decl.
67876         (malloc, free): Include <stdlib.h> rather than prototyping separately.
67877
67878 2007-02-20  Bruno Haible  <bruno@clisp.org>
67879
67880         * modules/stdio-tests: New file.
67881         * tests/test-stdio.c: New file.
67882
67883         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
67884         (Depends-on): Add stdio.
67885         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67886         (Include): Use <stdio.h> instead of vsnprintf.h.
67887         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67888         HAVE_DECL_VSNPRINTF.
67889         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
67890
67891         * modules/snprintf (Files): Remove lib/snprintf.h.
67892         (Depends-on): Add stdio.
67893         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67894         (Include): Use <stdio.h> instead of snprintf.h.
67895         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67896         HAVE_DECL_SNPRINTF.
67897         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
67898         * lib/getaddrinfo.c: Likewise.
67899
67900         * modules/stdio: New file.
67901         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
67902         * lib/snprintf.h: Remove file.
67903         * lib/vsnprintf.h: Remove file.
67904         * lib/.cppi-disable: Remove snprintf.h.
67905         * m4/stdio_h.m4: New file.
67906         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
67907
67908 2007-02-20  Jim Meyering  <jim@meyering.net>
67909
67910         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
67911         used by e.g., mingw.  From Bruno Haible.
67912
67913 2007-02-19  Bruno Haible  <bruno@clisp.org>
67914
67915         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
67916         warnings.
67917         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67918
67919 2007-02-19  Bruno Haible  <bruno@clisp.org>
67920
67921         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
67922         from mingw users.
67923
67924 2007-02-19  Bruno Haible  <bruno@clisp.org>
67925
67926         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
67927         warnings.
67928         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
67929
67930 2007-02-19  Jim Meyering  <jim@meyering.net>
67931
67932         Don't use FD after a successful "fdopendir (fd)".
67933         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
67934         Reset it by calling dirfd on the just-obtained DIR*.
67935
67936         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
67937         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
67938
67939 2007-02-18  Bruno Haible  <bruno@clisp.org>
67940
67941         * lib/readlink.c: Include <unistd.h>.
67942         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
67943         HAVE_READLINK.
67944         * modules/readlink (Depends-on): Add unistd.
67945         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67946         (Include): Add <unistd.h>.
67947
67948         * lib/getlogin_r.h: Remove file.
67949         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
67950         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
67951         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
67952         HAVE_DECL_GETLOGIN_R.
67953         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
67954         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67955         (Include): Use <unistd.h> instead of getlogin_r.h.
67956
67957         * lib/getcwd.h: Remove file.
67958         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
67959         * lib/xgetcwd.c: Likewise.
67960         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
67961         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
67962         * modules/getcwd (Files): Remove lib/getcwd.h.
67963         (Depends-on): Add unistd.
67964         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67965         (Include): Use <unistd.h> instad of getcwd.h.
67966
67967         * lib/ftruncate.c: Include <unistd.h> first.
67968         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
67969         Set HAVE_FTRUNCATE.
67970         * modules/ftruncate (Depends-on): Add unistd.
67971         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67972
67973         * lib/fchdir.c: Include <unistd.h> first.
67974         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
67975         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
67976         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
67977         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67978         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
67979
67980         * lib/dup2.c: Include <unistd.h> first.
67981         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
67982         HAVE_DUP2.
67983         * modules/dup2 (Depends-on): Add unistd.
67984         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67985
67986         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
67987         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
67988         REPLACE_CHOWN. Don't define chown as a macro here.
67989         * modules/chown (Depends-on): Add unistd.
67990         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67991
67992         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
67993         Add definition for GL_LINK_WARNING.
67994         (chown, dup2): New declarations.
67995         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
67996         link warning.
67997         (ftruncate): New declaration.
67998         (getcwd): New declaration, taken from old getcwd.h.
67999         (getlogin_r): New declaration, taken from old getlogin_r.h.
68000         (readlink): New declaration.
68001         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
68002         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
68003         (gl_PREREQ_UNISTD): Remove macro.
68004         (gl_UNISTD_MODULE_INDICATOR): New macro.
68005         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
68006         many new variables. Don't set UNISTD_H.
68007         * modules/unistd (Description): Change.
68008         (Depends-on): Add link-warning.
68009         (configure.ac): Update.
68010         (Makefile.am): Create unistd.h always. Substitute many new variables
68011         into it.
68012
68013 2007-02-18  Bruno Haible  <bruno@clisp.org>
68014
68015         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
68016         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
68017         HAVE_GETSUBOPT.
68018         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
68019         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
68020         * lib/getsubopt.h: Remove file.
68021         * modules/getsubopt (Files): Remove lib/getsubopt.h.
68022         (Depends-on): Add stdlib.
68023         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68024         (Includes): Use <stdlib.h> instead of getsubopt.h.
68025         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
68026         Set HAVE_GETSUBOPT.
68027         * lib/getsubopt.c: Don't include getsubopt.h.
68028
68029 2007-02-18  Bruno Haible  <bruno@clisp.org>
68030
68031         * modules/fchdir (Depends-on): Add dup2.
68032
68033 2007-02-18  Bruno Haible  <bruno@clisp.org>
68034
68035         * lib/stdlib_.h: Handle glibc's special invocation convention
68036         specially.
68037
68038 2007-02-18  Bruno Haible  <bruno@clisp.org>
68039
68040         * modules/stdlib-tests: New file.
68041         * tests/test-stdlib.c: New file.
68042
68043         * modules/mkstemp (Files): Remove lib/mkstemp.h.
68044         (Depends-on): Add stdlib.
68045         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68046         (Includes): Use <stdlib.h> instead of mkstemp.h.
68047         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68048         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
68049         * lib/mkstemp.c: Don't include mkstemp.h.
68050         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
68051         * lib/stdlib--.h: Don't include mkstemp.h.
68052
68053         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
68054         (Depends-on): Add stdlib.
68055         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
68056         (Includes): Use <stdlib.h> instead of mkdtemp.h.
68057         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
68058         HAVE_MKDTEMP.
68059         * lib/mkdtemp.c: Don't include mkdtemp.h.
68060         * lib/clean-temp.c: Don't include mkdtemp.h.
68061
68062         * modules/exit (Files): Remove lib/exit.h.
68063         (Depends-on): Add stdlib.
68064         (Makefile.am): Remove lib_SOURCES.
68065         (Include): Use <stdlib.h> instead of exit.h.
68066         * lib/argmatch.c: Don't include exit.h.
68067         * lib/execute.c: Likewise.
68068         * lib/pagealign_alloc.c: Likewise.
68069         * lib/pipe.c: Likewise.
68070         * lib/wait-process.c: Likewise.
68071         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
68072         * lib/exitfail.c: Likewise.
68073         * lib/savewd.c: Likewise.
68074         * lib/xsetenv.c: Likewise.
68075
68076         * modules/stdlib: New file.
68077         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
68078         and extra comments about mkstemp().
68079         * lib/exit.h: Remove file.
68080         * lib/mkdtemp.h: Remove file.
68081         * lib/mkstemp.h: Remove file.
68082         * m4/stdlib_h.m4: New file.
68083         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
68084
68085 2007-02-18  Bruno Haible  <bruno@clisp.org>
68086
68087         * modules/math-tests: New file.
68088         * tests/test-math.c: New file.
68089
68090         * modules/math: New file.
68091         * modules/mathl (Files): Remove lib/mathl.h.
68092         (Depends-on): Add math.
68093         (Makefile.am): Don't mention mathl.h.
68094         (Include): Use <math.h> instead of mathl.h.
68095         * lib/math_.h: New file.
68096         * lib/mathl.h: Remove file.
68097         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
68098         mathl.h.
68099         * lib/asinl.c: Likewise.
68100         * lib/atanl.c: Likewise.
68101         * lib/ceill.c: Likewise.
68102         * lib/cosl.c: Likewise.
68103         * lib/expl.c: Likewise.
68104         * lib/floorl.c: Likewise.
68105         * lib/frexpl.c: Likewise.
68106         * lib/ldexpl.c: Likewise.
68107         * lib/logl.c: Likewise.
68108         * lib/sincosl.c: Likewise.
68109         * lib/sinl.c: Likewise.
68110         * lib/sqrtl.c: Likewise.
68111         * lib/tanl.c: Likewise.
68112         * lib/trigl.c: Likewise.
68113         * m4/math_h.m4: New file.
68114         * MODULES.html.sh (Mathematics): Add math.
68115
68116 2007-02-17  Bruno Haible  <bruno@clisp.org>
68117
68118         * modules/wctype-tests: New file.
68119         * tests/test-wctype.c: New file.
68120
68121         * modules/wchar-tests: New file.
68122         * tests/test-wchar.c: New file.
68123
68124         * modules/unistd-tests: New file.
68125         * tests/test-unistd.c: New file.
68126
68127         * modules/time-tests: New file.
68128         * tests/test-time.c: New file.
68129
68130         * modules/sysexits-tests: New file.
68131         * tests/test-sysexits.c: New file.
68132
68133         * modules/sys_time-tests: New file.
68134         * tests/test-sys_time.c: New file.
68135
68136         * modules/sys_stat-tests: New file.
68137         * tests/test-sys_stat.c: New file.
68138
68139         * modules/sys_socket-tests: New file.
68140         * tests/test-sys_socket.c: New file.
68141
68142         * modules/sys_select-tests: New file.
68143         * tests/test-sys_select.c: New file.
68144
68145         * modules/string-tests: New file.
68146         * tests/test-string.c: New file.
68147
68148         * modules/stdbool-tests: New file.
68149         * tests/test-stdbool.c: New file.
68150
68151         * modules/netinet_in-tests: New file.
68152         * tests/test-netinet_in.c: New file.
68153
68154         * modules/inttypes-tests: New file.
68155         * tests/test-inttypes.c: New file.
68156
68157         * modules/fcntl-tests: New file.
68158         * tests/test-fcntl.c: New file.
68159
68160         * modules/byteswap-tests: New file.
68161         * tests/test-byteswap.c: New file.
68162
68163         * modules/arpa_inet-tests: New file.
68164         * tests/test-arpa_inet.c: New file.
68165
68166 2007-02-17  Bruno Haible  <bruno@clisp.org>
68167
68168         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
68169         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
68170         if the corresponding module is not enabled. Emit link warnings if
68171         the function is used nevertheless.
68172         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
68173         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
68174         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
68175         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
68176         * modules/inttypes (Depends-on): Add link-warning.
68177         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68178         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
68179         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
68180         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
68181         * modules/imaxdiv (configure.ac): Likewise.
68182         * modules/strtoimax (configure.ac): Likewise.
68183         * modules/strtoumax (configure.ac): Likewise.
68184
68185 2007-02-17  Bruno Haible  <bruno@clisp.org>
68186
68187         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
68188         gl_STRING_MODULE_INDICATOR_DEFAULTS.
68189         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
68190         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
68191
68192 2007-02-17  Bruno Haible  <bruno@clisp.org>
68193
68194         * modules/link-warning: New file.
68195         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
68196         * lib/string_.h (GL_LINK_WARNING): Remove definition.
68197         * modules/string (Depends-on): Add link-warning.
68198         (Makefile.am): Copy the contents of build-aux/link-warning.h into
68199         string.h.
68200         * MODULES.html.sh (Support for building libraries and executables): Add
68201         link-warning.
68202
68203 2007-02-17  Bruno Haible  <bruno@clisp.org>
68204
68205         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
68206         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
68207         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
68208         long lines.
68209
68210 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
68211             Bruno Haible  <bruno@clisp.org>
68212
68213         * modules/tmpfile: New file.
68214         * lib/tmpfile.c: New file.
68215         * m4/tmpfile.m4: New file.
68216         * MODULES.html.sh (func_all_modules): New section "Input/output".
68217
68218 2007-02-15  Bruno Haible  <bruno@clisp.org>
68219
68220         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
68221         (supports_delete_on_close): New function.
68222         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
68223
68224 2007-02-14  Bruno Haible  <bruno@clisp.org>
68225
68226         * modules/mbspcasecmp-tests: New file.
68227         * tests/test-mbspcasecmp.sh: New file.
68228         * tests/test-mbspcasecmp.c: New file.
68229
68230         New module mbspcasecmp.
68231         * modules/mbspcasecmp: New file.
68232         * lib/mbspcasecmp.c: New file.
68233         * lib/string_.h (strncasecmp): Change warning message.
68234         (mbspcasecmp): New declaration.
68235         * m4/mbspcasecmp.m4: New file.
68236         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68237         GNULIB_MBSPCASECMP.
68238         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
68239         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
68240
68241 2007-02-14  Bruno Haible  <bruno@clisp.org>
68242
68243         * modules/mbsncasecmp-tests: New file.
68244         * tests/test-mbsncasecmp.sh: New file.
68245         * tests/test-mbsncasecmp.c: New file.
68246
68247         New module mbsncasecmp.
68248         * modules/mbsncasecmp: New file.
68249         * lib/mbsncasecmp.c: New file.
68250         * lib/string_.h (mbsncasecmp): New declaration.
68251         * m4/mbsncasecmp.m4: New file.
68252         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68253         GNULIB_MBSNCASECMP.
68254         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
68255         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
68256
68257 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68258
68259         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
68260         Verify that it doesn't overlap with our flags.
68261         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
68262         do not have the desired effect in multibyte locales; instead, use
68263         mbscasecmp.
68264         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
68265         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68266         we don't require GNU fnmatch ourselves (if our users require it, they
68267         should do so explicitly).
68268
68269         Fix regex code so it doesn't rely on strcasecmp.
68270         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68271         Otherwise, include gnulib's langinfo.h.
68272         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68273         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68274         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68275         * modules/regex (FILES): Remove m4/codeset.m4.
68276         (Depends-on): Add localcharset.  Remove strcase.
68277
68278 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68279
68280         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68281         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68282
68283 2007-02-13  Bruno Haible  <bruno@clisp.org>
68284
68285         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
68286         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68287
68288 2007-02-12  Bruno Haible  <bruno@clisp.org>
68289
68290         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68291         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
68292         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
68293         time warning rather than a link error.
68294
68295 2007-02-12  Bruno Haible  <bruno@clisp.org>
68296
68297         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
68298         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
68299         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68300
68301 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68302
68303         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
68304         args, not 2.
68305
68306 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68307
68308         New module 'time', so that apps can include <time.h> as per
68309         POSIX and GNU instead of separate include files like time_r.h
68310         and timegm.h.  This implementation tries out a simpler approach
68311         for replacing decls in standard include files (as compared to
68312         the string module), somewhat as an experiment.
68313
68314         * config/srclist.txt: Comment out mktime.c for now.
68315         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
68316         since it doesn't apply any more.  Use generic wording instead.
68317         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
68318         'time'.
68319         * lib/time_.h, m4/time_h.m4, modules/time: New files.
68320         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
68321         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
68322         Don't include <sys/types.h>; no longer needed since we assume C89.
68323         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
68324         * lib/strftime.c: Likewise.
68325         * lib/time_r.c: Likewise.
68326         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
68327         * lib/nanosleep.c: Include <time.h> first, to check interface.
68328         * lib/strptime.c: Likewise.
68329         * lib/time_r.c: Likewise.
68330         * lib/timegm.c: Likewise.
68331         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
68332         needed.
68333         * lib/timegm.c: Don't include timegm.h; no longer needed.
68334         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
68335         time.h now handles any problems in that area.
68336         (struct timespec, nanosleep): Remove; time.h now arranges for these.
68337         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
68338         that time.h defines struct timespec.
68339         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
68340         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
68341         handles that.
68342         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
68343         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
68344         needed.  Set REPLACE_LOCALTIME.
68345         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
68346         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
68347         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
68348         nanosleep; time_h.m4 now does that.  Don't require
68349         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
68350         module handles this now.
68351         * modules/getdate (Depends-on): Remove timespec.  Add time.
68352         * modules/nanosleep (Depends-on): Likewise.
68353         * modules/stat-time (Depends-on): Likewise.
68354         * modules/nanosleep (Include): Include time.h, not timespec.h.
68355         * modules/strptime (Files): Remove lib/strptime.h.
68356         (Depends-on): Add extensions, time.
68357         (Include): Include time.h, not strptime.h.
68358         * modules/time_r (Files): Remove lib/time_r.h.
68359         (Depends-on): Add time.
68360         (Include): Include time.h, not time_r.h.
68361         * modules/timegm: Likewise.
68362         * modules/timespec (Description): Now does timespec-related decls
68363         of our own, instead of struct timespec itself.
68364         (Depends-on): Add time; remove extensions.
68365         (Maintainer): Add self.
68366         * modules/utimecmp (Depends-on): Add time; remove timespec.
68367         * modules/utimens (Depends-on): Likewise.
68368         * modules/xnanosleep (Depends-on): Likewise.
68369
68370 2007-02-11  Bruno Haible  <bruno@clisp.org>
68371
68372         * lib/c-strstr.c: Include allocsa.h.
68373         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68374         * lib/c-strcasestr.c: Include allocsa.h.
68375         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68376         * lib/strcasestr.c: Include allocsa.h.
68377         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68378         * lib/mbsstr.c: Include allocsa.h.
68379         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68380         allocsa/freesa instead of malloc/free.
68381         * lib/mbscasestr.c: Include allocsa.h.
68382         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68383         allocsa/freesa instead of malloc/free.
68384         * modules/c-strstr (Depends-on): Add allocsa.
68385         * modules/c-strcasestr (Depends-on): Likewise.
68386         * modules/strcasestr (Depends-on): Likewise.
68387         * modules/mbsstr (Depends-on): Likewise.
68388         * modules/mbscasestr (Depends-on): Likewise.
68389
68390 2007-02-11  Bruno Haible  <bruno@clisp.org>
68391
68392         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
68393
68394         * modules/mbsspn-tests: New file.
68395         * tests/test-mbsspn.sh: New file.
68396         * tests/test-mbsspn.c: New file.
68397
68398 2007-02-11  Bruno Haible  <bruno@clisp.org>
68399
68400         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
68401
68402         * modules/mbspbrk-tests: New file.
68403         * tests/test-mbspbrk.sh: New file.
68404         * tests/test-mbspbrk.c: New file.
68405
68406 2007-02-11  Bruno Haible  <bruno@clisp.org>
68407
68408         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
68409         unneeded cast.
68410
68411         * modules/mbscspn-tests: New file.
68412         * tests/test-mbscspn.sh: New file.
68413         * tests/test-mbscspn.c: New file.
68414
68415 2007-02-11  Bruno Haible  <bruno@clisp.org>
68416
68417         * modules/mbscasecmp-tests: New file.
68418         * tests/test-mbscasecmp.sh: New file.
68419         * tests/test-mbscasecmp.c: New file.
68420
68421 2007-02-11  Bruno Haible  <bruno@clisp.org>
68422
68423         Ensure O(n) worst-case complexity of mbscasestr.
68424         * lib/mbscasestr.c: Include stdbool.h.
68425         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68426         functions.
68427         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
68428         the bookkeeping indicates that it's worth it.
68429         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
68430
68431         * modules/mbscasestr-tests: New file.
68432         * tests/test-mbscasestr1.c: New file.
68433         * tests/test-mbscasestr2.sh: New file.
68434         * tests/test-mbscasestr2.c: New file.
68435         * tests/test-mbscasestr3.sh: New file.
68436         * tests/test-mbscasestr3.c: New file.
68437         * tests/test-mbscasestr4.sh: New file.
68438         * tests/test-mbscasestr4.c: New file.
68439         * m4/locale-tr.m4: New file.
68440
68441 2007-02-11  Bruno Haible  <bruno@clisp.org>
68442
68443         Ensure O(n) worst-case complexity of mbsstr.
68444         * lib/mbsstr.c: Include stdbool.h.
68445         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68446         functions.
68447         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
68448         bookkeeping indicates that it's worth it.
68449         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
68450
68451         * modules/mbsstr-tests: New file.
68452         * tests/test-mbsstr1.c: New file.
68453         * tests/test-mbsstr2.sh: New file.
68454         * tests/test-mbsstr2.c: New file.
68455         * tests/test-mbsstr3.sh: New file.
68456         * tests/test-mbsstr3.c: New file.
68457         * m4/locale-fr.m4: New file.
68458
68459 2007-02-11  Bruno Haible  <bruno@clisp.org>
68460
68461         * lib/mbsrchr.c (mbsrchr): Fix bug.
68462
68463         * modules/mbsrchr-tests: New file.
68464         * tests/test-mbsrchr.sh: New file.
68465         * tests/test-mbsrchr.c: New file.
68466
68467 2007-02-11  Bruno Haible  <bruno@clisp.org>
68468
68469         * lib/mbschr.c (mbschr): Fix bug.
68470
68471         * modules/mbschr-tests: New file.
68472         * tests/test-mbschr.sh: New file.
68473         * tests/test-mbschr.c: New file.
68474         * m4/locale-zh.m4: New file.
68475
68476 2007-02-11  Bruno Haible  <bruno@clisp.org>
68477
68478         Support for copying multibyte string iterators.
68479         * lib/mbiter.h: Include <string.h>.
68480         (mbiter_multi_copy): New function.
68481         (mbi_copy): New macro.
68482         * lib/mbuiter.h: Include <string.h>.
68483         (mbuiter_multi_copy): New function.
68484         (mbui_copy): New macro.
68485
68486 2007-02-11  Bruno Haible  <bruno@clisp.org>
68487
68488         New module mbslen.
68489         * modules/mbslen: New file.
68490         * lib/mbslen.c: New file.
68491         * lib/string_.h (mbslen): New declaration.
68492         * m4/mbslen.m4: New file.
68493         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68494         GNULIB_MBSLEN.
68495         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
68496         * MODULES.html.sh (Internationalization functions): Add mbslen.
68497
68498 2007-02-11  Bruno Haible  <bruno@clisp.org>
68499
68500         Ensure O(n) worst-case complexity of strcasestr substitute.
68501         * lib/strcasestr.c: Include stdbool.h.
68502         (knuth_morris_pratt): New function.
68503         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68504         bookkeeping indicates that it's worth it.
68505         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
68506
68507         * modules/strcasestr-tests: New file.
68508         * tests/test-strcasestr.c: New file.
68509
68510 2007-02-11  Bruno Haible  <bruno@clisp.org>
68511
68512         Ensure O(n) worst-case complexity of c_strcasestr.
68513         * lib/c-strcasestr.c: Include stdbool.h, string.h.
68514         (knuth_morris_pratt): New function.
68515         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
68516         the bookkeeping indicates that it's worth it.
68517         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
68518
68519         * modules/c-strcasestr-tests: New file.
68520         * tests/test-c-strcasestr.c: New file.
68521
68522 2007-02-11  Bruno Haible  <bruno@clisp.org>
68523
68524         Ensure O(n) worst-case complexity of c_strstr.
68525         * lib/c-strstr.c: Include stdbool.h, string.h.
68526         (knuth_morris_pratt): New function.
68527         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68528         bookkeeping indicates that it's worth it.
68529         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
68530
68531         * lib/c-strstr.c: Complete rewrite for maintainability.
68532
68533         * modules/c-strstr-tests: New file.
68534         * tests/test-c-strstr.c: New file.
68535
68536 2007-02-11  Bruno Haible  <bruno@clisp.org>
68537
68538         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
68539         5.2.1 and earlier, whereby \055 was treated just like the range
68540         delimiter '-'.
68541         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68542
68543 2007-02-08  Bruno Haible  <bruno@clisp.org>
68544
68545         * modules/regex (Depends-on): Add stdbool.
68546         Reported by Dalibor Topic <robilad@kaffe.org>.
68547
68548 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68549
68550         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
68551         Prefer returning from main to exiting from it.
68552         Remove unnecessary parens after sizeof.
68553
68554 2007-02-05  Bruno Haible  <bruno@clisp.org>
68555
68556         New module mbssep.
68557         * modules/mbssep: New file.
68558         * lib/mbssep.c: New file.
68559         * lib/string_.h (strsep): Add a conditional link warning.
68560         (mbssep): New declaration.
68561         * m4/mbssep.m4: New file.
68562         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68563         GNULIB_MBSSEP.
68564         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
68565         * MODULES.html.sh (Internationalization functions): Add mbssep.
68566
68567 2007-02-05  Bruno Haible  <bruno@clisp.org>
68568
68569         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
68570         Optimize search in case of 1 delimiter.
68571
68572 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68573
68574         * lib/acl.h: Include sys/types.h before sys/acl.h.
68575
68576 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68577
68578         Merge upstream fix for glibc bugzilla #3957:
68579
68580         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
68581
68582         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
68583         bit for RE_HAT_LISTS_NOT_NEWLINE.
68584         (build_charclass_op): Remove bogus comment.
68585
68586 2007-02-05  Simon Josefsson  <simon@josefsson.org>
68587
68588         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
68589
68590 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68591
68592         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
68593         * lib/memmem.c [!defined _LIBC]: Include config.h.
68594
68595 2007-02-04  Bruno Haible  <bruno@clisp.org>
68596
68597         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
68598         warning message.
68599
68600 2007-02-04  Bruno Haible  <bruno@clisp.org>
68601
68602         New module mbstok_r.
68603         * modules/mbstok_r: New file.
68604         * lib/mbstok_r.c: New file.
68605         * lib/string_.h (strtok_r): Change argument names to match the
68606         comments. Add a conditional link warning.
68607         (mbstok_r): New declaration.
68608         * m4/mbstok_r.m4: New file.
68609         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68610         GNULIB_MBSTOK_R.
68611         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
68612         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
68613
68614 2007-02-04  Bruno Haible  <bruno@clisp.org>
68615
68616         New module mbsspn.
68617         * modules/mbsspn: New file.
68618         * lib/mbsspn.c: New file.
68619         * lib/string_.h (strspn): Add a conditional link warning.
68620         (mbsspn): New declaration.
68621         * m4/mbsspn.m4: New file.
68622         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68623         GNULIB_MBSSPN.
68624         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
68625         * MODULES.html.sh (Internationalization functions): Add mbsspn.
68626
68627 2007-02-04  Bruno Haible  <bruno@clisp.org>
68628
68629         New module mbspbrk.
68630         * modules/mbspbrk: New file.
68631         * lib/mbspbrk.c: New file.
68632         * lib/string_.h (strpbrk): Add a conditional link warning.
68633         (mbspbrk): New declaration.
68634         * m4/mbspbrk.m4: New file.
68635         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68636         GNULIB_MBSPBRK.
68637         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
68638         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
68639
68640 2007-02-04  Bruno Haible  <bruno@clisp.org>
68641
68642         New module mbscspn.
68643         * modules/mbscspn: New file.
68644         * lib/mbscspn.c: New file.
68645         * lib/string_.h (strcspn): Add a conditional link warning.
68646         (mbscspn): New declaration.
68647         * m4/mbscspn.m4: New file.
68648         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68649         GNULIB_MBSCSPN.
68650         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
68651         * MODULES.html.sh (Internationalization functions): Add mbscspn.
68652
68653 2007-02-04  Bruno Haible  <bruno@clisp.org>
68654
68655         New module mbscasestr, reduced goal of strcasestr.
68656         * modules/mbscasestr: New file.
68657         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
68658         (mbscasestr): Renamed from strcasestr.
68659         * lib/strcasestr.c: Don't include mbuiter.h.
68660         (strcasestr): Remove support for multibyte locales.
68661         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
68662         Change the conditional link warning.
68663         (mbscasestr): New declaration.
68664         * m4/mbscasestr.m4: New file.
68665         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
68666         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
68667         REPLACE_STRCASESTR.
68668         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
68669         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68670         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68671         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
68672         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
68673         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68674         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
68675         (Depends-on): Remove mbuiter.
68676         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
68677
68678 2007-02-04  Bruno Haible  <bruno@clisp.org>
68679
68680         Simplify handling of strncasecmp.
68681         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
68682         the conditional link warning.
68683         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68684         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
68685         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
68686         * modules/strcase (configure.ac): Don't invoke
68687         gl_STRING_MODULE_INDICATOR.
68688         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
68689
68690 2007-02-04  Bruno Haible  <bruno@clisp.org>
68691
68692         New module mbscasecmp, reduced goal of strcasecmp.
68693         * modules/mbscasecmp: New file.
68694         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
68695         (mbscasecmp): Renamed from strcasecmp.
68696         * lib/strcasecmp.c: Don't include mbuiter.h.
68697         (strcasecmp): Remove support for multibyte locales.
68698         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
68699         Change the conditional link warning.
68700         (mbscasecmp): New declaration.
68701         * m4/mbscasecmp.m4: New file.
68702         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
68703         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
68704         REPLACE_STRCASECMP.
68705         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
68706         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68707         GNULIB_MBSCASECMP.
68708         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
68709         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
68710         * modules/strcase (Files): Remove m4/mbrtowc.m4.
68711         (Depends-on): Remove mbuiter.
68712         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
68713
68714 2007-02-04  Bruno Haible  <bruno@clisp.org>
68715
68716         New module mbsstr. Remove module strstr.
68717         * modules/mbsstr: New file.
68718         * modules/strstr: Remove file.
68719         * lib/mbsstr.c: Renamed from lib/strstr.c.
68720         (mbsstr): Renamed from strstr.
68721         * lib/string_.h (strstr): Remove declaration. Change the conditional
68722         link warning.
68723         (mbsstr): New declaration.
68724         * m4/mbsstr.m4: New file.
68725         * m4/strstr.m4: Remove file.
68726         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68727         REPLACE_STRSTR.
68728         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
68729         Don't initialize GNULIB_STRSTR.
68730         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
68731         substitute GNULIB_STRSTR and REPLACE_STRSTR.
68732         * MODULES.html.sh (Internationalization functions): Add mbsstr.
68733         (Support for systems lacking ANSI C 89): Remove strstr.
68734
68735 2007-02-04  Bruno Haible  <bruno@clisp.org>
68736
68737         New module mbsrchr.
68738         * modules/mbsrchr: New file.
68739         * lib/mbsrchr.c: New file.
68740         * lib/string_.h (strrchr): Add a conditional link warning.
68741         (mbsrchr): New declaration.
68742         * m4/mbsrchr.m4: New file.
68743         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68744         GNULIB_MBSRCHR.
68745         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
68746         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
68747
68748 2007-02-04  Bruno Haible  <bruno@clisp.org>
68749
68750         New module mbschr.
68751         * modules/mbschr: New file.
68752         * lib/mbschr.c: New file.
68753         * lib/string_.h (strchr): Add a conditional link warning.
68754         (mbschr): New declaration.
68755         * m4/mbschr.m4: New file.
68756         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68757         GNULIB_MBSCHR.
68758         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
68759         * MODULES.html.sh (Internationalization functions): Add mbschr.
68760
68761 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68762
68763         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
68764
68765         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
68766
68767 2007-02-04  Bruno Haible  <bruno@clisp.org>
68768
68769         New module description section 'configure.ac-early'.
68770         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
68771         (func_get_autoconf_early_snippet): New function.
68772         (func_import, func_create_testdir): Use it. Remove special cases for
68773         modules 'extensions' and 'lock'.
68774         * modules/extensions (configure.ac-early): Require
68775         gl_USE_SYSTEM_EXTENSIONS.
68776         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
68777
68778 2007-02-04  Bruno Haible  <bruno@clisp.org>
68779
68780         Make use of gcj-4.3's -fsource and -ftarget option.
68781         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
68782         and if so try the options -fsource and -ftarget.
68783         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
68784         source_version, ftarget_option, target_version arguments.
68785         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
68786         (is_envjavac_oldgcj_14_14_usable): Renamed from
68787         is_envjavac_gcj_14_14_usable.
68788         (is_envjavac_oldgcj_14_13_usable): Renamed from
68789         is_envjavac_gcj_14_13_usable.
68790         (is_gcj_present): Update.
68791         (is_gcj_43, is_gcj43_usable): New functions.
68792         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
68793         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
68794         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
68795         try the options -fsource and -ftarget.
68796
68797 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68798
68799         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
68800         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
68801         larger value.
68802
68803 2007-02-03  Jim Meyering  <jim@meyering.net>
68804
68805         Give tools a better chance to allocate space for very large buffers.
68806         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
68807
68808         Make pwd and readlink work also when run with an unreadable parent dir
68809         on systems with openat support.
68810         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
68811         provided getcwd function, even when we have openat support.
68812         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
68813
68814 2007-02-02  Bruno Haible  <bruno@clisp.org>
68815
68816         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68817         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
68818         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
68819         portability problems if one of these functions is only used on specific
68820         platforms.
68821         Reported by Paul Eggert.
68822
68823 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
68824
68825         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
68826         is causing more trouble than it's curing.
68827         * lib/regex_internal.h (__mempcpy): Remove.
68828         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
68829         (and make the code a tad smaller to boot).
68830         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
68831
68832 2007-02-02  Jim Meyering  <jim@meyering.net>
68833
68834         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
68835         section, not in the Makefile.am: one.
68836
68837 2007-02-02  Eric Blake  <ebb9@byu.net>
68838
68839         * lib/strchrnul.c: Always include config.h first.
68840
68841         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
68842         gnulib strstr is not necessary here.
68843
68844 2007-02-02  Simon Josefsson  <simon@josefsson.org>
68845
68846         * m4/socklen.m4: Fix typo.
68847
68848 2007-02-02  Eric Blake  <ebb9@byu.net>
68849
68850         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
68851         * modules/netinet_in (Makefile.am): Likewise.
68852
68853 2007-02-01  Bruno Haible  <bruno@clisp.org>
68854
68855         * lib/string_.h (GL_LINK_WARNING): New macro.
68856         (strcasecmp, strstr, strcasestr): If provided by the system,
68857         conditionally define as a macro that leads to a warning instead of to
68858         an error.
68859         (strncasecmp): Conditionally define as a macro that leads to a warning.
68860
68861 2007-02-01  Karl Berry  <karl@gnu.org>
68862
68863         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
68864
68865 2007-02-01  Bruno Haible  <bruno@clisp.org>
68866
68867         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
68868         renamings.
68869
68870 2007-02-01  Eric Blake  <ebb9@byu.net>
68871
68872         * modules/regex (Depends-on): Revert dependence on mempcpy.
68873         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
68874         module's definition of mempcpy.
68875         Reported by Paul Eggert.
68876
68877 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68878
68879         * lib/string_.h: If the gnulib module XYZ is not present, undefine
68880         the symbol XYZ before redefining it.  This fixes a problem with
68881         programs that don't use XYZ, when compiled on systems that define
68882         XYZ to something else.
68883
68884 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
68885
68886         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
68887         occurs when "mkdir -m foo" creates a setgid directory that is (1)
68888         writeable to group or other and (2) is intended to have a special
68889         mode bit that is set or cleared.  In such a case, the directory
68890         should be neither group- nor other-writeable until the special
68891         mode bits are right.
68892
68893 2007-01-31  Eric Blake  <ebb9@byu.net>
68894
68895         * modules/mountlist (Depends-on): Add strstr.
68896
68897         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
68898         bug.
68899         * modules/string (Makefile.am): Remove redundant replacement.
68900         * modules/regex (Depends-on): Add mempcpy.
68901
68902 2007-01-31  Bruno Haible  <bruno@clisp.org>
68903
68904         New module description field 'Link'.
68905         * gnulib-tool (func_usage): Document --extract-link-directive.
68906         (sed_extract_prog): Recognize 'Link' directive.
68907         (func_get_link_directive): New function.
68908         (func_import): Show summary of link directives.
68909         Handle --extract-link-directive option.
68910         * modules/acl (Link): New section.
68911         * modules/clock-time (Link): New section.
68912         * modules/euidaccess (Link): New section.
68913         * modules/gettext (Link): New section.
68914         * modules/iconv (Link): New section.
68915         * modules/lock (Link): New section.
68916         * modules/nanosleep (Link): New section.
68917         * modules/readline (Link): New section.
68918
68919 2007-01-27  Bruno Haible  <bruno@clisp.org>
68920
68921         Enforce the use of gnulib modules for unportable <string.h> functions.
68922         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
68923         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
68924         (gl_HEADER_STRING_H_BODY): Require it.
68925         * lib/string_.h: If the gnulib module XYZ is not present, redefine
68926         the symbol XYZ to one that gives a link error.
68927         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
68928         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
68929         * modules/mempcpy (configure.ac): Likewise.
68930         * modules/memrchr (configure.ac): Likewise.
68931         * modules/stpcpy (configure.ac): Likewise.
68932         * modules/stpncpy (configure.ac): Likewise.
68933         * modules/strcase (configure.ac): Likewise.
68934         * modules/strcasestr (configure.ac): Likewise.
68935         * modules/strchrnul (configure.ac): Likewise.
68936         * modules/strdup (configure.ac): Likewise.
68937         * modules/strndup (configure.ac): Likewise.
68938         * modules/strnlen (configure.ac): Likewise.
68939         * modules/strpbrk (configure.ac): Likewise.
68940         * modules/strsep (configure.ac): Likewise.
68941         * modules/strstr (configure.ac): Likewise.
68942         * modules/strtok_r (configure.ac): Likewise.
68943
68944 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
68945
68946         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
68947
68948 2007-01-30  Jim Meyering  <jim@meyering.net>
68949
68950         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
68951
68952 2007-01-29  Bruno Haible  <bruno@clisp.org>
68953
68954         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
68955         * lib/execute.c: Likewise.
68956         * lib/pipe.c: Likewise.
68957         * lib/printf-args.h: Likewise.
68958         * lib/printf-args.c: Likewise.
68959         * lib/printf-parse.c: Likewise.
68960         * lib/vasnprintf.c: Likewise.
68961
68962 2007-01-29  Eric Blake  <ebb9@byu.net>
68963
68964         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
68965         declaration.
68966
68967 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
68968
68969         * lib/strptime.h (strptime): Use 'restrict' for args where
68970         POSIX requires this.
68971         * lib/strptime.c (strptime): Likewise.
68972         Change license notice from LGPL to GPL, since gnulib-tool will
68973         change this as needed.
68974         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
68975         defined.
68976         Include "strptime.h" first, to check interface.
68977         Do not #undef _LIBC and _NL_CURRENT.
68978         Do not include <stdlib.h>; no longer needed.
68979         Include "time_r.h" and declare ptime_locale_status
68980         only if _LIBC is not defined.
68981         (__P): Remove unused macro.
68982         (match_string): Bring back glibc version, but use it only if _LIBC
68983         is defined.
68984         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
68985         Remove unnecessary assertion and abort() call.
68986         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
68987         * m4/strptime.m4: Fix serial number comment.
68988         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
68989         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
68990         (Depends-on): Add time_r.
68991
68992 2007-01-29  Bruno Haible  <bruno@clisp.org>
68993
68994         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68995         strptime.
68996         * modules/strptime (Depends-on): Add stdbool.
68997         * lib/strptime.h: Include <time.h> always. Add comments.
68998
68999 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
69000
69001         * modules/strptime: New file.
69002         * lib/strptime.h: New file.
69003         * lib/strptime.c: New file.
69004         * m4/strptime.m4: New file.
69005
69006 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
69007
69008         * MODULES.html.sh: New module mpsort.
69009         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
69010
69011         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
69012         a circularity problem with HP-UX ia64 reported by Bob Proulx in
69013         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
69014         All uses changed.
69015         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
69016         All uses changed.
69017         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
69018         to _Restrict_.
69019         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
69020         the parameter matches the prototype.
69021
69022 2007-01-28  Jim Meyering  <jim@meyering.net>
69023
69024         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
69025         sys/time.h here, reverting that part of the previous patch:
69026         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
69027
69028 2007-01-28  Bruno Haible  <bruno@clisp.org>
69029
69030         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
69031         value of $(SYS_TIME_H).
69032         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
69033         remove it conditionally, too. [added by Jim Meyering]
69034         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
69035         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69036         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
69037         GETTIMEOFDAY_REPLACEMENT to 1.
69038
69039 2007-01-28  Bruno Haible  <bruno@clisp.org>
69040
69041         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
69042         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
69043         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
69044         Set UNISTD_H instead of UNISTD_H2.
69045         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
69046
69047 2007-01-28  Bruno Haible  <bruno@clisp.org>
69048
69049         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
69050         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
69051
69052 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69053
69054         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
69055         (func_create_testdir): Ensure C locale for `grep' and `tr'
69056         character ranges.
69057         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
69058         ACLOCAL_AMFLAGS parsing state machine.
69059
69060 2007-01-27  Bruno Haible  <bruno@clisp.org>
69061
69062         * modules/unistr/base: Update.
69063
69064 2007-01-27  Bruno Haible  <bruno@clisp.org>
69065
69066         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
69067         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
69068         * modules/unistr/u32-mbtouc-unsafe: Renamed from
69069         modules/unistr/u32-mbtouc.
69070         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
69071         * lib/unistr.h: Update.
69072         * lib/linebreak.c: Update.
69073         * modules/unistr/u32-mbtouc: Renamed from
69074         modules/unistr/u32-mbtouc-safe.
69075         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
69076         * lib/unistr.h: Update.
69077         * lib/unistr/u32-to-u8.c: Update.
69078         * lib/unistr/u32-to-u16.c: Update.
69079
69080 2007-01-27  Bruno Haible  <bruno@clisp.org>
69081
69082         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
69083         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
69084         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
69085         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
69086         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
69087         * modules/unistr/u16-mbtouc-unsafe: Renamed from
69088         modules/unistr/u16-mbtouc.
69089         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
69090         * lib/unistr.h: Update.
69091         * lib/linebreak.c: Update.
69092         * modules/linebreak: Update.
69093         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
69094         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
69095         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
69096         * modules/unistr/u16-mbtouc: Renamed from
69097         modules/unistr/u16-mbtouc-safe.
69098         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
69099         * lib/unistr.h: Update.
69100         * lib/unistr/u16-to-u8.c: Update.
69101         * modules/unistr/u16-to-u8: Update.
69102         * lib/unistr/u16-to-u32.c: Update.
69103         * modules/unistr/u16-to-u32: Update.
69104
69105 2007-01-27  Bruno Haible  <bruno@clisp.org>
69106
69107         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
69108         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
69109         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
69110         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
69111         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
69112         * modules/unistr/u8-mbtouc-unsafe: Renamed from
69113         modules/unistr/u8-mbtouc.
69114         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
69115         * lib/unistr.h: Update.
69116         * lib/striconveh.c: Update.
69117         * modules/striconveh: Update.
69118         * lib/linebreak.c: Update.
69119         * modules/linebreak: Update.
69120         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
69121         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
69122         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
69123         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
69124         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
69125         * lib/unistr.h: Update.
69126         * lib/striconveh.c: Update.
69127         * modules/striconveh: Update.
69128         * lib/unistr/u8-to-u16.c: Update.
69129         * modules/unistr/u8-to-u16: Update.
69130         * lib/unistr/u8-to-u32.c: Update.
69131         * modules/unistr/u8-to-u32: Update.
69132
69133 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69134
69135         Sync from Libtool.
69136         * lib/argz.c: Do not include strings.h nor memory.h, include
69137         string.h unconditionally.  Patch by Simon Josefsson.
69138
69139 2007-01-27  Bruno Haible  <bruno@clisp.org>
69140
69141         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
69142         from gl_HEADER_STRING_H_BODY.
69143         (gl_HEADER_STRING_H_BODY): Require it.
69144         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
69145         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
69146         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
69147         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
69148         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
69149         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
69150         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
69151         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
69152         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
69153         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
69154         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
69155         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
69156         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
69157         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
69158         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
69159
69160 2007-01-27  Bruno Haible  <bruno@clisp.org>
69161
69162         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
69163         check_PROGRAMS into noinst_PROGRAMS.
69164         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
69165         check_PROGRAMS in this case.
69166         (func_import): Set for_test to false.
69167         (func_create_testdir): Set for_test to true.
69168
69169 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
69170             Bruno Haible  <bruno@clisp.org>
69171
69172         * modules/strcasestr (Files): Remove lib/strcasestr.h.
69173         (Depends-on): Add string.
69174         (Includes): Use <string.h> instead of strcasestr.h.
69175         * modules/string (Makefile.am): Also substitute the value of
69176         REPLACE_STRCASESTR.
69177         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
69178         assume strcasestr is declared in <string.h> not <strings.h>. Also
69179         set REPLACE_STRCASESTR.
69180         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
69181         REPLACE_STRCASESTR.
69182         * lib/strcasestr.h: Remove file.
69183         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
69184         * lib/string_.h (strcasestr): New declaration.
69185
69186 2007-01-27  Bruno Haible  <bruno@clisp.org>
69187
69188         * lib/string_.h: Use 'extern'.
69189
69190 2007-01-27  Jim Meyering  <jim@meyering.net>
69191
69192         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
69193         of set-but-not-used local, "q".
69194
69195         * lib/mempcpy.c: Include <config.h> before <string.h>.
69196         This fixes a compilation error on HP-UX, due to the system's
69197         "restrict"-using mempcpy prototype.
69198
69199 2007-01-26  Bruno Haible  <bruno@clisp.org>
69200
69201         Small optimization.
69202         * lib/javacomp.c: Include c-strstr.h.
69203          (is_envjavac_gcj): Use c_strstr instead of strstr.
69204         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
69205
69206 2007-01-26  Bruno Haible  <bruno@clisp.org>
69207
69208         * MODULES.html.sh (Unicode string functions): Add the new modules.
69209
69210         * modules/uniconv/u32-strconv-to-locale: New file.
69211         * lib/uniconv/u32-strconv-to-locale.c: New file.
69212
69213         * modules/uniconv/u16-strconv-to-locale: New file.
69214         * lib/uniconv/u16-strconv-to-locale.c: New file.
69215
69216         * modules/uniconv/u8-strconv-to-locale: New file.
69217         * lib/uniconv/u8-strconv-to-locale.c: New file.
69218
69219         * modules/uniconv/u32-strconv-from-locale: New file.
69220         * lib/uniconv/u32-strconv-from-locale.c: New file.
69221
69222         * modules/uniconv/u16-strconv-from-locale: New file.
69223         * lib/uniconv/u16-strconv-from-locale.c: New file.
69224
69225         * modules/uniconv/u8-strconv-from-locale: New file.
69226         * lib/uniconv/u8-strconv-from-locale.c: New file.
69227
69228         * modules/uniconv/u32-strconv-to-enc: New file.
69229         * lib/uniconv/u32-strconv-to-enc.c: New file.
69230         * modules/uniconv/u32-strconv-to-enc-tests: New file.
69231         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
69232
69233         * modules/uniconv/u16-strconv-to-enc: New file.
69234         * lib/uniconv/u16-strconv-to-enc.c: New file.
69235         * lib/uniconv/u-strconv-to-enc.h: New file.
69236         * modules/uniconv/u16-strconv-to-enc-tests: New file.
69237         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
69238
69239         * modules/uniconv/u8-strconv-to-enc: New file.
69240         * lib/uniconv/u8-strconv-to-enc.c: New file.
69241         * modules/uniconv/u8-strconv-to-enc-tests: New file.
69242         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
69243
69244         * modules/uniconv/u32-strconv-from-enc: New file.
69245         * lib/uniconv/u32-strconv-from-enc.c: New file.
69246         * modules/uniconv/u32-strconv-from-enc-tests: New file.
69247         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
69248
69249         * modules/uniconv/u16-strconv-from-enc: New file.
69250         * lib/uniconv/u16-strconv-from-enc.c: New file.
69251         * modules/uniconv/u16-strconv-from-enc-tests: New file.
69252         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
69253
69254         * modules/uniconv/u8-strconv-from-enc: New file.
69255         * lib/uniconv/u8-strconv-from-enc.c: New file.
69256         * lib/uniconv/u-strconv-from-enc.h: New file.
69257         * modules/uniconv/u8-strconv-from-enc-tests: New file.
69258         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
69259
69260         * modules/uniconv/u32-conv-from-enc: New file.
69261         * lib/uniconv/u32-conv-from-enc.c: New file.
69262         * modules/uniconv/u32-conv-from-enc-tests: New file.
69263         * tests/uniconv/test-u32-conv-from-enc.c: New file.
69264
69265         * modules/uniconv/u16-conv-from-enc: New file.
69266         * lib/uniconv/u16-conv-from-enc.c: New file.
69267         * lib/uniconv/u-conv-from-enc.h: New file.
69268         * modules/uniconv/u16-conv-from-enc-tests: New file.
69269         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69270
69271         * modules/uniconv/u8-conv-from-enc: New file.
69272         * lib/uniconv/u8-conv-from-enc.c: New file.
69273         * modules/uniconv/u8-conv-from-enc-tests: New file.
69274         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69275
69276         * modules/uniconv/base: New file.
69277         * lib/uniconv.h: New file.
69278
69279 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69280
69281         * doc/gnulib-tool.texi (Initial import): Update to match current
69282         behavior with strdup module.
69283         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
69284         * lib/memmem.h: Remove; all uses removed.  This is now done
69285         by <string.h>.
69286         * lib/mempcpy.h: Likewise.
69287         * lib/memrchr.h: Likewise.
69288         * lib/stpcpy.h: Likewise.
69289         * lib/stpncpy.h: Likewise.
69290         * lib/strcase.h: Likewise.
69291         * lib/strchrnul.h: Likewise.
69292         * lib/strdup.h: Likewise.
69293         * lib/strndup.h: Likewise.
69294         * lib/strnlen.h: Likewise.
69295         * lib/strpbrk.h: Likewise.
69296         * lib/strsep.h: Likewise.
69297         * lib/strstr.h: Likewise.
69298         * lib/strtok_r.h: Likewise.
69299         * lib/string_.h: New file.
69300         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
69301         Rely on <string.h> instead.
69302         * lib/canon-host.c: Likewise.
69303         * lib/chdir-long.c: Likewise.
69304         * lib/concatpath.c: Likewise.
69305         * lib/exclude.c: Likewise.
69306         * lib/fchdir.c: Likewise.
69307         * lib/getaddrinfo.c: Likewise.
69308         * lib/getcwd.c: Likewise.
69309         * lib/getsubopt.c: Likewise.
69310         * lib/glob.c: Likewise.
69311         * lib/hard-locale.c: Likewise.
69312         * lib/iconvme.c: Likewise.
69313         * lib/javacomp.c: Likewise.
69314         * lib/mempcpy.c: Likewise.
69315         * lib/memrchr.c: Likewise.
69316         * lib/regex_internal.h: Likewise.
69317         * lib/stpncpy.c: Likewise.
69318         * lib/strcasecmp.c: Likewise.
69319         * lib/strchrnul.c: Likewise.
69320         * lib/strdup.c: Likewise.
69321         * lib/striconv.c: Likewise.
69322         * lib/striconveh.c: Likewise.
69323         * lib/striconveha.c: Likewise.
69324         * lib/strncasecmp.c: Likewise.
69325         * lib/strndup.c: Likewise.
69326         * lib/strnlen.c: Likewise.
69327         * lib/strsep.c: Likewise.
69328         * lib/strstr.c: Likewise.
69329         * lib/strtok_r.c: Likewise.
69330         * lib/userspec.c: Likewise.
69331         * lib/w32spawn.h: Likewise.
69332         * lib/xstrndup.c: Likewise.
69333         * lib/mountlist.c (strstr): Remove decl.
69334         * m4/string_h.m4: New file.
69335         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
69336         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
69337         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
69338         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
69339         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
69340         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
69341         Set REPLACE_STRCASECMP if necessary.
69342         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
69343         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
69344         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
69345         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
69346         HAVE_DECL_STRDUP if necessary.
69347         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
69348         since gl_FUNC_STRNDUP does that now.
69349         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
69350         Check for decl here...
69351         (gl_PREREQ_STRNLEN): ... not here.
69352         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
69353         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
69354         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
69355         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
69356         necessary.
69357         * modules/string: New file.
69358         * modules/memmem (Files): Remove special-purpose include file.
69359         (Depends-on): Add string.
69360         (Include): Include <string.h>, not the removed file.
69361         * modules/mempcpy: Likewise.
69362         * modules/memrchr: Likewise.
69363         * modules/stpcpy: Likewise.
69364         * modules/stpncpy: Likewise.
69365         * modules/strcase: Likewise.
69366         * modules/strchrnul: Likewise.
69367         * modules/strdup: Likewise.
69368         * modules/strndup: Likewise.
69369         * modules/strnlen: Likewise.
69370         * modules/strpbrk: Likewise.
69371         * modules/strsep: Likewise.
69372         * modules/strstr: Likewise.
69373         * modules/strtok_r: Likewise.
69374         * tests/test-dirname.c: Don't include "strdup.h", since
69375         <string.h> now suffices.
69376         * tests/test-memmem.c: Don't include "memmem.h", since
69377         <string.h> now suffices.
69378
69379 2007-01-25  Bruno Haible  <bruno@clisp.org>
69380
69381         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
69382         *resultp is 0.
69383
69384         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
69385         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
69386         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
69387         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
69388
69389         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
69390         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
69391         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
69392         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
69393         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
69394         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
69395
69396 2007-01-24  Bruno Haible  <bruno@clisp.org>
69397
69398         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
69399         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
69400         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
69401         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
69402         gl_FUNC_FTS_CORE.
69403         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
69404         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
69405         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69406         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
69407         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
69408         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
69409         gl_FUNC_FCHOWNAT.
69410         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
69411         gl_FUNC_STRFTIME.
69412         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
69413         Reported by Ralf Wildenhues.
69414
69415 2007-01-24  Bruno Haible  <bruno@clisp.org>
69416
69417         Drop AC_REQUIRE calls that are redundant with the module dependencies.
69418         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
69419         gl_GETADDRINFO.
69420         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
69421         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
69422         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
69423
69424 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
69425
69426         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
69427         Don't use 'exit'; just return from 'main'.
69428         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
69429
69430         * lib/fnmatch_.h: Readjust white space and comments to match
69431         glibc, to avoid spurious diffs.
69432
69433 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69434
69435         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
69436         2004-12-01 change by Jakub Jelinek, since this code won't compile
69437         if !LIBC.  Problem reported by Bob Proulx.
69438
69439 2007-01-23  Bruno Haible  <bruno@clisp.org>
69440
69441         * lib/striconveh.c: Include c-strcaseeq.h.
69442         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
69443         * modules/striconveh (Depends-on): Add c-strcaseeq.
69444
69445 2007-01-23  Bruno Haible  <bruno@clisp.org>
69446
69447         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
69448
69449         * modules/c-strcaseeq: New file.
69450         * lib/c-strcaseeq.h: New file.
69451
69452         * modules/streq: New file.
69453         * lib/streq.h: New file.
69454
69455 2007-01-23  Bruno Haible  <bruno@clisp.org>
69456
69457         * modules/striconveha-tests: New file.
69458         * tests/test-striconveha.c: New file.
69459
69460         * lib/striconveha.h: Include <stdbool.h>.
69461         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
69462         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
69463         (mem_iconveha_notranslit): Renamed from mem_iconveha.
69464         (mem_iconveha): New function.
69465         (str_iconveha_notranslit): Renamed from str_iconveha.
69466         (str_iconveha): New function.
69467         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
69468         c-strcase.
69469
69470 2007-01-23  Bruno Haible  <bruno@clisp.org>
69471
69472         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
69473         encodings without forgiving before trying any encoding with handler.
69474         (str_iconveha): Try all encodings without forgiving before trying any
69475         encoding with handler.
69476
69477 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69478
69479         Import the following changes from libc.
69480
69481         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69482
69483         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
69484
69485         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69486
69487         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
69488         normal_bracket label.
69489
69490         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
69491
69492         [BZ #361]
69493         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
69494         to normal_bracket after fetching the next character.
69495
69496 2007-01-22  Bruno Haible  <bruno@clisp.org>
69497
69498         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
69499         argument.
69500         * lib/striconveh.c (iconv_carefully_1): New function.
69501         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
69502         argument.
69503         (str_cd_iconveh): Update.
69504         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
69505         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
69506         * tests/test-striconveh.c (MAGIC): New macro.
69507         (new_offsets): New function.
69508         (main): Test call with and without offsets.
69509
69510 2007-01-22  Bruno Haible  <bruno@clisp.org>
69511
69512         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
69513         * modules/sys_select (Makefile.am): Likewise.
69514         * modules/sys_socket (Makefile.am): Likewise.
69515         * modules/sys_time (Makefile.am): Likewise.
69516
69517 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69518
69519         * modules/gettimeofday (License): Change from GPL to LGPL, since
69520         gettimeofday is a library function.
69521
69522 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69523
69524         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
69525
69526 2007-01-21  Bruno Haible  <bruno@clisp.org>
69527
69528         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
69529
69530 2007-01-21  Bruno Haible  <bruno@clisp.org>
69531
69532         * modules/striconveha: New file.
69533         * lib/striconveha.h: New file.
69534         * lib/striconveha.c: New file.
69535         * MODULES.html.sh (Internationalization functions): Add striconveha.
69536         * lib/striconv.c (str_iconv): Optimize the case of an empty input
69537         string.
69538         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
69539
69540 2007-01-21  Bruno Haible  <bruno@clisp.org>
69541
69542         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
69543         * lib/striconveh.c (str_iconveh): Likewise.
69544
69545 2007-01-21  Bruno Haible  <bruno@clisp.org>
69546
69547         * lib/striconveh.h (mem_iconveh): New declaration.
69548         * lib/striconveh.c (mem_iconveh): New function.
69549         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
69550
69551 2007-01-21  Bruno Haible  <bruno@clisp.org>
69552
69553         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
69554
69555         * lib/striconveh.h (mem_cd_iconveh): Change specification.
69556         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
69557         original result buffer.
69558         (str_cd_iconveh): Update.
69559         * tests/test-striconveh.c (main): Update.
69560
69561         * lib/striconv.h (mem_cd_iconv): Change specification.
69562         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
69563         result buffer.
69564         (str_cd_iconv): Update.
69565         * tests/test-striconv.c (main): Update.
69566
69567 2007-01-21  Bruno Haible  <bruno@clisp.org>
69568
69569         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
69570
69571 2007-01-20  Jim Meyering  <jim@meyering.net>
69572
69573         * lib/userspec.c (parse_with_separator): If a user or group string
69574         starts with "+", skip the corresponding name-to-ID look-up, since
69575         such a look-up must fail: user and group names may not include "+".
69576
69577 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69578
69579         * lib/poll.c: Include sys/time.h and time.h unconditionally,
69580         since we now assume the sys_time module.
69581         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
69582         check for sys/time.h; no longer needed.
69583         * modules/poll (Depends-on): Depend on sys_time.
69584
69585 2007-01-18  Bruno Haible  <bruno@clisp.org>
69586
69587         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
69588         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69589
69590         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
69591         gettimeofday.
69592
69593         * tests/test-gettimeofday.c: Include <time.h>.
69594         (dummy): Remove variable.
69595
69596         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
69597         gl_HEADER_SYS_TIME_H.
69598         (gl_HEADER_SYS_TIME_H): New macro.
69599
69600         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
69601         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69602         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
69603         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
69604         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69605         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
69606         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
69607         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69608         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
69609         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
69610         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69611
69612         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
69613         last change; it caused a compilation error when cross-compiling to
69614         Cygwin.
69615
69616 2007-01-18  Jim Meyering  <jim@meyering.net>
69617
69618         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
69619         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
69620         than the race-prone "test -d sys || mkdir sys".
69621         (configure.ac): Use AC_PROG_MKDIR_P.
69622         * modules/sys_select: Likewise.
69623         * modules/sys_socket: Likewise.
69624         * modules/sys_time: Likewise.
69625
69626 2007-01-18  Eric Blake  <ebb9@byu.net>
69627
69628         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
69629         replace gettimeofday.
69630         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
69631         name, to avoid infinite recursion.
69632
69633 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
69634
69635         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
69636         module sys_time.
69637         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
69638         assume timespec.h defines struct timeval.
69639         * lib/settime.c: Likewise.
69640         * lib/utimens.c: Likewise.
69641         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
69642         since we now assume the gettimeofday module.
69643         * lib/tempname.c (__gen_tempname): Likewise.
69644         * lib/gettimeofday.h: Remove.
69645         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
69646         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
69647         Include <time.h>, for 'time()'.
69648         (localtime_buffer_addr): Also use this workaround if
69649         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
69650         to simplify the uses.  All uses changed.
69651         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
69652         that #undef is inside {}, and 'const' follows type name consistently.
69653         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
69654         (gettimeofday): Do not use the maximum possible value for
69655         tv->tv_usec, since that might break usages other than ls.c.
69656         Instead, we'll leave ls.c alone.  This undoes today's patch
69657         by Bruno.  Add a compile-time warning for 1s-clock resolution;
69658         we've never observed the problem but might as well keep the
69659         canary.
69660         * lib/nanosleep.c: Include timespec.h first, for interface check.
69661         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
69662         now assume the sys_time module.
69663         * lib/tempname.c: Likewise.
69664         * lib/timespec.h: Likewise.
69665         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
69666         needed.
69667         * lib/strftime.c: Likewise.
69668         * lib/timespec.h: Likewise.
69669         * lib/posixtm.c: Include posixtm.h first, for interface check.
69670         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
69671         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
69672         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
69673         * lib/sys_time_.h: New file.
69674         * lib/timespec.h (struct timespec): Use long int, not long.
69675         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69676         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
69677         Remove obsolescent call to AC_HEADER_TIME.
69678         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
69679         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69680         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69681         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
69682         Likewise.
69683         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
69684         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
69685         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
69686         into the sys_time module.  Check for gettimeofday just once.
69687         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
69688         for gettimeofday signature to just check the signature.  Merely
69689         compile it, since linking doesn't test signature.  Improve test for
69690         whether gettimeofday.o is actually needed.
69691         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
69692         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
69693         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
69694         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69695         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
69696         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
69697         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
69698         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
69699         than worrying about sys/time.h.
69700         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69701         Don't bother worrying about TIME_WITH_SYS_TIME.
69702         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
69703         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
69704         * m4/sys_time_h.m4: New file.
69705         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
69706         Don't include sys/time.h.  Return from main rather than exiting.
69707         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
69708         all uses changed.
69709         * modules/gethrxtime (Depends-on): Add sys_time.
69710         * modules/gettime (Depends-on): Likewise.
69711         * modules/gettimeofday (Depends-on): Likewise.
69712         * modules/nanosleep (Depends-on): Likewise.
69713         * modules/settime (Depends-on): Likewise.
69714         * modules/tempname (Depends-on): Likewise.
69715         * modules/utimens (Depends-on): Likewise.
69716         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
69717         (Include): Change back to <sys/time.h>.
69718         (Maintainer): Add self.
69719         * modules/sys_time: New file.
69720         * modules/tempname (Depends-on): Add gettimeofday.
69721         * tests/test-gettimeofday.c: Include <sys/time.h>
69722         rather than gettimeofday.h.
69723
69724 2007-01-17  Bruno Haible  <bruno@clisp.org>
69725
69726         * gnulib-tool (func_get_license): Revert last patch. Instead, let
69727         the license default to GPL.
69728         (func_create_testdir): Don't complain if a module is LGPL and its
69729         tests module depends on GPLed modules.
69730
69731 2007-01-17  Bruno Haible  <bruno@clisp.org>
69732
69733         * lib/gettimeofday.c (gettimeofday): Add code for the case
69734         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
69735         maximum possible value for tv->tv_usec, rather than the minimum one.
69736
69737 2005-10-08  Martin Lambers  <marlam@marlam.de>
69738 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69739 2007-01-16  Bruno Haible  <bruno@clisp.org>
69740
69741         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
69742         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
69743         gl_FUNC_GETTIMEOFDAY.
69744         (Include): Add gettimeofday.h.
69745         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
69746         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
69747         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
69748         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
69749         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
69750         * lib/gettimeofday.h: New file.
69751         * lib/gettimeofday.c: Include <sys/timeb.h>.
69752         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
69753         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69754         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
69755         fall back on time().
69756
69757         * tests/test-gettimeofday.c: New file.
69758         * modules/gettimeofday-tests: New file.
69759
69760 2007-01-16  Eric Blake  <ebb9@byu.net>
69761
69762         * modules/fnmatch (Depends-on): Depend on wchar.
69763         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
69764         * m4/fnmatch.m4: Likewise.
69765         * modules/mbchar (Makefile.am): Assume <wchar.h>.
69766         * m4/mbchar.m4: Likewise.
69767         * modules/mbswidth (Depends-on): Depend on wchar.
69768         * lib/mbswidth.c: Assume <wchar.h>.
69769         * m4/mbswidth.m4: Likewise.
69770         * modules/quotearg (Depends-on): Depend on wchar.
69771         * lib/quotearg.c: Assume <wchar.h>.
69772         * m4/quotearg.m4: Likewise.
69773         * modules/regex (Depends-on): Depend on wchar.
69774         * lib/regex_internal.h: Assume <wchar.h>.
69775         * m4/regex.m4: Likewise.
69776         * modules/stdint (Depends-on): Depend on wchar.
69777         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
69778         * m4/stdint.m4: Likewise.
69779         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
69780         * modules/strftime (Depends-on): Depend on wchar.
69781         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
69782         * modules/strtol (Depends-on): Depend on wchar.
69783         * lib/strtol.c: Assume <wchar.h>.
69784         * modules/wcwidth (Depends-on): Depend on wchar.
69785         * lib/wcwidth.h: Assume <wchar.h>.
69786         * m4/wcwidth.m4: Likewise.
69787
69788 2007-01-16  Bruno Haible  <bruno@clisp.org>
69789
69790         * modules/csharpexec-script: New, created from...
69791         * modules/csharpexec: ... this.
69792
69793 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
69794
69795         * modules/javaexec-script: New, created from...
69796         * modules/javaexec: ... this.
69797
69798 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69799
69800         * modules/poll (Dependencies): Add sys_select.
69801
69802 2007-01-15  Jim Meyering  <jim@meyering.net>
69803
69804         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
69805         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
69806         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
69807         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
69808
69809 2007-01-15  Bruno Haible  <bruno@clisp.org>
69810
69811         * modules/striconveh: New file.
69812         * lib/striconveh.h: New file.
69813         * lib/striconveh.c: New file.
69814         * MODULES.html.sh (Internationalization functions): Add striconveh.
69815
69816         * modules/striconveh-tests: New file.
69817         * tests/test-striconveh.c: New file.
69818
69819 2007-01-15  Bruno Haible  <bruno@clisp.org>
69820
69821         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
69822         not from GNU libiconv or GNU libc.
69823
69824 2007-01-15  Bruno Haible  <bruno@clisp.org>
69825
69826         * doc/gnulib-intro.texi (Copyright): Explain the different license
69827         terms for module descriptions, autoconf macros, tests, documentation.
69828
69829 2007-01-14  Bruno Haible  <bruno@clisp.org>
69830
69831         * modules/striconv-tests: New file.
69832         * tests/test-striconv.c: New file.
69833
69834 2007-01-14  Bruno Haible  <bruno@clisp.org>
69835
69836         * modules/iconv-tests: New file.
69837         * tests/test-iconv.c: New file.
69838
69839 2007-01-14  Bruno Haible  <bruno@clisp.org>
69840
69841         * gnulib-tool (func_get_license): For test modules, use the license of
69842         the main module.
69843
69844 2007-01-14  Bruno Haible  <bruno@clisp.org>
69845
69846         * modules/iconv (Include): Clarify that <iconv.h> can only be included
69847         if iconv is found to exist.
69848
69849 2007-01-14  Bruno Haible  <bruno@clisp.org>
69850
69851         * modules/c-ctype-tests: New file.
69852         * tests/test-c-ctype.c: New file.
69853
69854 2007-01-14  Bruno Haible  <bruno@clisp.org>
69855
69856         * modules/binary-io-tests: New file.
69857         * tests/test-binary-io.sh: New file.
69858         * tests/test-binary-io.c: New file.
69859
69860 2007-01-14  Bruno Haible  <bruno@clisp.org>
69861
69862         * modules/array-oset-tests: New file.
69863         * tests/test-array_oset.c: New file.
69864
69865 2007-01-14  Bruno Haible  <bruno@clisp.org>
69866
69867         * modules/array-list-tests: New file.
69868         * tests/test-array_list.c: New file.
69869
69870 2007-01-14  Bruno Haible  <bruno@clisp.org>
69871
69872         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
69873         and make.
69874         Reported by Simon Josefsson in
69875         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
69876
69877 2007-01-14  Bruno Haible  <bruno@clisp.org>
69878
69879         * modules/allocsa-tests: New file.
69880         * tests/test-allocsa.c: New file.
69881
69882 2007-01-14  Bruno Haible  <bruno@clisp.org>
69883
69884         * modules/fchdir (Depends-on): Add absolute-header.
69885         * modules/unistd (Depends-on): Likewise.
69886
69887 2006-12-30  Bruno Haible  <bruno@clisp.org>
69888
69889         * modules/fchdir: New file.
69890         * modules/unistd (Files): Add lib/unistd_.h.
69891         (Makefile.am): Generate unistd.h from unistd_.h.
69892         * lib/fchdir.c: New file.
69893         * lib/dirent_.h: New file.
69894         * lib/unistd_.h: New file.
69895         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
69896         * m4/fchdir.m4: New file.
69897         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
69898         (gl_HEADER_UNISTD): Invoke it.
69899         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
69900         function.
69901         * lib/backupfile.c (opendir, closedir): Undefine.
69902         * lib/chown.c (open, close): Undefine.
69903         * lib/clean-temp.c (open, close): Undefine.
69904         * lib/copy-file.c (open, close): Undefine.
69905         * lib/execute.c (open, close): Undefine.
69906         * lib/fsusage.c (open, close): Undefine.
69907         * lib/gc-gnulib.c (open, close): Undefine.
69908         * lib/getcwd.c (opendir, closedir): Undefine.
69909         * lib/glob.c (opendir, closedir): Undefine.
69910         * lib/javacomp.c (open, close): Undefine.
69911         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
69912         * lib/openat-proc.c (open, close): Undefine.
69913         * lib/pagealign_alloc.c (open, close): Undefine.
69914         * lib/pipe.c (open, close): Undefine.
69915         * lib/progreloc.c (open, close): Undefine.
69916         * lib/savedir.c (opendir, closedir): Undefine.
69917         * lib/utime.c (open, close): Undefine.
69918         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
69919
69920 2007-01-10  Bruno Haible  <bruno@clisp.org>
69921
69922         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
69923
69924 2007-01-12  Eric Blake  <ebb9@byu.net>
69925
69926         Provide a robust <wchar.h>.  Further simplifications are now
69927         possible in other modules, but not included here.
69928         * modules/wchar: New module.
69929         * m4/wchar.m4: New file.
69930         * lib/wchar_.h: Likewise.
69931         * modules/mbchar (Depends-on): Depend on wchar, as the first use
69932         of the new module.
69933         * MODULES.html.sh (Extended multibyte and wide character utilities):
69934         New section.
69935
69936 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
69937
69938         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
69939         to a reasonable default for memory allocation.
69940         (xreadlink): Don't allocate a huge buffer, to work around a buggy
69941         file system that reports garbage st_size values for symlinks.
69942         Problem reported by Liyang Hu.
69943
69944 2007-01-11  Simon Josefsson  <simon@josefsson.org>
69945
69946         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
69947         Emacs .#* auto-save files).
69948
69949 2007-01-11  Bruno Haible  <bruno@clisp.org>
69950
69951         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
69952         directory.
69953
69954 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69955
69956         Use @...@ consistently in lib/wctype_.h.
69957         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
69958         on it being set to 1 or 0.
69959         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
69960         go back to AC_SUBSTing it.
69961         * modules/wctype (Makefile.am): Undo previous change.
69962
69963 2007-01-10  Eric Blake  <ebb9@byu.net>
69964
69965         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
69966         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
69967         * modules/wctype (Makefile.am): Likewise.
69968         Reported by Chris McGuire.
69969
69970 2007-01-10  Jim Meyering  <jim@meyering.net>
69971
69972         fts.c: a small readability/maintainability improvement
69973         * lib/fts.c (fts_read): Make this code slightly more readable and
69974         maintainable by hoisting the "sp->fts_cur = p" assignments to
69975         immediately follow the statements that set P.  Derived from
69976         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
69977
69978 2007-01-10  Eric Blake  <ebb9@byu.net>
69979
69980         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
69981         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
69982         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
69983         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
69984         Reported by Chris McGuire.
69985
69986 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69987
69988         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
69989         in sed script.
69990
69991 2007-01-09  Bruno Haible  <bruno@clisp.org>
69992
69993         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
69994         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
69995         variables.
69996         (func_module): Use them.
69997
69998 2007-01-09  Bruno Haible  <bruno@clisp.org>
69999
70000         * modules/unistr/base: New file.
70001         * lib/unistr.h: New file.
70002
70003         * modules/unistr/u8-to-u16: New file.
70004         * lib/unistr/u8-to-u16.c: New file.
70005
70006         * modules/unistr/u8-to-u32: New file.
70007         * lib/unistr/u8-to-u32.c: New file.
70008
70009         * modules/unistr/u16-to-u8: New file.
70010         * lib/unistr/u16-to-u8.c: New file.
70011
70012         * modules/unistr/u16-to-u32: New file.
70013         * lib/unistr/u16-to-u32.c: New file.
70014
70015         * modules/unistr/u32-to-u8: New file.
70016         * lib/unistr/u32-to-u8.c: New file.
70017
70018         * modules/unistr/u32-to-u16: New file.
70019         * lib/unistr/u32-to-u16.c: New file.
70020
70021         * modules/unistr/u8-check: New file.
70022         * modules/unistr/u16-check: New file.
70023         * modules/unistr/u32-check: New file.
70024         * lib/unistr/u8-check.c: New file.
70025         * lib/unistr/u16-check.c: New file.
70026         * lib/unistr/u32-check.c: New file.
70027
70028         * modules/unistr/u8-chr: New file.
70029         * modules/unistr/u16-chr: New file.
70030         * modules/unistr/u32-chr: New file.
70031         * lib/unistr/u8-chr.c: New file.
70032         * lib/unistr/u16-chr.c: New file.
70033         * lib/unistr/u32-chr.c: New file.
70034
70035         * modules/unistr/u8-cmp: New file.
70036         * modules/unistr/u16-cmp: New file.
70037         * modules/unistr/u32-cmp: New file.
70038         * lib/unistr/u8-cmp.c: New file.
70039         * lib/unistr/u16-cmp.c: New file.
70040         * lib/unistr/u32-cmp.c: New file.
70041
70042         * modules/unistr/u8-cpy: New file.
70043         * modules/unistr/u16-cpy: New file.
70044         * modules/unistr/u32-cpy: New file.
70045         * lib/unistr/u8-cpy.c: New file.
70046         * lib/unistr/u16-cpy.c: New file.
70047         * lib/unistr/u32-cpy.c: New file.
70048         * lib/unistr/u-cpy.h: New file.
70049
70050         * modules/unistr/u8-cpy-alloc: New file.
70051         * modules/unistr/u16-cpy-alloc: New file.
70052         * modules/unistr/u32-cpy-alloc: New file.
70053         * lib/unistr/u8-cpy-alloc.c: New file.
70054         * lib/unistr/u16-cpy-alloc.c: New file.
70055         * lib/unistr/u32-cpy-alloc.c: New file.
70056         * lib/unistr/u-cpy-alloc.h: New file.
70057
70058         * modules/unistr/u8-endswith: New file.
70059         * modules/unistr/u16-endswith: New file.
70060         * modules/unistr/u32-endswith: New file.
70061         * lib/unistr/u8-endswith.c: New file.
70062         * lib/unistr/u16-endswith.c: New file.
70063         * lib/unistr/u32-endswith.c: New file.
70064         * lib/unistr/u-endswith.h: New file.
70065
70066         * modules/unistr/u8-mblen: New file.
70067         * modules/unistr/u16-mblen: New file.
70068         * modules/unistr/u32-mblen: New file.
70069         * lib/unistr/u8-mblen.c: New file.
70070         * lib/unistr/u16-mblen.c: New file.
70071         * lib/unistr/u32-mblen.c: New file.
70072
70073         * modules/unistr/u8-mbtouc: New file.
70074         * modules/unistr/u16-mbtouc: New file.
70075         * modules/unistr/u32-mbtouc: New file.
70076         * lib/unistr/u8-mbtouc.c: New file.
70077         * lib/unistr/u16-mbtouc.c: New file.
70078         * lib/unistr/u32-mbtouc.c: New file.
70079
70080         * modules/unistr/u8-mbtouc-safe: New file.
70081         * modules/unistr/u16-mbtouc-safe: New file.
70082         * modules/unistr/u32-mbtouc-safe: New file.
70083         * lib/unistr/u8-mbtouc-safe.c: New file.
70084         * lib/unistr/u16-mbtouc-safe.c: New file.
70085         * lib/unistr/u32-mbtouc-safe.c: New file.
70086
70087         * modules/unistr/u8-move: New file.
70088         * modules/unistr/u16-move: New file.
70089         * modules/unistr/u32-move: New file.
70090         * lib/unistr/u8-move.c: New file.
70091         * lib/unistr/u16-move.c: New file.
70092         * lib/unistr/u32-move.c: New file.
70093         * lib/unistr/u-move.h: New file.
70094
70095         * modules/unistr/u8-next: New file.
70096         * modules/unistr/u16-next: New file.
70097         * modules/unistr/u32-next: New file.
70098         * lib/unistr/u8-next.c: New file.
70099         * lib/unistr/u16-next.c: New file.
70100         * lib/unistr/u32-next.c: New file.
70101
70102         * modules/unistr/u8-prev: New file.
70103         * modules/unistr/u16-prev: New file.
70104         * modules/unistr/u32-prev: New file.
70105         * lib/unistr/u8-prev.c: New file.
70106         * lib/unistr/u16-prev.c: New file.
70107         * lib/unistr/u32-prev.c: New file.
70108
70109         * modules/unistr/u8-set: New file.
70110         * modules/unistr/u16-set: New file.
70111         * modules/unistr/u32-set: New file.
70112         * lib/unistr/u8-set.c: New file.
70113         * lib/unistr/u16-set.c: New file.
70114         * lib/unistr/u32-set.c: New file.
70115         * lib/unistr/u-set.h: New file.
70116
70117         * modules/unistr/u8-startswith: New file.
70118         * modules/unistr/u16-startswith: New file.
70119         * modules/unistr/u32-startswith: New file.
70120         * lib/unistr/u8-startswith.c: New file.
70121         * lib/unistr/u16-startswith.c: New file.
70122         * lib/unistr/u32-startswith.c: New file.
70123         * lib/unistr/u-startswith.h: New file.
70124
70125         * modules/unistr/u8-stpcpy: New file.
70126         * modules/unistr/u16-stpcpy: New file.
70127         * modules/unistr/u32-stpcpy: New file.
70128         * lib/unistr/u8-stpcpy.c: New file.
70129         * lib/unistr/u16-stpcpy.c: New file.
70130         * lib/unistr/u32-stpcpy.c: New file.
70131         * lib/unistr/u-stpcpy.h: New file.
70132
70133         * modules/unistr/u8-stpncpy: New file.
70134         * modules/unistr/u16-stpncpy: New file.
70135         * modules/unistr/u32-stpncpy: New file.
70136         * lib/unistr/u8-stpncpy.c: New file.
70137         * lib/unistr/u16-stpncpy.c: New file.
70138         * lib/unistr/u32-stpncpy.c: New file.
70139         * lib/unistr/u-stpncpy.h: New file.
70140
70141         * modules/unistr/u8-strcat: New file.
70142         * modules/unistr/u16-strcat: New file.
70143         * modules/unistr/u32-strcat: New file.
70144         * lib/unistr/u8-strcat.c: New file.
70145         * lib/unistr/u16-strcat.c: New file.
70146         * lib/unistr/u32-strcat.c: New file.
70147         * lib/unistr/u-strcat.h: New file.
70148
70149         * modules/unistr/u8-strchr: New file.
70150         * modules/unistr/u16-strchr: New file.
70151         * modules/unistr/u32-strchr: New file.
70152         * lib/unistr/u8-strchr.c: New file.
70153         * lib/unistr/u16-strchr.c: New file.
70154         * lib/unistr/u32-strchr.c: New file.
70155
70156         * modules/unistr/u8-strcmp: New file.
70157         * modules/unistr/u16-strcmp: New file.
70158         * modules/unistr/u32-strcmp: New file.
70159         * lib/unistr/u8-strcmp.c: New file.
70160         * lib/unistr/u16-strcmp.c: New file.
70161         * lib/unistr/u32-strcmp.c: New file.
70162
70163         * modules/unistr/u8-strcpy: New file.
70164         * modules/unistr/u16-strcpy: New file.
70165         * modules/unistr/u32-strcpy: New file.
70166         * lib/unistr/u8-strcpy.c: New file.
70167         * lib/unistr/u16-strcpy.c: New file.
70168         * lib/unistr/u32-strcpy.c: New file.
70169         * lib/unistr/u-strcpy.h: New file.
70170
70171         * modules/unistr/u8-strcspn: New file.
70172         * modules/unistr/u16-strcspn: New file.
70173         * modules/unistr/u32-strcspn: New file.
70174         * lib/unistr/u8-strcspn.c: New file.
70175         * lib/unistr/u16-strcspn.c: New file.
70176         * lib/unistr/u32-strcspn.c: New file.
70177         * lib/unistr/u-strcspn.h: New file.
70178
70179         * modules/unistr/u8-strdup: New file.
70180         * modules/unistr/u16-strdup: New file.
70181         * modules/unistr/u32-strdup: New file.
70182         * lib/unistr/u8-strdup.c: New file.
70183         * lib/unistr/u16-strdup.c: New file.
70184         * lib/unistr/u32-strdup.c: New file.
70185         * lib/unistr/u-strdup.h: New file.
70186
70187         * modules/unistr/u8-strlen: New file.
70188         * modules/unistr/u16-strlen: New file.
70189         * modules/unistr/u32-strlen: New file.
70190         * lib/unistr/u8-strlen.c: New file.
70191         * lib/unistr/u16-strlen.c: New file.
70192         * lib/unistr/u32-strlen.c: New file.
70193         * lib/unistr/u-strlen.h: New file.
70194
70195         * modules/unistr/u8-strmblen: New file.
70196         * modules/unistr/u16-strmblen: New file.
70197         * modules/unistr/u32-strmblen: New file.
70198         * lib/unistr/u8-strmblen.c: New file.
70199         * lib/unistr/u16-strmblen.c: New file.
70200         * lib/unistr/u32-strmblen.c: New file.
70201
70202         * modules/unistr/u8-strmbtouc: New file.
70203         * modules/unistr/u16-strmbtouc: New file.
70204         * modules/unistr/u32-strmbtouc: New file.
70205         * lib/unistr/u8-strmbtouc.c: New file.
70206         * lib/unistr/u16-strmbtouc.c: New file.
70207         * lib/unistr/u32-strmbtouc.c: New file.
70208
70209         * modules/unistr/u8-strncat: New file.
70210         * modules/unistr/u16-strncat: New file.
70211         * modules/unistr/u32-strncat: New file.
70212         * lib/unistr/u8-strncat.c: New file.
70213         * lib/unistr/u16-strncat.c: New file.
70214         * lib/unistr/u32-strncat.c: New file.
70215         * lib/unistr/u-strncat.h: New file.
70216
70217         * modules/unistr/u8-strncmp: New file.
70218         * modules/unistr/u16-strncmp: New file.
70219         * modules/unistr/u32-strncmp: New file.
70220         * lib/unistr/u8-strncmp.c: New file.
70221         * lib/unistr/u16-strncmp.c: New file.
70222         * lib/unistr/u32-strncmp.c: New file.
70223
70224         * modules/unistr/u8-strncpy: New file.
70225         * modules/unistr/u16-strncpy: New file.
70226         * modules/unistr/u32-strncpy: New file.
70227         * lib/unistr/u8-strncpy.c: New file.
70228         * lib/unistr/u16-strncpy.c: New file.
70229         * lib/unistr/u32-strncpy.c: New file.
70230         * lib/unistr/u-strncpy.h: New file.
70231
70232         * modules/unistr/u8-strnlen: New file.
70233         * modules/unistr/u16-strnlen: New file.
70234         * modules/unistr/u32-strnlen: New file.
70235         * lib/unistr/u8-strnlen.c: New file.
70236         * lib/unistr/u16-strnlen.c: New file.
70237         * lib/unistr/u32-strnlen.c: New file.
70238         * lib/unistr/u-strnlen.h: New file.
70239
70240         * modules/unistr/u8-strpbrk: New file.
70241         * modules/unistr/u16-strpbrk: New file.
70242         * modules/unistr/u32-strpbrk: New file.
70243         * lib/unistr/u8-strpbrk.c: New file.
70244         * lib/unistr/u16-strpbrk.c: New file.
70245         * lib/unistr/u32-strpbrk.c: New file.
70246         * lib/unistr/u-strpbrk.h: New file.
70247
70248         * modules/unistr/u8-strrchr: New file.
70249         * modules/unistr/u16-strrchr: New file.
70250         * modules/unistr/u32-strrchr: New file.
70251         * lib/unistr/u8-strrchr.c: New file.
70252         * lib/unistr/u16-strrchr.c: New file.
70253         * lib/unistr/u32-strrchr.c: New file.
70254
70255         * modules/unistr/u8-strspn: New file.
70256         * modules/unistr/u16-strspn: New file.
70257         * modules/unistr/u32-strspn: New file.
70258         * lib/unistr/u8-strspn.c: New file.
70259         * lib/unistr/u16-strspn.c: New file.
70260         * lib/unistr/u32-strspn.c: New file.
70261         * lib/unistr/u-strspn.h: New file.
70262
70263         * modules/unistr/u8-strstr: New file.
70264         * modules/unistr/u16-strstr: New file.
70265         * modules/unistr/u32-strstr: New file.
70266         * lib/unistr/u8-strstr.c: New file.
70267         * lib/unistr/u16-strstr.c: New file.
70268         * lib/unistr/u32-strstr.c: New file.
70269         * lib/unistr/u-strstr.h: New file.
70270
70271         * modules/unistr/u8-strtok: New file.
70272         * modules/unistr/u16-strtok: New file.
70273         * modules/unistr/u32-strtok: New file.
70274         * lib/unistr/u8-strtok.c: New file.
70275         * lib/unistr/u16-strtok.c: New file.
70276         * lib/unistr/u32-strtok.c: New file.
70277         * lib/unistr/u-strtok.h: New file.
70278
70279         * modules/unistr/u8-uctomb: New file.
70280         * modules/unistr/u16-uctomb: New file.
70281         * modules/unistr/u32-uctomb: New file.
70282         * lib/unistr/u8-uctomb.c: New file.
70283         * lib/unistr/u16-uctomb.c: New file.
70284         * lib/unistr/u32-uctomb.c: New file.
70285
70286         * MODULES.html.sh (Unicode string functions): Add the new modules.
70287
70288 2007-01-08  Bruno Haible  <bruno@clisp.org>
70289
70290         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
70291         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
70292         subdirectories.
70293
70294 2007-01-08  Karl Berry  <karl@gnu.org>
70295
70296         * doc/error.texi: mention that main() fns must set program_name
70297         when progname is used.
70298
70299 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
70300
70301         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
70302         WCTYPE_H is empty, for the benefit of builds from non-distclean
70303         directories.  Problem reported by Eric Blake in
70304         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
70305
70306 2007-01-08  Bruno Haible  <bruno@clisp.org>
70307
70308         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
70309         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
70310         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
70311         PROVIDE_CANONICALIZE_FILENAME_MODE.
70312         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
70313
70314 2007-01-08  Bruno Haible  <bruno@clisp.org>
70315
70316         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
70317         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
70318         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
70319         * lib/fts.c: Likewise.
70320         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
70321
70322 2006-12-25  Bruno Haible  <bruno@clisp.org>
70323
70324         * modules/utf8-ucs4-safe: New file.
70325         * lib/utf8-ucs4-safe.h: New file.
70326         * lib/unistr/utf8-ucs4-safe.c: New file.
70327
70328         * modules/utf16-ucs4-safe: New file.
70329         * lib/utf16-ucs4-safe.h: New file.
70330         * lib/unistr/utf16-ucs4-safe.c: New file.
70331
70332         * MODULES.html.sh (Unicode string functions): Add the new modules.
70333
70334 2007-01-08  Bruno Haible  <bruno@clisp.org>
70335
70336         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
70337         (Depends-on): Add unitypes.
70338         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70339         (u8_mbtouc_aux): Move out to separate file.
70340         (u8_mbtouc): Use ucs4_t, uint8_t types.
70341         * lib/unistr/utf8-ucs4.c: New file.
70342
70343         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
70344         (Depends-on): Add unitypes.
70345         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70346         (u16_mbtouc_aux): Move out to separate file.
70347         (u16_mbtouc): Use ucs4_t, uint16_t types.
70348         * lib/unistr/utf16-ucs4.c: New file.
70349
70350         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
70351         (Depends-on): Add unitypes.
70352         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
70353         (u8_uctomb_aux): Move out to separate file.
70354         (u8_uctomb): Use ucs4_t, uint8_t types.
70355         * lib/unistr/ucs4-utf8.c: New file.
70356
70357         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
70358         (Depends-on): Add unitypes.
70359         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
70360         (u16_uctomb_aux): Move out to separate file.
70361         (u16_uctomb): Use ucs4_t, uint16_t types.
70362         * lib/unistr/ucs4-utf16.c: New file.
70363
70364 2006-12-25  Bruno Haible  <bruno@clisp.org>
70365
70366         * modules/unitypes: New file.
70367         * lib/unitypes.h: New file.
70368         * MODULES.html.sh (func_all_modules): New section "Unicode string
70369         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
70370         this section. Add unitypes.
70371
70372 2007-01-08  Bruno Haible  <bruno@clisp.org>
70373
70374         Avoid variable names that conflict with those from libtool.
70375         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
70376         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
70377         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
70378         library_names_spec to acl_library_names_spec, hardcode_* to
70379         acl_hardcode_*.
70380         Reported by Ralf Wildenhues.
70381
70382 2007-01-08  Bruno Haible  <bruno@clisp.org>
70383
70384         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
70385         definition.
70386         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
70387         definition.
70388         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
70389         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
70390         definition.
70391         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
70392         definition.
70393         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
70394         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
70395         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
70396         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
70397         definition.
70398         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
70399         definition.
70400         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
70401         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
70402         GC_USE_<algorithm>.
70403         * lib/gc-libgcrypt.c: Likewise.
70404         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
70405         * modules/gc-arctwo (configure.ac): Likewise.
70406         * modules/gc-des (configure.ac): Likewise.
70407         * modules/gc-hmac-md5 (configure.ac): Likewise.
70408         * modules/gc-hmac-sha1 (configure.ac): Likewise.
70409         * modules/gc-md2 (configure.ac): Likewise.
70410         * modules/gc-md4 (configure.ac): Likewise.
70411         * modules/gc-md5 (configure.ac): Likewise.
70412         * modules/gc-random (configure.ac): Likewise.
70413         * modules/gc-rijndael (configure.ac): Likewise.
70414         * modules/gc-sha1 (configure.ac): Likewise.
70415
70416 2007-01-08  Bruno Haible  <bruno@clisp.org>
70417
70418         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
70419         macro definition.
70420         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
70421         definition.
70422         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
70423         definition.
70424         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
70425         * modules/fcntl-safer (configure.ac): Likewise.
70426         * modules/fopen-safer (configure.ac): Likewise.
70427         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
70428         GNULIB_FWRITEERROR macro definition.
70429
70430 2007-01-08  Bruno Haible  <bruno@clisp.org>
70431
70432         * m4/gnulib-common.m4: New file.
70433         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
70434         (func_get_filelist): Add m4/gnulib-common.m4.
70435
70436 2007-01-08  Bruno Haible  <bruno@clisp.org>
70437
70438         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
70439         command.
70440
70441 2007-01-08  Jim Meyering  <jim@meyering.net>
70442
70443         Use a more robust test for a "can't happen" condition.
70444         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
70445         narrowed the st_size value.  Presuming the "can't happen" condition
70446         is true, that narrowing could conceivably convert an invalid st_size
70447         value into a valid one.  Instead, use a change based on Matthew
70448         Woehlke's original patch.
70449
70450         Slight readability improvement: use an assert-like macro
70451         in place of literal "abort ()" uses.
70452         * lib/fts.c (fts_assert): Define.
70453         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
70454         Use this macro instead of a bare 'abort'.
70455
70456 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
70457
70458         Don't worry about using IRIX 5.3's wctype.h broken definitions;
70459         simply work around them.
70460         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
70461         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
70462         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
70463         declaring.
70464         Don't bother to define as macros, since the standard doesn't require it.
70465         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
70466         longer worry about IRIX 5.3.
70467         (HAVE_WCTYPE_CTMP_BUG): Remove.
70468
70469 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70470
70471         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
70472         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
70473         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
70474         Problems reported by Georg Schwarz for IRIX 5.3.
70475
70476         * gnulib-tool (autoconf_minversion): Take the maximum version number
70477         found, not the minimum.  Problem reported by James Youngman.
70478
70479 2007-01-03  Karl Berry  <karl@gnu.org>
70480
70481         * doc/error.texi: new file, explaining interaction with progname.
70482         * doc/gnulib.texi: include it.  Update copyright.
70483
70484 2007-01-03  Simon Josefsson  <simon@josefsson.org>
70485
70486         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
70487         AC_CANONICAL_HOST, to improve autobuild outputs.
70488
70489 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
70490             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70491
70492         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
70493         sockets, server sockets, and other file descriptors.  Count errors
70494         to compute the return value.  Reorder the code a bit to be easier
70495         to follow.  Don't set event bits that were not requested (except
70496         POLLERR and POLLHUP).
70497
70498 2007-01-01  Bruno Haible  <bruno@clisp.org>
70499
70500         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
70501
70502 2007-01-03  Jim Meyering  <jim@meyering.net>
70503
70504         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
70505
70506 2007-01-02  Bruno Haible  <bruno@clisp.org>
70507
70508         * modules/settime (Include): Require timespec.h.
70509         * modules/nanosleep (Include): Likewise.
70510
70511 2007-01-01  Bruno Haible  <bruno@clisp.org>
70512
70513         * gnulib-tool (func_emit_copyright_notice): Bump year.
70514         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
70515
70516 2007-01-01  Bruno Haible  <bruno@clisp.org>
70517
70518         Improve support for OpenBSD.
70519         * build-aux/config.rpath (libname_spec): Export.
70520         (library_names_spec): New variable. Export.
70521         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
70522         library_names_spec from the config.rpath output. Locate shared library
70523         through the name pattern in library_names_spec.
70524
70525 2007-01-01  Eric Blake  <ebb9@byu.net>
70526
70527         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
70528
70529 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
70530
70531         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
70532         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
70533         assume the C locale, and avoid an "eval" that could cause trouble.
70534         Problem with SORT reported by Bob Proulx.
70535
70536         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
70537         Define.  Trivial patch from Henning Nielsen Lund, originally
70538         sent to bug-grep@gnu.org today.
70539
70540 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
70541
70542         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
70543         struct stat.  Problem reported by Henning Nielsen Lund.
70544         * lib/acl.c: Include acl.h first, to check interface.  Don't
70545         bother to include sys/types.h and sys/stat.h again.
70546
70547 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70548
70549         Import the following change from libc; problem reported by
70550         Sven Verdoolaege.
70551
70552         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
70553
70554         [BZ #1373]
70555         * lib/argp.h: Remove __NTH for __argp_usage inline function.
70556
70557 2006-12-28  Jim Meyering  <jim@meyering.net>
70558
70559         * build-aux/announce-gen: Do not assume that the package
70560         builds any of tar.gz, tar.bz2, and .xdelta files.
70561         Suggestion from Simon Josefsson.
70562
70563 2006-12-28  Simon Josefsson  <simon@josefsson.org>
70564
70565         * modules/announce-gen: New file.
70566
70567 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
70568
70569         * lib/mbchar.h: Just include <wctype.h>; the wctype module
70570         handles its gotchas now.
70571         * lib/mbswidth.c: Likewise.
70572         * lib/wcwidth.h: Likewise.
70573         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
70574         and iswcntrl; the wctype module does this stuff now.
70575         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70576         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70577         * modules/mbchar (Depends-on): Add wctype.
70578         * modules/mbswidth (Depends-on): Likewise.
70579         * modules/wcwidth (Depends-on): Likewise.
70580
70581 2006-12-27  Eric Blake  <ebb9@byu.net>
70582
70583         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
70584         module uses more than what <wctype.h> is required to provide.
70585
70586 2006-12-26  Eric Blake  <ebb9@byu.net>
70587
70588         * gnulib-tool (sed_extract_prog): Avoid space-tab.
70589
70590 2006-12-26  Eric Blake  <ebb9@byu.net>
70591
70592         * modules/absolute-header: New module.
70593         * modules/fcntl (Depends-on): Depend on it.
70594         * modules/inttypes (Depends-on): Likewise.
70595         * modules/stdint (Depends-on): Likewise.
70596         * modules/sys_stat (Depends-on): Likewise.
70597         * modules/wctype (Depends-on): Likewise.
70598         * MODULES.html.sh (Support for building libraries and
70599         executables): Document it.
70600
70601 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
70602
70603         * gnulib-tool (SED): Remove, undoing previous change.
70604         The problem was that it broke coreutils on Solaris, because
70605         "sed --posix" leaked into a makefile.
70606         (sed): New alias, if 'alias' and GNU sed.
70607
70608 2006-12-24  Jim Meyering  <jim@meyering.net>
70609
70610         Work around an fchownat bug in glibc-2.4:
70611         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
70612         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
70613         in spite of the -P option.
70614         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
70615         New macros.
70616         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
70617         * modules/openat (Files): Add lib/fchownat.c.
70618         * lib/openat.c (fchownat): Don't define here.  Move to...
70619         * lib/fchownat.c: ...this new file.
70620
70621 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70622
70623         Fix bug reported by Bruno Haible in
70624         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
70625         where quotearg.c didn't compile on Mac OS X 10.2 because it
70626         lacks <wchar.h> and wint_t.
70627         * lib/wctype_.h (__wctype_wint_t): New type.
70628         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
70629         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
70630         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
70631         Arg is now of type __wctype_wint_t, not wint_t.
70632         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
70633         substitute HAVE_WINT_T.
70634         * modules/wctype (Files): Add m4/wint_t.m4.
70635         (wctype.h): Substitute HAVE_WINT_T.
70636
70637 2006-12-23  Bruno Haible  <bruno@clisp.org>
70638
70639         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
70640
70641 2006-12-23  Bruno Haible  <bruno@clisp.org>
70642
70643         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
70644         S_ISLNK.
70645         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
70646         mingw.
70647
70648 2006-12-22  Bruno Haible  <bruno@clisp.org>
70649
70650         * lib/copy-file.c: Include acl.h.
70651         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
70652         Close the file descriptors only after being done with copy_acl.
70653         * modules/copy-file (Depends-on): Add acl.
70654
70655 2006-12-22  Bruno Haible  <bruno@clisp.org>
70656
70657         * gnulib-tool (SED): New variable.
70658         Use $SED instead of sed everywhere.
70659
70660 2006-12-22  Bruno Haible  <bruno@clisp.org>
70661
70662         * modules/no-c++: New file.
70663         * m4/no-c++.m4: New file.
70664         * MODULES.html.sh (Support for building libraries and executables):
70665         Add no-c++.
70666
70667 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
70668
70669         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70670         Include <limits.h>, and use its INT_MAX to rewrite the
70671         j loop so that it does not overflow 'int'.  Problem reported by
70672         Ralf Wildenhues in
70673         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
70674         Play it safe by shifting left by 1 rather than multiplying by 2,
70675         as GCC is less likely to optimize this away when the value
70676         is signed (when it assumes overflow leads to undefined behavior).
70677         Also, don't assume time_t uses two's complement.
70678
70679 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
70680
70681         * MODULES.html.sh: New module wctype.
70682         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
70683         * lib/fnmatch.c: Don't bother to include <wchar.h> before
70684         <wctype.h>, since the new wctype module should fix this.
70685         * lib/quotearg.c: Include <wctype.h> unconditionally, since
70686         the wctype module should arrange for it.
70687         * lib/regex_internal.h: Likewise.
70688         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
70689         since the wctype module should handle this now.
70690         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
70691         * modules/fnmatch (Depends-on): Add wctype.
70692         * modules/quotearg (Depends-on): Likewise.
70693         * modules/regex (Depends-on): Likewise.
70694
70695 2006-12-19  Bruno Haible  <bruno@clisp.org>
70696
70697         * lib/strdup.h [C++]: Wrap definitions in extern "C".
70698         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
70699
70700 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70701
70702         * modules/savewd (Depends-on): Fix dependency on fcntl.
70703
70704 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70705
70706         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
70707         conforms to C99, rather than relying on the user's environment
70708         setting of STDINT_H.
70709
70710 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70711         and Eric Blake  <ebb9@byu.net>
70712
70713         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
70714         This is more consistent with the other defines here.
70715         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
70716         Port to z/OS.  Problem reported by Paul Gilmartin.
70717         Change local vars to use gl_ prefix rather than ac_.
70718         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
70719         with other defines.
70720         * modules/double-slash-root: New module.
70721         * modules/dirname (Files): Remove m4/double-slash-root.m4.
70722         (Depends-on): Add double-slash-root.
70723         * MODULES.html.sh (File system functions): Mention new module.
70724
70725 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
70726
70727         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
70728         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
70729         This is for the benefit of gzip, which doesn't do i18n.
70730
70731 2006-12-12  Jim Meyering  <jim@meyering.net>
70732
70733         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
70734         Reported by Andreas Schwab <schwab@suse.de>.
70735
70736 2006-12-12  Bruno Haible  <bruno@clisp.org>
70737
70738         Merge these changes.
70739         2006-09-05  Bruno Haible  <bruno@clisp.org>
70740         * lib/iconvme.c (iconv_string): No need to save and restore errno when
70741         iconv_alloc succeeded.
70742         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
70743         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
70744         test for " && dest " at the end - dest is always != NULL there. Call
70745         iconv with 4xNULL arguments initially, to reset the state. Call iconv
70746         with 2xNULL arguments, also to flush the state storage. Handle the
70747         IRIX iconv behaviour. Realloc the final result, to throw away unused
70748         memory.
70749
70750 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
70751
70752         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
70753         and fchmodat unconditionally, since glibc 2.4 has them.
70754         Problem reported by Arkadiusz Miskiewicz.
70755
70756 2006-12-10  Bruno Haible  <bruno@clisp.org>
70757
70758         * gnulib-tool (func_import): Show the include files only for those
70759         modules that are copied and specified.
70760         Reported by Karl Berry.
70761
70762 2006-12-08  Jim Meyering  <jim@meyering.net>
70763
70764         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
70765         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
70766
70767         * build-aux/announce-gen: Add two new options, both optional:
70768         --bootstrap-tools=TOOL_LIST
70769               a comma-separated list of tools, e.g.,
70770               autoconf,automake,bison,gnulib
70771         --gnulib-snapshot-date=DATE
70772               if gnulib is in the bootstrap tool list,
70773               then report this as the snapshot date.
70774               If not specified, use the current date/time.
70775               If you specify a date here, be sure it's UTC.
70776
70777 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70778
70779         * tests/test-argp-2.sh: Fix test to match actual output.
70780         (func_compare): Fix sed script to be portable.
70781
70782 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
70783
70784         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
70785         workaround for this case.  It is not autoconfigured now; offhand
70786         it's hard to see how to autoconfigure it.
70787
70788 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
70789
70790         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
70791         a directory that is about to be chowned.  Such a directory's
70792         initial file permissions should permit the owner only and this
70793         should not be changed until after the chown, since the group and
70794         other bits would be incorrect if they granted permission before
70795         the chown.
70796
70797         Fix porting problem for iswctype reported by Georg Schwarz in:
70798         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
70799         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
70800         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
70801         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
70802         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70803
70804 2006-12-03  Jim Meyering  <jim@meyering.net>
70805
70806         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
70807         p->fts_statp may not yet be defined.
70808         (fts_read): Instead, set it in the caller, once p->fts_statp is
70809         sure to be defined, and corresponds to a top-level directory.
70810         This bug made du -x fail.  Here's the coreutils test case:
70811         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
70812         Reported by Mike Frysinger.
70813
70814 2006-12-01  Jim Meyering  <jim@meyering.net>
70815
70816         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
70817         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
70818         Reported by Simon Josefsson.
70819
70820 2006-11-30  Jim Meyering  <jim@meyering.net>
70821
70822         * m4/warning.m4: Use the all-permissive copyright notice
70823         recommended by RMS (rather than LGPL).
70824         * m4/vararrays.m4: Likewise.
70825         * m4/flexmember.m4: Likewise.
70826
70827 2006-11-29  Bruno Haible  <bruno@clisp.org>
70828
70829         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70830         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
70831         using +=.
70832         Reported by Simon Josefsson <simon@josefsson.org>.
70833
70834 2006-11-28  James Youngman <jay@gnu.org>
70835
70836         * README: Advise users that they might find the bug-gnulib@gnu.org
70837         and autotools-announce@gnu.org mailing lists useful.
70838
70839 2006-11-28  Bruno Haible  <bruno@clisp.org>
70840
70841         * m4/ptrdiff_max.m4: Remove file.
70842
70843 2006-11-21  Bruno Haible  <bruno@clisp.org>
70844
70845         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
70846         _AC_COMPUTE_INT.
70847         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70848         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
70849         _AC_COMPUTE_INT.
70850         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70851         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
70852         _AC_COMPUTE_INT.
70853         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70854
70855 2006-11-28  Jim Meyering  <jim@meyering.net>
70856
70857         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
70858         warning from "gcc -Wshadow" about shadowing the builtin.
70859
70860 2006-11-27  Bruno Haible  <bruno@clisp.org>
70861
70862         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
70863         _AC_COMPUTE_INT.
70864         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70865
70866 2006-11-27  Bruno Haible  <bruno@clisp.org>
70867             Paul Eggert  <eggert@cs.ucla.edu>
70868
70869         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
70870
70871 2006-11-26  Bruno Haible  <bruno@clisp.org>
70872
70873         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70874         noinst_LTLIBRARIES.
70875
70876 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70877             Bruno Haible  <bruno@clisp.org>
70878
70879         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
70880         if compiling with "gcc -ansi".
70881
70882 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70883
70884         Fix some incompatibilities with gcc -ansi -pedantic.
70885         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
70886         if compiling pedantically with GCC, unless it's C99 or later.
70887         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
70888         it mishandles gcc -ansi -pedantic as well.
70889         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
70890         if gcc -pedantic.
70891         * lib/regexec.c (check_node_accept_bytes): Don't use auto
70892         initializers for struct if -pedantic, unless it's C99 or later.
70893
70894 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
70895
70896         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
70897         Don't close an fd more than once. Identical atimes indicate
70898         success, not failure.
70899
70900 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
70901
70902         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
70903
70904 2006-11-23  Jim Meyering  <jim@meyering.net>
70905
70906         * build-aux/announce-gen: New file.  From coreutils.
70907
70908 2006-11-22  Jim Meyering  <jim@meyering.net>
70909
70910         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
70911         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
70912         (fts_read): Use a temporary to narrow the overused st_size member
70913         before using it in a switch statement.  Reported by Matthew Woehlke.
70914
70915         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
70916         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
70917
70918 2006-11-20  Bruno Haible  <bruno@clisp.org>
70919
70920         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
70921         changequote instead of pairs of brackets.
70922         Reported by Andreas Schwab <schwab@suse.de>.
70923
70924 2006-11-21  Jim Meyering  <jim@meyering.net>
70925
70926         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
70927         so as to remain compatible with older compilers.
70928         Patch from Michael Deutschmann.
70929
70930 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70931
70932         * MODULES.html.sh (File system functions): Add openat.
70933
70934         * lib/openat.h (rpl_fstatat): New macro, if
70935         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
70936         (fstatat): Define to rpl_fstatat under the same conditions,
70937         unless COMPILING_FSTATAT.
70938         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
70939         seems to have the bug.
70940         * lib/fstatat.c: New file.
70941         * modules/openat (Files): Add it.
70942
70943 2006-11-20  Bruno Haible  <bruno@clisp.org>
70944
70945         * Makefile: New file.
70946
70947 2006-11-20  Jim Meyering  <jim@meyering.net>
70948
70949         The beginnings of syntax-related checks for gnulib.
70950         * lib/Makefile: New file.
70951         * lib/t-idcache: New script.  Ensure that the two halves of
70952         idcache.c stay in sync.
70953
70954         * lib/idcache.c: Adjust comments in user- and group- portions to
70955         be more accurate, and to be consistent with one another.
70956
70957 2006-11-20  Jim Meyering  <jim@meyering.net>
70958
70959         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
70960         continue using the flexible array member (thus, this module performs
70961         half as many malloc calls), with the addition that...
70962         (getgroup, getuser): Consistently record a non-match via an empty
70963         "name" string, and map an empty string match to a NULL return value.
70964         * modules/idcache (Depends-on): Re-add flexmember.
70965
70966         * lib/idcache.c (getuser): Remove all uses of the register keyword.
70967         (getuidbyname, getgroup, getgidbyname): Likewise.
70968
70969         Use cleaner syntax: NULL rather than 0.
70970         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
70971
70972 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70973
70974         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
70975         It mishandled the case where the group was missing.
70976         Problem reported by Greg Schafer.
70977         * modules/idcache: Likewise.
70978
70979 2006-11-18  Jim Meyering  <jim@meyering.net>
70980
70981         * check-module (%exempt_header): Add exception for some
70982         conditionally-included headers.
70983
70984         * modules/i-ring (Depends-on): Add verify.
70985         (License): Change to LGPL.
70986
70987 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70988
70989         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
70990         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
70991         and inttostr.h.  Use snprintf rather than uinttostr, so that
70992         LGPLed code doesn't depend on GPLed.
70993
70994 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70995
70996         * modules/inline (License): Change from GPL to LGPL.
70997
70998 2006-11-17  Jim Meyering  <jim@meyering.net>
70999
71000         * modules/d-type (License): Switch to LGPL.
71001
71002 2006-11-15  Bruno Haible  <bruno@clisp.org>
71003
71004         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
71005
71006 2006-11-15  Eric Blake  <ebb9@byu.net>
71007
71008         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
71009         the module dependency.
71010
71011 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71012             Bruno Haible  <bruno@clisp.org>
71013
71014         * gnulib-tool (func_create_testdir): Add license consistency check.
71015
71016 2006-11-15  Eric Blake  <ebb9@byu.net>
71017
71018         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
71019         random "(cached)" in configure output.
71020
71021 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71022
71023         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
71024         test for conforming inttypes.h is both announced and cached.
71025
71026         * MODULES.html.sh (seen_modules, seen_files): New variables.
71027         (func_module): Rewrite to use a few less gnulib-tool and sed
71028         invocations.  Avoid a couple of quadratic algorithms for ...
71029         (missed_modules, missed_files): ... these, with ...
71030         (func_append, func_tmpdir): ... these new functions, from
71031         gnulib-tool.  Analogously, install traps for cleanup.
71032
71033         * tests/test-gc.c (main): Remove unused variables.
71034         * tests/test-read-file.c: Include stdlib.h, for 'free'.
71035
71036 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
71037
71038         * modules/inttostr (License): Change to LGPL.
71039
71040 2006-11-14  Eric Blake  <ebb9@byu.net>
71041
71042         * modules/tempname (License): Change to LGPL.
71043
71044 2006-11-14  Eric Blake  <ebb9@byu.net>
71045
71046         * doc/functions.texi (Function Portability): *printf functions on
71047         Cygwin now understand all POSIX size specifiers.
71048
71049 2006-11-14  Bruno Haible  <bruno@clisp.org>
71050
71051         * modules/c-ctype (License): Change to LGPL.
71052
71053 2006-11-12  Bruno Haible  <bruno@clisp.org>
71054
71055         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
71056         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
71057         for GNOME libraries, for which the include files are installed in
71058         subdirectories of $prefix/include.
71059
71060 2006-11-12  Bruno Haible  <bruno@clisp.org>
71061
71062         * m4/lib-link.m4: Require at least autoconf-2.54.
71063         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
71064         name to underscores for the --with option.
71065
71066 2006-11-13  Bruno Haible  <bruno@clisp.org>
71067
71068         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
71069         the tests directory.
71070         Reported by Ralf Wildenhues.
71071
71072 2006-11-13  Bruno Haible  <bruno@clisp.org>
71073
71074         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
71075         (func_emit_initmacro_end): Undo the override here.
71076         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
71077         Works around the famous automake error in coreutils.
71078
71079 2006-11-13  Eric Blake  <ebb9@byu.net>
71080
71081         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
71082         element, not its node.
71083
71084 2006-11-12  Bruno Haible  <bruno@clisp.org>
71085
71086         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
71087         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
71088
71089 2006-11-12  Bruno Haible  <bruno@clisp.org>
71090
71091         * gnulib-tool: New option --local-symlink.
71092         (func_usage): Document it.
71093         (lsymbolic): New variable.
71094         (func_import, func_create_testdir): If --symlink was not specified,
71095         test whether --local-symlink was specified and the file comes from
71096         the local_gnulib_dir.
71097
71098 2006-11-12  Bruno Haible  <bruno@clisp.org>
71099
71100         * gnulib-tool (func_ln): New function.
71101         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
71102
71103 2006-11-12  Bruno Haible  <bruno@clisp.org>
71104
71105         Finish support for source files in subdirectories.
71106         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
71107         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
71108         AUTOMAKE_OPTIONS.
71109         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
71110
71111 2006-11-12  Bruno Haible  <bruno@clisp.org>
71112
71113         * gnulib-tool (func_get_automake_snippet): Synthesize also an
71114         EXTRA_lib_SOURCES augmentation.
71115         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
71116
71117 2006-11-12  Jim Meyering  <jim@meyering.net>
71118
71119         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
71120         file descriptors.  This also averts a failure on systems with
71121         native openat support when a traversed directory lacks "x" access.
71122         * lib/fts_.h: Include "i-ring.h"
71123         (struct FTS) [fts_fd_ring]: New member.
71124         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
71125         (FCHDIR): Add parentheses.
71126         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
71127         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
71128         When descending, rather than simply closing the previous
71129         fts_cwd_fd value, push that file descriptor onto the ring.
71130         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
71131         (fts_open): Initialize the new fd_ring member.
71132         (fts_close): Clear the ring.
71133         (fts_safe_changedir): When possible, use our new fd_ring to skip
71134         the diropen and fstat and dev/ino comparison that would normally
71135         accompany a virtual `chdir ("..")'.
71136
71137         * modules/fts (Depends-on): Add i-ring.
71138         * modules/i-ring: New module.
71139         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
71140         * m4/i-ring.m4: New file.
71141
71142 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71143
71144         * gnulib-tool (func_create_testdir): Fix replacement of
71145         `build-aux' in configure.ac.  Run autotools in gltests
71146         subdirectory.
71147         (func_create_testdir, func_create_megatestdir, test): There is
71148         no need for '--force' in most autotool invocations in a new
71149         tree.  Actually fail the whole test if any of the tools, or the
71150         configure or make stages fail.
71151
71152         Sync from Automake.
71153         * build-aux/gnupload: Revert last change.  Add pointer to upload
71154         instructions of the GNU Maintenance Instructions.
71155         Suggestion by Karl Berry.
71156
71157 2006-11-10  Jim Meyering  <jim@meyering.net>
71158
71159         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
71160
71161 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71162
71163         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
71164         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
71165         (bind_textdomain_codeset) [! ENABLE_NLS]:
71166         Evaluate all the arguments.  That way, callers get compatible behavior
71167         if the arguments have side effects.  Also, it avoids some GCC
71168         diagnostics in some cases; Joel E. Denny reported problems when Bison
71169         was configured with --enable-gcc-warnigs.
71170
71171 2006-11-10  Jim Meyering  <jim@meyering.net>
71172
71173         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
71174         relevant options in CFLAGS (like -O, -fno-inline) are taken into
71175         account.
71176
71177 2006-11-10  Jim Meyering  <jim@meyering.net>
71178
71179         * modules/inline: New file/module.
71180         * modules/xalloc (Files): Remove m4/inline.m4.
71181         (Depends-on): Add inline, instead.
71182         * modules/oset: Likewise.
71183         * modules/list: Likewise.
71184
71185 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
71186
71187         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
71188         Problem reported by Matthew Woehlke.
71189
71190 2006-11-09  Bruno Haible  <bruno@clisp.org>
71191
71192         * lib/tempname.c (gen_tempname): Remove variant that invokes
71193         __gen_tempname.
71194         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
71195         __gen_tempname.
71196
71197 2006-11-08  Bruno Haible  <bruno@clisp.org>
71198
71199         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
71200         to 'yes' instead of 'cross-compiling'.
71201
71202 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
71203
71204         * lib/quotearg.h (quotearg_free): New decl.
71205         * lib/quotearg.c (quotearg_free): New function.
71206         (slot0, nslots, slotvec0, slotvec):
71207         Now file-scope so that quotearg_free can get at them.
71208
71209 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71210
71211         Sync from Automake.
71212         * build-aux/gnupload: Add missing 'gnu' to example URL.
71213         Report by Karl Berry.
71214
71215 2006-11-08  Bruno Haible  <bruno@clisp.org>
71216
71217         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
71218         Suggested by Paul Eggert.
71219
71220 2006-11-08  Jim Meyering  <jim@meyering.net>
71221
71222         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
71223         It's already included if !_LIBC.
71224         (fts_safe_changedir): Add a comment.
71225
71226 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71227
71228         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
71229         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
71230         Matthew Woehlke.
71231
71232         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
71233         definitions up, to avoid colliding with change below.
71234         (static_inline) [HAVE_INLINE]: New macro.
71235         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
71236         Provide extern decls when !HAVE_INLINE.  Do not define unless
71237         static_inline is defined, either by us or by xmalloc.c.  Use
71238         static_inline rather than static inline.
71239         (XCALLOC): Optimize sizeof(T) = 1 case.
71240         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
71241
71242 2006-11-07  Bruno Haible  <bruno@clisp.org>
71243
71244         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
71245         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
71246         AC_C_INLINE.
71247         * modules/xalloc (Files): Add m4/inline.m4.
71248
71249 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71250
71251         * README: Fix typo.
71252         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
71253         (Miscellanous Notes): ...from this.
71254
71255 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
71256
71257         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
71258         Mention that offsetof should be used instead of sizeof.
71259         From Bruno Haible.
71260
71261 2006-11-07  Bruno Haible  <bruno@clisp.org>
71262
71263         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
71264
71265 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71266
71267         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71268         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71269         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71270         (gl_tree_add_before, gl_tree_add_after):
71271         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71272         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71273         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71274         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71275         (gl_linked_add_after, gl_linked_add_at): Likewise.
71276         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
71277         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71278         (gl_tree_add_before, gl_tree_add_after): Likewise.
71279         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71280         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71281         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71282
71283 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71284
71285         * lib/gl_oset.h: Use C comment style, not C++ comment style.
71286
71287 2006-11-06  Bruno Haible  <bruno@clisp.org>
71288
71289         * m4/inline.m4: New file.
71290         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
71291         * modules/list (Files): Add m4/inline.m4.
71292         * modules/oset (Files): Likewise.
71293
71294 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71295
71296         * lib/idcache.c: Include <stddef.h>, for offsetof.
71297         (struct userid.name): Change from char * to a flexible array member.
71298         All uses changed.
71299         * modules/idcache (Depends-on): Add flexmember.
71300
71301         * MODULES.html.sh (Core language properties): New module flexmember.
71302         * modules/flexmember, m4/flexmember.m4: New files.
71303
71304         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
71305         inline functions that are identical with the old xnmalloc_inline,
71306         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
71307         that we can avoid some unnecessary integer multiplications and
71308         divisions in the common case where the element size is known at
71309         compile time.
71310         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
71311         needed.
71312         (xnboundedmalloc): Remove.
71313         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
71314         arguments, for consistency with rest of this header.
71315         (xcharalloc): Rewrite using XNMALLOC.
71316         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
71317         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
71318         versions have been moved to lib/xalloc.h and renamed to be the
71319         non-*_inline versions.
71320         (xmalloc, xrealloc): Implement without reference to the xnmalloc
71321         and xnrealloc functions, since those functions are now inline and
71322         now call us.
71323         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
71324         renaming described above.
71325         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
71326         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
71327         captures the dependency in AC_C_INLINE.
71328
71329         New module canonicalize-lgpl, proposed by Charles Wilson in
71330         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
71331         with a few small changes afterwards.
71332         * MODULES.html.sh (File system functions): New module
71333         canonicalize-lgpl.
71334         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
71335         and canonicalize_file_name.
71336         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
71337         * modules/canonicalize-lgpl: New files.
71338
71339 2006-11-05  Bruno Haible  <bruno@clisp.org>
71340
71341         * gnulib-tool (func_import, func_create_testdir): Create directories
71342         also for files in subdirectories of lib/.
71343
71344 2006-11-05  Bruno Haible  <bruno@clisp.org>
71345
71346         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
71347         ANSI C compliant.
71348
71349 2006-11-03  Bruno Haible  <bruno@clisp.org>
71350
71351         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71352         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
71353         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
71354         (xnboundedmalloc): New inline function.
71355         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
71356         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
71357         xmalloc.
71358         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
71359         xmalloc.
71360         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
71361         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
71362         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
71363         xmalloc.
71364         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71365         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
71366         xmalloc.
71367         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
71368         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71369         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
71370         xmalloc.
71371         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71372         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
71373         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71374         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
71375         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
71376         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
71377         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
71378
71379 2006-11-03  Bruno Haible  <bruno@clisp.org>
71380
71381         * lib/c-ctype.h [C++]: Define functions without name mangling.
71382         * lib/fwriteerror.h [C++]: Likewise.
71383         * lib/gcd.h [C++]: Likewise.
71384         * lib/linebreak.h [C++]: Likewise.
71385
71386 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71387
71388         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
71389         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
71390         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
71391         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71392         Check for functions and headers just once.
71393         Check for declaration of canonicalize_file_name.
71394         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
71395
71396 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71397
71398         * gnulib-tool (func_import): Fix typo in actioncmd.
71399
71400 2006-11-02  Bruno Haible  <bruno@clisp.org>
71401
71402         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
71403         newline sequence in the Makefile.am snippet as a space, like "make"
71404         does.
71405         Reported by Roger Persson <perrog@gmail.com>.
71406
71407 2006-11-01  Bruno Haible  <bruno@clisp.org>
71408
71409         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
71410         already declared in <string.h>.
71411         * lib/strcase.h (strncasecmp): Don't declare it if yes.
71412
71413 2006-11-01  Bruno Haible  <bruno@clisp.org>
71414
71415         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
71416         * lib/strcase.h: Include <string.h>.
71417         (strcasecmp): Define to rpl_strcasecmp here.
71418
71419 2006-11-01  Bruno Haible  <bruno@clisp.org>
71420
71421         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
71422
71423 2006-11-01  Eric Blake  <ebb9@byu.net>
71424
71425         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
71426
71427         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
71428
71429 2006-10-29  Bruno Haible  <bruno@clisp.org>
71430
71431         Make it compile in C++ mode.
71432         * lib/full-write.c (full_rw): Add a cast.
71433
71434 2006-11-01  Bruno Haible  <bruno@clisp.org>
71435
71436         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
71437         be POSIX compliant.
71438         Reported by Roger Persson <perrog@gmail.com>.
71439
71440 2006-11-01  Eric Blake  <ebb9@byu.net>
71441
71442         * lib/getopt_.h: Fix comments.
71443
71444 2006-10-31  Eric Blake  <ebb9@byu.net>
71445
71446         * modules/tmpdir (Depends-on): Add sys_stat.
71447         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
71448         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
71449         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
71450         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
71451         tempname.
71452
71453 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
71454
71455         Avoid some C++ diagnostics reported by Bruno Haible.
71456         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
71457         xmalloc.
71458         (quotearg_alloc): Use xcharalloc rather than xmalloc.
71459         (struct slotvec): Move to top level.
71460         (quotearg_n_options): Rewrite to avoid xmalloc.
71461         * lib/xalloc.h (xcharalloc): New function.
71462         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
71463         [defined __cplusplus]: Add function template that provides result
71464         type propagation.  This part of the change is from Bruno Haible.
71465
71466 2006-10-29  Bruno Haible  <bruno@clisp.org>
71467
71468         Make it compile in C++ mode.
71469         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
71470         * lib/strnlen1.c (strnlen1): Cast memchr result.
71471         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
71472         * lib/clean-temp.c (string_equals, string_hash): Add casts.
71473         (create_temp_dir): Rename local variable 'template'.
71474         (compile_csharp_using_sscli): Add cast.
71475         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
71476         * lib/findprog.c (find_in_path): Likewise.
71477         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
71478         * lib/wait-process.c (register_slave_subprocess): Likewise.
71479
71480 2006-10-22  Bruno Haible  <bruno@clisp.org>
71481
71482         * modules/tsearch: New file.
71483         * lib/tsearch.h: New file.
71484         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
71485         * m4/tsearch.m4: New file.
71486         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
71487
71488 2006-10-29  Eric Blake  <ebb9@byu.net>
71489
71490         * lib/arcfour.c: Assume config.h.
71491         * lib/arctwo.c: Likewise.
71492         * lib/base64.c: Likewise.
71493         * lib/check-version.c: Likewise.
71494         * lib/crc.c: Likewise.
71495         * lib/des.c: Likewise.
71496         * lib/gc-gnulib.c: Likewise.
71497         * lib/gc-libgcrypt.c: Likewise.
71498         * lib/gc-pbkdf2-sha1.c: Likewise.
71499         * lib/getaddrinfo.c: Likewise.
71500         * lib/getdelim.c: Likewise.
71501         * lib/getline.c: Likewise.
71502         * lib/hmac-md5.c: Likewise.
71503         * lib/hmac-sha1.c: Likewise.
71504         * lib/iconvme.c: Likewise.
71505         * lib/md2.c: Likewise.
71506         * lib/md4.c: Likewise.
71507         * lib/memxor.c: Likewise.
71508         * lib/read-file.c: Likewise.
71509         * lib/readline.c: Likewise.
71510         * lib/rijndael-alg-fst.c: Likewise.
71511         * lib/rijndael-api-fst.c: Likewise.
71512         * lib/xgetdomainname.c: Likewise.
71513
71514 2006-10-28  Eric Blake  <ebb9@byu.net>
71515
71516         * lib/xstrndup.c: Assume config.h.
71517
71518 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
71519
71520         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
71521         stat-macros.h is now for our own macros, whereas stat_h is for
71522         macros in the <sys/stat.h> name space.
71523         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
71524         (STAT_MACROS_H): Remove.
71525         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
71526         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
71527         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
71528         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
71529         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
71530         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
71531         Move these macros to ...
71532         * lib/stat_.h: here.  Don't include stat-macros.h.
71533         * lib/canonicalize.c: Don't include stat-macros.h.
71534         * lib/chown.c: Likewise.
71535         * lib/euidaccess.c: Likewise.
71536         * lib/file-type.c: Likewise.
71537         * lib/filemode.c: Likewise.
71538         * lib/glob.c: Likewise.
71539         * lib/isapipe.c: Likewise.
71540         * lib/lchown.c: Likewise.
71541         * lib/lstat.c: Likewise.
71542         * lib/mkdir-p.c: Likewise.
71543         * lib/rmdir.c: Likewise.
71544         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
71545         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
71546         unless mkdir isn't declared, to speed up 'configure'.
71547         Always create sys/stat.h, since it's unlikely any real sys/stat.h
71548         would define all the S_* symbols.
71549         * modules/canonicalize (Depends-on):
71550         Depend on sys_stat, not stat-macros.
71551         * modules/chown: Likewise.
71552         * modules/euidaccess: Likewise.
71553         * modules/filemode: Likewise.
71554         * modules/file-type: Likewise.
71555         * modules/glob: Likewise.
71556         * modules/isapipe: Likewise.
71557         * modules/lchown: Likewise.
71558         * modules/lstat: Likewise.
71559         * modules/mkancesdirs: Likewise.
71560         * modules/rmdir: Likewise.
71561         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
71562         * modules/modechange: Likewise.
71563         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
71564         (configure.ac): Remove gl_STAT_MACROS.
71565         * modules/sys_stat (Depends-on): Remove stat-macros.
71566
71567 2006-10-27  Bruno Haible  <bruno@clisp.org>
71568
71569         * m4/signed.m4: Remove file.
71570         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
71571         invocation.
71572         * modules/vasnprintf (Files): Remove m4/signed.m4.
71573
71574 2006-10-27  Bruno Haible  <bruno@clisp.org>
71575
71576         Update to GNU gettext 0.16.
71577         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
71578         m4/inttypes-h.m4, m4/signed.m4.
71579         * m4/gettext.m4: Update to GNU gettext 0.16.
71580         * m4/intl.m4: New file, from GNU gettext.
71581         * m4/intldir.m4: New file, from GNU gettext.
71582         * config/srclist.txt: Update
71583
71584 2006-10-27  Eric Blake  <ebb9@byu.net>
71585
71586         * MODULES.html.sh: Document tempname.
71587         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
71588         dependencies.
71589         (Files): Move lib/tempname.c...
71590         * modules/tempname: ...to this new module.
71591         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
71592         (gl_PREREQ_TEMPNAME): Move...
71593         * m4/tempname.m4: ...to this new file.
71594         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
71595         * modules/sys_stat (Depends-on): Add stat-macros.
71596         * lib/stat_.h (includes): Pick up stat macros.
71597         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
71598         if stat macros are broken.
71599         * lib/tempname.c (includes): No need to include "stat-macros.h".
71600         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
71601         (direxists, __path_search) [!_LIBC]: Don't compile these in
71602         gnulib; the tmpdir module covers that.
71603         * lib/tempname.h: New file.
71604
71605 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
71606
71607         * COPYING: Explain how gnulib-tool converts licence headers.
71608         Almost all wording by Eric Blake.
71609
71610 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
71611
71612         * lib/mbchar.h (is_basic_table): Make read-only.
71613         * lib/mbchar.c (is_basic_table): Likewise.
71614         Reported by John Darrington.
71615
71616 2006-10-25  Bruno Haible  <bruno@clisp.org>
71617
71618         * lib/progname.h (set_program_name): Undefine before defining.
71619
71620 2006-10-25  Bruno Haible  <bruno@clisp.org>
71621
71622         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
71623         false for non-gcc C++ compilers.
71624         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71625
71626 2006-10-24  Bruno Haible  <bruno@clisp.org>
71627
71628         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
71629         iconv implementations like Irix iconv.
71630
71631 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71632
71633         * modules/vararrays: New file.
71634         * m4/vararrays.m4: New file, taken from diffutils.
71635         * MODULES.html.sh: New module vararrays.
71636
71637 2006-10-24  Karl Berry  <karl@gnu.org>
71638
71639         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
71640         Don't call GNU Unix.
71641
71642 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71643
71644         * users.txt: Add Libtool.
71645
71646         Sync from Libtool:
71647
71648         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71649
71650         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
71651         to gnulib's policy of including config.h unconditionally.
71652
71653 2006-10-24  Bruno Haible  <bruno@clisp.org>
71654
71655         * modules/wcwidth (Files): Add m4/wint_t.m4.
71656         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
71657         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
71658
71659 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71660
71661         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
71662         to pacify GCC with some -W flags enabled.  Problem reported by
71663         Bruno Haible.
71664
71665 2006-10-24  Jim Meyering  <jim@meyering.net>
71666
71667         * MODULES.html.sh: Remove uinttostr.  It's not a module.
71668         Reported by Karl Berry.
71669
71670 2006-10-23  Bruno Haible  <bruno@clisp.org>
71671
71672         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
71673
71674 2006-10-24  Bruno Haible  <bruno@clisp.org>
71675
71676         * lib/gl_list.h: Use C comment style, not C++ comment style.
71677
71678 2006-10-23  Eric Blake  <ebb9@byu.net>
71679
71680         * lib/getaddrinfo.c (includes): Add missing include.
71681
71682 2006-10-23  Bruno Haible  <bruno@clisp.org>
71683             Paul Eggert  <eggert@cs.ucla.edu>
71684
71685         Ability to rename obstack_free.
71686         * lib/obstack.h (__obstack_free): New macro. Declare instead of
71687         obstack_free.
71688         (obstack_free): Invoke the __obstack_free macro.
71689         * lib/obstack.c (obstack_free): Use __obstack_free macro.
71690
71691 2006-10-23  Bruno Haible  <bruno@clisp.org>
71692             Paul Eggert  <eggert@cs.ucla.edu>
71693
71694         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
71695         __argc, __argv from the declaration. (They are defined as macros on
71696         mingw.)
71697
71698 2006-10-22  Bruno Haible  <bruno@clisp.org>
71699
71700         * doc/gnulib-intro.texi: New file.
71701         * doc/gnulib.texi: Include it.
71702
71703 2006-10-21  Bruno Haible  <bruno@clisp.org>
71704
71705         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
71706         "Introduction", "Miscellanous Notes", "Particular Modules".
71707
71708 2006-10-21  Bruno Haible  <bruno@clisp.org>
71709
71710         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71711         Change mostlyclean-local rule to avoid sh syntax error from bash
71712         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
71713
71714 2006-10-23  Jim Meyering  <jim@meyering.net>
71715
71716         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
71717         in place of snprintf.
71718
71719         * modules/inttostr (Files): Add lib/uinttostr.c.
71720         * lib/uinttostr.c (inttostr): New file/function.
71721         * lib/inttostr.h (uinttostr): Declare.
71722         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
71723         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71724         Add uinttostr.
71725         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
71726
71727 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71728
71729         * lib/canonicalize.c (ELOOP): Define if not already defined.
71730         Problem reported by Bruno Haible in
71731         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
71732
71733 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71734
71735         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
71736         Problem reported by Perry Smith and Ville Laurikari.
71737
71738         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
71739         uses.
71740
71741 2006-10-19  Bruno Haible  <bruno@clisp.org>
71742
71743         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
71744         for mingw.
71745
71746 2006-10-19  Bruno Haible  <bruno@clisp.org>
71747
71748         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
71749         Needed for mingw.
71750
71751 2006-10-19  Bruno Haible  <bruno@clisp.org>
71752
71753         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
71754
71755 2006-10-19  Bruno Haible  <bruno@clisp.org>
71756
71757         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
71758         it.
71759
71760 2006-10-19  Bruno Haible  <bruno@clisp.org>
71761
71762         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
71763         invocation.
71764
71765 2006-10-19  Bruno Haible  <bruno@clisp.org>
71766
71767         * gnulib-tool (func_create_testdir): Don't include ftruncate and
71768         mountlist by default.
71769
71770 2006-10-16  Bruno Haible  <bruno@clisp.org>
71771
71772         * lib/c-strstr.c: Include c-strstr.h.
71773
71774 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71775
71776         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
71777         in a slash.
71778
71779 2006-10-18  Bruno Haible  <bruno@clisp.org>
71780
71781         * lib/lock.h [C++]: Wrap definitions in extern "C".
71782
71783 2006-10-18  Bruno Haible  <bruno@clisp.org>
71784
71785         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
71786         gl_LIBOBJS list.
71787
71788 2006-10-18  Bruno Haible  <bruno@clisp.org>
71789
71790         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
71791
71792 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
71793
71794         * lib/xstrtol.h: Include gettext.h.
71795         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
71796         Problem reported by Eric Blake.
71797         * modules/xstrtol (Depends-on): Add gettext-h.
71798
71799 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
71800
71801         * lib/strftime.c (advance): New macro.
71802         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
71803         incomplete type, so you can't add 0 to it.  Problem and patch
71804         reported by Eelco Dolstra for dietlibc.
71805
71806 2006-10-18  Jim Meyering  <jim@meyering.net>
71807
71808         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
71809         type for a local, and rename it: s/up/user_proc/.
71810
71811 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
71812
71813         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
71814         READ_UTMP_USER_PROCESS.
71815         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
71816
71817 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71818
71819         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
71820         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
71821
71822 2006-10-17  Eric Blake  <ebb9@byu.net>
71823
71824         * lib/sigprocmask.c (sigprocmask): Fix typo.
71825
71826         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
71827
71828         * modules/clean-temp (Makefile.am): Don't add to make output...
71829         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
71830         config.h.
71831
71832 2006-10-17  Bruno Haible  <bruno@clisp.org>
71833
71834         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
71835         differently if DEFAULT_TEXT_DOMAIN is set.
71836
71837 2006-10-16  Bruno Haible  <bruno@clisp.org>
71838
71839         * lib/clean-temp.c: Include fwriteerror.h.
71840
71841 2006-10-16  Bruno Haible  <bruno@clisp.org>
71842
71843         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
71844
71845 2006-10-16  Bruno Haible  <bruno@clisp.org>
71846
71847         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
71848         * lib/sigprocmask.h: Include <sys/types.h>.
71849         (sigset_t): Use the system's definition if present.
71850
71851 2006-10-17  Eric Blake  <ebb9@byu.net>
71852
71853         * lib/xvasprintf.c (includes): Assume config.h.
71854         * lib/xasprintf.c (includes): Likewise.
71855
71856 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
71857
71858         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
71859         at least as wide as intmax_t.
71860
71861 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
71862
71863         (Imported from Automake.)
71864         * build-aux/gnupload: Update to version 1.1 of directive file.
71865
71866 2006-10-16  Eric Blake  <ebb9@byu.net>
71867
71868         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
71869         match Automake 1.10a.
71870
71871 2006-10-14  Bruno Haible  <bruno@clisp.org>
71872
71873         * modules/sigprocmask: New file.
71874         * lib/sigprocmask.h: New file.
71875         * lib/sigprocmask.c: New file.
71876         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
71877         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
71878         request sigprocmask.o.
71879         (gl_PREREQ_SIGPROCMASK): New macro.
71880         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
71881         (Depends-on): Add sigprocmask.
71882         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
71883         gt_SIGNALBLOCKING. Test for 'raise' only once.
71884         * lib/fatal-signal.c: Include sigprocmask.h.
71885         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
71886         unblock_fatal_signals): Define always.
71887         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71888         sigprocmask.
71889
71890 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71891
71892         Sync from Automake.
71893         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
71894         which incorrectly sets the mode of an existing destination
71895         directory.  In some cases the unpatched install-sh could do the
71896         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
71897         system.  We hope this is rare in practice, but it's clearly worth
71898         fixing.  Problem reported by Alex Unleashed in
71899         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
71900         Also, don't bother to check for -m bugs unless we're using -m;
71901         suggested by Stepan Kasal.
71902
71903 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71904
71905         Sync from Automake.
71906         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
71907         `-c' flag, so they appear at the same position as in %FASTDEP%
71908         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
71909         which ignores unknown options only after the first non-option.
71910         Bug report against M4 by Nelson H. F. Beebe.
71911
71912 2006-10-13  Jim Meyering  <jim@meyering.net>
71913
71914         Fix a bug in yesterday's change.
71915         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
71916         p->fts_statp->st_dev would be used uninitialized.
71917         Ensures that we always call fts_stat on the very first entry.
71918         Miklos Szeredi reported that find -xdev stopped working.
71919
71920 2006-10-12  Bruno Haible  <bruno@clisp.org>
71921
71922         * gnulib-tool (func_get_automake_snippet): Append an automatically
71923         computed EXTRA_DIST augmentation.
71924         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
71925         * modules/alloca-opt (Makefile.am): Likewise.
71926         * modules/allocsa (Makefile.am): Likewise.
71927         * modules/arcfour (Makefile.am): Likewise.
71928         * modules/arctwo (Makefile.am): Likewise.
71929         * modules/argmatch (Makefile.am): Likewise.
71930         * modules/argz (Makefile.am): Likewise.
71931         * modules/atexit (Makefile.am): Likewise.
71932         * modules/backupfile (Makefile.am): Likewise.
71933         * modules/byteswap (Makefile.am): Likewise.
71934         * modules/c-strtod (Makefile.am): Likewise.
71935         * modules/c-strtold (Makefile.am): Likewise.
71936         * modules/calloc (Makefile.am): Likewise.
71937         * modules/canon-host (Makefile.am): Likewise.
71938         * modules/canonicalize (Makefile.am): Likewise.
71939         * modules/chdir-long (Makefile.am): Likewise.
71940         * modules/chdir-safer (Makefile.am): Likewise.
71941         * modules/check-version (Makefile.am): Likewise.
71942         * modules/chown (Makefile.am): Likewise.
71943         * modules/cloexec (Makefile.am): Likewise.
71944         * modules/close-stream (Makefile.am): Likewise.
71945         * modules/closeout (Makefile.am): Likewise.
71946         * modules/crc (Makefile.am): Likewise.
71947         * modules/csharpexec (Makefile.am): Likewise.
71948         * modules/cycle-check (Makefile.am): Likewise.
71949         * modules/des (Makefile.am): Likewise.
71950         * modules/dev-ino (Makefile.am): Likewise.
71951         * modules/dirfd (Makefile.am): Likewise.
71952         * modules/dirname (Makefile.am): Likewise.
71953         * modules/dup2 (Makefile.am): Likewise.
71954         * modules/eealloc (Makefile.am): Likewise.
71955         * modules/error (Makefile.am): Likewise.
71956         * modules/euidaccess (Makefile.am): Likewise.
71957         * modules/exclude (Makefile.am): Likewise.
71958         * modules/exitfail (Makefile.am): Likewise.
71959         * modules/fcntl-safer (Makefile.am): Likewise.
71960         * modules/fcntl (Makefile.am): Likewise.
71961         * modules/file-type (Makefile.am): Likewise.
71962         * modules/fileblocks (Makefile.am): Likewise.
71963         * modules/filemode (Makefile.am): Likewise.
71964         * modules/filenamecat (Makefile.am): Likewise.
71965         * modules/fnmatch (Makefile.am): Likewise.
71966         * modules/fopen-safer (Makefile.am): Likewise.
71967         * modules/fpending (Makefile.am): Likewise.
71968         * modules/fprintftime (Makefile.am): Likewise.
71969         * modules/free (Makefile.am): Likewise.
71970         * modules/fsusage (Makefile.am): Likewise.
71971         * modules/ftruncate (Makefile.am): Likewise.
71972         * modules/fts (Makefile.am): Likewise.
71973         * modules/gc-arcfour (Makefile.am): Likewise.
71974         * modules/gc-des (Makefile.am): Likewise.
71975         * modules/gc-hmac-md5 (Makefile.am): Likewise.
71976         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
71977         * modules/gc-md4 (Makefile.am): Likewise.
71978         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
71979         * modules/gc-sha1 (Makefile.am): Likewise.
71980         * modules/gc (Makefile.am): Likewise.
71981         * modules/getaddrinfo (Makefile.am): Likewise.
71982         * modules/getcwd (Makefile.am): Likewise.
71983         * modules/getdelim (Makefile.am): Likewise.
71984         * modules/getdomainname (Makefile.am): Likewise.
71985         * modules/getgroups (Makefile.am): Likewise.
71986         * modules/gethostname (Makefile.am): Likewise.
71987         * modules/gethrxtime (Makefile.am): Likewise.
71988         * modules/getline (Makefile.am): Likewise.
71989         * modules/getloadavg (Makefile.am): Likewise.
71990         * modules/getlogin_r (Makefile.am): Likewise.
71991         * modules/getndelim2 (Makefile.am): Likewise.
71992         * modules/getopt (Makefile.am): Likewise.
71993         * modules/getpagesize (Makefile.am): Likewise.
71994         * modules/getpass-gnu (Makefile.am): Likewise.
71995         * modules/getpass (Makefile.am): Likewise.
71996         * modules/getsubopt (Makefile.am): Likewise.
71997         * modules/gettime (Makefile.am): Likewise.
71998         * modules/gettimeofday (Makefile.am): Likewise.
71999         * modules/getugroups (Makefile.am): Likewise.
72000         * modules/getusershell (Makefile.am): Likewise.
72001         * modules/glob (Makefile.am): Likewise.
72002         * modules/group-member (Makefile.am): Likewise.
72003         * modules/hard-locale (Makefile.am): Likewise.
72004         * modules/hash (Makefile.am): Likewise.
72005         * modules/hmac-md5 (Makefile.am): Likewise.
72006         * modules/hmac-sha1 (Makefile.am): Likewise.
72007         * modules/human (Makefile.am): Likewise.
72008         * modules/idcache (Makefile.am): Likewise.
72009         * modules/imaxabs (Makefile.am): Likewise.
72010         * modules/imaxdiv (Makefile.am): Likewise.
72011         * modules/inet_ntop (Makefile.am): Likewise.
72012         * modules/inet_pton (Makefile.am): Likewise.
72013         * modules/intprops (Makefile.am): Likewise.
72014         * modules/inttostr (Makefile.am): Likewise.
72015         * modules/inttypes (Makefile.am): Likewise.
72016         * modules/isapipe (Makefile.am): Likewise.
72017         * modules/javaversion (Makefile.am): Likewise.
72018         * modules/lchmod (Makefile.am): Likewise.
72019         * modules/lchown (Makefile.am): Likewise.
72020         * modules/localcharset (Makefile.am): Likewise.
72021         * modules/long-options (Makefile.am): Likewise.
72022         * modules/lstat (Makefile.am): Likewise.
72023         * modules/malloc (Makefile.am): Likewise.
72024         * modules/mathl (Makefile.am): Likewise.
72025         * modules/mbchar (Makefile.am): Likewise.
72026         * modules/md2 (Makefile.am): Likewise.
72027         * modules/md4 (Makefile.am): Likewise.
72028         * modules/md5 (Makefile.am): Likewise.
72029         * modules/memcasecmp (Makefile.am): Likewise.
72030         * modules/memchr (Makefile.am): Likewise.
72031         * modules/memcmp (Makefile.am): Likewise.
72032         * modules/memcoll (Makefile.am): Likewise.
72033         * modules/memcpy (Makefile.am): Likewise.
72034         * modules/memmem (Makefile.am): Likewise.
72035         * modules/memmove (Makefile.am): Likewise.
72036         * modules/mempcpy (Makefile.am): Likewise.
72037         * modules/memrchr (Makefile.am): Likewise.
72038         * modules/memset (Makefile.am): Likewise.
72039         * modules/memxor (Makefile.am): Likewise.
72040         * modules/mkancesdirs (Makefile.am): Likewise.
72041         * modules/mkdir-p (Makefile.am): Likewise.
72042         * modules/mkdir (Makefile.am): Likewise.
72043         * modules/mkdtemp (Makefile.am): Likewise.
72044         * modules/mkstemp (Makefile.am): Likewise.
72045         * modules/mktime (Makefile.am): Likewise.
72046         * modules/modechange (Makefile.am): Likewise.
72047         * modules/mountlist (Makefile.am): Likewise.
72048         * modules/nanosleep (Makefile.am): Likewise.
72049         * modules/obstack (Makefile.am): Likewise.
72050         * modules/openat (Makefile.am): Likewise.
72051         * modules/pagealign_alloc (Makefile.am): Likewise.
72052         * modules/pathmax (Makefile.am): Likewise.
72053         * modules/physmem (Makefile.am): Likewise.
72054         * modules/poll (Makefile.am): Likewise.
72055         * modules/posixtm (Makefile.am): Likewise.
72056         * modules/posixver (Makefile.am): Likewise.
72057         * modules/putenv (Makefile.am): Likewise.
72058         * modules/quote (Makefile.am): Likewise.
72059         * modules/quotearg (Makefile.am): Likewise.
72060         * modules/raise (Makefile.am): Likewise.
72061         * modules/read-file (Makefile.am): Likewise.
72062         * modules/readline (Makefile.am): Likewise.
72063         * modules/readlink (Makefile.am): Likewise.
72064         * modules/readtokens (Makefile.am): Likewise.
72065         * modules/readutmp (Makefile.am): Likewise.
72066         * modules/realloc (Makefile.am): Likewise.
72067         * modules/regex (Makefile.am): Likewise.
72068         * modules/rename-dest-slash (Makefile.am): Likewise.
72069         * modules/rename (Makefile.am): Likewise.
72070         * modules/rijndael (Makefile.am): Likewise.
72071         * modules/rmdir (Makefile.am): Likewise.
72072         * modules/rpmatch (Makefile.am): Likewise.
72073         * modules/safe-read (Makefile.am): Likewise.
72074         * modules/safe-write (Makefile.am): Likewise.
72075         * modules/same-inode (Makefile.am): Likewise.
72076         * modules/same (Makefile.am): Likewise.
72077         * modules/save-cwd (Makefile.am): Likewise.
72078         * modules/savedir (Makefile.am): Likewise.
72079         * modules/setenv (Makefile.am): Likewise.
72080         * modules/settime (Makefile.am): Likewise.
72081         * modules/sha1 (Makefile.am): Likewise.
72082         * modules/sig2str (Makefile.am): Likewise.
72083         * modules/snprintf (Makefile.am): Likewise.
72084         * modules/stat-macros (Makefile.am): Likewise.
72085         * modules/stat-time (Makefile.am): Likewise.
72086         * modules/stdbool (Makefile.am): Likewise.
72087         * modules/stdint (Makefile.am): Likewise.
72088         * modules/stdlib-safer (Makefile.am): Likewise.
72089         * modules/stpcpy (Makefile.am): Likewise.
72090         * modules/stpncpy (Makefile.am): Likewise.
72091         * modules/strcase (Makefile.am): Likewise.
72092         * modules/strcasestr (Makefile.am): Likewise.
72093         * modules/strchrnul (Makefile.am): Likewise.
72094         * modules/strcspn (Makefile.am): Likewise.
72095         * modules/strdup (Makefile.am): Likewise.
72096         * modules/strerror (Makefile.am): Likewise.
72097         * modules/strftime (Makefile.am): Likewise.
72098         * modules/strndup (Makefile.am): Likewise.
72099         * modules/strnlen (Makefile.am): Likewise.
72100         * modules/strpbrk (Makefile.am): Likewise.
72101         * modules/strsep (Makefile.am): Likewise.
72102         * modules/strstr (Makefile.am): Likewise.
72103         * modules/strtod (Makefile.am): Likewise.
72104         * modules/strtoimax (Makefile.am): Likewise.
72105         * modules/strtok_r (Makefile.am): Likewise.
72106         * modules/strtol (Makefile.am): Likewise.
72107         * modules/strtoll (Makefile.am): Likewise.
72108         * modules/strtoul (Makefile.am): Likewise.
72109         * modules/strtoull (Makefile.am): Likewise.
72110         * modules/strtoumax (Makefile.am): Likewise.
72111         * modules/strverscmp (Makefile.am): Likewise.
72112         * modules/sys_socket (Makefile.am): Likewise.
72113         * modules/sys_stat (Makefile.am): Likewise.
72114         * modules/sysexits (Makefile.am): Likewise.
72115         * modules/time_r (Makefile.am): Likewise.
72116         * modules/timegm (Makefile.am): Likewise.
72117         * modules/timespec (Makefile.am): Likewise.
72118         * modules/tmpfile-safer (Makefile.am): Likewise.
72119         * modules/trim (Makefile.am): Likewise.
72120         * modules/unistd-safer (Makefile.am): Likewise.
72121         * modules/unlinkdir (Makefile.am): Likewise.
72122         * modules/unlocked-io (Makefile.am): Likewise.
72123         * modules/userspec (Makefile.am): Likewise.
72124         * modules/utime (Makefile.am): Likewise.
72125         * modules/utimecmp (Makefile.am): Likewise.
72126         * modules/utimens (Makefile.am): Likewise.
72127         * modules/vasnprintf (Makefile.am): Likewise.
72128         * modules/vasprintf (Makefile.am): Likewise.
72129         * modules/vsnprintf (Makefile.am): Likewise.
72130         * modules/xalloc (Makefile.am): Likewise.
72131         * modules/xgetcwd (Makefile.am): Likewise.
72132         * modules/xnanosleep (Makefile.am): Likewise.
72133         * modules/xreadlink (Makefile.am): Likewise.
72134         * modules/xstrtod (Makefile.am): Likewise.
72135         * modules/xstrtol (Makefile.am): Likewise.
72136         * modules/xstrtold (Makefile.am): Likewise.
72137         * modules/yesno (Makefile.am): Likewise.
72138         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
72139
72140 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72141
72142         * modules/error (Makefile.am): Distribute files through
72143         EXTRA_DIST, not lib_SOURCES.
72144
72145 2006-10-12  Eric Blake  <ebb9@byu.net>
72146
72147         * modules/error (Makefile.am): Distribute files in /lib.
72148         * modules/obstack (Makefile.am): Likewise.
72149
72150 2006-10-12  Bruno Haible  <bruno@clisp.org>
72151
72152         * modules/acl (Makefile.am): Distribute all files in lib/ through
72153         EXTRA_DIST.
72154         * modules/arcfour (Makefile.am): Likewise.
72155         * modules/arctwo (Makefile.am): Likewise.
72156         * modules/argmatch (Makefile.am): Likewise.
72157         * modules/argz (Makefile.am): Likewise.
72158         * modules/atexit (Makefile.am): Likewise.
72159         * modules/backupfile (Makefile.am): Likewise.
72160         * modules/c-strtod (Makefile.am): Likewise.
72161         * modules/c-strtold (Makefile.am): Likewise.
72162         * modules/calloc (Makefile.am): Likewise.
72163         * modules/canon-host (Makefile.am): Likewise.
72164         * modules/canonicalize (Makefile.am): Likewise.
72165         * modules/chdir-long (Makefile.am): Likewise.
72166         * modules/chdir-safer (Makefile.am): Likewise.
72167         * modules/check-version (Makefile.am): Likewise.
72168         * modules/chown (Makefile.am): Likewise.
72169         * modules/cloexec (Makefile.am): Likewise.
72170         * modules/close-stream (Makefile.am): Likewise.
72171         * modules/closeout (Makefile.am): Likewise.
72172         * modules/crc (Makefile.am): Likewise.
72173         * modules/cycle-check (Makefile.am): Likewise.
72174         * modules/des (Makefile.am): Likewise.
72175         * modules/dirfd (Makefile.am): Likewise.
72176         * modules/dirname (Makefile.am): Likewise.
72177         * modules/dup2 (Makefile.am): Likewise.
72178         * modules/euidaccess (Makefile.am): Likewise.
72179         * modules/exclude (Makefile.am): Likewise.
72180         * modules/exitfail (Makefile.am): Likewise.
72181         * modules/fcntl-safer (Makefile.am): Likewise.
72182         * modules/file-type (Makefile.am): Likewise.
72183         * modules/fileblocks (Makefile.am): Likewise.
72184         * modules/filemode (Makefile.am): Likewise.
72185         * modules/filenamecat (Makefile.am): Likewise.
72186         * modules/fnmatch (Makefile.am): Likewise.
72187         * modules/fopen-safer (Makefile.am): Likewise.
72188         * modules/fpending (Makefile.am): Likewise.
72189         * modules/fprintftime (Makefile.am): Likewise.
72190         * modules/free (Makefile.am): Likewise.
72191         * modules/fsusage (Makefile.am): Likewise.
72192         * modules/ftruncate (Makefile.am): Likewise.
72193         * modules/fts (Makefile.am): Likewise.
72194         * modules/gc (Makefile.am): Likewise.
72195         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
72196         * modules/getaddrinfo (Makefile.am): Likewise.
72197         * modules/getcwd (Makefile.am): Likewise.
72198         * modules/getdelim (Makefile.am): Likewise.
72199         * modules/getdomainname (Makefile.am): Likewise.
72200         * modules/getgroups (Makefile.am): Likewise.
72201         * modules/gethostname (Makefile.am): Likewise.
72202         * modules/gethrxtime (Makefile.am): Likewise.
72203         * modules/getline (Makefile.am): Likewise.
72204         * modules/getloadavg (Makefile.am): Likewise.
72205         * modules/getlogin_r (Makefile.am): Likewise.
72206         * modules/getopt (Makefile.am): Likewise.
72207         * modules/getpass (Makefile.am): Likewise.
72208         * modules/getpass-gnu (Makefile.am): Likewise.
72209         * modules/getsubopt (Makefile.am): Likewise.
72210         * modules/gettime (Makefile.am): Likewise.
72211         * modules/gettimeofday (Makefile.am): Likewise.
72212         * modules/getugroups (Makefile.am): Likewise.
72213         * modules/getusershell (Makefile.am): Likewise.
72214         * modules/glob (Makefile.am): Likewise.
72215         * modules/group-member (Makefile.am): Likewise.
72216         * modules/hard-locale (Makefile.am): Likewise.
72217         * modules/hash (Makefile.am): Likewise.
72218         * modules/hmac-md5 (Makefile.am): Likewise.
72219         * modules/hmac-sha1 (Makefile.am): Likewise.
72220         * modules/human (Makefile.am): Likewise.
72221         * modules/idcache (Makefile.am): Likewise.
72222         * modules/imaxabs (Makefile.am): Likewise.
72223         * modules/imaxdiv (Makefile.am): Likewise.
72224         * modules/inet_ntop (Makefile.am): Likewise.
72225         * modules/inet_pton (Makefile.am): Likewise.
72226         * modules/inttostr (Makefile.am): Likewise.
72227         * modules/isapipe (Makefile.am): Likewise.
72228         * modules/lchown (Makefile.am): Likewise.
72229         * modules/long-options (Makefile.am): Likewise.
72230         * modules/lstat (Makefile.am): Likewise.
72231         * modules/malloc (Makefile.am): Likewise.
72232         * modules/mathl (Makefile.am): Likewise.
72233         * modules/mbchar (Makefile.am): Likewise.
72234         * modules/md2 (Makefile.am): Likewise.
72235         * modules/md4 (Makefile.am): Likewise.
72236         * modules/md5 (Makefile.am): Likewise.
72237         * modules/memcasecmp (Makefile.am): Likewise.
72238         * modules/memchr (Makefile.am): Likewise.
72239         * modules/memcmp (Makefile.am): Likewise.
72240         * modules/memcoll (Makefile.am): Likewise.
72241         * modules/memcpy (Makefile.am): Likewise.
72242         * modules/memmem (Makefile.am): Likewise.
72243         * modules/memmove (Makefile.am): Likewise.
72244         * modules/mempcpy (Makefile.am): Likewise.
72245         * modules/memrchr (Makefile.am): Likewise.
72246         * modules/memset (Makefile.am): Likewise.
72247         * modules/memxor (Makefile.am): Likewise.
72248         * modules/mkancesdirs (Makefile.am): Likewise.
72249         * modules/mkdir (Makefile.am): Likewise.
72250         * modules/mkdir-p (Makefile.am): Likewise.
72251         * modules/mkdtemp (Makefile.am): Likewise.
72252         * modules/mkstemp (Makefile.am): Likewise.
72253         * modules/mktime (Makefile.am): Likewise.
72254         * modules/modechange (Makefile.am): Likewise.
72255         * modules/mountlist (Makefile.am): Likewise.
72256         * modules/nanosleep (Makefile.am): Likewise.
72257         * modules/openat (Makefile.am): Likewise.
72258         * modules/pagealign_alloc (Makefile.am): Likewise.
72259         * modules/physmem (Makefile.am): Likewise.
72260         * modules/poll (Makefile.am): Likewise.
72261         * modules/posixtm (Makefile.am): Likewise.
72262         * modules/posixver (Makefile.am): Likewise.
72263         * modules/putenv (Makefile.am): Likewise.
72264         * modules/quote (Makefile.am): Likewise.
72265         * modules/quotearg (Makefile.am): Likewise.
72266         * modules/raise (Makefile.am): Likewise.
72267         * modules/read-file (Makefile.am): Likewise.
72268         * modules/readline (Makefile.am): Likewise.
72269         * modules/readlink (Makefile.am): Likewise.
72270         * modules/readtokens (Makefile.am): Likewise.
72271         * modules/readutmp (Makefile.am): Likewise.
72272         * modules/realloc (Makefile.am): Likewise.
72273         * modules/regex (Makefile.am): Likewise.
72274         * modules/rename (Makefile.am): Likewise.
72275         * modules/rename-dest-slash (Makefile.am): Likewise.
72276         * modules/rijndael (Makefile.am): Likewise.
72277         * modules/rmdir (Makefile.am): Likewise.
72278         * modules/rpmatch (Makefile.am): Likewise.
72279         * modules/safe-read (Makefile.am): Likewise.
72280         * modules/safe-write (Makefile.am): Likewise.
72281         * modules/same (Makefile.am): Likewise.
72282         * modules/save-cwd (Makefile.am): Likewise.
72283         * modules/savedir (Makefile.am): Likewise.
72284         * modules/setenv (Makefile.am): Likewise.
72285         * modules/settime (Makefile.am): Likewise.
72286         * modules/sha1 (Makefile.am): Likewise.
72287         * modules/sig2str (Makefile.am): Likewise.
72288         * modules/snprintf (Makefile.am): Likewise.
72289         * modules/stdlib-safer (Makefile.am): Likewise.
72290         * modules/stpcpy (Makefile.am): Likewise.
72291         * modules/stpncpy (Makefile.am): Likewise.
72292         * modules/strcase (Makefile.am): Likewise.
72293         * modules/strcasestr (Makefile.am): Likewise.
72294         * modules/strchrnul (Makefile.am): Likewise.
72295         * modules/strcspn (Makefile.am): Likewise.
72296         * modules/strdup (Makefile.am): Likewise.
72297         * modules/strerror (Makefile.am): Likewise.
72298         * modules/strftime (Makefile.am): Likewise.
72299         * modules/strndup (Makefile.am): Likewise.
72300         * modules/strnlen (Makefile.am): Likewise.
72301         * modules/strpbrk (Makefile.am): Likewise.
72302         * modules/strsep (Makefile.am): Likewise.
72303         * modules/strstr (Makefile.am): Likewise.
72304         * modules/strtod (Makefile.am): Likewise.
72305         * modules/strtoimax (Makefile.am): Likewise.
72306         * modules/strtok_r (Makefile.am): Likewise.
72307         * modules/strtol (Makefile.am): Likewise.
72308         * modules/strtoll (Makefile.am): Likewise.
72309         * modules/strtoul (Makefile.am): Likewise.
72310         * modules/strtoull (Makefile.am): Likewise.
72311         * modules/strtoumax (Makefile.am): Likewise.
72312         * modules/strverscmp (Makefile.am): Likewise.
72313         * modules/time_r (Makefile.am): Likewise.
72314         * modules/timegm (Makefile.am): Likewise.
72315         * modules/tmpfile-safer (Makefile.am): Likewise.
72316         * modules/unistd-safer (Makefile.am): Likewise.
72317         * modules/unlinkdir (Makefile.am): Likewise.
72318         * modules/userspec (Makefile.am): Likewise.
72319         * modules/utime (Makefile.am): Likewise.
72320         * modules/utimecmp (Makefile.am): Likewise.
72321         * modules/utimens (Makefile.am): Likewise.
72322         * modules/vasnprintf (Makefile.am): Likewise.
72323         * modules/vasprintf (Makefile.am): Likewise.
72324         * modules/vsnprintf (Makefile.am): Likewise.
72325         * modules/xalloc (Makefile.am): Likewise.
72326         * modules/xgetcwd (Makefile.am): Likewise.
72327         * modules/xnanosleep (Makefile.am): Likewise.
72328         * modules/xreadlink (Makefile.am): Likewise.
72329         * modules/xstrtod (Makefile.am): Likewise.
72330         * modules/xstrtol (Makefile.am): Likewise.
72331         * modules/xstrtold (Makefile.am): Likewise.
72332         * modules/yesno (Makefile.am): Likewise.
72333
72334 2006-10-12  Jim Meyering  <jim@meyering.net>
72335
72336         * m4/getloadavg.m4: Revert the change below.
72337
72338         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
72339         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
72340         fail with a symlink, which is what coreutils' ./bootstrap now
72341         creates by default.
72342
72343 2006-10-12  Bruno Haible  <bruno@clisp.org>
72344
72345         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
72346         mingw.
72347         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
72348         MSVC and mingw explicitly.
72349
72350 2006-10-11  Simon Josefsson  <jas@extundo.com>
72351             Bruno Haible  <bruno@clisp.org>
72352
72353         Add support for multiple gnulib-tool invocations in the scope of a
72354         single configure.ac file.
72355         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
72356         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
72357         with the same contents as the _LIBADD variable.
72358         (func_emit_initmacro_start, func_emit_initmacro_end,
72359         func_emit_initmacro_done): New functions.
72360         (func_import, func_create_testdir): Invoke them. Allow the identifiers
72361         gl_LIBOBJS and gl_LTLIBOBJS.
72362
72363 2006-10-11  Bruno Haible  <bruno@clisp.org>
72364
72365         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
72366         (func_create_testdir): Don't create po/Makefile.am, don't invoke
72367         autoreconf. Instead, invoke autopoint explicitly but move back the
72368         *.m4 files from gnulib.
72369
72370 2006-10-11  Bruno Haible  <bruno@clisp.org>
72371
72372         * gnulib-tool (func_usage): Make module names after --create-testdir
72373         optional.
72374         (func_create_testdir): If no module was specified, use nearly all
72375         modules.
72376
72377 2006-10-12  Jim Meyering  <jim@meyering.net>
72378
72379         Big performance improvement for fts-based tools that use FTS_NOSTAT.
72380         Avoid spurious inode-mismatch problems on non-POSIX file systems.
72381         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
72382         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
72383         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
72384         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
72385         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
72386         (fts_set_stat_required): New function.
72387         (fts_open): Defer the calls to fts_stat, if possible or requested.
72388         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
72389         into fts_stat itself.
72390         (fts_read): Perform any required (deferred) fts_stat call.
72391         (fts_build): Likewise, for the directory we're about to open and read.
72392         In the readdir loop, carefully decide whether each entry will require
72393         an eventual call to fts_stat, using dirent.d_type info if available.
72394         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
72395         a command line argument into this function.  Update all callers.
72396         Map a return value of FTS_DOT to FTS_D for a command line argument.
72397         * modules/fts (Depends-on): Add d-type.  Alphabetize.
72398         Thanks to Miklos Szeredi for his tenacity and for the initial
72399         bug report about "find" failing on a FUSE-based file system.
72400
72401         * lib/fts.c (fts_open): Use consistent indentation.
72402
72403 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72404
72405         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
72406         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
72407         reported by Jim Meyering.  All uses of cache variables renamed
72408         to match Autoconf's.
72409         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
72410         the other one.
72411
72412         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
72413         Fix misspelling in diagnostic.
72414
72415 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72416
72417         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
72418         defined.  Problem reported by Matthew Woehlke.
72419
72420         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
72421         Add support for Tandem NonStop R series.
72422         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
72423         Use new macro.
72424
72425         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
72426         (has_trailing_slash): Omit size arg; all callers changed.
72427         Omit 'inline', since it doesn't help performance and we'd
72428         need to configure it.
72429         Don't count //, ///, etc. as having a trailing slash.
72430         As a side effect, this removes a C99ism reported by Matthew Woehlke.
72431         (rpl_rename_dest_slash): On failure, use rename's errno rather
72432         than (in some cases) an incorrect or junk errno.
72433         Simplify code by removing need to compute length; this does
72434         cause it to make two passes instead of one over the file name,
72435         but it's worth it.
72436
72437         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
72438         change, since Autoconf's version may no longer be appropriate now
72439         that we are using CVS Autoconf's version.  Add support for Tandem.
72440
72441 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72442             Bruno Haible  <bruno@clisp.org>
72443
72444         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
72445         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
72446         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
72447         gl_AC_TYPE_LONG_LONG.
72448
72449         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
72450         instead of HAVE_LONG_LONG.
72451         * lib/printf-args.c (printf_fetchargs): Likewise.
72452         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
72453         * lib/vasnprintf.c (VASNPRINTF): Likewise.
72454         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
72455         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
72456         gl_AC_TYPE_LONG_LONG.
72457
72458 2006-10-11  Bruno Haible  <bruno@clisp.org>
72459
72460         * m4/longlong.m4: Add comments.
72461         * m4/ulonglong.m4: Likewise.
72462
72463 2006-10-10  Bruno Haible  <bruno@clisp.org>
72464
72465         Make it possible to #define stpcpy, strdup to aliases.
72466         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
72467         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
72468
72469 2006-10-10  Bruno Haible  <bruno@clisp.org>
72470
72471         Make it possible to #define gcd to an alias.
72472         * lib/gcd.c: Include config.h.
72473
72474 2006-10-10  Bruno Haible  <bruno@clisp.org>
72475
72476         Make it possible to #define c_isascii to an alias.
72477         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
72478         defined. Undefine the macros before defining them, to avoid gcc
72479         warnings.
72480         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
72481         define NO_C_CTYPE_MACROS early.
72482
72483 2006-10-10  Bruno Haible  <bruno@clisp.org>
72484
72485         Make it possible to #define set_program_name to an alias.
72486         * lib/progname.c: Don't undefine set_program_name; instead, undefine
72487         ENABLE_RELOCATABLE early.
72488
72489 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72490
72491         Port to Tandem NSK OSS, which has 64-bit signed int but at most
72492         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
72493         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
72494         More generally, don't assume that 64-bit signed int is available
72495         if unsigned int is, and vice versa.
72496         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
72497         unsigned symbols, not on their signed counterparts.
72498         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
72499         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
72500         (UINT64_C, UINTMAX_C):
72501         Likewise.
72502         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
72503         unsigned counterparts.
72504         (Have_long_long, Unsigned): New macros.
72505         (Int): Renamed from INT.
72506         (strtoimax): Use the new macros.
72507         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
72508         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
72509         * modules/inttypes (inttypes.h): Substitute
72510         HAVE_UNSIGNED_LONG_LONG_INT.
72511         * modules/stdint (stdint.h): Likewise.
72512         (Files): Add m4/ulonglong.m4.
72513
72514 2006-10-10  Bruno Haible  <bruno@clisp.org>
72515
72516         Fix a gcc -Wshadow warning.
72517         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
72518         to 'bucket'.
72519         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
72520         gl_linked_indexof_from_to): Likewise.
72521         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
72522         Likewise.
72523         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
72524         Likewise.
72525         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
72526         Reported by Eric Blake.
72527
72528 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
72529
72530         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
72531         for NetBSD.  Problem reported by Bruno Haible.
72532
72533 2006-10-09  Jim Meyering  <jim@meyering.net>
72534
72535         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
72536         Patch from Bruno Haible.
72537
72538 2006-10-09  Jim Meyering  <jim@meyering.net>
72539
72540         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
72541         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
72542         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
72543
72544 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72545
72546         Don't include <config.h> twice; this doesn't work in some cases,
72547         e.g., when config.h has "#define intmax_t long long int" and
72548         we include <config.h>, <inttypes.h>, <config.h> in that order.
72549         Problem reported by Matthew Woehlke in:
72550         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
72551         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
72552         * lib/fts-cycle.c: Don't include config.h.
72553         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
72554         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
72555         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
72556         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
72557         inttypes.h.
72558         * lib/xstrtoumax.c: Likewise.
72559         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
72560         __strtol and the like, so that this module is more like its siblings.
72561         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
72562         Remove; no longer needed now that we assume gnulib inttypes.h.
72563
72564 2006-10-08  Bruno Haible  <bruno@clisp.org>
72565
72566         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
72567         option.
72568
72569 2006-10-07  Jim Meyering  <jim@meyering.net>
72570
72571         * modules/inttypes (inttypes.h): Revert what seems to have been
72572         an inadvertent part of today's change: use "|", not "/" in the
72573         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
72574
72575 2006-10-07  Bruno Haible  <bruno@clisp.org>
72576
72577         * modules/sublist: New file.
72578
72579 2006-10-07  Bruno Haible  <bruno@clisp.org>
72580
72581         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
72582         * modules/argz (argz.h): Likewise.
72583         * modules/arpa_inet (arpa/inet.h): Likewise.
72584         * modules/byteswap (byteswap.h): Likewise.
72585         * modules/configmake (configmake.h): Likewise.
72586         * modules/fcntl (fcntl.h): Likewise.
72587         * modules/fnmatch (fnmatch.h): Likewise.
72588         * modules/getopt (getopt.h): Likewise.
72589         * modules/glob (glob.h): Likewise.
72590         * modules/inttypes (inttypes.h): Likewise.
72591         * modules/netinet_in (netinet/in.h): Likewise.
72592         * modules/poll (poll.h): Likewise.
72593         * modules/stdbool (stdbool.h): Likewise.
72594         * modules/stdint (stdint.h): Likewise.
72595         * modules/sys_select (sys/select.h): Likewise.
72596         * modules/sys_socket (sys/socket.h): Likewise.
72597         * modules/sys_stat (sys/stat.h): Likewise.
72598         * modules/sysexits (sysexits.h): Likewise.
72599         * modules/unistd (unistd.h): Likewise.
72600         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72601         Add a "DO NOT EDIT" comment to the generated file.
72602         (func_import): Likewise for gnulib-comp.m4.
72603
72604 2006-10-07  Bruno Haible  <bruno@clisp.org>
72605
72606         * lib/gl_sublist.h: New file.
72607         * lib/gl_sublist.c: New file.
72608
72609 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72610
72611         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
72612         name (relative to the original working directory) and the file
72613         name component (relative to the temporary working directory).  All
72614         callers changed.
72615         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
72616         * lib/mkdir-p.c (make_dir_parents): Likewise.
72617         * lib/mkdir-p.h (make_dir_parents): Likewise.
72618
72619 2006-10-06  Eric Blake  <ebb9@byu.net>
72620
72621         Define several macros for use by the clean-temp module.
72622         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
72623         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
72624         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
72625
72626         * lib/clean-temp.h (close_stream_temp): New declaration.
72627         * lib/clean-temp.c (includes): Pull in headers according to what
72628         other modules are in use.
72629         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
72630
72631 2006-10-06  Bruno Haible  <bruno@clisp.org>
72632
72633         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
72634         instead of fopen, fwriteerror.
72635
72636 2006-10-06  Bruno Haible  <bruno@clisp.org>
72637
72638         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
72639         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
72640         int.
72641         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
72642         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
72643         Return an error indicator.
72644         Suggested by Eric Blake.
72645
72646 2006-10-06  Bruno Haible  <bruno@clisp.org>
72647
72648         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
72649         Reported by Eric Blake.
72650
72651 2006-10-06  Bruno Haible  <bruno@clisp.org>
72652
72653         * modules/closeout (Description): Mention stderr too.
72654
72655 2006-10-06  Bruno Haible  <bruno@clisp.org>
72656         and Paul Eggert  <eggert@cs.ucla.edu>
72657
72658         * lib/closeout.c (close_stdout): Also close stderr.
72659         * lib/closeout.h: Update comment.
72660
72661 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72662
72663         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
72664         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
72665         * lib/dirchownmod.c: Include lchown.h.
72666         * lib/lchown.c: Don't include files that lchown.h now includes.
72667         Don't declare chown, since lchown.h now does that.
72668         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
72669         (lchown): Define to rpl_chown if lchown is declared but
72670         does not exist.  Declare using a prototype if lchown is not
72671         declared.  Add a copyright notice.
72672         * lib/mkstemp.h: Include <unistd.h>.
72673         * lib/openat.c: Include lchown.h.
72674
72675         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
72676         we now test for that separately.
72677         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
72678         rather than O_NOFOLLOW, when testing whether it's possible to
72679         avoid a race condition reliably.
72680         * lib/savewd.c (savewd_chdir): Likewise.
72681
72682         Remove macros that are no longer needed now that stdint.h is
72683         reliable.
72684         * lib/fsusage.c (UINTMAX_MAX): Remove.
72685         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
72686         * lib/utimecmp.c (SIZE_MAX): Remove.
72687
72688         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
72689
72690         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
72691         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
72692         O_NOATIME works.
72693
72694 2006-10-05  Bruno Haible  <bruno@clisp.org>
72695
72696         * lib/gl_list.h (gl_sortedlist_search_from_to,
72697         gl_sortedlist_indexof_from_to): New declarations.
72698         (gl_list_implementation): New fields sortedlist_search_from_to,
72699         sortedlist_indexof_from_to.
72700         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
72701         inline functions.
72702         * lib/gl_list.c (gl_sortedlist_search_from_to,
72703         gl_sortedlist_indexof_from_to): New functions.
72704         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
72705         function.
72706         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
72707         (gl_array_sortedlist_search_from_to): New function.
72708         (gl_array_list_implementation): Update.
72709         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
72710         function.
72711         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
72712         (gl_carray_sortedlist_search_from_to): New function.
72713         (gl_carray_list_implementation): Update.
72714         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
72715         gl_linked_sortedlist_indexof_from_to): New functions.
72716         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72717         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72718         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
72719         gl_tree_sortedlist_indexof_from_to): New functions.
72720         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72721         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72722         Update.
72723         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72724         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
72725         Update.
72726
72727 2006-10-05  Bruno Haible  <bruno@clisp.org>
72728
72729         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
72730         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
72731         (struct gl_list_implementation): Add fields search_from_to,
72732         indexof_from_to. Remove fields search, indexof.
72733         (gl_list_search): Use the search_from_to method.
72734         (gl_list_search_from, gl_list_search_from_to): New functions.
72735         (gl_list_indexof): Use the indexof_from_to method.
72736         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72737         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
72738         (gl_list_search_from, gl_list_search_from_to): New functions.
72739         (gl_list_indexof): Use the indexof_from_to method.
72740         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72741         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
72742         gl_array_indexof. Add start_index, end_index arguments.
72743         (gl_array_search_from_to): Renamed from gl_array_search. Add
72744         start_index, end_index arguments.
72745         (gl_array_remove, gl_array_list_implementation): Update.
72746         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
72747         gl_carray_indexof. Add start_index, end_index arguments.
72748         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
72749         start_index, end_index arguments.
72750         (gl_carray_remove, gl_carray_list_implementation): Update.
72751         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
72752         gl_linked_search. Add start_index, end_index arguments.
72753         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
72754         start_index, end_index arguments.
72755         (gl_linked_remove): Update.
72756         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72757         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72758         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
72759         field to 'size_t'.
72760         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
72761         gl_tree_search. Add start_index, end_index arguments.
72762         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72763         start_index, end_index arguments.
72764         (gl_tree_remove): Update.
72765         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72766         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72767         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
72768         function.
72769         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
72770         gl_tree_search. Add start_index, end_index arguments.
72771         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72772         start_index, end_index arguments.
72773         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72774         Update.
72775         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
72776
72777 2006-10-05  Bruno Haible  <bruno@clisp.org>
72778
72779         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
72780
72781         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
72782         fwriteerror_temp): New declarations.
72783         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
72784         (descriptors): New variable.
72785         (cleanup): First, close the descriptors.
72786         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
72787         fclose_temp, fwriteerror_temp): New functions.
72788
72789 2006-10-04  Jim Meyering  <jim@meyering.net>
72790
72791         * lib/fts.c (fts_open): Tiny comment change.
72792
72793 2006-10-04  Bruno Haible  <bruno@clisp.org>
72794
72795         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
72796         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
72797         gl_LOCK_BODY.
72798         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
72799         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
72800         gl_LOCK_EARLY_BODY.
72801         (gl_LOCK): Require gl_LOCK_BODY.
72802
72803 2006-10-04  Bruno Haible  <bruno@clisp.org>
72804
72805         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
72806         (gl_oset_search_atleast): New declaration.
72807         (struct gl_oset_implementation): Add field 'search_atleast'.
72808         (gl_oset_search_atleast): New inline function.
72809         * lib/gl_oset.c (gl_oset_search_atleast): New function.
72810         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
72811         (gl_array_oset_implementation): Update.
72812         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
72813         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
72814         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
72815
72816 2006-10-04  Bruno Haible  <bruno@clisp.org>
72817
72818         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
72819
72820 2006-10-03  Bruno Haible  <bruno@clisp.org>
72821
72822         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
72823         from gl_avltreehash_list_implementation.
72824
72825 2006-10-03  Bruno Haible  <bruno@clisp.org>
72826
72827         * lib/gl_oset.c (gl_oset_add): Fix return type.
72828
72829 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
72830
72831         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
72832
72833 2006-10-02  Eric Blake  <ebb9@byu.net>
72834
72835         * modules/strnlen (Depends-on): Add extensions.
72836
72837 2006-10-02  Eric Blake  <ebb9@byu.net>
72838
72839         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
72840         definition in 2.60+.
72841
72842 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
72843
72844         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
72845         checks.
72846
72847 2006-10-02  Bruno Haible  <bruno@clisp.org>
72848
72849         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
72850         to the AUTOMAKE_OPTIONS.
72851         Reported by Jim Meyering.
72852
72853 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
72854
72855         Work around bug in Solaris 10 /proc file system:
72856         /proc/self/fd/NNN/.. isn't the parent directory of
72857         the directory whose file descriptor is NNN.  This needs to
72858         be worked around at run time, not compile time, since a
72859         program might be built on Solaris 8, where things work, and
72860         run on Solaris 10.
72861         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
72862         to use the following interface instead:
72863         (OPENAT_BUFFER_SIZE): New macro.
72864         (openat_proc_name): New function.
72865         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
72866         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
72867         Likewise.
72868         * lib/openat-proc.c: New file.
72869         * modules/openat (Files): Add lib/openat-proc.c.
72870         (Depends-on): Add same-inode, stdbool.
72871         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
72872
72873 2006-09-29  Bruno Haible  <bruno@clisp.org>
72874
72875         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
72876         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
72877         argument. Set stdout_closed before testing for ferror, not after.
72878         (fwriteerror, fwriteerror_no_ebadf): New functions.
72879
72880 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72881
72882         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
72883
72884 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
72885
72886         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
72887         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
72888
72889 2006-09-28  Jim Meyering  <jim@meyering.net>
72890
72891         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
72892         Include <unistd.h>.
72893
72894 2006-09-28  Bruno Haible  <bruno@clisp.org>
72895
72896         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
72897         * modules/linkedhash-list (Depends-on): Likewise.
72898         * modules/rbtreehash-list (Depends-on): Likewise.
72899
72900 2006-09-28  Bruno Haible  <bruno@clisp.org>
72901
72902         * lib/strndup.h: Simplify the redefinition of strndup.
72903         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
72904         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
72905
72906 2006-09-28  Bruno Haible  <bruno@clisp.org>
72907
72908         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
72909         * lib/gl_linkedhash_list.c: Likewise.
72910         * lib/gl_rbtreehash_list.c: Likewise.
72911
72912 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
72913
72914         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
72915         getaddrinfo.
72916
72917         * lib/__fpending.h: Don't include <stdio_ext.h> unless
72918         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
72919         it causes <stdio_ext.h> to cause a compile-time error.
72920         Problem reported by Nelson H. F. Beebe.
72921         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
72922         of HAVE_DECL___PENDING.
72923
72924         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
72925         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
72926         declaration.
72927
72928 2006-09-27  Jim Meyering  <jim@meyering.net>
72929
72930         This file could end up with a definition for a function
72931         named __strndup, rather than rpl_strndup on a system with
72932         incomplete weak_alias support.
72933         * lib/strndup.c (strndup): Rename from __strndup.
72934         Remove #defines that used to map __strndup to strndup.
72935         Don't use K&R prototypes.
72936         Remove LIBC-related code, since this file is not sync'd with glibc.
72937         * lib/strndup.h: Revamp, accordingly.
72938         * m4/strndup.m4: Modernize.
72939
72940 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
72941
72942         * modules/savewd (Depends-on): Add 'raise'.
72943         * lib/savewd.c: Include <signal.h>, for 'raise'.
72944
72945 2006-09-26  Jim Meyering  <jim@meyering.net>
72946
72947         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
72948         when we detect Darwin 8.7.0's acl_get_file bug.
72949         Rearrange to perform the new (below) run-test while $LIBS
72950         contains any acl-related library.  Set USE_ACL at the end.
72951         (gl_ACL_GET_FILE): New function.
72952
72953 2006-09-26  Eric Blake  <ebb9@byu.net>
72954
72955         * lib/verror.c: Include <config.h> unconditionally.
72956
72957 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
72958
72959         * modules/clock-time (Maintainer): Add self.
72960         * modules/getlogin_r (Depends-on): Add extensions.
72961
72962 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72963
72964         * modules/clock-time: New module.
72965         * modules/nanosleep (Depends-on): Add clock-time.
72966         * modules/gethrxtime (Depends-on): Likewise.
72967         * modules/gettime (Depends-on): Likewise.
72968         * modules/settime (Depends-on): Likewise.
72969
72970         * modules/fts-lgpl: Depend on openat.
72971         * modules/mkancesdirs: Depend on savewd.
72972         * modules/mkdir-p: Likewise.
72973
72974 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72975
72976         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
72977
72978         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
72979         `gl_have_arbitrary_file_name_length_limit' to
72980         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
72981         actually works between configure runs.
72982
72983 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72984             Bruno Haible  <bruno@clisp.org>
72985
72986         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
72987
72988 2006-09-25  Jim Meyering  <jim@meyering.net>
72989
72990         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
72991         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
72992
72993 2006-09-25  Eric Blake  <ebb9@byu.net>
72994
72995         * gnulib-tool (func_import, func_create_testdir): Fix typos in
72996         exec's in 2006-09-18 patch when shuffling fds.
72997
72998 2006-09-25  Bruno Haible  <bruno@clisp.org>
72999
73000         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
73001         Reported by Jim Meyering.
73002
73003 2006-09-24  Jim Meyering  <jim@meyering.net>
73004
73005         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
73006         compare a pointer against a literal "0".  That caused failures with
73007         at least HP-UX's hpcc.
73008
73009 2006-09-22  Simon Josefsson  <jas@extundo.com>
73010
73011         * modules/gc-sha1:
73012         * modules/gc-md4:
73013         * modules/gc-hmac-sha1:
73014         * modules/gc-hmac-md5:
73015         * modules/gc-des:
73016         * modules/gc-arcfour: Distribute more files.
73017
73018 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73019
73020         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
73021         (gl_linked_iterator_from_to): Initialize struct completely.
73022         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
73023         (gl_tree_iterator_from_to): Likewise
73024         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
73025         * lib/gl_array_list.c [lint] (gl_array_iterator)
73026         (gl_array_iterator_from_to): Likewise.
73027         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
73028         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
73029         (gl_carray_iterator_from_to): Likewise.
73030
73031         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
73032         * lib/md4.c (md4_process_block): Remove unused variable.
73033         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
73034         parentheses for clarity.
73035
73036 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73037
73038         * modules/bison-i18n (Depends-on): Add gettext.
73039
73040 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73041
73042         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
73043         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
73044         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
73045         also add missing comma that caused broken test.
73046         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
73047         stdlib.h, for `abort'.
73048         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
73049         variables.
73050         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
73051         include unistd.h if present, for `rmdir'.
73052         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
73053         variables.
73054         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
73055         in the process include standard headers for prototypes.
73056         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
73057         gets declared on GNU/Linux.
73058         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
73059         unistd.h, for `rmdir'.
73060         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
73061
73062         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
73063         always true.
73064         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
73065
73066         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
73067
73068 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73069
73070         * gnulib-tool (func_version): Create output all at once.  This
73071         may help avoid triggering unnecessary SIGPIPEs, and at any
73072         rate it doesn't hurt.
73073
73074 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73075             Bruno Haible  <bruno@clisp.org>
73076
73077         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
73078         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73079         * m4/signed.m4 (bh_C_SIGNED): Likewise.
73080
73081         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
73082         (gl_FUNC_VASPRINTF): Invoke it.
73083
73084 2006-09-22  Bruno Haible  <bruno@clisp.org>
73085
73086         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
73087         getloadavg.c as first argument.
73088
73089 2006-09-22  Bruno Haible  <bruno@clisp.org>
73090
73091         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
73092         at the beginning of the gl_INIT macro.
73093         * modules/getloadavg (configure.ac): Pass $gl_source_base to
73094         gl_GETLOADAVG.
73095
73096 2006-09-22  Bruno Haible  <bruno@clisp.org>
73097
73098         * gnulib-tool (func_create_megatestdir): Don't include the config-h
73099         module.
73100         Suggested by Ralf Wildenhues.
73101
73102 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
73103
73104         Import this patch from libc:
73105
73106         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
73107
73108         * lib/regex_internal.c (re_string_reconstruct): Handle
73109         offset < pstr->valid_raw_len && pstr->offsets_needed case.
73110         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
73111         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
73112         re_string_context_at.
73113
73114         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
73115         now requires it.
73116         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
73117         gl_REGEX now does it for us.
73118         (gl_REGEX): Add test taken from
73119         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
73120
73121         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
73122         Check that large offsets work.  Modernize Autoconf usages.
73123         Prefer "yes" to mean a good thing rather than a bad.
73124         Don't put "#define mkstemp" in config.h, as this might interfere
73125         with standard system headers that "#define mkstemp mkstemp64".
73126
73127         * modules/mkstemp (Depends-on): Add extensions, so that
73128         mkstemp is visible on some platforms.
73129         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
73130         (Include): Change to "mkstemp.h" from <stdlib.h>.
73131         (Files): Add mkstemp.h.
73132
73133         * lib/mkstemp.h: New file, since some standard headers
73134         #define mkstemp.
73135         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
73136         Include "mkstemp.h".
73137         Make the _LIBC code resemble glibc original more,
73138         e.g., use K&R style.
73139         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
73140         (mkstemp): Remove, since mkstemp.h does this for us.
73141         * lib/stdlib--.h: Include mkstemp.h.
73142
73143         Import this patch from libc:
73144
73145         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73146
73147         * lib/tempname.c (__gen_tempname): Change attempts_min
73148         into a macro.  Use preprocessor to decide how to initialize
73149         attempts [Coverity CID 67].
73150
73151 2006-09-20  Bruno Haible  <bruno@clisp.org>
73152
73153         * lib/mkdtemp.c: Import from libc.
73154         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
73155                 * sysdeps/posix/tempname.c (__gen_tempname): Change
73156                 attempts_min into a macro.  Use preprocessor to decide how to
73157                 initialize attempts [Coverity CID 67].
73158         2001-11-27  Paul Eggert  <eggert@twinsun.com>
73159                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
73160                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
73161
73162 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73163
73164         * gnulib-tool (func_exit): New function, to allow to pass the
73165         exit status portably through the trap.  Use everywhere.
73166         (--help, --version): Signal a write error.
73167         (trap): catch SIGPIPE, for write errors.
73168         Exit at the end of the trap, with the correct exit status.
73169
73170 2006-09-19  Karl Berry  <karl@gnu.org>
73171
73172         * doc/gnulib.texi: note about the license texinfo files.
73173
73174 2006-09-19  Eric Blake  <ebb9@byu.net>
73175
73176         * gnulib-tool: Avoid space-tab.
73177
73178 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73179
73180         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
73181         that prevented coreutils 6.1 from building.  Problem reported
73182         by Petter Reinholdtsen.
73183
73184 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
73185
73186         * gnulib-tool (avoidlist): Fix typo that broke options like
73187         --avoid=lock that are used by coreutils bootstrap.
73188
73189 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
73190
73191         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
73192         more systematically.
73193
73194 2006-09-18  Jim Meyering  <jim@meyering.net>
73195
73196         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
73197
73198 2006-09-18  Bruno Haible  <bruno@clisp.org>
73199
73200         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
73201
73202 2006-09-18  Bruno Haible  <bruno@clisp.org>
73203
73204         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
73205         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
73206         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
73207         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
73208         * m4/gettext.m4: Require autoconf >= 2.52.
73209         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
73210         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
73211         of gl_cv_header_inttypes_h.
73212
73213 2006-09-18  Bruno Haible  <bruno@clisp.org>
73214
73215         * lib/javaversion.c: Include configmake.h.
73216
73217 2006-09-18  Bruno Haible  <bruno@clisp.org>
73218
73219         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
73220         avoid that the while loops be executed in a subshell.
73221
73222 2006-09-18  Bruno Haible  <bruno@clisp.org>
73223
73224         * MODULES.html.sh (func_module): Break long lines.
73225         Suggested by Bruce Korb <bkorb@gnu.org>.
73226
73227 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73228
73229         Speed up by a factor of 1.12.
73230         * gnulib-tool (nl): New variable.
73231         (func_import): Rewrite include directive extraction to only read each
73232         directive once.
73233
73234 2006-09-17  Bruno Haible  <bruno@clisp.org>
73235
73236         * modules/javaversion (Makefile.am): Remove DEFS setting.
73237         (Depends-on): Add configmake, for PKGDATADIR definition.
73238
73239 2006-09-17  Bruno Haible  <bruno@clisp.org>
73240
73241         * gnulib-tool (func_create_testdir): Rewrite all files at once.
73242
73243 2006-09-17  Bruno Haible  <bruno@clisp.org>
73244
73245         * gnulib-tool (func_append): New function, stolen from libtool.m4.
73246         (func_modules_transitive_closure, func_modules_add_dummy,
73247         func_modules_to_filelist, func_import, func_create_testdir,
73248         func_create_megatestdir, ...): Use it wherever possible.
73249         Suggested by Ralf Wildenhues.
73250
73251 2006-09-16  Karl Berry  <karl@gnu.org>
73252
73253         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
73254         to avoid sectioning errors.
73255         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
73256         [ifinfo]: blank line after @center-ed titles.
73257         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
73258         Spell FSF address consistently with others.
73259         (These changes approved by rms.)
73260
73261 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73262
73263         Speed up by a factor of 1.61.
73264         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
73265         already checked module names again.
73266
73267 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73268
73269         Speed up by a factor of 1.13.
73270         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73271         for new_files, and the input to func_add_or_update.
73272
73273 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73274
73275         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73276         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73277
73278 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73279
73280         * modules/mkancesdirs (Depends-on): Add fcntl.
73281         * modules/savewd: New file.
73282         * MODULES.html.sh (File system functions): Add savewd.
73283
73284         * modules/configmake (Makefile.am): Add support for the
73285         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
73286
73287 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73288
73289         * m4/savewd.m4: New file.
73290
73291 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73292
73293         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
73294         (dirchownmod): New arg FD.  All callers changed.
73295         Use FD rather than opening the directory ourself, as opening is
73296         now the caller's responsibility.
73297         * lib/dirchownmod.h: Likewise.
73298         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
73299         hosts that require <sys/types.h> before <sys/stat.h>.  Include
73300         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
73301         (test_dir): Remove.
73302         (mkancesdirs): Return length of prefix of FILE that has already
73303         been made, or -2 if there is a child doing the work.  Redo
73304         algorithm so that it is O(N) rather than O(N**2).  Optimize away
73305         ".", and treat ".." specially since it might stray back into
73306         already-created areas.  Use a subprocess if necessary.  New arg
73307         WD; all users changed.  MAKE_DIR function should now return 1
73308         if it creates a directory that is not readable.  Return -2 if
73309         a child process is spun off.
73310         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
73311         Adjust signature to match code.
73312         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
73313         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
73314         all users changed.
73315         * lib/savewd.c, lib/savewd.h: New files.
73316
73317 2006-09-15  Jim Meyering  <jim@meyering.net>
73318
73319         * modules/rename-dest-slash: New module.
73320         * MODULES.html.sh (posix_compat): Add it here.
73321
73322         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
73323
73324 2006-09-15  Jim Meyering  <jim@meyering.net>
73325
73326         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
73327         file.
73328
73329         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
73330
73331 2006-09-15  Jim Meyering  <jim@meyering.net>
73332
73333         * lib/rename-dest-slash.c (has_trailing_slash): Use
73334         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
73335         (rpl_rename_dest_slash): Perform the cheaper trailing slash
73336         test before testing whether SRC is a directory.
73337         Suggestions from Bruno Haible.
73338
73339         Avoid a warning about an unused variable.
73340         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
73341         into the #ifdef block where it's used.
73342
73343         * lib/rename-dest-slash.c: New file.
73344
73345 2006-09-14  Bruno Haible  <bruno@clisp.org>
73346
73347         * lib/allocsa.c: Include <config.h> unconditionally.
73348         * lib/asnprintf.c: Likewise.
73349         * lib/asprintf.c: Likewise.
73350         * lib/c-strcasecmp.c: Likewise.
73351         * lib/c-strcasestr.c: Likewise.
73352         * lib/c-strncasecmp.c: Likewise.
73353         * lib/c-strstr.c: Likewise.
73354         * lib/classpath.c: Likewise.
73355         * lib/clean-temp.c: Likewise.
73356         * lib/concatpath.c: Likewise.
73357         * lib/copy-file.c: Likewise.
73358         * lib/csharpcomp.c: Likewise.
73359         * lib/csharpexec.c: Likewise.
73360         * lib/execute.c: Likewise.
73361         * lib/fatal-signal.c: Likewise.
73362         * lib/findprog.c: Likewise.
73363         * lib/fwriteerror.c: Likewise.
73364         * lib/gl_array_list.c: Likewise.
73365         * lib/gl_array_oset.c: Likewise.
73366         * lib/gl_avltree_list.c: Likewise.
73367         * lib/gl_avltree_oset.c: Likewise.
73368         * lib/gl_avltreehash_list.c: Likewise.
73369         * lib/gl_carray_list.c: Likewise.
73370         * lib/gl_linked_list.c: Likewise.
73371         * lib/gl_linkedhash_list.c: Likewise.
73372         * lib/gl_list.c: Likewise.
73373         * lib/gl_oset.c: Likewise.
73374         * lib/gl_rbtree_list.c: Likewise.
73375         * lib/gl_rbtree_oset.c: Likewise.
73376         * lib/gl_rbtreehash_list.c: Likewise.
73377         * lib/imaxabs.c: Likewise.
73378         * lib/imaxdiv.c: Likewise.
73379         * lib/javacomp.c: Likewise.
73380         * lib/javaexec.c: Likewise.
73381         * lib/javaversion.c: Likewise.
73382         * lib/linebreak.c: Likewise.
73383         * lib/localcharset.c: Likewise.
73384         * lib/lock.c: Likewise.
73385         * lib/mbchar.c: Likewise.
73386         * lib/mbswidth.c: Likewise.
73387         * lib/mkdtemp.c: Likewise.
73388         * lib/pipe.c: Likewise.
73389         * lib/printf-args.c: Likewise.
73390         * lib/printf-parse.c: Likewise.
73391         * lib/progname.c: Likewise.
73392         * lib/progreloc.c: Likewise.
73393         * lib/readlink.c: Likewise.
73394         * lib/sh-quote.c: Likewise.
73395         * lib/stpcpy.c: Likewise.
73396         * lib/stpncpy.c: Likewise.
73397         * lib/strcasecmp.c: Likewise.
73398         * lib/strcasestr.c: Likewise.
73399         * lib/strcspn.c: Likewise.
73400         * lib/striconv.c: Likewise.
73401         * lib/strncasecmp.c: Likewise.
73402         * lib/strnlen1.c: Likewise.
73403         * lib/strstr.c: Likewise.
73404         * lib/strtok_r.c: Likewise.
73405         * lib/tls.c: Likewise.
73406         * lib/tmpdir.c: Likewise.
73407         * lib/unicodeio.c: Likewise.
73408         * lib/unsetenv.c: Likewise.
73409         * lib/vasnprintf.c: Likewise.
73410         * lib/vasprintf.c: Likewise.
73411         * lib/wait-process.c: Likewise.
73412         * lib/xallocsa.c: Likewise.
73413         * lib/xsetenv.c: Likewise.
73414         * lib/xstriconv.c: Likewise.
73415
73416 2006-09-13  Simon Josefsson  <jas@extundo.com>
73417
73418         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
73419         that internally, suggested by Ralf Wildenhues
73420         <Ralf.Wildenhues@gmx.de>.
73421
73422 2006-09-13  Simon Josefsson  <jas@extundo.com>
73423
73424         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
73425         @LIBOBJS@.
73426         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73427
73428 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73429
73430         * lib/_fpending.c: Include <config.h> unconditionally, since we no
73431         longer worry about uses that don't define HAVE_CONFIG_H.
73432         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
73433         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
73434         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
73435         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
73436         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
73437         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
73438         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
73439         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
73440         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
73441         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
73442         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
73443         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
73444         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
73445         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
73446         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
73447         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
73448         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
73449         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
73450         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
73451         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
73452         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
73453         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
73454         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
73455         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
73456         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
73457         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
73458         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
73459         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
73460         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
73461         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
73462         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
73463         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
73464         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
73465         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
73466         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
73467         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
73468         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
73469         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
73470         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
73471         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
73472         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
73473         Likewise.
73474
73475 2006-09-13  Eric Blake  <ebb9@byu.net>
73476
73477         * lib/getopt.c: Fix typo in last commit.
73478
73479 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73480
73481         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
73482         dgettext.
73483
73484 2006-09-12  Jim Meyering  <jim@meyering.net>
73485
73486         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
73487         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
73488         Reported by Nelson H. F. Beebe.
73489
73490 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73491
73492         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
73493         program_invocation_name and program_invocation_short_name are
73494         initialized.
73495         * lib/argp-namefrob.h: Move declarations of program_invocation_name
73496         and program_invocation_short_name to argp.h, so they are visible
73497         to user programs.
73498         * lib/argp.h: Likewise
73499
73500 2006-09-10  Bruno Haible  <bruno@clisp.org>
73501
73502         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
73503         m4/inttypes_h.m4, m4/uintmax_t.m4.
73504
73505 2006-09-10  Bruno Haible  <bruno@clisp.org>
73506
73507         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
73508         gl_AC_TYPE_UINTMAX_T.
73509
73510 2006-09-10  Bruno Haible  <bruno@clisp.org>
73511
73512         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
73513
73514 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73515
73516         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
73517         convention.  Text proposed by Bruno Haible.
73518         (struct argp_option): Document the use of N_() wrappers.
73519
73520         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
73521         '\v', and translate the two parts separately, instead of feeding
73522         the whole string to gettext.  This allows to exclude
73523         '\v' from the strings visible to the translator by writing doc
73524         strings as N_("..") "\v" N_("..").
73525
73526 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
73527
73528         * config/srclist.txt: Undo latest change; the bug was fixed.
73529
73530 2006-09-09  Bruno Haible  <bruno@clisp.org>
73531
73532         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
73533         assignments if building a library without libtool.
73534         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
73535         in func_emit_lib_Makefile_am.
73536         (func_import): When building a static library libfoo.a, arrange to
73537         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
73538         (func_create_testdir): Likewise.
73539         * modules/gc (configure.ac, Makefile.am): If building statically,
73540         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
73541         * modules/iconvme (configure.ac, Makefile.am): Likewise.
73542         * modules/striconv (configure.ac, Makefile.am): Likewise.
73543         Based on a suggestion by Ralf Wildenhues.
73544
73545 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73546
73547         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73548         Check for unistd.h too, since Autoconf doesn't assume POSIX.
73549         Also:
73550
73551         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73552         Add year_2050_test to catch glibc bug 2821
73553         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73554
73555         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73556         Prefer #ifdef to #if.
73557
73558         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
73559         Return from 'main' instead of calling 'exit'.
73560
73561 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73562
73563         * lib/mktime.c (guess_time_tm): Fix bug where mktime
73564         returned the maximum time_t value rather than (time_t) -1.
73565         Problem originally reported by William Bardwell
73566         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73567
73568         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73569         Moved to here ...
73570         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73571         ... from here.
73572
73573 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73574
73575         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
73576         2821 is fixed.
73577
73578 2006-09-08  Jim Meyering  <jim@meyering.net>
73579
73580         Don't make generated files read-only.  That would bother too many
73581         people.  However, do retain the ability to work when targets are
73582         read-only: remove the destination and temporary files before writing
73583         them (when generated via sed or echo), or by using the -f option for
73584         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
73585         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73586         * modules/byteswap, modules/configmake, modules/fcntl:
73587         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73588         * modules/localcharset, modules/netinet_in, modules/poll:
73589         * modules/stdbool, modules/stdint, modules/sys_select:
73590         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73591
73592 2006-09-08  Jim Meyering  <jim@meyering.net>
73593
73594         Avoid new build failure on FreeBSD 6.0.
73595         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
73596         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
73597         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
73598
73599 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73600
73601         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
73602
73603 2006-09-07  Jim Meyering  <jim@meyering.net>
73604
73605         Fix global typo in last change: use chmod u-w, not chmod u-x.
73606         Spotted by Paul Eggert and Bruce Korb.
73607         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73608         * modules/byteswap, modules/configmake, modules/fcntl:
73609         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73610         * modules/localcharset, modules/netinet_in, modules/poll:
73611         * modules/stdbool, modules/stdint, modules/sys_select:
73612         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73613
73614 2006-09-06  Jim Meyering  <jim@meyering.net>
73615
73616         Make generated files be read-only.
73617         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
73618         Ensure that each generated file is now read-only.
73619         * modules/argz: Likewise.
73620         * modules/arpa_inet: Likewise.
73621         * modules/byteswap: Likewise.
73622         * modules/configmake: Likewise.
73623         * modules/fcntl: Likewise.
73624         * modules/fnmatch: Likewise.
73625         * modules/getopt: Likewise.
73626         * modules/glob: Likewise.
73627         * modules/inttypes: Likewise.
73628         * modules/netinet_in: Likewise.
73629         * modules/poll: Likewise.
73630         * modules/stdbool: Likewise.
73631         * modules/stdint: Likewise.
73632         * modules/sys_select: Likewise.
73633         * modules/sys_socket: Likewise.
73634         * modules/sys_stat: Likewise.
73635         * modules/sysexits: Likewise.
73636         * modules/localcharset: Same as above, but continue using temporary
73637         file named "t-$@" (why different?) rather than the "$@-t" used
73638         everywhere else.
73639
73640         * modules/sysexits (Makefile.am): Replace literal occurrences
73641         of "sysexit.h" more readable, and more consistent, "$@".
73642
73643 2006-09-06  Bruno Haible  <bruno@clisp.org>
73644
73645         * modules/striconv: New file.
73646         * modules/xstriconv: New file.
73647         * MODULES.html.sh (Internationalization functions): Add striconv,
73648         xstriconv.
73649
73650 2006-09-06  Bruno Haible  <bruno@clisp.org>
73651
73652         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
73653         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
73654         not using libtool correctly.
73655
73656 2006-09-06  Bruno Haible  <bruno@clisp.org>
73657
73658         * lib/striconv.h: New file.
73659         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
73660         iconvstring.c.
73661         * lib/xstriconv.h: New file.
73662         * lib/xstriconv.c: New file.
73663
73664 2006-09-06  Bruno Haible  <bruno@clisp.org>
73665
73666         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73667         lib_..._LDFLAGS.
73668
73669 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73670
73671         * lib/argz_.h: Sync from Libtool.
73672
73673         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
73674                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73675
73676         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
73677
73678 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73679
73680         * modules/trim: New file.
73681
73682 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73683
73684         * lib/trim.h: New file.
73685         * lib/trim.c: New file.
73686
73687 2006-09-05  Bruno Haible  <bruno@clisp.org>
73688
73689         * MODULES.html.sh (String handling): Add trim.
73690
73691 2006-09-04  Karl Berry  <karl@gnu.org>
73692
73693         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
73694         until next release.
73695
73696 2006-09-03  Bruno Haible  <bruno@clisp.org>
73697
73698         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
73699         correctly.
73700
73701 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73702
73703         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
73704         not gl_GETLOADAVG.  Omit unneeded semicolons.
73705         Problems reported by Ralf Wildenhues in
73706         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73707         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
73708         at the end, which is the usual gnulib style.
73709
73710         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
73711         of doing all the work ourselves.
73712         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
73713         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
73714
73715 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73716
73717         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
73718         Problem reported by Ralf Wildenhues in
73719         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73720
73721         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
73722         HAVE_STRUCT_STATFS_F_FSTYPENAME.
73723
73724 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73725
73726         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
73727         yesterday's patch by changing test -n to test -z.
73728
73729 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73730
73731         * modules/getloadavg (Files): Add m4/getloadavg.m4.
73732         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
73733         the former is now obsolescent.
73734
73735         * modules/chdir-long (Depends-on): Add fcntl.
73736
73737 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73738
73739         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
73740         obsolescent, and programs should use gnulib instead.
73741         * m4/getloadavg.m4: New file, with contents taken from Autoconf
73742         but with prefixes changed.
73743
73744 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73745
73746         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
73747         or stdbool.h, because they might not exist while configuring.
73748
73749         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
73750         Don't include unistd.h or limits.h; not needed, since chdir-long.h
73751         does that for us.
73752         (O_DIRECTORY): Remove.
73753
73754 2006-08-31  Eric Blake  <ebb9@byu.net>
73755
73756         * gnulib-tool: Don't let emacs change spaces to TAB.
73757
73758 2006-08-31  Bruno Haible  <bruno@clisp.org>
73759
73760         * gnulib-tool: When calling func_import more than once, do it in a
73761         subshell.
73762         Reported by Eric Blake <ebb9@byu.net>.
73763
73764 2006-08-31  Bruno Haible  <bruno@clisp.org>
73765
73766         * gnulib-tool (nl): Remove variable.
73767         (sed_transform_lib_file): Use more robust test for config-h module.
73768         (func_import): Fix typo in 2006-08-25 patch.
73769
73770 2006-08-31  Bruno Haible  <bruno@clisp.org>
73771
73772         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
73773         specified, augment Makefile.am variables instead of assigning them.
73774
73775 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73776
73777         Work around a bug in both the Linux and SunOS 64-bit kernels:
73778         nanosleep mishandles sleeps for longer than 2**31 seconds.
73779         Problem reported by Frank v Waveren in
73780         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73781         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
73782         Check for nanosleep bug.
73783         (LIB_NANOSLEEP): Append clock_gettime library if needed.
73784
73785 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73786
73787         Work around a bug in both the Linux and SunOS 64-bit kernels:
73788         nanosleep mishandles sleeps for longer than 2**31 seconds.
73789         Problem reported by Frank v Waveren in
73790         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73791         * lib/nanosleep.c (BILLION): New constant.
73792         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
73793         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
73794         implementation.
73795
73796 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73797
73798         * modules/nanosleep (Depends-on): Add gettime.
73799
73800 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73801         and Simon Josefsson  <jas@extundo.com>
73802         and Oskar Liljeblad  <oskar@osk.mine.nu>
73803
73804         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
73805         * gnulib-tool (func_import): New license type 'unmodifiable license
73806         text'.
73807         * modules/fdl: Use it.  Longer description.
73808         * module/gpl, module/lgpl: New files.
73809
73810 2006-08-30  Jim Meyering  <jim@meyering.net>
73811
73812         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
73813         shadowing the parameter.
73814
73815 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73816
73817         Sync from Libtool:
73818
73819         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73820
73821         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
73822         sharing with gnulib.  Report by Eric Blake.
73823
73824 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73825
73826         * modules/isapipe: New file.
73827         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
73828
73829 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73830
73831         * modules/configmake (Makefile.am): Add a comment, and omit
73832         the CONFIGMAKE_ prefix from generated macro names.  Suggested
73833         by Bruno Haible.
73834
73835 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73836
73837         * m4/isapipe.m4: New file.
73838
73839 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73840
73841         * lib/isapipe.c, lib/isapipe.h: New files.
73842
73843 2006-08-29  Jim Meyering  <jim@meyering.net>
73844
73845         * modules/configmake (Makefile.am): Make configmake.h depend on
73846         Makefile.  Otherwise, a stale configmake.h could hang around.
73847
73848 2006-08-29  Eric Blake  <ebb9@byu.net>
73849
73850         * lib/error.c (error_at_line, print_errno_message): Match libc, after
73851         resolution of upstream bug 3044.
73852
73853 2006-08-29  Bruno Haible  <bruno@clisp.org>
73854
73855         * modules/localcharset (Depends-on): Add configmake.
73856         (Makefile.am): Remove setting of LIBDIR through DEFS.
73857
73858 2006-08-29  Bruno Haible  <bruno@clisp.org>
73859
73860         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
73861         defined.
73862
73863 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73864
73865         * modules/fcntl: New file.
73866         * modules/chdir-safer (Depends-on): Add fcntl.
73867         * modules/fts: Likewise.
73868         * modules/mkdir-p: Likewise.
73869
73870         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
73871         This undoes the most recent change, since we're now addressing the
73872         problem in a different way.
73873
73874         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
73875         into output, since the output might be called Makefile.am even
73876         if $makefile_name is something different.
73877         (func_import): Use $makefile_am rather than
73878         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
73879         empty.
73880
73881         * modules/inttypes (Files): Add m4/inttypes-h.m4.
73882
73883 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73884
73885         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
73886         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
73887         recent change to stdint.m4, since we're now addressing the problem in a
73888         different way.
73889
73890 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73891
73892         * m4/fcntl_h.m4: New file.
73893
73894 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73895
73896         * lib/fcntl_.h: New file.
73897         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
73898         the fcntl module.
73899         * lib/dirchownmod.c: Likewise.
73900         * lib/fts.c: Likewise.
73901
73902         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
73903         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
73904         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
73905         just before including <inttypes.h>, to avoid circular inclusion.
73906
73907 2006-08-28  Jim Meyering  <jim@meyering.net>
73908
73909         * doc/visibility.texi: Actually read and correct the grammar of the
73910         sentence affected by yesterday's change.
73911
73912 2006-08-28  Eric Blake  <ebb9@byu.net>
73913
73914         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
73915         needs wrapper.
73916
73917 2006-08-28  Eric Blake  <ebb9@byu.net>
73918
73919         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
73920
73921 2006-08-28  Eric Blake  <ebb9@byu.net>
73922
73923         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
73924
73925 2006-08-28  Bruno Haible  <bruno@clisp.org>
73926
73927         * modules/c-strstr: New file, from GNU gettext.
73928         * MODULES.html.sh (String handling): Add c-strstr.
73929
73930 2006-08-28  Bruno Haible  <bruno@clisp.org>
73931
73932         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
73933         macros.
73934         Reported by Eric Blake.
73935
73936 2006-08-28  Bruno Haible  <bruno@clisp.org>
73937
73938         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
73939         (VASNPRINTF): Return a string of length > INT_MAX without failing.
73940         * lib/vasprintf.c: Include errno.h, limits.h.
73941         (EOVERFLOW): New fallback definition.
73942         (vasprintf): Test here whether the string length is > INT_MAX.
73943         * lib/vsnprintf.c: Include errno.h, limits.h.
73944         (EOVERFLOW): New fallback definition.
73945         (vsnprintf): Fix bug when generated string was too long for the buffer.
73946         Test here whether the string length is > INT_MAX.
73947
73948 2006-08-28  Bruno Haible  <bruno@clisp.org>
73949
73950         * lib/inttypes_.h (SCNX*): Remove definitions.
73951         Reported by Eric Blake.
73952
73953 2006-08-28  Bruno Haible  <bruno@clisp.org>
73954
73955         * lib/c-strstr.h: New file, from GNU gettext.
73956         * lib/c-strstr.c: New file, from GNU gettext.
73957
73958 2006-08-28  Bruno Haible  <bruno@clisp.org>
73959
73960         * gnulib-tool: Reorder some statements.
73961
73962 2006-08-28  Bruno Haible  <bruno@clisp.org>
73963
73964         * gnulib-tool: New option --makefile-name.
73965         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
73966         $makefile_name.
73967         (func_import): Write $makefile_name to the cache file, and read it from
73968         there unless explicitly specified. Use $makefile_name as file name
73969         instead of Makefile.am. Adjust the recommendations accordingly.
73970
73971 2006-08-28  Bruno Haible  <bruno@clisp.org>
73972
73973         * gnulib-tool (func_verify_module): Check against misapplying patch.
73974
73975 2006-08-28  Bruno Haible  <bruno@clisp.org>
73976
73977         * gnulib-tool (func_relativize, func_relconcat): New functions.
73978         Give an error if --local-dir is given with --update.
73979         Remove trailing slashes from $local_gnulib_dir.
73980         (func_import): Store the relativized $local_gnulib_dir in
73981         gnulib-cache.m4, and read it from there if not specified explicitly.
73982
73983 2006-08-28  Bruno Haible  <bruno@clisp.org>
73984
73985         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
73986         is the current directory. Respect also $local_gnulib_dir.
73987
73988 2006-08-28  Bruno Haible  <bruno@clisp.org>
73989             Simon Josefsson  <jas@extundo.com>
73990
73991         BeOS portability.
73992         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
73993
73994 2006-08-27  Jim Meyering  <jim@meyering.net>
73995
73996         * doc/visibility.texi: Remove duplicate word: "pointer".
73997
73998 2006-08-26  Bruno Haible  <bruno@clisp.org>
73999
74000         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
74001         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
74002         (Makefile.am): Create inttypes.h from inttypes_.h.
74003         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
74004
74005         * modules/imaxabs: New file.
74006
74007         * modules/imaxdiv: New file.
74008
74009 2006-08-26  Bruno Haible  <bruno@clisp.org>
74010
74011         * m4/inttypes.m4: New file.
74012         * m4/_inttypes_h.m4: Remove file.
74013         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
74014         PRI_MACROS_BROKEN.
74015         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
74016
74017         * m4/imaxabs.m4: New file.
74018
74019         * m4/imaxdiv.m4: New file.
74020
74021 2006-08-26  Bruno Haible  <bruno@clisp.org>
74022
74023         * lib/inttypes_.h: New file.
74024         * lib/inttypes.h: Remove file.
74025         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
74026
74027         * lib/imaxabs.c: New file.
74028
74029         * lib/imaxdiv.c: New file.
74030
74031 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74032
74033         New config-h module, so that "make" output needn't be cluttered
74034         by -DHAVE_CONFIG_H.
74035         * MODULES.html.sh (Support for building libraries and executables):
74036         Add config-h.
74037         * modules/config-h: New file.
74038         * gnulib-tool (nl, sed_transform_lib_file): New vars.
74039         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
74040         the config-h module is used.
74041
74042         New configmake module, so that "make" output needn't be cluttered
74043         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
74044         * MODULES.html.sh (Support for building libraries and executables):
74045         Add configmake.
74046         * modules/configmake: New file.
74047
74048 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
74049
74050         * m4/config-h.m4: New file.
74051
74052 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74053
74054         * config/srclist.txt: Add elisp-comp.
74055
74056 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
74057
74058         * MODULES.html.sh (Support for building libraries and executables):
74059         Add elisp-comp.
74060         * build-aux/elisp-comp: New file.
74061         * modules/elisp-comp: New file.
74062
74063 2006-08-24  Bruno Haible  <bruno@clisp.org>
74064
74065         * gnulib-tool (func_create_testdir): Use non-default values of
74066         sourcebase and m4base.
74067
74068 2006-08-24  Bruno Haible  <bruno@clisp.org>
74069
74070         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
74071         HTML structure.
74072
74073 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
74074
74075         * modules/openat (Depends-on): Add lchown.
74076
74077 2006-08-23  Bruno Haible  <bruno@clisp.org>
74078
74079         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
74080         of gl_LOCK_EARLY instead of gl_LOCK.
74081
74082 2006-08-23  Bruno Haible  <bruno@clisp.org>
74083
74084         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
74085         on OSF/1 to no.
74086         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
74087
74088 2006-08-23  Bruno Haible  <bruno@clisp.org>
74089
74090         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
74091         as unusable.
74092
74093         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
74094         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
74095         (gl_LOCK): New macro.
74096
74097 2006-08-22  Simon Josefsson  <jas@extundo.com>
74098
74099         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
74100         to md5 module.
74101
74102 2006-08-22  Simon Josefsson  <jas@extundo.com>
74103
74104         * MODULES.html.sh: Add "Support for maintaining and release
74105         projects".
74106
74107         * build-aux/gnupload: New file, from coreutils.
74108
74109 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74110
74111         Avoid the need for AC_LIBSOURCES in m4 macros.
74112         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
74113         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
74114         * modules/check-version (EXTRA_DIST): Add check-version.h.
74115         * modules/crc (EXTRA_DIST): Add crc.h.
74116         * modules/des (EXTRA_DIST): Add des.h.
74117         * modules/gc (EXTRA_DIST): Add gc.h.
74118         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
74119         * modules/getline (EXTRA_DIST): Add getline.h.
74120         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
74121         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
74122         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
74123         * modules/md2 (EXTRA_DIST): Add md2.h.
74124         * modules/md4 (EXTRA_DIST): Add md4.h.
74125         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
74126         * modules/read-file (EXTRA_DIST): Add read-file.h.
74127         * modules/readline (EXTRA_DIST): Add readline.h.
74128         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
74129         rijndael-api-fst.h.
74130
74131 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74132
74133         * m4/rijndael.m4 (gl_ARCFOUR):
74134         * m4/arctwo.m4 (gl_ARCTWO):
74135         * m4/check-version.m4 (gl_CHECK_VERSION):
74136         * m4/crc.m4 (gl_CRC):
74137         * m4/des.m4 (gl_DES):
74138         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
74139         * m4/gc.m4 (gl_GC):
74140         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
74141         * m4/getline.m4 (gl_FUNC_GETLINE):
74142         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
74143         * m4/hmac-md5.m4 (gl_HMAC_MD5):
74144         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
74145         * m4/md2.m4 (gl_MD2):
74146         * m4/md4.m4 (gl_MD4):
74147         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
74148         * m4/read-file.m4 (gl_FUNC_READ_FILE):
74149         * m4/readline.m4 (gl_FUNC_READLINE):
74150         * m4/rijndael.m4 (gl_RIJNDAEL):
74151         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74152         to get the necessary .h files and whatnot.
74153
74154 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
74155
74156         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
74157         gnulib rather than the other way around.
74158         * config/srclistvars.sh (COREUTILS): Remove.
74159
74160 2006-08-22  Jim Meyering  <jim@meyering.net>
74161
74162         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
74163
74164         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
74165
74166 2006-08-22  Eric Blake  <ebb9@byu.net>
74167
74168         * modules/regexprops-generic: New file.
74169         * MODULES.html.sh (Support for building documentation): List it.
74170
74171 2006-08-22  Eric Blake  <ebb9@byu.net>
74172
74173         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
74174         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
74175         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
74176         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
74177
74178 2006-08-22  Bruno Haible  <bruno@clisp.org>
74179
74180         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
74181         and lib_LTLIBRARIES like the other lib_* variables.
74182
74183 2006-08-22  Bruno Haible  <bruno@clisp.org>
74184
74185         * build-aux/x-to-1.in: New file, from GNU gettext.
74186
74187 2006-08-22  Bruno Haible  <bruno@clisp.org>
74188
74189         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
74190         <utmpx.h> exists.
74191
74192 2006-08-22  Bruno Haible  <bruno@clisp.org>
74193
74194         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
74195         <utmpx.h> exists.
74196
74197 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74198
74199         BeOS portability.
74200         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
74201         exist.
74202         Problem reported by Bruno Haible.
74203
74204 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74205
74206         Avoid the need for AC_LIBSOURCES in m4 macros.
74207         * modules/acl (EXTRA_DIST): Add acl.h.
74208         * modules/argmatch (Files): Add m4/argmatch.m4.
74209         (configure.ac): Add gl_ARGMATCH.
74210         (EXTRA_DIST): Renamed from lib_SOURCES, for
74211         consistency with the other modules.  Remove argmatch.c.
74212         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
74213         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
74214         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
74215         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
74216         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
74217         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
74218         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
74219         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
74220         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
74221         * modules/closeout (EXTRA_DIST): Add closeout.h.
74222         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
74223         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
74224         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
74225         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
74226         dirname.h; remove basename.c and stripslash.c.
74227         * modules/exclude (EXTRA_DIST): Add exclude.h.
74228         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
74229         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
74230         * modules/file-type (EXTRA_DIST): Add file-type.h.
74231         * modules/filemode (EXTRA_DIST): Add filemode.h.
74232         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
74233         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74234         * modules/fpending (EXTRA_DIST): Add __fpending.h.
74235         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
74236         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
74237         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
74238         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
74239         * modules/getdate (EXTRA_DIST): Add getdate.c.
74240         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
74241         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
74242         * modules/getpass (EXTRA_DIST): Add getpass.h.
74243         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
74244         * modules/group-member (EXTRA_DIST): Add group-member.h.
74245         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
74246         * modules/hash (EXTRA_DIST): Add hash.h.
74247         * modules/human (EXTRA_DIST): Add human.h.
74248         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
74249         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
74250         * modules/lchown (EXTRA_DIST): Add lchown.h.
74251         * modules/long-options (EXTRA_DIST): Add long-options.h.
74252         * modules/lstat (EXTRA_DIST): Add lstat.h.
74253         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
74254         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
74255         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
74256         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
74257         * modules/memxor (EXTRA_DIST): Add memxor.h.
74258         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
74259         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
74260         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
74261         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
74262         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
74263         * modules/physmem (EXTRA_DIST): Add physmem.h.
74264         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
74265         * modules/posixver (EXTRA_DIST): Add posixver.h.
74266         * modules/quote (EXTRA_DIST): Add quote.h.
74267         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74268         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74269         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74270         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74271         regex_internal.h regexec.c.
74272         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74273         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74274         * modules/same (EXTRA_DIST): Add same.h.
74275         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74276         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74277         * modules/savedir (EXTRA_DIST): Add savedir.h.
74278         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74279         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74280         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74281         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74282         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74283         * modules/strdup (EXTRA_DIST): Add strdup.h.
74284         * modules/strftime (EXTRA_DIST): Add strftime.h.
74285         * modules/strndup (EXTRA_DIST): Add strndup.h.
74286         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
74287         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
74288         * modules/time_r (EXTRA_DIST): Add time_r.h.
74289         * modules/timespec (EXTRA_DIST): Add timespec.h.
74290         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74291         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
74292         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
74293         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
74294         * modules/userspec (EXTRA_DIST): Add userspec.h.
74295         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
74296         * modules/utimens (EXTRA_DIST): Add utimens.h.
74297         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
74298         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
74299         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
74300         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
74301         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
74302         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
74303         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
74304         * modules/yesno (EXTRA_DIST): Add yesno.h.
74305
74306 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74307
74308         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
74309
74310         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
74311         * m4/dev-ino.m4, same-inode.m4: Remove.
74312
74313         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
74314         * m4/acl.m4 (AC_FUNC_ACL):
74315         * m4/backupfile.m4 (gl_BACKUPFILE):
74316         * m4/c-strtod.m4 (gl_C99_STRTOLD):
74317         * m4/canon-host.m4 (gl_CANON_HOST):
74318         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74319         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
74320         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
74321         * m4/cloexec.m4 (gl_CLOEXEC):
74322         * m4/close-stream.m4 (gl_CLOSE_STREAM):
74323         * m4/closeout.m4 (gl_CLOSEOUT):
74324         * m4/dirfd.m4 (gl_FUNC_DIRFD):
74325         * m4/dirname.m4 (gl_DIRNAME):
74326         * m4/exclude.m4 (gl_EXCLUDE):
74327         * m4/exitfail.m4 (gl_EXITFAIL):
74328         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
74329         * m4/file-type.m4 (gl_FILE_TYPE):
74330         * m4/filemode.m4 (gl_FILEMODE):
74331         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
74332         * m4/fpending.m4 (gl_FUNC_FPENDING):
74333         * m4/fprintftime.m4 (gl_FPRINTFTIME):
74334         * m4/fts.m4 (gl_FUNC_FTS):
74335         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
74336         * m4/getdate.m4 (gl_GETDATE):
74337         * m4/gethrxtime.m4 (gl_GETHRXTIME):
74338         * m4/getpagesize.m4 (gl_GETPAGESIZE):
74339         * m4/getpass.m4 (gl_FUNC_GETPASS):
74340         * m4/gettime.m4 (gl_GETTIME):
74341         * m4/getugroups.m4 (gl_GETUGROUPS):
74342         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
74343         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
74344         * m4/hard-locale.m4 (gl_HARD_LOCALE):
74345         * m4/hash.m4 (gl_HASH):
74346         * m4/idcache.m4 (gl_IDCACHE):
74347         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
74348         * m4/lchown.m4 (gl_FUNC_LCHOWN):
74349         * m4/long-options.m4 (gl_LONG_OPTIONS):
74350         * m4/lstat.m4 (gl_FUNC_LSTAT):
74351         * m4/md5.m4 (gl_MD5):
74352         * m4/memcasecmp.m4 (gl_MEMCASECMP):
74353         * m4/memcoll.m4 (gl_MEMCOLL):
74354         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
74355         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
74356         * m4/memxor.m4 (gl_MEMXOR):
74357         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
74358         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
74359         * m4/modechange.m4 (gl_MODECHANGE):
74360         * m4/mountlist.m4 (gl_MOUNTLIST):
74361         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74362         * m4/openat.m4 (gl_FUNC_OPENAT):
74363         * m4/pathmax.m4 (gl_PATHMAX):
74364         * m4/physmem.m4 (gl_PHYSMEM):
74365         * m4/posixtm.m4 (gl_POSIXTM):
74366         * m4/posixver.m4 (gl_POSIXVER):
74367         * m4/quote.m4 (gl_QUOTE):
74368         * m4/quotearg.m4 (gl_QUOTEARG):
74369         * m4/readtokens.m4 (gl_READTOKENS):
74370         * m4/readutmp.m4 (gl_READUTMP):
74371         * m4/regex.m4 (gl_REGEX):
74372         * m4/safe-read.m4 (gl_SAFE_READ):
74373         * m4/safe-write.m4 (gl_SAFE_WRITE):
74374         * m4/same.m4 (gl_SAME):
74375         * m4/save-cwd.m4 (gl_SAVE_CWD):
74376         * m4/savedir.m4 (gl_SAVEDIR):
74377         * m4/settime.m4 (gl_SETTIME):
74378         * m4/sha1.m4 (gl_SHA1):
74379         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
74380         * m4/stat-macros.m4 (gl_STAT_MACROS):
74381         * m4/stat-time.m4 (gl_STAT_TIME):
74382         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
74383         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
74384         * m4/strdup.m4 (gl_FUNC_STRDUP):
74385         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
74386         * m4/strndup.m4 (gl_FUNC_STRNDUP):
74387         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
74388         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
74389         * m4/time_r.m4 (gl_TIME_R):
74390         * m4/timespec.m4 (gl_TIMESPEC):
74391         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
74392         * m4/unlinkdir.m4 (gl_UNLINKDIR):
74393         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
74394         * m4/userspec.m4 (gl_USERSPEC):
74395         * m4/utimecmp.m4 (gl_UTIMECMP):
74396         * m4/utimens.m4 (gl_UTIMENS):
74397         * m4/xalloc.m4 (gl_XALLOC):
74398         * m4/xgetcwd.m4 (gl_XGETCWD):
74399         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
74400         * m4/xreadlink.m4 (gl_XREADLINK):
74401         * m4/xstrtod.m4 (gl_XSTRTOD):
74402         * m4/yesno.m4 (gl_YESNO):
74403         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74404         to get the necessary .h files and whatnot.
74405
74406 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
74407             Bruno Haible  <bruno@clisp.org>
74408
74409         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
74410         /bin/sh understanding of '!' conditional negation.
74411
74412 2006-08-21  Jim Meyering  <jim@meyering.net>
74413
74414         * modules/openat (Depends-on): Really alphabetize.
74415
74416         * modules/acl (Depends-on): Add error and quote.
74417
74418         * check-module (find_included_lib_files): Add at-func.c to the
74419         ok-to-include-more-than-once white list.
74420
74421         * modules/openat (Depends-on): Add lstat.  Alphabetize.
74422
74423 2006-08-21  Bruno Haible  <bruno@clisp.org>
74424
74425         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74426         Emit a pkgdata_DATA variable only if some snippets add contents to it.
74427         Reported by Martin Lambers <marlam@marlam.de>.
74428
74429 2006-08-21  Bruno Haible  <bruno@clisp.org>
74430
74431         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
74432         specify an installation location, don't emit a noinst_LIBRARIES or
74433         noinst_LTLIBRARIES assignment.
74434
74435 2006-08-21  Bruno Haible  <bruno@clisp.org>
74436
74437         BeOS portability.
74438         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
74439         BeOS has mbrtowc() but no <wctype.h>.
74440
74441 2006-08-21  Bruno Haible  <bruno@clisp.org>
74442
74443         BeOS portability.
74444         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
74445         exist.
74446
74447 2006-08-21  Bruno Haible  <bruno@clisp.org>
74448
74449         BeOS portability.
74450         * lib/mbchar.h: Include <wctype.h> only if it exists.
74451
74452 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74453
74454         Remove files that are no longer needed by their respective modules.
74455         * m4/obstack.m4: Remove.
74456         * m4/strerror_r.m4: Remove.
74457         * m4/uint32_t.m4: Remove.
74458         * m4/uintptr_t.m4: Remove.
74459         * m4/ullong_max.m4: Remove.
74460         * m4/xstrtoimax.m4: Remove.
74461         * m4/xstrtoumax.m4: Remove.
74462
74463         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
74464         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
74465         dependencies now capture this.
74466
74467         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
74468         Do not use AC_LIBSOURCES, since gnulib modules now do this.
74469         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
74470         * m4/human.m4 (gl_HUMAN): Likewise.
74471         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
74472         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
74473
74474         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
74475
74476         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
74477         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
74478         stdint.
74479         * m4/human.m4 (gl_HUMAN): Likewise.
74480         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
74481         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
74482         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74483         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74484         * m4/xstrtol (gl_XSTRTOL): Likewise.
74485
74486         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
74487         AC_TYPE_LONG_LONG_INT.
74488         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74489         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
74490         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
74491         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74492
74493         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
74494         on stdbool.
74495
74496         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
74497         (gl_PREREQ_XSTRTOUL): Remove.
74498
74499         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
74500
74501         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
74502         mode.
74503
74504 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74505
74506         Add and change modules to make it easier for coreutils to use
74507         gnulib-tool.
74508         * modules/backupfile (Files): Remove m4/d-ino.m4.
74509         (Depends-on): Add d-ino.
74510         * modules/cycle-check (Depends-on): Add stdint.
74511         (lib_SOURCES): Add cycle-check.h.
74512         * modules/d-ino: New module.
74513         * modules/d-type: New module.
74514         * modules/error (Files): Remove m4/strerror_r.m4.
74515         * modules/filemode (Files): Add m4/st_dm_mode.m4.
74516         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74517         m4/inttypes_h.m4, m4/uintmax_t.m4.
74518         (Depends-on): Add stdint.
74519         (lib_SOURCES): Add fsusage.h.
74520         * modules/getcwd (Files): Remove d-ino.m4.
74521         (Depends-on): Add d-ino.
74522         * modules/getndelim2 (Depends-on): Add stdint.
74523         * modules/glob (Files): Remove m4/d-type.m4.
74524         (Depends-on): Add d-type.
74525         * modules/host-os: New module.
74526         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
74527         m4/inttypes_h.m4, m4/uintmax_t.m4.
74528         * Depends-on: Add stdint.
74529         (lib_SOURCES): Add human.h.
74530         * modules/inttostr (Files): Remove m4/intmax_t.m4,
74531         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
74532         m4/uintmax_t.m4, m4/ulonglong.m4.
74533         (Depends-on): Add stdint.
74534         (EXTRA_DIST): Add inttostr.h.
74535         * modules/lchmod: New module.
74536         * modules/link-follow: New module.
74537         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
74538         (Depends-on): Add lchmod.
74539         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
74540         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
74541         (Depends-on): Add stdint.
74542         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
74543         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
74544         (Depends-on): Add stdint.
74545         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
74546         * modules/perl: New module.
74547         * modules/regex (Depends-on): Add stdint.
74548         * modules/rmdir-errno: New module.
74549         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74550         m4/intmax_t.m4.
74551         (Depends-on): Add stdint.
74552         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74553         m4/uintmax_t.m4.
74554         (Depends-on): Add stdint.
74555         * modules/unlink-busy: New module.
74556         * modules/utimecmp (Depends-on): Add stdint.
74557         * modules/uptime: New module.
74558         * modules/winsz-ioctl: New module.
74559         * modules/winsz-termios: New module.
74560         * modules/xnanosleep (Depends-on): Add nanosleep.
74561         * modules/ullong_max: Remove.
74562         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
74563         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
74564         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
74565         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
74566         (Depends-on): Add inttypes.
74567         (lib_SOURCES): Add xstrtol.h.
74568         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
74569         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
74570         * MODULES.html.sh: Move 'assert' into the assert section.
74571         Move 'dummy' into the linking section.
74572         Remove ullong_max.
74573         Add section for compatibility checks for POSIX:2001 functions,
74574         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
74575         winsz-ioctl, and winsz-termios into it.
74576         Add lchmod.
74577         Add top-level Misc section and put host-os, perl, and uptime
74578         into it.
74579
74580 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74581
74582         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
74583         now assume the stdint module.  Do not include inttypes.h.
74584         * lib/fsusage.h: Likewise.
74585         * lib/getndelim2.c: Likewise.
74586         * lib/human.h: Likewise.
74587         * lib/inttostr.h: Likewise.
74588         * lib/obstack.c: Likewise.
74589         * lib/regex_internal.h: Likewise.
74590         * lib/tempname.c: Likewise.
74591         * lib/utimecmp.c: Likewise.
74592         * lib/xstrtol.h: Likewise.
74593
74594         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
74595
74596         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
74597         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
74598         * lib/xtime.h: Likewise.
74599
74600 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74601
74602         * modules/openat (Files): Add lib/fchmodat.c.
74603         Fixes problem reported by Jay Youngman.
74604
74605 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74606
74607         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
74608         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
74609
74610 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
74611             Bruno Haible  <bruno@clisp.org>
74612
74613         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
74614         and is a script that invokes bison. Tighten the code. Add comments.
74615
74616 2006-08-18  Jim Meyering  <jim@meyering.net>
74617
74618         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
74619         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
74620         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
74621         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
74622
74623 2006-08-18  Bruno Haible  <bruno@clisp.org>
74624
74625         * modules/bison-i18n: New file.
74626         * MODULES.html.sh (Internationalization functions): Add it.
74627
74628 2006-08-18  Bruno Haible  <bruno@clisp.org>
74629
74630         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
74631         sys/statvfs.h. When getmntinfo was found, check its declaration and
74632         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
74633
74634 2006-08-18  Bruno Haible  <bruno@clisp.org>
74635
74636         * m4/bison-i18n.m4: New file, from bison.
74637
74638 2006-08-18  Bruno Haible  <bruno@clisp.org>
74639
74640         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
74641         (ME_DUMMY): Treat "kernfs" as a dummy.
74642         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
74643
74644 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74645
74646         Update from coreutils.
74647
74648         2006-08-15  Jim Meyering  <jim@meyering.net>
74649
74650         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
74651
74652         2006-01-17  Jim Meyering  <jim@meyering.net>
74653
74654         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
74655
74656         2006-01-11  Jim Meyering  <jim@meyering.net>
74657
74658         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
74659         Check for the lchmod function.
74660
74661 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74662
74663         Update from coreutils.
74664
74665         * lib/__fpending.h: Add copyright notice.
74666         * lib/fprintftime.h: Likewise.
74667         * lib/savedir.c: Use (C) in copyright notice.
74668         * lib/savedir.h: Likewise.
74669
74670         2006-08-15  Jim Meyering  <jim@meyering.net>
74671
74672         * lib/at-func.c: New file, with the logic of all emulated at-functions.
74673         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
74674         in support of the EXPECTED_ERRNO macro.
74675         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
74676         definitions.  Instead, define the appropriate symbols and include
74677         "at-func.c".
74678         * lib/mkdirat.c (mkdirat): Likewise.
74679         * lib/fchmodat.c (fchmodat): Likewise.
74680         (ENOSYS): Remove definition.
74681         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
74682         it.  Don't include "unistd--.h" -- it wasn't ever used.
74683
74684         2006-01-17  Jim Meyering  <jim@meyering.net>
74685
74686         Rewrite fts.c not to change the current working directory,
74687         by using openat, fstatat, fdopendir, etc..
74688
74689         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
74690         (HAVE_OPENAT_SUPPORT): Define.
74691         [_LIBC] (fchdir): Don't undef or define; no longer used.
74692         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
74693         Now, this `function' always succeeds, and consumes its file descriptor
74694         parameter -- so callers must not close such FDs.  Update callers.
74695         (diropen_fd, opendirat, cwd_advance_fd): New functions.
74696         (diropen): Add parameter, SP.  Adjust all callers.
74697         Implement using diropen_fd, rather than open.
74698         (fts_open): Initialize new member, fts_cwd_fd.
74699         Remove fts_rft-setting code.
74700         (fts_close): Close fts_cwd_fd, if necessary.
74701         (__opendir2): Define in terms of opendir or opendirat,
74702         depending on whether the FST_NOCHDIR flag is set.
74703         (fts_build): Since fts_safe_changedir consumes its FD, and since
74704         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
74705         and close the dup'd file descriptor upon failure.
74706         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
74707         (fts_safe_changedir): Tweak semantics to reflect that this function
74708         now calls cwd_advance_fd and hence consumes its FD argument.
74709         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
74710         [struct FTS] (fts_rft): Remove now-unused member.
74711         [struct FTS] (fts_cycle.state): Improve comment.
74712
74713         * lib/openat.c (openat_needs_fchdir): New function.
74714         * lib/openat.h (openat_needs_fchdir): Declare it.
74715
74716 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74717
74718         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
74719         Problem and fix reported by Pádraig Brady in
74720         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
74721
74722 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74723
74724         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
74725
74726 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74727
74728         * lib/memcoll.c (memcoll): Optimize for the common case where the
74729         arguments are bytewise equal.
74730
74731 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74732
74733         * doc/regexprops-generic.texi: Add a copyright notice.
74734
74735 2006-08-15  Bruno Haible  <bruno@clisp.org>
74736
74737         * modules/tmpdir (License): Change to LGPL.
74738
74739 2006-08-15  Bruno Haible  <bruno@clisp.org>
74740
74741         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
74742         module.
74743
74744 2006-08-14  Simon Josefsson  <jas@extundo.com>
74745
74746         * config/srclist.txt: Add gnupload.
74747
74748 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74749
74750         Change copyright notice from LGPL 2 to GPL 2, since that's the
74751         standard form used in the gnulib repository.
74752         * tests/test-lock.c: Likewise.
74753         * tests/test-stdint.c: Likewise.
74754         * tests/test-tls.c: Likewise.
74755
74756         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
74757         prelude-manager.  User shorter URLs for GNU projects, without '?'.
74758         Add copyright notice.
74759
74760         * check-module: Add copyright notice.  Output a copyright
74761         notice if "--version" is specified.
74762         * modules/COPYING: New file.
74763         * tests/test-getaddrinfo.c: Add copyright notice.
74764         * tests/test-verify.c: Likewise.
74765
74766 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74767
74768         Change copyright notice from LGPL 2 to GPL 2, since that's the
74769         standard form used in the gnulib repository.
74770         * lib/lock.c: LGPL -> GPL.
74771         * lib/lock.h: Likewise.
74772         * lib/strnlen1.c: Likewise.
74773         * lib/strnlen1.h: Likewise.
74774         * lib/tls.c: Likewise.
74775         * lib/tls.h: Likewise.
74776         * lib/tmpdir.c: Likewise.
74777
74778         * lib/TODO: Remove; this belongs only in coreutils.
74779
74780 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74781
74782         Add copyright notices to long-enough files that lack them, since
74783         otherwise the files aren't clearly free.  Use the same notice that
74784         getdate.texi already uses.
74785         * doc/alloca-opt.texi: Add copyright notice.
74786         * doc/alloca.texi: Likewise.
74787         * doc/ctime.texi: Likewise.
74788         * doc/functions.texi: Likewise.
74789         * doc/gcd.texi: Likewise.
74790         * doc/gnulib-tool.texi: Likewise.
74791         * doc/inet_ntoa.texi: Likewise.
74792         * doc/visibility.texi: Likewise.
74793
74794         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
74795         * doc/quote.texi: Add copyright notice.
74796
74797         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
74798         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
74799         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
74800         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
74801         is now obsolete, and give a pointer to the Sun list.
74802         Add copyright notice.
74803
74804 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74805
74806         * config/srclistvars.sh: Add copyright notice.
74807
74808 2006-08-14  Eric Blake  <ebb9@byu.net>
74809
74810         Import the following change from libc:
74811
74812         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
74813
74814         Upstream bug 2997.
74815         * lib/misc/error.c: Add space between program name and message if file
74816         name is missing.
74817
74818 2006-08-12  Karl Berry  <karl@gnu.org>
74819
74820         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
74821         remove, these originate in gnulib now.
74822
74823 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74824
74825         * doc/Makefile (standards.info standards.html standards.dvi):
74826         Also depend on make-stds.texi.
74827
74828 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74829
74830         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
74831         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
74832
74833         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
74834         in wchar_t.  Problem reported by Eric Blake.
74835
74836         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
74837         LEN is smaller than SIZE.  Suggested by Bruno Haible.
74838         Also, help the compiler to keep LEN in a register.
74839
74840 2006-08-11  Eric Blake  <ebb9@byu.net>
74841
74842         * users.txt: Sort.  Add tar.
74843
74844 2006-08-11  Bruno Haible  <bruno@clisp.org>
74845
74846         * users.txt: New file.
74847
74848 2006-08-11  Bruno Haible  <bruno@clisp.org>
74849
74850         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
74851         before <wchar.h>. Needed for OSF/1 and BSD/OS.
74852
74853 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74854
74855         * modules/snprintf (Depends-on): Remove minmax.
74856         (Maintainer): Add self and Bruno.
74857
74858 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74859
74860         * lib/.cppi-disable: Add snprintf.h, socket_.h.
74861         * lib/snprintf.c: Include <errno.h> and <limits.h>.
74862         (EOVERFLOW): Define if the system does not.
74863         Do not include "minmax.h"; it wasn't used.
74864         (snprintf): Don't assume size_t promotes to an unsigned type.
74865         Fix bug when generated string was too long for the buffer: the
74866         buffer's contents are supposed to be the initial prefix of the
74867         output.  Don't assume vasnprintf returns EOVERFLOW if the size
74868         exceeds INT_MAX; do the check ourselves.
74869
74870         Import the following changes from libc:
74871
74872         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
74873
74874         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
74875         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
74876         set wc to the byte which couldn't be converted.
74877         (re_string_reconstruct): Don't clear valid_raw_len before calling
74878         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
74879         tip_context using re_string_context_at.
74880
74881         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
74882
74883         * lib/posix/regex.h: g++ still cannot handled [restrict].
74884
74885         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
74886
74887         * lib/posix/regex.h: Remove special handling for VMS.
74888
74889 2006-08-10  Jim Meyering  <jim@meyering.net>
74890
74891         * modules/same-inode: New module.
74892         * modules/dev-ino: New module.
74893         * modules/cycle-check: Depend on these modules, rather than simply
74894         including their .h files.
74895         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
74896         required via m4/cycle-check.m4.
74897         * modules/same: Depend on new same-inode module, rather than
74898         including same-inode.h.
74899         * modules/chdir-safer: New file.
74900
74901         * modules/chown (Depends-on): Add stat-macros.
74902
74903 2006-08-10  Jim Meyering  <jim@meyering.net>
74904
74905         * m4/cycle-check.m4: New file.
74906         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
74907         * m4/dev-ino.m4, m4/same-inode.m4: New files.
74908
74909 2006-08-10  Eric Blake  <ebb9@byu.net>
74910
74911         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
74912         in from original proposal.
74913
74914 2006-08-10  Eric Blake  <ebb9@byu.net>
74915         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74916
74917         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
74918         namespace.
74919
74920 2006-08-10  Bruno Haible  <bruno@clisp.org>
74921
74922         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
74923         as well.
74924
74925 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74926
74927         Sync from coreutils.
74928
74929         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
74930
74931         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
74932         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
74933
74934 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74935
74936         * modules/restrict: Remove; no longer needed now that we assume
74937         Autoconf 2.59 or later.
74938         * MODULES.html.sh: Remove 'restrict'.
74939         * modules/argp (Depends-on): Remove 'restrict'.
74940         * modules/base64 (Depends-on): Likewise.
74941         * modules/gc (Depends-on): Likewise.
74942         * modules/getaddrinfo (Depends-on): Likewise.
74943         * modules/glob (Depends-on): Likewise.
74944         * modules/inet_ntop (Depends-on): Likewise.
74945         * modules/inet_pton (Depends-on): Likewise.
74946         * modules/memxor (Depends-on): Likewise.
74947         * modules/regex (Depends-on): Likewise.
74948         * modules/strtok_r (Depends-on): Likewise.
74949         * modules/time_r (Depends-on): Likewise.
74950
74951 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74952
74953         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
74954         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
74955         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
74956         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
74957         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
74958         * m4/memxor.m4 (gl_MEMXOR): Likewise.
74959         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
74960         gl_C_RESTRICT replaced by AC_C_RESTRICT.
74961
74962         Merge from coreutils.
74963         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
74964         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
74965         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74966         * m4/time_r.m4 (gl_TIME_R): Likewise.
74967
74968 2006-08-09  Karl Berry  <karl@gnu.org>
74969
74970         * config/srclist.txt: no more gettext-tools, per Bruno.
74971
74972 2006-08-08  Eric Blake  <ebb9@byu.net>
74973
74974         * modules/verror: New module.
74975         * MODULES.html.sh: Document it.
74976
74977 2006-08-08  Eric Blake  <ebb9@byu.net>
74978
74979         * lib/verror.h, lib/verror.c: New files.
74980
74981 2006-08-08  Eric Blake  <ebb9@byu.net>
74982
74983         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
74984         verror_at_line output complies with GNU Coding Standards even when
74985         file is NULL.
74986
74987 2006-08-07  Bruno Haible  <bruno@clisp.org>
74988
74989         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
74990         versions of AIX.
74991         Reported by Ralf Wildenhues.
74992
74993 2006-08-07  Bruno Haible  <bruno@clisp.org>
74994
74995         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
74996         in an AC_DEFUN. Needed so that the autoconf snippets can use
74997         AC_REQUIRE.
74998
74999 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75000
75001         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75002         Initialize pkgdata_DATA.
75003         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
75004         overriding it.
75005
75006 2006-08-06  Eric Blake  <ebb9@byu.net>
75007
75008         * lib/error.h: Fold in some upstream changes from glibc.
75009         * lib/error.c: Likewise.
75010
75011 2006-08-04  Bruno Haible  <bruno@clisp.org>
75012
75013         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75014         Make the mostlyclean-local rule depend on mostlyclean-generic.
75015         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
75016
75017 2006-07-31  Bruno Haible  <bruno@clisp.org>
75018
75019         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
75020         <stdlib.h>, <string.h>.
75021
75022 2006-07-30  Bruno Haible  <bruno@clisp.org>
75023
75024         * modules/readlink (License): Change to LGPL.
75025
75026 2006-07-30  Bruno Haible  <bruno@clisp.org>
75027
75028         * modules/javaversion (Makefile.am): Distribute javaversion.java and
75029         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
75030         set PKGDATADIR to point to it.
75031
75032 2006-07-30  Bruno Haible  <bruno@clisp.org>
75033
75034         * modules/csharpexec (configure.ac): Comment out macro invocation.
75035         * modules/javaexec (configure.ac): Likewise.
75036         * modules/javacomp-script (configure.ac): Likewise.
75037
75038         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
75039
75040 2006-07-30  Bruno Haible  <bruno@clisp.org>
75041
75042         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
75043         linked-list.
75044
75045 2006-07-30  Bruno Haible  <bruno@clisp.org>
75046
75047         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
75048
75049 2006-07-30  Bruno Haible  <bruno@clisp.org>
75050
75051         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75052         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
75053         get removed.
75054
75055 2006-07-29  Bruno Haible  <bruno@clisp.org>
75056
75057         Make it possible for gnulib-tool to work with locally modified or
75058         augmented gnulib repositories.
75059         * gnulib-tool (func_usage): Document --local-dir option.
75060         (local_gnulib_dir): New variable.
75061         Handle --local-dir option.
75062         (func_lookup_file): New function.
75063         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
75064         (func_get_description, func_get_filelist, func_get_description,
75065         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
75066         func_get_automake_snippet, func_get_include_directive,
75067         func_get_license, func_get_maintainer): Use func_lookup_file.
75068         (func_import, func_create_testdir): Use func_lookup_file.
75069
75070 2006-07-29  Bruno Haible  <bruno@clisp.org>
75071
75072         * modules/setenv (Depends-on): Add unistd.
75073
75074 2006-07-29  Bruno Haible  <bruno@clisp.org>
75075
75076         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
75077
75078 2006-07-29  Bruno Haible  <bruno@clisp.org>
75079
75080         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
75081
75082 2006-07-29  Bruno Haible  <bruno@clisp.org>
75083
75084         * gnulib-tool (import, update): If there is no Makefile.am, look at
75085         aclocal.m4, instead of bailing out.
75086
75087 2006-07-29  Bruno Haible  <bruno@clisp.org>
75088
75089         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
75090         Categorize the options by when they are useful.
75091
75092 2006-07-29  Bruno Haible  <bruno@clisp.org>
75093
75094         * gnulib-tool (func_usage): Document option --no-libtool.
75095         Handle option --no-libtool.
75096         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
75097         for changed semantics of $libtool variable.
75098         (func_import): Likewise. If libtool is not used, show this through
75099         an option --no-libtool.
75100         (func_create_testdir): Update.
75101
75102 2006-07-29  Bruno Haible  <bruno@clisp.org>
75103
75104         * gnulib-tool (func_import): Extend error message about missing
75105         --doc-base.
75106
75107 2006-07-29  Bruno Haible  <bruno@clisp.org>
75108
75109         * gnulib-tool (func_import): Don't create the $docbase directory if
75110         there is no file to store there.
75111
75112 2006-07-29  Bruno Haible  <bruno@clisp.org>
75113
75114         * gnulib-tool (autoconf_minversion): If a --dir option is given and
75115         relevant, look for configure.ac there, not in the current directory.
75116         Also use a simple search for AC_PREREQ, not "autoconf --trace".
75117
75118 2006-07-29  Bruno Haible  <bruno@clisp.org>
75119
75120         * gnulib-tool (SORT): New variable.
75121         (func_usage): Undocument --assume-autoconf option.
75122         Remove --assume-autoconf option handling.
75123         (autoconf_minversion): Determine from the contents of configure.ac.
75124         (func_import): Remove autoconf_minversion handling.
75125         Suggested by Eric Blake.
75126
75127 2006-07-29  Bruno Haible  <bruno@clisp.org>
75128
75129         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
75130
75131 2006-07-29  Bruno Haible  <bruno@clisp.org>
75132
75133         * config/srclist.txt (*setenv.[ch]): Remove rules.
75134
75135 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75136
75137         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
75138
75139 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75140
75141         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
75142         arpa/inet.h.
75143
75144 2006-07-28  Simon Josefsson  <jas@extundo.com>
75145
75146         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
75147         * modules/inet_pton (Depends-on): Likewise.
75148
75149 2006-07-28  Simon Josefsson  <jas@extundo.com>
75150
75151         * m4/netinet_in_h.m4: New file.
75152
75153 2006-07-28  Simon Josefsson  <jas@extundo.com>
75154
75155         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
75156         #include's.
75157
75158 2006-07-28  Simon Josefsson  <jas@extundo.com>
75159
75160         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
75161         #include's.
75162
75163 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
75164
75165         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
75166         setgid on directories only if they set these bits.
75167         * lib/modechange.h: Remove obsolete comment about masks.
75168
75169 2006-07-28  Eric Blake  <ebb9@byu.net>
75170
75171         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
75172         macro expansion.
75173
75174 2006-07-28  Bruno Haible  <bruno@clisp.org>
75175
75176         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
75177
75178 2006-07-28  Bruno Haible  <bruno@clisp.org>
75179
75180         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
75181
75182 2006-07-28  Bruno Haible  <bruno@clisp.org>
75183
75184         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
75185         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
75186         Define fallbacks.
75187         Avoids link error on FreeBSD 4.x.
75188         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
75189
75190         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
75191         encoding.
75192         * lib/mbswidth.c (iswcntrl): Likewise.
75193
75194 2006-07-27  Bruno Haible  <bruno@clisp.org>
75195
75196         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
75197         test.
75198
75199 2006-07-27  Bruno Haible  <bruno@clisp.org>
75200
75201         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
75202         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
75203         defined.
75204
75205 2006-07-26  Eric Blake  <ebb9@byu.net>
75206
75207         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
75208
75209 2006-07-26  Eric Blake  <ebb9@byu.net>
75210
75211         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
75212         like mingw that lack mkstemp.
75213         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
75214         avoid compilation warning on mingw.
75215
75216 2006-07-26  Bruno Haible  <bruno@clisp.org>
75217
75218         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
75219         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
75220         INT_FAST*_MIN, INTPTR_MIN.
75221
75222 2006-07-25  Bruno Haible  <bruno@clisp.org>
75223
75224         * modules/version-etc (Depends-on): Add stdarg.
75225
75226 2006-07-25  Bruno Haible  <bruno@clisp.org>
75227
75228         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
75229         complex commands.
75230
75231 2006-07-25  Bruno Haible  <bruno@clisp.org>
75232
75233         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
75234         defined in <stdarg.h> or config.h.
75235
75236 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75237
75238         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
75239         (gl_STDIO_SAFER): Remove.
75240
75241 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
75242
75243         * MODULES.html.sh (File stream based Input/Output):
75244         Add fopen-safer, tmpfile-safer; remove stdio-safer.
75245         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
75246         * modules/fopen-safer, modules/tmpfile-safer: New files.
75247         * modules/stdio-safer: Remove.
75248
75249 2006-07-24  Bruno Haible  <bruno@clisp.org>
75250
75251         * modules/tmpdir: New file.
75252         * MODULES.html.sh (File system functions): Add it.
75253
75254 2006-07-24  Bruno Haible  <bruno@clisp.org>
75255
75256         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
75257         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
75258
75259 2006-07-24  Bruno Haible  <bruno@clisp.org>
75260
75261         * modules/clean-temp: New file.
75262
75263 2006-07-24  Bruno Haible  <bruno@clisp.org>
75264
75265         * m4/tmpdir.m4: New file, from GNU gettext.
75266
75267 2006-07-24  Bruno Haible  <bruno@clisp.org>
75268
75269         * lib/tmpdir.h: New file, from GNU gettext.
75270         * lib/tmpdir.c: New file, from GNU gettext.
75271
75272 2006-07-24  Bruno Haible  <bruno@clisp.org>
75273
75274         * lib/clean-temp.h: New file, from GNU gettext.
75275         * lib/clean-temp.c: New file, from GNU gettext.
75276
75277 2006-07-23  Eric Blake  <ebb9@byu.net>
75278
75279         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75280         (Depends-on): Add binary-io.
75281
75282 2006-07-23  Eric Blake  <ebb9@byu.net>
75283
75284         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
75285
75286 2006-07-23  Eric Blake  <ebb9@byu.net>
75287
75288         * lib/tmpfile-safer.c: New file.
75289         * lib/stdio-safer.h (fopen_safer): Add prototype.
75290         * lib/stdio--.h (tmpfile): Make safer.
75291
75292 2006-07-23  Bruno Haible  <bruno@clisp.org>
75293
75294         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
75295         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
75296         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
75297         gl_linked_remove_at): Use it.
75298
75299 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75300         and Simon Josefsson <jas@extundo.com>
75301
75302         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
75303
75304         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
75305
75306 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75307
75308         * modules/close-stream: New file.
75309         * modules/closeout (Description): Make it clear that it exits
75310         with a diagnostic on error.
75311         (Depends-on): Add close-stream.  Remove fpending, stdbool.
75312         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
75313
75314 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75315
75316         * m4/close-stream.m4: New file.
75317
75318 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75319
75320         * lib/close-stream.c, lib/close-stream.h: New files.
75321
75322 2006-07-22  Bruno Haible  <bruno@clisp.org>
75323
75324         Merge from GNU gettext 0.15.
75325
75326         2006-05-01  Bruno Haible  <bruno@clisp.org>
75327
75328                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
75329
75330         2006-07-22  Bruno Haible  <bruno@clisp.org>
75331
75332                 * modules/javaversion: New file.
75333                 * MODULES.html.sh (Java): Add javaversion.
75334
75335         2006-03-12  Bruno Haible  <bruno@clisp.org>
75336
75337                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
75338
75339         2005-12-04  Bruno Haible  <bruno@clisp.org>
75340
75341                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
75342                 (untested).
75343
75344         2006-06-21  Bruno Haible  <bruno@clisp.org>
75345
75346                 Avoid warnings from recent versions of mcs.
75347                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
75348                 -o, -L, -r any more. Use options documented since mcs-1.0
75349                 instead. Similarly for -g.
75350
75351         2005-12-04  Bruno Haible  <bruno@clisp.org>
75352
75353                 * build-aux/csharpcomp.sh.in: Suffix for resources is
75354                 .resources, not .resource.
75355
75356         2005-07-09  Bruno Haible  <bruno@clisp.org>
75357
75358                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
75359                 add a .dll suffix.
75360                 Reported by Mark Junker <mjscod@gmx.de>.
75361
75362         2006-07-22  Bruno Haible  <bruno@clisp.org>
75363
75364                 * modules/gettext: Upgrade to gettext-0.15.
75365                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
75366                 m4/visibility.m4.
75367                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
75368
75369 2006-07-22  Bruno Haible  <bruno@clisp.org>
75370
75371         Merge from GNU gettext 0.15.
75372
75373         2006-03-25  Bruno Haible  <bruno@clisp.org>
75374
75375                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
75376
75377         2006-07-21  Bruno Haible  <bruno@clisp.org>
75378
75379                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
75380                 "1.1".
75381
75382         2006-05-09  Bruno Haible  <bruno@clisp.org>
75383
75384                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
75385                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
75386                 for the conftestver execution.
75387
75388         2006-05-01  Bruno Haible  <bruno@clisp.org>
75389
75390                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
75391                 optional target-version argument. Verify that the compiler
75392                 groks source of the specified source-version, or add -source
75393                 option as necessary. Verify that the compiler produces
75394                 bytecode in the specified target-version, or add -target and
75395                 -source options as necessary. Make the result of the test
75396                 available as variable CONF_JAVAC. Also log error output in
75397                 config.log.
75398
75399         2006-03-11  Bruno Haible  <bruno@clisp.org>
75400
75401                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
75402
75403         2006-05-09  Bruno Haible  <bruno@clisp.org>
75404
75405                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
75406                 CLASSPATH_SEPARATOR to a semicolon.
75407
75408         2006-03-12  Bruno Haible  <bruno@clisp.org>
75409
75410                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
75411                 available as variable CONF_JAVA, for subsequent autoconf
75412                 tests. Also log error output in config.log.
75413
75414         2006-07-19  Bruno Haible  <bruno@clisp.org>
75415
75416                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
75417                 that getline works on glibc2 systems. Needed to avoid trouble
75418                 in relocatable.c.
75419                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
75420
75421         2005-12-04  Bruno Haible  <bruno@clisp.org>
75422
75423                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
75424                 launcher (untested).
75425
75426         2005-12-04  Bruno Haible  <bruno@clisp.org>
75427
75428                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
75429
75430         2006-07-22  Bruno Haible  <bruno@clisp.org>
75431
75432                 * gettext.m4: Update from GNU gettext-0.15.
75433                 * nls.m4: Likewise.
75434                 * po.m4: Likewise.
75435                 * inttypes-pri.m4: Likewise.
75436                 * inttypes-h.m4: Renamed from inttypes.m4.
75437                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
75438
75439 2006-07-22  Bruno Haible  <bruno@clisp.org>
75440
75441         Merge from GNU gettext 0.15.
75442
75443         2005-07-05  Bruno Haible  <bruno@clisp.org>
75444
75445                 * printf-args.c (printf_fetchargs): Work around broken
75446                 definition of wint_t on mingw.
75447
75448         2005-02-12  Bruno Haible  <bruno@clisp.org>
75449
75450                 * xallocsa.h: Add extern "C" for C++.
75451
75452         2006-05-17  Bruno Haible  <bruno@clisp.org>
75453
75454                 Cygwin portability.
75455                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
75456
75457         2006-04-30  Bruno Haible  <bruno@clisp.org>
75458
75459                 * progreloc.c: Include <mach-o/dyld.h> if available.
75460                 (find_executable): Use _NSGetExecutablePath when possible.
75461
75462         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75463
75464                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
75465                 function.
75466
75467         2005-12-29  Bruno Haible  <bruno@clisp.org>
75468
75469                 * progreloc.c (set_program_name_and_installdir): Fix
75470                 compilation error.
75471
75472         2005-12-04  Bruno Haible  <bruno@clisp.org>
75473
75474                 Cygwin portability.
75475                 * progreloc.c: Include <windows.h> also on Cygwin.
75476                 (find_executable): Add support for Cygwin.
75477                 (set_program_name_and_installdir): Handle also platforms with
75478                 nonempty EXEEXT.
75479
75480         2006-07-11  Bruno Haible  <bruno@clisp.org>
75481
75482                 * javacomp.c: Fix a comment.
75483                 Reported by Jim Meyering.
75484
75485         2006-04-30  Bruno Haible  <bruno@clisp.org>
75486
75487                 * javacomp.h (compile_java_class): Add source_version,
75488                 target_version arguments.
75489                 * javacomp.c: Rewritten to choose only a compiler that
75490                 respects the specified source_version and target_version.
75491
75492         2006-06-27  Bruno Haible  <bruno@clisp.org>
75493
75494                 Assume correct S_ISDIR macro.
75495                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
75496
75497         2006-07-22  Bruno Haible  <bruno@clisp.org>
75498
75499                 * javaversion.h: New file, from GNU gettext.
75500                 * javaversion.c: New file, from GNU gettext.
75501                 * javaversion.java: New file, from GNU gettext.
75502                 * javaversion.class: New file, from GNU gettext.
75503
75504         2006-05-17  Bruno Haible  <bruno@clisp.org>
75505
75506                 Cygwin portability.
75507                 * javaexec.c (execute_java_class): Test for jview program
75508                 also on Cygwin.
75509
75510         2006-04-09  Bruno Haible  <bruno@clisp.org>
75511
75512                 * fatal-signal.c: Don't include string.h.
75513                 (at_fatal_signal): Use a copying loop instead of memcpy.
75514
75515         2005-12-04  Bruno Haible  <bruno@clisp.org>
75516
75517                 * csharpexec.c: Add support for 'clix' launcher (untested).
75518                 (execute_csharp_using_sscli): New function.
75519                 (execute_csharp_program): Call it.
75520
75521         2006-06-21  Bruno Haible  <bruno@clisp.org>
75522
75523                 Avoid warnings from recent versions of mcs.
75524                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
75525                 -o, -L, -r any more. Use options documented since mcs-1.0
75526                 instead. Similarly for -g.
75527
75528         2005-07-09  Bruno Haible  <bruno@clisp.org>
75529
75530                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
75531                 add a .dll suffix.
75532                 Reported by Mark Junker <mjscod@gmx.de>.
75533
75534         2006-06-17  Bruno Haible  <bruno@clisp.org>
75535
75536                 * config.charset: Update for NetBSD 3.0.
75537
75538         2006-05-17  Bruno Haible  <bruno@clisp.org>
75539
75540                 Cygwin portability.
75541                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
75542
75543         2006-05-16  Bruno Haible  <bruno@clisp.org>
75544
75545                 * localcharset.c [CYGWIN]: Include <windows.h>.
75546                 (get_charset_aliases): For Cygwin, return the same CPxxx
75547                 aliases list as under WIN32.
75548                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
75549                 the environment variables. Fall back to GetACP().
75550
75551         2006-04-05  Bruno Haible  <bruno@clisp.org>
75552
75553                 * config.charset: Update Juan Manuel Guerrero's address.
75554
75555         2005-02-12  Bruno Haible  <bruno@clisp.org>
75556
75557                 * allocsa.h: Add extern "C" for C++.
75558
75559         2005-02-10  Bruno Haible  <bruno@clisp.org>
75560
75561                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
75562                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
75563
75564         2006-07-22  Bruno Haible  <bruno@clisp.org>
75565
75566                 * gettext.h: Update to GNU gettext-0.15.
75567
75568 2006-07-22  Bruno Haible  <bruno@clisp.org>
75569
75570         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
75571         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
75572         lib-prefix.m4, longdouble.m4, ssize_t.m4.
75573
75574 2006-07-21  Eric Blake  <ebb9@byu.net>
75575
75576         * modules/stdlib-safer: New file.
75577         * MODULES.html.sh (File stream based Input/Output): Add
75578         stdlib-safer.
75579
75580 2006-07-21  Eric Blake  <ebb9@byu.net>
75581
75582         * lib/stdlib-safer.h: New file from coreutils, required by
75583         stdlib--.h.
75584
75585 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
75586
75587         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
75588
75589 2006-07-20  Bruno Haible  <bruno@clisp.org>
75590
75591         * gnulib-tool: Recognize new option --assume-autoconf.
75592         (autoconf_minversion): New variable.
75593         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
75594
75595 2006-07-20  Bruno Haible  <bruno@clisp.org>
75596
75597         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
75598
75599 2006-07-19  Derek R. Price  <derek@ximbiot.com>
75600
75601         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
75602         Reindent and repaginate.
75603
75604 2006-07-19  Derek Price  <derek@ximbiot.com>
75605
75606         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
75607         Correct grammar.
75608
75609 2006-07-17  Bruno Haible  <bruno@clisp.org>
75610
75611         * modules/list: New file.
75612         * modules/array-list: New file.
75613         * modules/carray-list, modules/carray-list-tests: New files.
75614         * modules/linked-list, modules/linked-list-tests: New files.
75615         * modules/avltree-list, modules/avltree-list-tests: New files.
75616         * modules/rbtree-list, modules/rbtree-list-tests: New files.
75617         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
75618         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
75619         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
75620         * modules/oset: New file.
75621         * modules/array-oset: New file.
75622         * modules/avltree-oset, modules/avltree-oset-tests: New files.
75623         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
75624         * tests/test-carray_list.c: New file.
75625         * tests/test-linked_list.c: New file.
75626         * tests/test-avltree_list.c: New file.
75627         * tests/test-rbtree_list.c: New file.
75628         * tests/test-linkedhash_list.c: New file.
75629         * tests/test-avltreehash_list.c: New file.
75630         * tests/test-rbtreehash_list.c: New file.
75631         * tests/test-avltree_oset.c: New file.
75632         * tests/test-rbtree_oset.c: New file.
75633         * MODULES.html.sh (Container data structures): New section.
75634
75635 2006-07-17  Bruno Haible  <bruno@clisp.org>
75636
75637         * m4/gl_list.m4: New file.
75638
75639 2006-07-17  Bruno Haible  <bruno@clisp.org>
75640
75641         * lib/gl_list.h: New file.
75642         * lib/gl_list.c: New file.
75643         * lib/gl_array_list.h: New file.
75644         * lib/gl_array_list.c: New file.
75645         * lib/gl_carray_list.h: New file.
75646         * lib/gl_carray_list.c: New file.
75647         * lib/gl_linked_list.h: New file.
75648         * lib/gl_linked_list.c: New file.
75649         * lib/gl_anylinked_list1.h: New file.
75650         * lib/gl_anylinked_list2.h: New file.
75651         * lib/gl_avltree_list.h: New file.
75652         * lib/gl_avltree_list.c: New file.
75653         * lib/gl_anyavltree_list1.h: New file.
75654         * lib/gl_anyavltree_list2.h: New file.
75655         * lib/gl_rbtree_list.h: New file.
75656         * lib/gl_rbtree_list.c: New file.
75657         * lib/gl_anyrbtree_list1.h: New file.
75658         * lib/gl_anyrbtree_list2.h: New file.
75659         * lib/gl_anytree_list1.h: New file.
75660         * lib/gl_anytree_list2.h: New file.
75661         * lib/gl_linkedhash_list.h: New file.
75662         * lib/gl_linkedhash_list.c: New file.
75663         * lib/gl_anyhash_list1.h: New file.
75664         * lib/gl_anyhash_list2.h: New file.
75665         * lib/gl_avltreehash_list.h: New file.
75666         * lib/gl_avltreehash_list.c: New file.
75667         * lib/gl_rbtreehash_list.h: New file.
75668         * lib/gl_rbtreehash_list.c: New file.
75669         * lib/gl_anytreehash_list1.h: New file.
75670         * lib/gl_anytreehash_list2.h: New file.
75671
75672         * lib/gl_oset.h: New file.
75673         * lib/gl_oset.c: New file.
75674         * lib/gl_array_oset.h: New file.
75675         * lib/gl_array_oset.c: New file.
75676         * lib/gl_avltree_oset.h: New file.
75677         * lib/gl_avltree_oset.c: New file.
75678         * lib/gl_rbtree_oset.h: New file.
75679         * lib/gl_rbtree_oset.c: New file.
75680         * lib/gl_anytree_oset.h: New file.
75681
75682 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75683
75684         * m4/mkancesdirs.m4: New file.
75685         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
75686         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
75687         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
75688         it.
75689
75690 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75691
75692         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
75693         * lib/mkancesdirs.h: New files.
75694         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
75695         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
75696         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
75697         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
75698         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
75699         callers changed.  Revamp internals significantly, by not
75700         attempting to create directories that are temporarily more
75701         permissive than the final results.  Do not attempt to use
75702         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
75703         This removes some race conditions, fixes some bugs, and simplifies
75704         things.  Use new dirchownmod function to do owner and mode changes.
75705         * lib/mkdir-p.h: Likewise.
75706         * lib/modechange.c (octal_to_mode): New function.
75707         (struct mode_change): New member mentioned.
75708         (make_node_op_equals): New arg mentioned.  All callers changed.
75709         (mode_compile): Keep track of which mode bits the user has explicitly
75710         mentioned.
75711         (mode_adjust): New arg DIR, so that we implement the X op correctly.
75712         New arg PMODE_BITS, to keep track of which mode bits the user
75713         mentioned; it treats S_ISUID and S_ISGID speciall.
75714         All callers changed.
75715         * lib/modechange.h: Likewise.
75716
75717 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75718
75719         * MODULES.html.sh: Add mkancestors.
75720         * modules/mkancesdirs: New module.
75721         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
75722         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
75723         The chdir-safer and afs files are now orphans; I'll remove them
75724         unless someone speaks up.
75725         Add lib/dirchownmod.c, lib/dirchownmod.h.
75726         (Depends-on): Remove alloca, chown, save-cwd, dirname.
75727         Add lchown, mkancesdirs.
75728         (Maintainer): Add self.
75729
75730 2006-07-15  Karl Berry  <karl@gnu.org>
75731
75732         * gnulib-tool: help message wording/arrangement.
75733
75734 2006-07-14  Simon Josefsson  <jas@extundo.com>
75735
75736         * doc/gnulib.texi (Libtool and Windows): New section.
75737
75738 2006-07-12  Simon Josefsson  <jas@extundo.com>
75739
75740         * modules/gendocs (License): Fix license, approved by Karl.
75741
75742 2006-07-12  Eric Blake  <ebb9@byu.net>
75743
75744         * MODULES.html.sh: Add gendocs.
75745
75746 2006-07-11  Eric Blake  <ebb9@byu.net>
75747
75748         * modules/fdl: New module, to install doc/fdl.texi.
75749         * MODULES.html.sh: Add new section for documentation modules.
75750         * gnulib-tool: Avoid space-tab.
75751         (--doc-base): New option, to manage files from doc.
75752
75753 2006-07-11  Eric Blake  <ebb9@byu.net>
75754
75755         * m4/absolute-header.m4: Fix comments to match recent change.
75756
75757 2006-07-11  Eric Blake  <ebb9@byu.net>
75758
75759         * gnulib-tool: List --doc-base before --tests-base.
75760
75761 2006-07-11  Derek R. Price  <derek@ximbiot.com>
75762
75763         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
75764
75765 2006-07-11  Bruno Haible  <bruno@clisp.org>
75766
75767         * README: Mention where to put documentation.
75768
75769 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75770
75771         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
75772
75773 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75774
75775         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
75776         to stdint.m4.
75777
75778 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75779
75780         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
75781         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
75782         "no/such/file/stdint.h" when there is no such file, so that
75783         the resulting C code can be parsed by dodgy compilers.
75784         Problems reported by Bob Proulx.
75785
75786 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75787
75788         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
75789         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75790         macros into the GNU _D_EXACT_NAMLEN.
75791         * lib/savedir.c:  Likewise.
75792         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
75793
75794 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75795         and Paul Eggert  <eggert@cs.ucla.edu>
75796
75797         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
75798         * m4/savedir.m4:
75799         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75800         macros into the GNU _D_EXACT_NAMLEN.
75801
75802 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75803
75804         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
75805         around the absolute name, to work around a problem with the HP-UX
75806         11.23 native C compiler, reported by Bob Proulx.
75807
75808 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75809
75810         * doc/maintain.texi, make-stds.texi: Sync from
75811         <http://savannah.gnu.org/projects/gnustandards>.
75812
75813 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75814
75815         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
75816
75817 2006-07-09  Jim Meyering  <jim@meyering.net>
75818
75819         * m4/glob.m4: Remove a doubled word in a comment.
75820
75821 2006-07-09  Jim Meyering  <jim@meyering.net>
75822
75823         * lib/argp-pv.c: Remove a doubled word in a comment.
75824         * lib/check-version.c (check_version): Likewise.
75825         * lib/javacomp.c (compile_java_class): Likewise.
75826
75827 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75828
75829         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
75830         for the benefit of people using Autoconf 2.60.  If you want to
75831         support older Autoconf versions you can copy m4/onceonly_2_57.m4
75832         (or m4/onceonly.m4, if pre-2.57) manually.
75833
75834 2006-07-08  Jim Meyering  <jim@meyering.net>
75835
75836         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
75837         comment.
75838         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
75839         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
75840         comment.
75841
75842 2006-07-08  Jim Meyering  <jim@meyering.net>
75843
75844         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
75845
75846 2006-07-07  Simon Josefsson  <jas@extundo.com>
75847
75848         * tests/test-crc.c: Change expected crc value, the test vector
75849         were probably computed using the old broken crc.c?
75850
75851 2006-07-06  Simon Josefsson  <jas@extundo.com>
75852
75853         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
75854         now the canonical place for the M4 file).
75855
75856         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
75857         from the sys_socket dependency now.
75858
75859         * modules/inet_pton (Files): Ditto.
75860
75861         * modules/inet_ntop (Files): Ditto.
75862
75863 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75864
75865         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
75866         not gl_PREREQ_GETUSERSHELL.
75867
75868 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75869
75870         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
75871         with only one argument, for Autoconf 2.60.
75872         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
75873         expand to nothing, so add a shell command to avoid syntax error.
75874         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
75875
75876 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75877
75878         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
75879
75880 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75881
75882         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
75883         no longer needed.  Check for isblank decl.
75884         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
75885         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
75886         of existence.
75887
75888 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75889
75890         * lib/getloadavg.c: Use __VMS, not VMS.
75891         * lib/getopt.c: Likewise.
75892         * lib/getpagesize.h: Likewise.
75893         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
75894         and probably does not work.
75895
75896 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75897
75898         * lib/.cppi-disable: Add wcwidth.
75899         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
75900         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
75901         (ISGRAPH): Remove.  All uses changed to isgraph.
75902         (FOLD) [!defined _LIBC]: Remove special case.
75903         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
75904         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
75905         HAVE_ISBLANK.
75906         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
75907         case.
75908
75909 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
75910
75911         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
75912         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
75913         brackets.  Other minor changes to suppress some compiler
75914         warnings.
75915
75916 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75917         and Paul Eggert  <eggert@cs.ucla.edu>
75918
75919         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
75920         of invoking obsolescent AC_HEADER_DIRENT macro.
75921         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
75922         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
75923         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
75924         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
75925         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
75926         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75927         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
75928         * m4/readdir.m4: Remove; no longer needed.
75929
75930 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75931         and Paul Eggert  <eggert@cs.ucla.edu>
75932
75933         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
75934         Don't worry about this obsolete case any more.
75935         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
75936         directories.
75937         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
75938         worry about this obsolete case any more.
75939         * lib/fts.c: Likewise.
75940         * lib/getcwd.c: Likewise.
75941         * lib/glob.h: Likewise.
75942         * lib/savedir.c: Likewise.
75943
75944 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75945
75946         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
75947         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
75948         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
75949         needed.
75950         All uses removed.
75951         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75952         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75953         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
75954         needed.
75955         * m4/getdate.m4 (gl_GETDATE): Likewise.
75956         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75957         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75958         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75959         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75960         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75961         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75962         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
75963         needed.
75964
75965 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75966
75967         * lib/memcasecmp.c: Include <limits.h>.
75968         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
75969         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
75970         Don't assume isdigit succeeds only on '0' through '9'.
75971
75972 2006-07-05  Eric Blake  <ebb9@byu.net>
75973
75974         * modules/getaddrinfo (Depends-on): Add snprintf.
75975
75976 2006-07-05  Eric Blake  <ebb9@byu.net>
75977
75978         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
75979         to avoid 'header present but could not be compiled' on cygwin.
75980
75981 2006-07-05  Eric Blake  <ebb9@byu.net>
75982
75983         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
75984         missing from netdb.h.
75985         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
75986
75987 2006-07-05  Derek R. Price  <derek@ximbiot.com>
75988
75989         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
75990         no longer needed.
75991         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
75992         * m4/getdate.m4 (gl_GETDATE): Likewise.
75993         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75994         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75995         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75996         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75997         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75998
75999 2006-07-05  Derek R. Price  <derek@ximbiot.com>
76000
76001         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
76002         All uses of is_space replaced by isspace.
76003         * lib/exit.h: Don't talk about STDC_HEADERS.
76004         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
76005         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
76006         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
76007         replaced by isprint etc.
76008         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
76009         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76010         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
76011         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
76012         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
76013         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
76014
76015 2006-07-05  Bruno Haible  <bruno@clisp.org>
76016
76017         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
76018         the function exists, before testing against AIX.
76019         Reported by Martin Lambers <marlam@marlam.de>.
76020
76021 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76022
76023         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
76024         From Mark D. Baushke.
76025
76026 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
76027
76028         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
76029         to the absolute name, not just one, to bypass Sun C 5.8's
76030         "warning: #include of /usr/include/... may be non-portable".
76031
76032 2006-07-04  Eric Blake  <ebb9@byu.net>
76033
76034         * modules/dirname-tests: New test module.
76035         * tests/test-dirname.c: New file, replacing dirname.c
76036         TEST_DIRNAME section that was recently deleted.
76037
76038 2006-07-04  Bruno Haible  <bruno@clisp.org>
76039
76040         Assume ANSI C header files and <ctype.h> functions.
76041         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
76042         (mbsnwidth): Use isprint, iscntrl instead.
76043
76044 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76045
76046         Merge from coreutils.
76047         * MODULES.html.sh: Add xstrtold.
76048         * modules/xstrtold: New file.
76049         * modules/cycle-check (Files): Add lib/same-inode.h.
76050         * modules/dirname (Files): Add m4/double-slash-root.m4.
76051         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
76052         * modules/mkdir-p (Files): Add lib/same-inode.h.
76053         * modules/same (Files): Add lib/same-inode.h.
76054
76055 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76056
76057         * m4/absolute-header.m4: Renamed from full-header-path.m4.
76058         This is to keep the terminology clean; POSIX talks about
76059         "absolute pathnames", not "full pathnames", but the GNU
76060         Coding Standards say to use "path" for something else;
76061         so use "absolute" to keep both sides happy.
76062         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
76063         Set gl_absolute_header, not gl_full_header_path.
76064         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
76065         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
76066         All uses changed.
76067
76068         Merge from coreutils.
76069
76070         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76071
76072         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
76073         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
76074         want to require the building of c-strtod.o.
76075         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
76076         needs -lm directly.
76077         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
76078
76079         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76080
76081         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
76082         --as-needed option if available.  Problem reported by Albert Chin in
76083         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
76084         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
76085         cc merely issues a bunch of annoying warnings for --as-needed
76086         (this problem was reported by Bob Proulx).  Also, try linking with
76087         -lm to detect a bug in binutils 2.16 (this problem was reported
76088         by Ralf Wildenhues).
76089
76090         2006-06-18  Jim Meyering  <jim@meyering.net>
76091
76092         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
76093         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
76094         macro.
76095         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
76096         also check for glibc-2.4's abort-inducing bug.
76097
76098         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
76099         Low-probability clean-up should be to use rmdir to get rid of
76100         the just-created directory, not unlink.
76101
76102         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
76103         configure fail, and request a bug report to inform us about it.
76104         Add a comment that, barring reports to the contrary, in 2007 we'll
76105         assume ftruncate is universally available.
76106
76107         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76108
76109         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
76110
76111         2006-03-12  Jim Meyering  <jim@meyering.net>
76112
76113         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
76114         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
76115         * m4/same.m4 (gl_SAME): Likewise.
76116         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
76117
76118         2006-03-11  Eric Blake  <ebb9@byu.net>
76119
76120         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
76121         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
76122         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
76123         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
76124
76125 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
76126
76127         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
76128         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
76129         reported by Mark D. Baushke, one in
76130         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
76131
76132         Merge from coreutils.
76133
76134         * lib/.cppi-disable: Add stdint_.h.
76135         * lib/.cvsignore: Add stdint.h.
76136
76137         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
76138
76139         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
76140         both double and long double versions.
76141         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
76142         * lib/xstrtold.c: New file.
76143         * lib/xstrtod.h (xstrtold): New decl.
76144
76145         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
76146
76147         * lib/filemode.c (setst): Remove.
76148         (strmode): Rewrite to avoid setst.  This makes the code shorter,
76149         (arguably) clearer, and the generated code is a bit smaller on my
76150         Debian GNU/Linux stable x86 host.
76151
76152         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
76153
76154         * lib/filemode.c: Include "filemode.h" first, to test the interface.
76155         Assume that filemode.h includes sys/types.h and sys/stat.h.
76156         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
76157         (ftypelet): Reorder to put common cases first, for efficiency.
76158         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
76159         to do 'M'.
76160         (strmode): Renamed from mode_string, and now stores 12 bytes instead
76161         of 10, for compatibility with FreeBSD.  All callers changed.
76162         (filemodestring): Now stores 12 bytes instead of 10, and sets file
76163         types that can't be deduced solely from st_mode.  First arg is now a
76164         const pointer.
76165         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
76166         (strmode): Renamed from mode_string.
76167         (filemodestring): New decl.
76168         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
76169         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
76170         needed.
76171         (S_ISPORT, S_ISWHT): New macros, if not already defined.
76172
76173         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
76174
76175         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
76176         fsusage.h now does that.  Include fsusage.h first, to test interface.
76177         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
76178         at most one method (the old code could have generated decls that
76179         didn't conform to C89, not that this was ever exercised).
76180         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
76181
76182         2006-03-19  Jim Meyering  <jim@meyering.net>
76183
76184         Work even in a chroot where d_ino values for entries in "/"
76185         don't match the stat.st_ino values for the same names.
76186         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
76187         number, iterate through all entries again, using lstat instead.
76188         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
76189         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
76190
76191         * lib/getcwd.c (__getcwd): Clarify a comment.
76192         Use memcpy in place of a call to strcpy.
76193
76194         2006-03-12  Jim Meyering  <jim@meyering.net>
76195
76196         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
76197         matches that of the current directory (which we're about to chdir ".."
76198         out of), then save the dev-ino of the parent, instead.
76199
76200         * lib/same-inode.h (SAME_INODE): New file/macro.
76201         * lib/chdir-safer.c (SAME_INODE): Remove definition.
76202         Include "same-inode.h", instead.
76203         * lib/same.c: Likewise.
76204         * lib/cycle-check.h: Include "same-inode.h".
76205         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
76206         * lib/cycle-check.c (SAME_INODE): Remove definition.
76207         * lib/root-dev-ino.h: Include "same-inode.h".
76208
76209         2006-03-11  Eric Blake  <ebb9@byu.net>
76210
76211         * lib/same.c (same_name): s/base_name/last_component/
76212         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
76213         * lib/filenamecat.c (file_name_concat): Likewise.
76214
76215         2006-03-11  Eric Blake  <ebb9@byu.net>,
76216                     Paul Eggert  <eggert@cs.ucla.edu>
76217
76218         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
76219         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
76220         drive prefix.
76221         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
76222         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
76223         (last_component): New method.
76224         * lib/dirname.c (dir_len): Determine when drive letters need a
76225         subsequent slash.  Preserve // when it is special.
76226         (dir_name): Don't append dot when drive letter is absolute.
76227         [TEST_DIRNAME]: Move into a full-blown gnulib test.
76228         * lib/basename.c (base_name): New semantics - malloc the result.
76229         Preserve // when it is special.  Preserve relative files that look
76230         like drive letters.
76231         (base_len): Preserve // when it is special.
76232         (last_component): New method, similar to old base_name semantics.
76233         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
76234         base_name.  Strip redundant slashes from ///.
76235
76236 2006-07-03  Jim Meyering  <jim@meyering.net>
76237
76238         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
76239         macro is used before the first cycle_check call.
76240
76241 2006-07-03  Eric Blake  <ebb9@byu.net>
76242
76243         * modules/dirname (Depends-on): Add xstrndup.
76244
76245 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76246
76247         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
76248         test cases, so that config.log is a bit easier to follow.
76249
76250 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
76251
76252         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
76253         both are 64 bits, since this seems to be the tradition, and this
76254         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
76255         we ever run into a host that prefers long long to long in this
76256         case, we'll need another configure-time test.  Problem reported by
76257         Jim Meyering.
76258
76259 2006-07-02  Eric Blake  <ebb9@byu.net>
76260
76261         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
76262
76263 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76264
76265         * modules/inttypes (Depends-on): No longer depends on stdint.
76266         * modules/stdint (Description): Say more about assumptions.
76267         Say that the fast types might differ.  Say macros are used.
76268         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76269         (Makefile.am): Revise list of substituted symbols to match
76270         new stdint.m4.
76271         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76272         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76273         * tests/test-stdint.c (verify_same_types)
76274         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76275         the code conforms to C99/C89.
76276         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76277         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76278
76279 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76280
76281         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76282         but fix a bug, by requiring at least 64 bits.
76283         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76284         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
76285         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
76286         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76287
76288         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
76289         changes.  Make 2.59 a prerequisite.  Check and substitute for
76290         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
76291         inttypes.h.  Do not use special include files; just use the
76292         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
76293         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
76294         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
76295         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
76296         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
76297         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
76298         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
76299         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
76300         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
76301         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
76302         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
76303         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
76304         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
76305         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
76306         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
76307         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
76308         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
76309         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
76310         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
76311         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
76312         WINT_MAX.  Check for C99 conformance more strictly, by detecting
76313         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
76314         not check for things that C99 does not require, e.g., int8_t.  If
76315         a test isn't needed unless <stdint.h> isn't working, and is
76316         unlikely to be needed for any other reason, then don't do it
76317         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
76318         size_t, since we assume C89 freestanding at least.  Do not check
76319         for sig_atomic_t, wchar_t, or wint_t, since the code now does
76320         the right thing even if the types are not defined.  Instead use:
76321         (gl_STDINT_TYPE_PROPERTIES): New macro.
76322         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
76323         testing whether <sys/types.h> clashes, as Autoconf does this for
76324         us now.  All uses removed.
76325         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
76326         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
76327         (gl_CHECK_TYPE_SAME):
76328         Remove; no longer needed.
76329         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
76330         exists, since we'll return 0 anyway in that case.
76331         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
76332
76333 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76334
76335         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
76336         possible collision with system files.
76337         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
76338         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
76339         WCHAR_MIN and WCHAR_MAX in this case.
76340         (<stddef.h>): Do not include; no longer needed.
76341         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
76342         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
76343         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
76344         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
76345         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
76346         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
76347         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
76348         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
76349         !defined(__c99))]: Include in this case too, since it's harmless
76350         now.
76351         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
76352         dangerous to do so.
76353         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
76354         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
76355         (_STDINT_MIN, _STDINT_MAX): New macros.
76356         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
76357         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
76358         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
76359         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
76360         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
76361         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
76362         macros, not typedefs; this simplifies things quite a bit.
76363         Use long int for all types narrower than int64_t.
76364         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
76365         Define in terms of long long int or int64_t or long int,
76366         not int64_t or int32_t.  This saves some compile-time testing.
76367         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
76368         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
76369         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
76370         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
76371         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
76372         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
76373         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
76374         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
76375         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
76376         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
76377         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76378         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76379         undef any previous version and define our own version, for
76380         simplicity and consistency with the new macros for types.
76381         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76382         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76383         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
76384         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
76385         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
76386         @WINT_T_SUFFIX@ to keep things simple here.
76387         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
76388         Simplify by assuming typical 8/16/32/64 host, since we're
76389         already doing that elsewhere anyway.
76390         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
76391         and assume long long int is 64 bits if available.  This
76392         speeds up 'configure'.
76393
76394 2006-07-01  Eric Blake  <ebb9@byu.net>
76395
76396         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
76397         Reported by Andreas Buening.
76398
76399 2006-07-01  Eric Blake  <ebb9@byu.net>
76400
76401         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
76402
76403 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76404
76405         * lib/getaddrinfo.c: fixed typo
76406
76407 2006-06-29  Jim Meyering  <jim@meyering.net>
76408
76409         * modules/strftime (Maintainer): Add my name, since with the
76410         FPRINTFTIME changes strftime.c has forked from glibc.
76411
76412 2006-06-29  Eric Blake  <ebb9@byu.net>
76413
76414         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
76415
76416 2006-06-29  Eric Blake  <ebb9@byu.net>
76417
76418         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
76419
76420 2006-06-29  Eric Blake  <ebb9@byu.net>
76421
76422         * lib/stat_.h: New file.
76423
76424 2006-06-29  Eric Blake  <ebb9@byu.net>
76425
76426         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
76427         unused static function.
76428
76429 2006-06-29  Eric Blake  <ebb9@byu.net>
76430
76431         * doc/functions.texi (Function Portability): Document missing lstat
76432         on mingw.
76433
76434 2006-06-29  Eric Blake  <ebb9@byu.net>
76435
76436         * MODULES.html.sh: Add sys_stat.
76437         * modules/sys_stat: New module.
76438         * modules/mkstemp (Depends-on): Add sys_stat.
76439
76440 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76441
76442         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
76443
76444 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76445
76446         * m4/c-bs-a.m4: Removed.
76447
76448 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76449
76450         * lib/strftime.c: Assume strftime() exists.
76451
76452 2006-06-29  Derek Price  <derek@ximbiot.com>
76453
76454         * modules/c-bs-a: Removed - \a is C89.
76455         * MODULES.html.sh: Remove c-bs-a.
76456
76457 2006-06-29  Bruno Haible  <bruno@clisp.org>
76458
76459         * modules/wcwidth (License): Change to LGPL.
76460
76461 2006-06-28  Simon Josefsson  <jas@extundo.com>
76462
76463         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
76464         on _WIN32.
76465
76466         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
76467         getnameinfo.
76468
76469 2006-06-28  Simon Josefsson  <jas@extundo.com>
76470
76471         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
76472
76473 2006-06-28  Simon Josefsson  <jas@extundo.com>
76474
76475         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
76476         functions there.  It will succeed on Windows XP, but on Windows
76477         2000 and (presumably) earlier, it will fail, and use the internal
76478         re-implementation.
76479         (use_win32_p): New function.
76480         (getaddrinfo): Use strtoul on servname, to support numeric ports.
76481         Support AI_NUMERICSERV to disable getservbyname.
76482         (getnameinfo): New function, only supports
76483         NI_NUMERICHOST|NI_NUMERICSERV for now.
76484
76485         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
76486         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
76487         getnameinfo.
76488
76489 2006-06-28  Eric Blake  <ebb9@byu.net>
76490
76491         * modules/wcwidth: New file.
76492         * modules/mbchar (Depends-on): Add wcwidth.
76493         * modules/mbswidth (Depends-on): Add wcwidth.
76494         * MODULES.html.sh: Add wcwidth.
76495
76496 2006-06-28  Eric Blake  <ebb9@byu.net>
76497
76498         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
76499         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
76500
76501 2006-06-28  Eric Blake  <ebb9@byu.net>
76502
76503         * lib/xvasprintf.h: Fix comments.
76504
76505 2006-06-28  Eric Blake  <ebb9@byu.net>
76506
76507         * lib/mbchar.h (wcwidth): Include wcwidth.h.
76508         * lib/mbswidth.c (wcwidth): Move from here...
76509         * lib/wcwidth.h: ...to this new file.
76510
76511 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76512
76513         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
76514
76515         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
76516         it's obsolete.
76517         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
76518
76519 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76520
76521         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
76522         Autoconf 2.60 says this stuff was obsolete.
76523
76524 2006-06-28  Bruno Haible  <bruno@clisp.org>
76525
76526         * modules/wcwidth (Files): Add m4/wchar_t.m4.
76527
76528 2006-06-28  Bruno Haible  <bruno@clisp.org>
76529
76530         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
76531         gt_TYPE_WCHAR_T.
76532
76533 2006-06-28  Bruno Haible  <bruno@clisp.org>
76534
76535         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
76536         declaration for wcwidth.
76537         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
76538
76539 2006-06-28  Bruno Haible  <bruno@clisp.org>
76540
76541         * lib/mkdtemp.c [MINGW]: Include <io.h>.
76542         (mkdir): Define using _mkdir.
76543
76544 2006-06-28  Bruno Haible  <bruno@clisp.org>
76545
76546         * lib/getaddrinfo.h: Fix POSIX URL.
76547         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
76548         _WIN32.
76549         (use_win32_p): Make static.
76550         (getaddrinfo): Reject service name if it is empty or does not consist
76551         solely of decimal digits, or if its value is > 65535.
76552         (getnameinfo): Remove useless casts.
76553
76554 2006-06-27  Simon Josefsson  <jas@extundo.com>
76555
76556         * modules/sys_select: New file, suggested by Bruno Haible, Paul
76557         Eggert and Martin Lambers.
76558
76559 2006-06-27  Simon Josefsson  <jas@extundo.com>
76560
76561         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
76562         Eggert and Martin Lambers.
76563
76564 2006-06-27  Bruno Haible  <bruno@clisp.org>
76565
76566         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
76567         result to 0, not to empty.
76568         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
76569
76570 2006-06-27  Bruno Haible  <bruno@clisp.org>
76571
76572         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
76573
76574 2006-06-26  Simon Josefsson  <jas@extundo.com>
76575
76576         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
76577         present.
76578
76579 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
76580
76581         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
76582         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
76583         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
76584
76585 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
76586
76587         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
76588
76589 2006-06-26  Bruno Haible  <bruno@clisp.org>
76590
76591         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
76592
76593 2006-06-26  Bruno Haible  <bruno@clisp.org>
76594
76595         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
76596
76597 2006-06-26  Bruno Haible  <bruno@clisp.org>
76598
76599         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
76600         SGI C compiler in pre-C99 mode.
76601         Suggested by Mark D. Baushke and Larry Jones.
76602
76603 2006-06-26  Bruno Haible  <bruno@clisp.org>
76604
76605         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
76606         WCHAR_MAX.
76607         Reported by Mark D. Baushke and Larry Jones.
76608
76609 2006-06-26  Bruno Haible  <bruno@clisp.org>
76610
76611         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
76612         in pre-C99 mode.
76613         Suggested by Mark D. Baushke and Larry Jones.
76614
76615 2006-06-23  Simon Josefsson  <jas@extundo.com>
76616             Bruno Haible  <bruno@clisp.org>
76617
76618         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
76619         Emit mostlyclean-local rule.
76620         (func_emit_tests_Makefile_am): Likewise.
76621         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
76622
76623 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
76624
76625         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
76626
76627 2006-06-23  Bruno Haible  <bruno@clisp.org>
76628
76629         * tests/test-stdint.c: Update to match ISO C 99 Technical
76630         Corrigendum 1.
76631
76632 2006-06-23  Bruno Haible  <bruno@clisp.org>
76633
76634         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
76635
76636 2006-06-23  Bruno Haible  <bruno@clisp.org>
76637
76638         * lib/stdint_.h: Treat IRIX like OpenBSD.
76639
76640 2006-06-23  Bruno Haible  <bruno@clisp.org>
76641
76642         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
76643         ISO C 99 Technical Corrigendum 1.
76644
76645 2006-06-22  Simon Josefsson  <jas@extundo.com>
76646
76647         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
76648         MinGW.
76649
76650 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76651
76652         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
76653         needed.  Some compiler complained about some of them.  Problem reported
76654         by Larry Jones in
76655         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
76656
76657 2006-06-21  Simon Josefsson  <jas@extundo.com>
76658
76659         * tests/test-getaddrinfo.c: New file.
76660
76661         * modules/getaddrinfo-tests: New file.
76662
76663         * MODULES.html.sh: Add inet_pton.
76664
76665         * modules/inet_pton: New file.
76666
76667 2006-06-21  Simon Josefsson  <jas@extundo.com>
76668
76669         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
76670         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
76671         of using the (limited) gnulib implementation on Windows XP.
76672
76673         * m4/inet_pton.m4: New file.
76674
76675 2006-06-21  Simon Josefsson  <jas@extundo.com>
76676
76677         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
76678         variable.
76679
76680         * lib/socket_.h: Don't define WINVER.
76681
76682         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
76683         slightly modified to work in gnulib.
76684
76685 2006-06-21  Simon Josefsson  <jas@extundo.com>
76686
76687         * doc/gnulib.texi (Windows sockets): Add.
76688
76689 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
76690
76691         * lib/read-file.c (fread_file): Start with buffer allocation of
76692         0 bytes rather than 1 byte; this simplifies the code.
76693         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
76694         code to free buffer and save/restore errno.
76695         (internal_read_file): Remove unused local.
76696
76697 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
76698
76699         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
76700         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
76701         Problem reported by Denis Excoffier in
76702         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
76703
76704 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76705
76706         * modules/sys_socket, modules/socklen: Include sys/types since
76707         FreeBSD 4.x's sys/socket.h needs it.
76708
76709 2006-06-19  Simon Josefsson  <jas@extundo.com>
76710
76711         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
76712
76713 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76714
76715         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
76716
76717 2006-06-19  Bruno Haible  <bruno@clisp.org>
76718
76719         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
76720         and FULL_PATH_INTTYPES_H in angle brackets.
76721         Reported by Mark D. Baushke <mdb@gnu.org>.
76722
76723 2006-06-17  Eric Blake  <ebb9@byu.net>
76724
76725         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
76726         errno.
76727
76728 2006-06-17  Bruno Haible  <bruno@clisp.org>
76729
76730         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
76731         <sys/inttypes.h>.
76732
76733 2006-06-17  Bruno Haible  <bruno@clisp.org>
76734
76735         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
76736         whether errno is declared. Assume <errno.h> declares errno.
76737
76738 2006-06-17  Bruno Haible  <bruno@clisp.org>
76739
76740         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
76741
76742 2006-06-17  Bruno Haible  <bruno@clisp.org>
76743
76744         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
76745         problem on Solaris 2.5.1.
76746
76747 2006-06-16  Eric Blake  <ebb9@byu.net>
76748
76749         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
76750         * lib/unicodeio.c [!defined errno]: Likewise.
76751         * lib/strtol.c [!defined errno]: Likewise.
76752         * lib/strtod.c [!defined errno]: Likewise.
76753
76754 2006-06-15  Eric Blake  <ebb9@byu.net>
76755
76756         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
76757
76758 2006-06-15  Eric Blake  <ebb9@byu.net>
76759
76760         * config/srclist.txt (ssize_t.m4): Lose sync.
76761
76762 2006-06-15  Bruno Haible  <bruno@clisp.org>
76763
76764         * modules/stdint (Files): Include m4/full-header-path.m4,
76765         m4/size_max.m4, m4/wchar_t.m4.
76766         (Makefile.am): Many more substitutions.
76767         * modules/stdint-tests: New file.
76768         * tests/test-stdint.c: New file.
76769
76770 2006-06-15  Bruno Haible  <bruno@clisp.org>
76771
76772         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
76773         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
76774         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
76775         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
76776         gl_CHECK_TYPE_SAME): New macros.
76777
76778 2006-06-15  Bruno Haible  <bruno@clisp.org>
76779
76780         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
76781
76782 2006-06-15  Bruno Haible  <bruno@clisp.org>
76783
76784         * lib/stdint_.h: Rewritten to be fully auto-configured.
76785         Fixes bug on HP-UX/IA64.
76786
76787 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
76788
76789         * lib/getdate.y (__attribute__): Don't define if already defined.
76790         Problem reported by Larry Jones.
76791         * lib/utimens.c (__attribute__): Likewise.
76792
76793 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
76794
76795         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
76796         reported by Andreas Schwab.
76797
76798 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76799             Bruno Haible  <bruno@clisp.org>
76800
76801         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
76802         check for the declaration of strnlen and a run test that exposes the
76803         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
76804         rpl_strndup.
76805
76806 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76807             Bruno Haible  <bruno@clisp.org>
76808
76809         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
76810
76811 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76812
76813         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
76814         compile test, for Tru64 4.0D.
76815
76816 2006-05-28  Karl Berry  <karl@gnu.org>
76817
76818         * config/srclist.txt (printf-args.c): lose sync.
76819
76820 2006-05-26  Martin Lambers  <marlam@marlam.de>
76821
76822         * lib/getpass.c: Updates the test for the native W32 API, and adds
76823         missing includes, thus fixing compilation warnings.
76824
76825 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
76826
76827         * lib/exclude.c (exclude_fnmatch): New function.
76828         (excluded_file_name): Call exclude_fnmatch.
76829         * lib/exclude.h (excluded_file_name): New prototype
76830
76831 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
76832
76833         * lib/tempname.c (small_open, large_open): New macros.
76834         (__open, __open64) [!_LIBC]: Remove.
76835         (__gen_tempname): Use small_open and large_open instead of __open
76836         and __open64.  This fixes a portability bug on HP-UX 11.11i
76837         reported by Simon Wing-Tang in
76838         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
76839
76840 2006-05-24  Bruno Haible  <bruno@clisp.org>
76841
76842         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
76843         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
76844         Reported by Thorsten Maerz <torte@netztorte.de> via
76845         Aaron Stone <aaron@serendipity.cx>.
76846
76847 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76848
76849         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
76850         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
76851         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
76852         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
76853         not really conditional on the cache.
76854         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
76855
76856 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76857
76858         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
76859         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
76860         (my_usleep): Don't mishandle maximum value.
76861
76862 2006-05-19  Jim Meyering  <jim@meyering.net>
76863
76864         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
76865
76866 2006-05-17  Bruno Haible  <bruno@clisp.org>
76867
76868         Cygwin portability.
76869         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
76870
76871 2006-05-17  Bruno Haible  <bruno@clisp.org>
76872
76873         * lib/stdint_.h: Fix recognition of Cygwin.
76874
76875 2006-05-15  Bruno Haible  <bruno@clisp.org>
76876
76877         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
76878         on libtool patch by Ralf Wildenhues.
76879
76880 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76881
76882         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
76883         test for C99 conformance; (bool) 0.5 is an integer constant
76884         expression, but (bool) -0.5 is not.  Problem reported by Fedor
76885         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
76886
76887 2006-05-11  Simon Josefsson  <jas@extundo.com>
76888
76889         * m4/xvasprintf.m4: Fix obvious typo.
76890
76891 2006-05-11  Jim Meyering  <jim@meyering.net>
76892
76893         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
76894         James Lemley.
76895
76896 2006-05-10  Simon Josefsson  <jas@extundo.com>
76897
76898         * lib/md4.c: Typo fix, update copyright years.
76899         (K1, K2): Don't use L because it turn computations into 64-bit on
76900         64-bit platforms.
76901
76902 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
76903
76904         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
76905         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
76906         unwanted sign propagation, e.g., on hosts with 64-bit int.
76907         There still are some problems with reeelly weird theoretical hosts
76908         (e.g., 33-bit int) but it's not worth worrying about now.
76909         * lib/sha1.c (rol): Likewise.
76910         (K1, K2, K3, K4): Remove unnecessary L suffix.
76911
76912 2006-05-10  Bruno Haible  <bruno@clisp.org>
76913
76914         * lib/des.c: Cast to avoid warnings.
76915
76916 2006-05-09  Bruno Haible  <bruno@clisp.org>
76917
76918         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
76919         (Depends-on): Depend also on xsize, stdarg.
76920         (configure.ac): Add gl_XVASPRINTF.
76921
76922 2006-05-09  Bruno Haible  <bruno@clisp.org>
76923
76924         * m4/xvasprintf.m4: New file.
76925
76926 2006-05-09  Bruno Haible  <bruno@clisp.org>
76927
76928         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
76929         (EOVERFLOW): Define fallback value.
76930         (xstrcat): New function.
76931         (xvasprintf): Recognize the special case of a string concatenation.
76932
76933 2006-05-08  Eric Blake  <ebb9@byu.net>
76934
76935         * gnulib-tool (func_version): Base copyright year on CVS date.
76936         (func_emit_copyright_notice): New function.
76937         (func_emit_lib_Makefile_am): Use it.
76938         (func_emit_tests_Makefile_am): Likewise.
76939         (func_import): Likewise.
76940
76941 2006-05-08  Bruno Haible  <bruno@clisp.org>
76942
76943         * modules/stdarg: New file.
76944         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
76945
76946 2006-05-08  Bruno Haible  <bruno@clisp.org>
76947
76948         * m4/stdarg.m4: New file, from GNU gettext.
76949
76950 2006-05-08  Bruno Haible  <bruno@clisp.org>
76951
76952         * config/srclist.txt (build-aux/config.rpath): different from latest
76953         release.
76954
76955 2006-05-08  Bruno Haible  <bruno@clisp.org>
76956
76957         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
76958
76959 2006-05-05  Jim Meyering  <jim@meyering.net>
76960
76961         * m4/warning.m4: New file, derived from bison's file by the same name.
76962
76963 2006-05-03  Bruno Haible  <bruno@clisp.org>
76964
76965         * lib/stdint_.h: Shorter URL.
76966         * lib/inttypes.h: Likewise.
76967
76968 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76969
76970         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
76971
76972 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76973
76974         * lib/verify.h: Document the internals better.  Most of this change
76975         was written by Bruno Haible.
76976
76977 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76978
76979         * doc/verify.texi: New file, partly based on a proposal by
76980         Bruno Haible.
76981
76982 2006-05-02  Bruno Haible  <bruno@clisp.org>
76983
76984         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
76985         test from here...
76986         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
76987
76988 2006-04-29  Bruno Haible  <bruno@clisp.org>
76989
76990         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
76991         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
76992
76993 2006-04-29  Bruno Haible  <bruno@clisp.org>
76994
76995         * gnulib-tool: Make --update option actually work.
76996
76997 2006-04-29  Bruno Haible  <bruno@clisp.org>
76998
76999         * doc/gcd.texi: New file.
77000         * doc/gnulib.texi: Include it.
77001
77002 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
77003
77004         * lib/getdate.y (get_date): When adding relative date, start with the
77005         initial time, not with the result of the first mktime call.
77006
77007 2006-04-25  Bruno Haible  <bruno@clisp.org>
77008
77009         * gnulib-tool (func_import): Output the include directives in three
77010         blocks, sorted separately.
77011         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77012
77013 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77014
77015         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
77016         to define main with arguments, for C++.  Reported by Eric Blake.
77017         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
77018         Prefer 'int main ()' to 'int main (void)', for C++.
77019         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
77020         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
77021         for 'main', for C99 and C++.
77022
77023 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
77024
77025         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
77026         Don't assume that exit status -1 is valid.
77027         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77028         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
77029         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
77030         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
77031         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
77032         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
77033         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
77034         functions can be used without declaring them, or that you can
77035         exit with status -1.
77036         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
77037
77038 2006-04-24  Karl Berry  <karl@gnu.org>
77039
77040         * config/srclist.txt (longdouble.m4): sync lost.
77041
77042 2006-04-24  Eric Blake  <ebb9@byu.net>
77043
77044         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
77045
77046 2006-04-24  Bruno Haible  <bruno@clisp.org>
77047
77048         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
77049         poll() implementation in AIX.
77050         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77051
77052 2006-04-24  Bruno Haible  <bruno@clisp.org>
77053
77054         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
77055         assigned exactly once.
77056
77057 2006-04-23  Claudio Fontana  <claudio@gnu.org>
77058             Bruno Haible  <bruno@clisp.org>
77059
77060         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
77061         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
77062         for AM_CPPFLAGS.
77063
77064 2006-04-23  Bruno Haible  <bruno@clisp.org>
77065
77066         * modules/copy-file: Depend on unistd.
77067         * modules/execute: Likewise.
77068         * modules/fatal-signal: Likewise.
77069         * modules/findprog: Likewise.
77070         * modules/mkdtemp : Likewise.
77071         * modules/pipe: Likewise.
77072         * modules/wait-process: Likewise.
77073
77074 2006-04-23  Bruno Haible  <bruno@clisp.org>
77075
77076         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
77077         condition was already detected.
77078         Reported by Ben Pfaff <blp@cs.stanford.edu>.
77079
77080 2006-04-23  Bruno Haible  <bruno@clisp.org>
77081
77082         * lib/copy-file.c: Include <unistd.h> unconditionally.
77083         * lib/execute.c: Likewise.
77084         * lib/fatal-signal.c: Likewise.
77085         * lib/findprog.c: Likewise.
77086         * lib/mkdtemp.c: Likewise.
77087         * lib/pipe.h: Likewise.
77088         * lib/pipe.c: Likewise.
77089         * lib/wait-process.h: Likewise.
77090
77091 2006-04-23  Bruno Haible  <bruno@clisp.org>
77092
77093         * gnulib-tool (func_usage): Fix --import description. Document
77094         --update.
77095         (func_import): Create temporary file in a temporary directory, if
77096         --dry-run is specified. Silence errors from 'grep' when there are no
77097         m4 files in $m4dir.
77098         (func_create_testdir): Silence errors from 'grep' when there are no
77099         m4 files in $m4dir.
77100         Reported by Karl Berry <karl@freefriends.org>.
77101
77102 2006-04-20  Bruno Haible  <bruno@clisp.org>
77103
77104         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
77105         one argument, so that the code will be portable to Autoconf 2.60.
77106         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
77107         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
77108         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
77109
77110 2006-04-19  Derek Price  <derek@ximbiot.com>
77111             Eric Blake  <ebb9@byu.net>
77112
77113         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
77114         rather than "/full/path.h".  Update comment to match.  Shorten &
77115         generalize m4_translit call via AS_TR_CPP.
77116
77117 2006-04-19  Derek Price  <derek@ximbiot.com>
77118             Eric Blake  <ebb9@byu.net>
77119
77120         * lib/inttypes.h: Correct grammar in comment.
77121
77122 2006-04-18  Derek Price  <derek@ximbiot.com>
77123             Paul Eggert  <eggert@cs.ucla.edu>
77124
77125         * modules/inttypes: New file.
77126         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
77127
77128 2006-04-18  Derek Price  <derek@ximbiot.com>
77129             Paul Eggert  <eggert@cs.ucla.edu>
77130
77131         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
77132         New files.
77133
77134 2006-04-18  Derek Price  <derek@ximbiot.com>
77135             Paul Eggert  <eggert@cs.ucla.edu>
77136
77137         * lib/inttypes.h: New file.
77138         * lib/strtoimax.c: Assume <inttypes.h>.
77139
77140 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
77141
77142         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
77143         isn't mounted.  Problem reported by Kir Kolyshkin.
77144
77145 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
77146
77147         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
77148         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
77149         Derek R. Price.
77150         * lib/regex.h (RE_DUP_MAX): Update comment to match current
77151         implementation.
77152
77153 2006-04-12  Eric Blake  <ebb9@byu.net>
77154
77155         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
77156         is now done automatically by the corresponding Autoconf macro.
77157
77158 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
77159
77160         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
77161         time_r.h.
77162
77163 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77164
77165         Merge regex changes from libc, removing some of our
77166         POSIX-conformance changes that were rejected and redoing them in a
77167         less-intrusive way.
77168
77169         * lib/regcomp.c (re_compile_internal, init_dfa):
77170         Length arg is now size_t, not Idx.  All uses changed.
77171         (peek_token): Forward decl now says internal_function.
77172         (__re_error_msgid, __re_error_msgid_idx):
77173         Now static rather than extern with attribute_hidden.
77174         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
77175         For some reason libc prefers K&R style defns for external functions.
77176         (regerror) [!defined _LIBC]: Likewise.
77177         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
77178         (seek_collating_symbol_entry, lookup_collation_sequence_value):
77179         (build_range_exp, build_collating_symbol):
77180         Use K&R-style defn.
77181         (re_compile_fastmap): Use '\0' to memset, not 0.
77182         (utf8_sb_map): Make the calculations more obvious.
77183         (init_dfa, parse_bracket_exp, build_charclass_op):
77184         Call calloc and cast result, as glibc does.
77185         (init_word_char, fetch_token, peek_token, peek_token_bracket):
77186         (build_range_exp, build_collating_symbol):
77187         Now internal functions.
77188
77189         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
77190
77191         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
77192         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
77193         Don't depend on VMS; depend on __VMS instead, for POSIX
77194         namespace cleanness.
77195         (regoff_t): Define to ssize_t, not long int.
77196
77197         Remove the REG_ macros named below.  Instead, make the old names
77198         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
77199         __USE_GNU_REGEX.
77200         (REG_BACKSLASH_ESCAPE_IN_LISTS):
77201         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
77202         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
77203         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
77204         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
77205         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
77206         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
77207         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
77208         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
77209         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
77210         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
77211         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
77212         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
77213         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
77214         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
77215         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
77216         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
77217         (REG_NREGS):
77218         Remove.  All uses replaced by the old RE_* names.
77219         (RE_BACKSLASH_ESCAPE_IN_LISTS):
77220         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
77221         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
77222         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
77223         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
77224         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
77225         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
77226         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
77227         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
77228         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
77229         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
77230         Don't bother having these macros be independent of each others'
77231         values, since they no longer exist in the POSIX name space.
77232
77233         Rename the following member names back to their old names,
77234         unless !__USE_GNU_REGEX.  All uses changed back.
77235         (buffer): Renamed from re_buffer.
77236         (allocated): Renamed from re_allocated.
77237         (used): Renamed from re_used.
77238         (syntax): Renamed from re_syntax.
77239         (fastmap): Renamed from re_fastmap.
77240         (translate): Renamed from re_translate.
77241         (can_be_null): Renamed from re_can_be_null.
77242         (regs_allocated): Renamed from re_regs_allocated.
77243         (fastmap_accurate): Renamed from re_fastmap_accurate.
77244         (no_sub): Renamed from re_no_sub.
77245         (not_bol): Renamed from re_not_bol.
77246         (not_eol): Renamed from re_not_eol.
77247         (newline_anchor): Renamed from re_newline_anchor.
77248         (num_regs): Renamed from rm_num_regs.
77249         (start): Renamed from rm_start.
77250         (end): Renamed from rm_end.
77251
77252         (free_state): Move up a bit.
77253
77254         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
77255         #define to be empty.
77256         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
77257         when that is what is intended.
77258         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
77259         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
77260         (MAX): New macro.
77261         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
77262         All uses changed back to re_malloc, etc.  It's now the caller's
77263         responsibility to check for overflow; all callers changed.
77264         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
77265         (re_x2nrealloc): Remove.
77266         (free_state): Remove decl.
77267
77268         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77269         (re_set_registers, re_exec):
77270         Use K&R-style defn.
77271
77272         2006-01-31  Roland McGrath  <roland@redhat.com>
77273
77274         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77275         Reported by Mike Frysinger <vapier@gentoo.org>.
77276
77277         2006-01-15  Andreas Jaeger  <aj@suse.de>
77278
77279         [BZ #1950]
77280         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77281         build_wcs_upper_buffer change.
77282         (build_wcs_upper_buffer): Change return type.
77283
77284         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
77285
77286         * lib/regex_internal.h: Include <stdint.h> if available.
77287
77288         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
77289
77290         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
77291
77292         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
77293
77294         * lib/regcomp.c: Adjust for changed secondary hash function.
77295
77296         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
77297
77298         * lib/regex.h: Pretty printing.
77299         Clean up namespace a bit.
77300
77301         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
77302
77303         * lib/regexec.c (update_cur_sifted_state, check_arrival,
77304         check_arrival_add_next_nodes): Avoid using uninitialized variable.
77305
77306         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77307                     Ulrich Drepper  <drepper@redhat.com>
77308
77309         [BZ #1302]
77310         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
77311         changed.
77312         (bitset_word_t): Renamed from bitset_word.  All uses changed.
77313
77314         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
77315
77316         [BZ #281]
77317         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
77318         * lib/regcomp.c: Remove unnecessary uses of
77319         unsigned RE_TRANSLATE_TYPE.
77320         * lib/regex_internal.h: Likewise.
77321         * lib/regex_internal.c: Likewise.
77322         * lib/regexec.c: Likewise.
77323         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
77324
77325         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
77326
77327         * lib/regexec.c (find_recover_state): Remove unnecessary
77328         initialization.
77329         (transit_state_bkref): Make DFA a const pointer.
77330         (get_subexp): Likewise.
77331         (check_arrival): Likewise.
77332         (update_cur_sifted_state): Likewise.
77333         (re_search_internal): Likewise.
77334         (prune_impossible_nodes): Likewise.
77335         (acquire_init_state_context): Likewise.
77336         (proceed_next_node): Likewise.
77337         (set_regs): Likewise.
77338         (free_fail_stack_return): Likewise.
77339         (check_arrival_expand_ecl): Mark DFA parameter as const.
77340         (check_arrival_expand_ecl_sub): Likewise.
77341         (check_subexp_limits): Likewise.
77342         (sub_epsilon_src_nodes):  Likewise.
77343         (add_epsilon_src_nodes):  Likewise.
77344         (merge_state_array): Likewise.
77345         (update_regs): Likewise.
77346         (build_trtable): Likewise.
77347         (sift_states_backward): Mark MCTX parameter as const.
77348         (build_sifted_states): Likewise.
77349         (update_cur_sifted_state): Likewise.
77350         (sift_states_mkref): Likewise.
77351         (check_arrival_expand_ecl): Mark eclosure as const.
77352         (check_dst_limits_calc_pos_1): Likewise.
77353         * lib/regex_internal.h (re_match_context_t): Make dfa a const
77354         pointer.
77355
77356         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
77357
77358         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
77359         (transit_state_sb): Likewise.
77360         (transit_state_mb): Likewise.
77361         (sift_states_iter_mb): Likewise.
77362         (check_arrival_add_next_nodes): Likewise.
77363         (check_node_accept_bytes): Change first parameter to pointer-to-const.
77364         [_LIBC] (re_search_2_stub): Use mempcpy.
77365
77366         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
77367         mbrtowc for very simple UTF-8 case.
77368
77369         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
77370         a pointer-to-const.
77371         (re_acquire_state_context): Likewise.
77372         * lib/regex_internal.h: Adjust prototypes.
77373
77374         * lib/regex.c: Prevent using C++ compilers.
77375
77376         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
77377         (re_acquire_state_context): Likewise.
77378
77379 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77380
77381         * modules/regex (Depends-on): Add ssize_t.
77382
77383 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77384
77385         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
77386         translation table.
77387
77388 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77389
77390         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
77391
77392 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
77393             Bruno Haible  <bruno@clisp.org>
77394
77395         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
77396         <sys/types.h> and <inttypes.h>.
77397
77398 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77399
77400         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
77401         `__error_t_defined', so argp.h will not typedef the former.
77402
77403 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
77404
77405         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
77406         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
77407         glibc names.  Even if glibc is changed to conform to POSIX, the
77408         traditional names will be available anyway, since regex depends on
77409         the extensions module.  Also, fix a longstanding typo in the
77410         implementation of Spencer ERE test #75 from grep 2.3.  Problems
77411         reported by Emanuele Giaquinta.  Also, change sense of cached
77412         variable, so that the message makes sense.
77413
77414 2006-03-24  Simon Josefsson  <jas@extundo.com>
77415
77416         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
77417         including some doc fixes.
77418         (base64_encode_alloc): Fix +1 bug on allocation failures.
77419
77420 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77421
77422         * lib/base64.c (base64_encode): Do not read past end of array with
77423         unsanitized input on systems with CHAR_BIT > 8.
77424
77425 2006-03-24  Eric Blake  <ebb9@byu.net>
77426
77427         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
77428
77429 2006-03-22  Karl Berry  <karl@gnu.org>
77430
77431         * config/srclist.txt (*setenv.[ch]): get from coreutils.
77432         * config/srclistvars.sh (COREUTILS): new var.
77433
77434 2006-03-17  Jim Meyering  <jim@meyering.net>
77435
77436         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
77437         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
77438
77439 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77440
77441         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
77442         no longer needs it.  Instead, check that regoff_t is as least
77443         as wide as ptrdiff_t.
77444
77445         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
77446         so that our regex.h stays compatible with the installed regex.
77447         This is helpful for installers who configure --without-included-regex.
77448         Problem reported by Emanuele Giaquinta.
77449
77450 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77451
77452         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
77453         Typedef to long int, not to off_, as POSIX will likely change
77454         in that direction.
77455
77456 2006-03-15  Eric Blake  <ebb9@byu.net>
77457
77458         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
77459
77460 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77461
77462         * lib/argp-help.c (validate_uparams): Fix typo
77463         * lib/argp-parse.c (argp_default_options): Consistently begin help
77464         messages with a lowercase letter.
77465
77466 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
77467
77468         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
77469         overrun buffers and shouldn't be used (much as gets shouldn't be
77470         used).
77471         * lib/time_r.c (asctime_r, ctime_r): Likewise.
77472
77473 2006-03-08  Simon Josefsson  <jas@extundo.com>
77474
77475         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
77476         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77477
77478 2006-03-08  Simon Josefsson  <jas@extundo.com>
77479
77480         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
77481         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77482
77483 2006-03-08  Simon Josefsson  <jas@extundo.com>
77484
77485         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
77486         signal that configure disabled the device.
77487
77488 2006-03-08  Simon Josefsson  <jas@extundo.com>
77489
77490         * build-aux/maint.mk: Fix refresh-po, to handle no translated
77491         languages.
77492
77493 2006-03-07  Simon Josefsson  <jas@extundo.com>
77494
77495         * modules/getopt (Depends-on): Add unistd.
77496
77497         * modules/unistd: New file.
77498
77499 2006-03-07  Simon Josefsson  <jas@extundo.com>
77500
77501         * modules/gc-random: New file.
77502
77503 2006-03-07  Simon Josefsson  <jas@extundo.com>
77504
77505         * m4/unistd_h.m4: New file.
77506
77507 2006-03-07  Simon Josefsson  <jas@extundo.com>
77508
77509         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
77510         test to be side-effect free by storing the result in the cache
77511         variable gl_cv_lib_readline, and moving the assignment of
77512         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
77513         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77514
77515 2006-03-07  Simon Josefsson  <jas@extundo.com>
77516
77517         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
77518         error on missing devices (the functions will return an error).
77519
77520         * m4/gc.m4: Move random stuff to gc-random.m4
77521
77522 2006-03-07  Simon Josefsson  <jas@extundo.com>
77523
77524         * lib/unistd_.h: New file.
77525
77526 2006-03-07  Simon Josefsson  <jas@extundo.com>
77527
77528         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
77529
77530 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77531
77532         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
77533         Problem reported by Juan Manuel Guerrero.
77534
77535 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77536
77537         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
77538         the unistd module.
77539         * lib/getlogin_r.c: Likewise.
77540         * lib/getlogin_r.h: Likewise.
77541         * lib/glob.c: Likewise.
77542         * lib/pagealign_alloc.c: Likewise.
77543         * lib/unistd_.h: Remove; no longer needed.
77544
77545 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77546
77547         * MODULES.html.sh (Support for systems lacking POSIX:2001):
77548         Add unistd.
77549         * modules/c-stack (Depends-on): Add unistd.
77550         * modules/getlogin_r: Likewise.
77551         * modules/glob: Likewise.
77552         * modules/pagealign_alloc: Likewise.
77553         * modules/unistd (Files): Remove lib/unistd_.h.
77554         (EXTRA_DIST): Remove.
77555         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
77556         need unistd_.h.
77557         (MOSTLYCLEANFILES): Remove unistd.h-t.
77558
77559 2006-03-03  Simon Josefsson  <jas@extundo.com>
77560
77561         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
77562
77563 2006-03-03  Simon Josefsson  <jas@extundo.com>
77564
77565         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
77566         libidn and bison.
77567
77568 2006-03-03  Simon Josefsson  <jas@extundo.com>
77569
77570         * build-aux/maint.mk: Add indent target.
77571
77572 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
77573
77574         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
77575         our replacement poll.h in any case, to avoid a differing
77576         declaration from a system header.  Seen on AIX.
77577
77578 2006-03-01  Simon Josefsson  <jas@extundo.com>
77579
77580         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
77581         <kasal@ucw.cz>.
77582
77583 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77584
77585         * modules/gettime (Depends-on): Add extensions module.
77586         * modules/nanosleep (Depends-on): Likewise.
77587         * modules/settime (Depends-on): Likewise.
77588
77589 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77590
77591         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
77592         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
77593         pedantically.
77594         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77595         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
77596
77597         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
77598         not "==".  Reported by Ralf Wildenhues.
77599
77600 2006-03-01  Karl Berry  <karl@gnu.org>
77601
77602         * doc/Copyright/request-*: new files, synced from gnuorg.
77603
77604 2006-03-01  Karl Berry  <karl@gnu.org>
77605
77606         * config/srclist.txt (Copyright/*): new entries.
77607
77608 2006-02-28  Simon Josefsson  <jas@extundo.com>
77609
77610         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
77611
77612 2006-02-27  Simon Josefsson  <jas@extundo.com>
77613
77614         * lib/base64.h: Indent #define's.  From Jim Meyering
77615         <jim@meyering.net>.
77616
77617 2006-02-27  Jim Meyering  <jim@meyering.net>
77618
77619         Revert the change of 2006-02-24, so these files can continue
77620         to be sync'd from gettext.
77621         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
77622         of `config.h'.
77623
77624 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77625
77626         * modules/intprops: New file.
77627         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77628         Add intprops.
77629         * modules/getloadavg (Files): Remove lib/intprops.h.
77630         (Depends-on): Add intprops.
77631         * modules/human: Likewise.
77632         * modules/inttostr: Likewise.
77633         * modules/openat: Likewise.
77634         * modules/sig2str: Likewise.
77635         * modules/userspec: Likewise.
77636         * modules/utimecmp: Likewise.
77637         * modules/xnanosleep: Likewise.
77638         * modules/xstrtol: Likewise.
77639
77640 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
77641
77642         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
77643         * modules/lock-tests (TESTS): Use $(EXEEXT).
77644         * modules/tls-tests: Likewise.
77645         * modules/argp-tests: Likewise.
77646         (check_PROGRAMS): New var, replacing...
77647         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
77648
77649 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77650
77651         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
77652         `config.h'.
77653
77654 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
77655
77656         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
77657
77658 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77659
77660         Sync from coreutils.
77661         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
77662         gl_CHDIR_SAFER.
77663
77664 2006-02-22  Jim Meyering  <jim@meyering.net>
77665
77666         Sync from coreutils.
77667         * m4/chdir-safer.m4: New file.
77668
77669 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
77670
77671         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
77672         AT_FDCWD exceeds INT_MAX.
77673         * lib/openat.h (AT_FDCWD): Likewise.
77674
77675 2006-02-17  Eric Blake  <address@hidden>
77676
77677         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
77678
77679 2006-02-16  Simon Josefsson  <jas@extundo.com>
77680
77681         * modules/getaddrinfo (Depends-on): Add sys_socket.
77682
77683 2006-02-15  Simon Josefsson  <jas@extundo.com>
77684
77685         * build-aux/maint.mk: Add dsyntax-check rule.
77686
77687 2006-02-15  Eric Blake  <ebb9@byu.net>
77688
77689         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
77690         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
77691         'present but cannot compile' warnings on cygwin.
77692         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
77693         use ws2tcpip.h if sys/socket.h works.
77694         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
77695         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
77696
77697 2006-02-14  Simon Josefsson  <jas@extundo.com>
77698
77699         * modules/maintainer-makefile (Files): Rename.
77700
77701         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
77702         and (the local) Makefile.cfg to maint-cfg.mk.
77703
77704         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
77705         to the latter.
77706
77707         * modules/maintainer-makefile: New module.
77708
77709         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
77710         severaly stripped to make it possible to build it up from scratch
77711         with reliable tests.
77712
77713         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
77714         fixes to permit overriding the default actions when configure and
77715         makefile are not available.
77716
77717 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
77718
77719         Sync from coreutils.
77720         * modules/lstat (Depends-on): Don't depend on xalloc.
77721         (License): Change from GPL to LGPL, since this is now simply a
77722         replacement for a libc function.
77723
77724 2006-02-14  Jim Meyering  <jim@meyering.net>
77725
77726         Sync from coreutils.
77727
77728         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
77729         failure on deficient systems, and simplify gnulib lgpl dependencies.
77730         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
77731         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
77732
77733         * lib/xalloc-die.c: Remove unused definition of N_.
77734
77735 2006-02-14  Jim Meyering  <jim@meyering.net>
77736
77737         Sync from coreutils.
77738         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
77739         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
77740         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
77741         double-quote uses of that variable, to accommodate the rare case in
77742         which getmntent is available in none of the libraries checked.  This
77743         happens at least on FreeBSD 5.0.
77744
77745 2006-02-13  Simon Josefsson  <jas@extundo.com>
77746
77747         * gnulib-tool (Usage): Fix --import, from
77748         karl@freefriends.org (Karl Berry).
77749
77750 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77751
77752         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
77753
77754 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
77755
77756         * lib/argp-namefrob.h: Restore changes accidentally lost during the
77757         "autoupdate" on 2005-12-12.
77758
77759 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77760
77761         * modules/closeout (Depends-on): Remove atexit.
77762
77763 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77764
77765         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
77766         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
77767
77768 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
77769
77770         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
77771         __EXTENSIONS__ if this causes compilation to fail.  Problem
77772         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
77773         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
77774
77775 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
77776
77777         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
77778         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
77779         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
77780         All uses changed.
77781
77782 2006-01-26  Simon Josefsson  <jas@extundo.com>
77783
77784         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
77785         prototype is visible on mingw32.
77786
77787         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
77788         for mingw32.
77789
77790         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
77791         mingw32).
77792
77793 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
77794
77795         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
77796         attempt to open for write; this always fails, at least on POSIX
77797         hosts.  This reinstates the 2006-01-09 change, which was
77798         inadvertently removed.
77799
77800 2006-01-26  Bruno Haible  <bruno@clisp.org>
77801
77802         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
77803         Reported by Paul Eggert.
77804
77805 2006-01-26  Bruno Haible  <bruno@clisp.org>
77806             Paul Eggert  <eggert@cs.ucla.edu>
77807
77808         * lib/stdbool_.h (_Bool)
77809         [(! (defined __cplusplus || defined __BEOS__)
77810           && !defined __GNUC__
77811           && !(defined __HP_cc || defined __xlc__
77812                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
77813                || defined __sgi))]:
77814         #define to signed char in these cases too; this simplifies
77815         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
77816         etc., separately) and makes it more conservative.
77817
77818 2006-01-25  Simon Josefsson  <jas@extundo.com>
77819
77820         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
77821         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
77822         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
77823
77824 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77825
77826         * lib/argp-namefrob.h: Bugfix. Remove stray #
77827
77828 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
77829
77830         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
77831         so that we test the test.
77832         Check for yet another HP-UX cc bug involving *bool |= bool.
77833
77834 2006-01-25  Karl Berry  <karl@gnu.org>
77835
77836         * config/srclist.txt (vasnprintf.c): sync lost.
77837
77838 2006-01-25  Jim Meyering  <jim@meyering.net>
77839
77840         Sync from the stable (b5) branch of coreutils:
77841
77842         * lib/fts.c (fts_children): Don't let close() clobber errno from
77843         failed fchdir().
77844
77845         * lib/fts.c (fts_stat): When following a symlink-to-directory,
77846         don't necessarily interpret stat-fails+lstat-succeeds as indicating
77847         a dangling symlink.  That can also happen at least for ELOOP.
77848         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
77849         FYI, this bug predates the inclusion of fts.c in coreutils.
77850
77851         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
77852         in their own block, so pre-c99 compilers don't object.
77853
77854         Avoid the double-free (first in fts_read, second in fts_close) that
77855         would occur when an `active' directory is made inaccessible (e.g.,
77856         via chmod a-x) during a traversal.
77857         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77858         before returning.  Reproduce this failure by
77859         mkdir -p a/b; cd a; chmod a-x . b
77860         Reported by Stavros Passas.
77861
77862 2006-01-25  Jim Meyering  <jim@meyering.net>
77863
77864         * lib/fileblocks.c: Remove more useless parentheses.
77865         * lib/readutmp.h: Likewise.
77866
77867 2006-01-25  Bruno Haible  <bruno@clisp.org>
77868
77869         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
77870         warnings.
77871         Reported by Paul Eggert.
77872
77873 2006-01-25  Bruno Haible  <bruno@clisp.org>
77874
77875         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
77876         rid of a trap command. For Solaris sh.
77877         Reported by Mark D. Baushke <mdb@gnu.org>.
77878
77879 2006-01-24  Simon Josefsson  <jas@extundo.com>
77880
77881         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
77882         Bruno.
77883
77884 2006-01-24  Karl Berry  <karl@gnu.org>
77885
77886         * config/srclist.txt (argp-namefrob.h): sync lost.
77887
77888 2006-01-24  Jim Meyering  <jim@meyering.net>
77889
77890         * modules/openat (Files): Add lib/intprops.h.
77891         From Mark D. Baushke.
77892
77893 2006-01-24  Jim Meyering  <jim@meyering.net>
77894
77895         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
77896         Reported by Mark D. Baushke.
77897
77898 2006-01-24  Jim Meyering  <jim@meyering.net>
77899
77900         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
77901
77902 2006-01-24  Bruno Haible  <bruno@clisp.org>
77903
77904         * modules/strnlen (Maintainer): Change from glibc to all.
77905
77906 2006-01-24  Bruno Haible  <bruno@clisp.org>
77907
77908         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
77909         Patch by Paul Eggert.
77910
77911 2006-01-24  Bruno Haible  <bruno@clisp.org>
77912
77913         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
77914         already has it.
77915         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
77916         2005-11-26.
77917
77918         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
77919         'signed char' to avoid problems with the built-in _Bool type.
77920         Reported by Paul Eggert on 2005-11-26.
77921
77922 2006-01-24  Bruno Haible  <bruno@clisp.org>
77923
77924         * gnulib-tool (func_import): Avoid constructing complicated sed
77925         expressions inside backquote.
77926         Report and solution by Mark D. Baushke <mdb@gnu.org>.
77927
77928 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
77929
77930         These changes imported from libc.
77931         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
77932         test and two separate function calls.
77933         * lib/strndup.c (__strndup): Add libc_hidden_def.
77934
77935 2006-01-23  Simon Josefsson  <jas@extundo.com>
77936
77937         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
77938         Remove the test_*_SOURCES variable: automake infers it by default.
77939         * modules/tls-tests: Likewise.
77940
77941 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77942
77943         Work around porting bugs reported by Dieter in
77944         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
77945         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
77946         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
77947         Include "getopt.h" first, to check interface.
77948         (getenv): Declare only if defined HAVE_DECL_GETENV &&
77949         !HAVE_DECL_GETENV.
77950         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
77951         (__strndup): Revert to K&R-style function dfns, the glibc style.
77952         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
77953         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
77954         Include strnlen.h first, to get prototype properly.
77955         (strnlen): Renamed from __strnlen.
77956         Remove weak alias.
77957
77958 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77959
77960         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
77961
77962 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77963
77964         * config/srclist.txt: Adjust to reflect glibc reorganization.
77965         This affects only comments.
77966
77967 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77968
77969          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
77970          Reported by Bruce Korb <bkorb@gnu.org>.
77971
77972 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
77973
77974         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
77975         to pacify gcc -Wswitch-default.
77976
77977 2006-01-22  Bruno Haible  <bruno@clisp.org>
77978
77979         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
77980         temporary buffer for sprintf, take into account the precision also
77981         for 'd', 'i', 'u', 'o', 'x', 'X'.
77982
77983 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
77984
77985         * modules/argp-tests: New module
77986         * tests/test-argp.c: New file
77987         * tests/test-argp-2.sh: New file
77988
77989 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
77990
77991         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
77992         (__argp_base_name): Removed
77993         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
77994         typo.
77995         (__argp_base_name): Provide macro definition or extern declaration
77996         depending on the configuration
77997
77998 2006-01-20  Simon Josefsson  <jas@extundo.com>
77999
78000         * modules/inet_ntop (Depends-on): Depend on sys_socket.
78001
78002 2006-01-20  Simon Josefsson  <jas@extundo.com>
78003
78004         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
78005
78006 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
78007
78008         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
78009         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
78010         Suggested by Bruno Haible.
78011
78012 2006-01-20  Karl Berry  <karl@gnu.org>
78013
78014         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
78015         until changes propagate, I guess.
78016
78017 2006-01-19  Simon Josefsson  <jas@extundo.com>
78018
78019         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
78020
78021 2006-01-19  Simon Josefsson  <jas@extundo.com>
78022
78023         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
78024
78025 2006-01-19  Simon Josefsson  <jas@extundo.com>
78026
78027         * gnulib-tool: Set check_PROGRAMS.
78028
78029         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78030         modules/des-tests, modules/gc-arcfour-tests,
78031         modules/gc-arctwo-tests, modules/gc-des-tests,
78032         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78033         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78034         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78035         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78036         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78037         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
78038         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
78039         test_*_SOURCES.
78040
78041 2006-01-18  Simon Josefsson  <jas@extundo.com>
78042
78043         * modules/socklen (Depends-on): Depend on sys_socket.
78044
78045 2006-01-18  Simon Josefsson  <jas@extundo.com>
78046
78047         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
78048         modules/des-tests, modules/gc-arcfour-tests,
78049         modules/gc-arctwo-tests, modules/gc-des-tests,
78050         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
78051         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
78052         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
78053         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
78054         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
78055         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
78056         $(EXEEXT) to automake TESTS variable, for mingw32.
78057
78058 2006-01-17  Simon Josefsson  <jas@extundo.com>
78059
78060         * modules/socklen (Include): Need sys/socket.h.
78061
78062 2006-01-17  Bruno Haible  <bruno@clisp.org>
78063
78064         * modules/ssize_t (Include): Add <sys/types.h>.
78065
78066 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
78067
78068         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
78069         it's not portable and it doesn't work with cross-compiles.
78070         Problem reported by Bruno Haible.  Fix missing-$ typo in
78071         'test "gl_cv_ignore_unused_libraries" ...' that prevented
78072         -zignore from being used with Sun's C compiler.
78073
78074 2006-01-12  Simon Josefsson  <jas@extundo.com>
78075
78076         * lib/base64.c: Fix warning, reported by Bruno Haible
78077         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
78078
78079 2006-01-12  Bruno Haible  <bruno@clisp.org>
78080
78081         * modules/ldd: New file.
78082         * build-aux/ldd.sh.in: New file.
78083         * MODULES.html.sh (Support for building libraries and executables): Add
78084         ldd.
78085
78086 2006-01-12  Bruno Haible  <bruno@clisp.org>
78087
78088         * m4/ldd.m4: New file.
78089
78090 2006-01-12  Bruno Haible  <bruno@clisp.org>
78091
78092         * gnulib-tool (func_import, func_create_testdir): Don't go into an
78093         endless loop while replacing $auxdir with build-aux.
78094
78095 2006-01-11  Simon Josefsson  <jas@extundo.com>
78096
78097         * lib/stdint_.h (SIZE_MAX): Add missing (.
78098
78099 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
78100
78101         Sync from coreutils.
78102         * lib/md5.c: Fix commentary typos.
78103         (alignof, UNALIGNED_P): No need for a GCC-specific version.
78104         * lib/md5.h (__attribute__): Remove; unused.
78105         * lib/sha1.c: Fix commentary to match md5 better.
78106         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
78107         so that we don't need to worry about alignment.  All uses changed.
78108         This merges the 2005-10-28 md5 change into sha1.
78109
78110 2006-01-11  Jim Meyering  <jim@meyering.net>
78111
78112         Sync from coreutils.
78113         * lib/md5.c (OP): Fix spacing.
78114
78115 2006-01-11  Bruno Haible  <bruno@clisp.org>
78116
78117         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78118         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
78119         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
78120
78121 2006-01-11  Bruno Haible  <bruno@clisp.org>
78122
78123         Ensure automatic ordering between gl_LOCK and gl_ARGP.
78124         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
78125         the "early" section as well.
78126
78127 2006-01-11  Bruno Haible  <bruno@clisp.org>
78128
78129         Avoid "ar: no archive members specified" error on MacOS X.
78130         * gnulib-tool (func_modules_add_dummy): New function.
78131         (func_import, func_create_testdir): Invoke it.
78132
78133 2006-01-11  Bruno Haible  <bruno@clisp.org>
78134
78135         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
78136         with $auxdir in AC_CONFIG_FILES statements.
78137
78138 2006-01-11  Bruno Haible  <bruno@clisp.org>
78139
78140         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78141         Initialize also noinst_HEADERS to empty.
78142
78143 2006-01-11  Bruno Haible  <bruno@clisp.org>
78144
78145         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
78146         variables.
78147         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
78148         autoreconf.
78149
78150 2006-01-11  Bruno Haible  <bruno@clisp.org>
78151
78152         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
78153         overridable by the user.
78154         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78155
78156 2006-01-10  Simon Josefsson  <jas@extundo.com>
78157
78158         * modules/sys_socket: New file.
78159
78160 2006-01-10  Simon Josefsson  <jas@extundo.com>
78161
78162         * m4/sys_socket_h.m4: New file.
78163
78164 2006-01-10  Simon Josefsson  <jas@extundo.com>
78165
78166         * lib/socket_.h: New file.
78167
78168 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78169
78170         * modules/readutmp (Maintainer): Add myself.
78171
78172 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78173
78174         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
78175         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
78176         People who are still concerned with buggy memcmp implementations
78177         can invoke gl_FUNC_MEMCMP themselves.
78178
78179 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
78180
78181         * lib/regex_internal.h (BITSET_WORD_BITS):
78182         Work around a bug in 64-bit PGC (before version 6.1-2), where the
78183         preprocessor mishandles large unsigned values as if they were signed.
78184         Problem reported by Claudio Fontana in
78185         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
78186
78187 2006-01-10  Jim Meyering  <jim@meyering.net>
78188
78189         Avoid the double-free (first in fts_read, second in fts_close) that
78190         would occur when an `active' directory is made inaccessible (e.g.,
78191         via chmod a-x) during a traversal.
78192         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
78193         before returning.  Reproduce this failure by
78194         mkdir -p a/b; cd a; chmod a-x . b
78195         Reported by Stavros Passas.
78196
78197         Sync from coreutils.
78198         * lib/sha1.c: Tweak grammar in a comment.
78199
78200 2006-01-10  Jim Meyering  <jim@meyering.net>
78201
78202         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
78203         Patch by Joerg Sonnenberger.
78204
78205 2006-01-10  Bruno Haible  <bruno@clisp.org>
78206
78207         * modules/readutmp: Depend on module free.
78208         * modules/strtok_r: Depend on module restrict.
78209
78210 2006-01-10  Bruno Haible  <bruno@clisp.org>
78211
78212         * modules/gettext (configure.ac): Add an invocation of
78213         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
78214
78215 2006-01-10  Bruno Haible  <bruno@clisp.org>
78216
78217         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
78218         Reported by Werner Lemberg <wl@gnu.org>.
78219
78220 2006-01-10  Bruno Haible  <bruno@clisp.org>
78221
78222         * lib/localcharset.c: Update from GNU gettext.
78223
78224 2006-01-10  Bruno Haible  <bruno@clisp.org>
78225
78226         * lib/argp.h (__const): Remove macro. Use const instead.
78227         * lib/argp-fmtstream.h (__const): Likewise.
78228         * lib/glob_.h (__const): Remove macro.
78229         * lib/glob-libc.h: Use const instead of __const.
78230
78231 2006-01-10  Bruno Haible  <bruno@clisp.org>
78232
78233         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
78234         variable.
78235         Needed to avoid an automake error regarding the 'gettext' module.
78236
78237 2006-01-09  Simon Josefsson  <jas@extundo.com>
78238
78239         * modules/inet_ntop (Depends-on): Add restrict.
78240
78241 2006-01-09  Simon Josefsson  <jas@extundo.com>
78242
78243         * modules/gc-rijndael-tests (License): Put under LGPL.
78244
78245         * modules/gc-des-tests (License): Likewise.
78246
78247         * modules/gc-arcfour-tests (License): Likewise.
78248
78249         * modules/gc-arctwo-tests (License): Likewise.
78250
78251         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
78252
78253         * modules/gc-hmac-sha1-tests (Files): Likewise.
78254
78255         * modules/gc-hmac-md5-tests (License): Likewise.
78256
78257         * modules/gc-sha1-tests (License): Likewise.
78258
78259         * modules/gc-md5-tests (License): Likewise.
78260
78261         * modules/gc-md4-tests (License): Likewise.
78262
78263         * modules/gc-md2-tests (License): Likewise.
78264
78265         * modules/gc-tests (License): Likewise.
78266
78267         * modules/des-tests (License): Likewise.
78268
78269         * modules/md4-tests (License): Likewise.
78270
78271         * modules/md2-tests (License): Likewise.
78272
78273 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78274
78275         Sync from coreutils:
78276
78277         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78278         * modules/lib-ignore: New file.
78279         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78280         chdir-safer.m4, lchmod.m4.
78281         * modules/openat: Add mkdirat.c, openat-priv.h.
78282
78283 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78284
78285         Sync from coreutils.
78286         * m4/lib-ignore.m4: New file.
78287         * m4/lchmod.m4: New file.
78288
78289 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78290
78291         Sync from coreutils.
78292         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
78293         for write access: POSIX says that must fail.
78294         * lib/fts.c (diropen): Likewise.
78295         * lib/save-cwd.c (save_cwd): Likewise.
78296         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
78297         well, for minor improvements on hosts that lack O_DIRECTORY.
78298         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
78299         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
78300         Fall back on chown if open failed with EACCES.
78301
78302         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
78303         Report an error at compile-time if only a 1-second nominal clock
78304         resolution is found.
78305
78306         * lib/lchmod.h: New file.
78307         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
78308         (make_dir_parents): Use lchown rather than chown, and
78309         lchmod rather than chmod.
78310
78311         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
78312         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
78313         "proc" reported by n0dalus.
78314
78315         * lib/mountlist.c: Include <limits.h>.
78316         (dev_from_mount_options)
78317         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
78318         New function.  It no longer assumes "dev=" has the System V meaning
78319         on Linux (since it doesn't).  It also parses "dev=" more carefully.
78320         (read_file_system_list)
78321         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
78322         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
78323         dev= in that case.
78324
78325         * lib/posixtm.h (PDS_PRE_2000): New macro.
78326         * lib/posixtm.c (year): Arg is now syntax_bits rather than
78327         allow_century.  All usages changed.  Reject dates outside the range
78328         1969-1999 if PDS_PRE_2000 is used.
78329
78330 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78331
78332         Sync from coreutils.
78333         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
78334         (Time of day items): Mention the possibility of leap seconds.
78335         Problem reported by Dr. David Alan Gilbert.
78336
78337 2006-01-09  Jim Meyering  <jim@meyering.net>
78338
78339         Sync from coreutils.
78340
78341         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
78342
78343         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
78344
78345         * lib/modechange.c (mode_compile): Reject an invalid mode string
78346         that starts with an octal digit.  From Andreas Gruenbacher.
78347
78348         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
78349         and dup to open_safer and dup_safer, respectively.
78350         (openat_permissive): Fix typo in comment.
78351
78352         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
78353         "gettext.h"; either no longer needed or are guaranteed by openat.h.
78354         (_): Remove; no longer needed.
78355         (openat): Renamed from rpl_openat; no need for rpl_openat
78356         since openat.h renames openat for us.
78357         Replace most of the body with a call to openat_permissive,
78358         to avoid duplicate code.
78359         Port to (probably hypothetical) environments were mode_t is
78360         wider than int.
78361         (openat_permissive): Require mode arg, so that we can check
78362         types better.  Put it just after flags.  Change cwd failure
78363         indicator from pointer-to-bool to pointer-to-errno-value.
78364         All callers changed.
78365         Invoke openat_save_fail and/or openat_restore_fail if
78366         cwd_errno is null, so that openat can call us.
78367         (openat_permissive, fdopendir, fstatat, unlinkat):
78368         Simplify errno handling to avoid some duplicate code,
78369         as it's OK to set errno on success.
78370         * lib/openat.h: Revamp code so that function macros depend on
78371         __OPENAT_PREFIX only, not also on AT_FDCWD.
78372         (openat_ro): Remove.  Caller changed to use openat_permissive.
78373         (openat_permissive): Now a macro, if not a function.
78374         (openat_restore_fail, openat_save_fail): Now always functions,
78375         since mkdirat needs them even if __OPENAT_PREFIX is defined.
78376
78377         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
78378         and openat.c.
78379         * lib/mkdirat.c: Include openat-priv.h.
78380         Remove definitions of macros defined therein.
78381         * lib/openat.c: Likewise.
78382
78383         * lib/mkdirat.c (mkdirat): New file and function.
78384         * lib/openat.h (mkdirat): Declare.
78385
78386         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
78387
78388         * lib/openat.h (openat_permissive): Declare.
78389         (openat_ro): Define.
78390
78391         * lib/openat.c (EXPECTED_ERRNO): New macro.
78392         (openat_permissive): New function -- used in remove.c rewrite.
78393         (all functions): Set errno just before returning, only if there
78394         was an actual failure.
78395         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
78396
78397         Emulate openat-family functions using Linux's procfs, if possible.
78398         Idea and some code based on Ulrich Drepper's glibc changes.
78399
78400         * lib/openat.c: (BUILD_PROC_NAME): New macro.
78401         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
78402         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
78403         before falling back on save_cwd and restore_cwd.
78404         (fdopendir, fstatat, unlinkat): Likewise.
78405
78406         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
78407         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
78408
78409         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
78410         as second argument to va_arg.  Otherwise, some versions of gcc
78411         warn that `if this code is reached, the program will abort'.
78412
78413 2006-01-09  Jim Meyering  <jim@meyering.net>
78414
78415         Sync from coreutils.
78416         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
78417         Require openat-priv.h.
78418
78419 2006-01-09  Bruno Haible  <bruno@clisp.org>
78420
78421         * modules/strnlen (Include): Use strnlen.h.
78422
78423 2006-01-09  Bruno Haible  <bruno@clisp.org>
78424
78425         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
78426
78427 2006-01-09  Bruno Haible  <bruno@clisp.org>
78428
78429         * lib/sysexit_.h (EX_OK): New macro.
78430         Suggested by Martin Lambers <marlam@marlam.de>.
78431
78432 2006-01-09  Bruno Haible  <bruno@clisp.org>
78433
78434         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
78435         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
78436
78437 2006-01-09  Bruno Haible  <bruno@clisp.org>
78438
78439         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
78440         numbers.
78441
78442 2006-01-09  Bruno Haible  <bruno@clisp.org>
78443
78444         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
78445         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
78446         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
78447         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
78448
78449 2006-01-09  Bruno Haible  <bruno@clisp.org>
78450
78451         * build-aux/javacomp.sh.in: New file, moved from lib/.
78452         * modules/javacomp-script (Files): Update.
78453         (configure.ac): Add AC_CONFIG_FILES invocation.
78454         (EXTRA_DIST): Remove variable.
78455
78456         * build-aux/javaexec.sh.in: New file, moved from lib/.
78457         * modules/javaexec (Files): Update.
78458         (configure.ac): Add AC_CONFIG_FILES invocation.
78459         (EXTRA_DIST): Remove javaexec.sh.in.
78460
78461         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
78462         * modules/csharpcomp-script (Files): Update.
78463         (configure.ac): Add AC_CONFIG_FILES invocation.
78464         (EXTRA_DIST): Remove variable.
78465
78466         * build-aux/csharpexec.sh.in: New file, moved from lib/.
78467         * modules/csharpexec (Files): Update.
78468         (configure.ac): Add AC_CONFIG_FILES invocation.
78469         (EXTRA_DIST): Remove csharpexec.sh.in.
78470
78471 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78472
78473         Sync from coreutils.
78474
78475         Add POSIX ACL support
78476         * lib/acl.h (copy_acl, set_acl): Add declarations.
78477         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
78478         systems other than Linux.
78479         (chmod_or_fchmod): New function: use fchmod when possible,
78480         and chmod otherwise.
78481         (file_has_acl): Add a POSIX ACL implementation, with a
78482         Linux-specific subcase.
78483         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
78484         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
78485         acls are unsupported.
78486         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
78487         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
78488         are unsupported.
78489
78490 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78491
78492         Sync from coreutils.
78493         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
78494
78495 2006-01-07  Bruno Haible  <bruno@clisp.org>
78496
78497         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
78498         gl_EARLY.
78499
78500 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78501
78502         * lib/strftime.c (tzname): Don't declare if it is already #defined.
78503         Problem reported for Mingw by Mark Junker.
78504
78505 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78506
78507         * README: Gnulib normally doesn't generate a tarball.
78508
78509 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
78510
78511         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
78512         long int, not int, for nanosecond counts, so that people who are
78513         used to POSIX struct timespec won't be surprised.  Reported by Jim
78514         Meyering.
78515
78516 2005-12-28  Bruno Haible  <bruno@clisp.org>
78517
78518         * build-aux/config.rpath: Update from GNU gettext.
78519
78520 2005-12-16  Jim Meyering  <jim@meyering.net>
78521
78522         * modules/fprintftime: New module.
78523         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
78524
78525 2005-12-16  Jim Meyering  <jim@meyering.net>
78526
78527         * m4/fprintftime.m4: New file.
78528
78529 2005-12-16  Jim Meyering  <jim@meyering.net>
78530
78531         * lib/fprintftime.c, lib/fprintftime.h: New files.
78532
78533 2005-12-15  Simon Josefsson  <jas@extundo.com>
78534
78535         * modules/socklen (configure.ac): Fix M4 macro name, to align with
78536         new m4/socklen.m4.
78537
78538 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78539
78540         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
78541         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
78542
78543 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78544
78545         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
78546         * lib/argp-help.c (fill_in_uparams): Check if the constructed
78547         struct uparams is valid. Fall back to the default values if it is
78548         not.
78549
78550 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78551
78552         * modules/argp (Files): Add argp-pin.c
78553         (Depends-on): dirname
78554         (lib_SOURCES): Add argp-pin.c
78555
78556 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78557
78558         * m4/argp.m4:  Check if program_invocation_name and
78559         program_invocation_short_name are declared and define appropriate
78560         macros if they are not.
78561
78562 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78563
78564         * lib/argp-help.c (__argp_base_name): New function
78565         (__argp_short_program_name): Rewrite using __argp_base_name
78566         * lib/argp-namefrob.h: Define program_invocation_name and
78567         program_invocation_short_name if requested
78568         (__argp_base_name): Add prototype
78569         * lib/argp-parse.c (argp_def): Use gettext wrappers
78570         (argp_default_parser): Use __argp_base_name
78571         * lib/argp-pin.c: New file. Defines program_invocation_name and
78572         program_invocation_short_name on systems that lack them.
78573
78574 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78575
78576         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
78577         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78578         porting problem reported by Georg Schwarz in
78579         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78580
78581 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78582
78583         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
78584         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78585         porting problem reported by Georg Schwarz in
78586         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78587
78588 2005-12-05  Bruno Haible  <bruno@clisp.org>
78589
78590         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
78591         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
78592         Reported by Mark Junker <mjscod@gmx.de>.
78593
78594 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
78595
78596         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
78597         Use implementation from Albert Chin, with some
78598         comments/corrections by Stepan Kasal and myself.
78599
78600 2005-12-02  Bruno Haible  <bruno@clisp.org>
78601
78602         * gnulib-tool (func_import): Accept GPLed build tool modules when
78603         --lgpl is given.
78604         * modules/csharpcomp-script: New file.
78605         * modules/csharpcomp: Depend on it.
78606         * modules/javacomp-script: New file.
78607         * modules/javacomp: Depend on it.
78608         Suggested by Simon Josefsson.
78609
78610 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
78611
78612         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
78613         statement, to work around an HP-UX 10.20 compiler bug reported by
78614         Peter O'Gorman.
78615
78616 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78617
78618         * modules/savedir (Depends-on): Add openat.
78619
78620 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78621
78622         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
78623         (uintmax_t) [defined uintmax_t]: Do not declare.
78624         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
78625         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
78626         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
78627         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
78628         sake of portability to weird hosts that C allows (though we don't
78629         know of any practical examples).
78630
78631         * lib/savedir.h (fdsavedir): New decl.
78632         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
78633         contains most of the former guts of savedir.
78634         (savedir): Use savedirstream.
78635         Include "openat.h".
78636
78637 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78638
78639         * modules/obstack (Files): Add m4/ulonglong.m4.
78640         Problem reported by Davide Angelocola.
78641
78642 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
78643
78644         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
78645         coreutils no longer futzes with rounding modes.
78646
78647 2005-11-14  Jim Meyering  <jim@meyering.net>
78648
78649         * lib/mkstemp-safer.c: Include <config.h>, required for possible
78650         replacement of mkstemp.
78651
78652 2005-11-10  Simon Josefsson  <jas@extundo.com>
78653
78654         * lib/readline.c: Remove EOL.
78655
78656 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78657
78658         * modules/gethrxtime (Depends-on): Add gettime.
78659
78660 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78661
78662         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
78663         or gettimeofday; no longer needed.
78664
78665 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78666
78667         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
78668         time business.
78669         (gethrxtime) [! (HAVE_NANOUPTIME
78670         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
78671         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
78672         our own approximation.
78673
78674 2005-11-08  Eric Blake  <ebb9@byu.net>
78675
78676         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78677
78678 2005-11-08  Eric Blake  <ebb9@byu.net>
78679
78680         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78681
78682 2005-11-04  Bruno Haible  <bruno@clisp.org>
78683
78684         * gnulib-tool: Implement --update mode.
78685
78686 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78687
78688         Fix porting problem reported by Theodoros V. Kalamatianos.
78689         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
78690         Don't assume that futimes failing means we must fail.
78691
78692 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78693
78694         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
78695         variables to suggest the intended function of the PATH_MAX check.
78696
78697 2005-10-30  Kean Johnston  <jkj@sco.com>
78698
78699         Trivial changes to support SCO systems.
78700         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
78701         as PATH_MAX.
78702         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
78703         where __ptr is null when no I/O is pending.
78704
78705 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78706
78707         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
78708         leave errno alone.  Problem reported by Dmitry V. Levin.
78709
78710 2005-10-28  Simon Josefsson  <jas@extundo.com>
78711
78712         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
78713         Test more.
78714
78715         * tests/test-gc-md2.c, tests/test-md2.c: New files.
78716
78717         * modules/md2, modules/md2-tests: New files.
78718
78719 2005-10-28  Simon Josefsson  <jas@extundo.com>
78720
78721         * m4/inet_ntop.m4: More tests.
78722
78723         * m4/gc-md2.m4, md2.m4: New file.
78724
78725 2005-10-28  Simon Josefsson  <jas@extundo.com>
78726
78727         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
78728         "restrict" keywords, as per POSIX.  Protect the function
78729         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
78730         Don't use K&R prototypes.  Check the sprintf return values.
78731         Re-define EAFNOSUPPORT if not present.  Indent.
78732
78733         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
78734         suggested by Bruno Haible <bruno@clisp.org>.
78735
78736         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
78737
78738         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
78739
78740         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
78741         libgcrypt).
78742
78743         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
78744
78745         * lib/md2.h, lib/md2.c: New files.
78746
78747 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
78748
78749         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
78750         errno alone.  Problem reported by Frederic Jolliton.
78751
78752 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
78753
78754         * modules/verify (License): Change from GPL to LGPL.  This is a
78755         tiny module and there are apparently near-equivalents that are
78756         under the BSD license.
78757
78758 2005-10-24  Simon Josefsson  <jas@extundo.com>
78759
78760         * modules/sha1: Relicense to LGPL.
78761
78762 2005-10-24  Simon Josefsson  <jas@extundo.com>
78763
78764         * lib/md4.h: Shrink buffer size, now that we changed the type.
78765
78766 2005-10-23  Simon Josefsson  <jas@extundo.com>
78767
78768         * gnulib-tool (func_import): Fix --tests-base.
78769
78770 2005-10-22  Simon Josefsson  <jas@extundo.com>
78771
78772         * modules/arcfour (Depends-on): Need stdint.
78773
78774 2005-10-22  Simon Josefsson  <jas@extundo.com>
78775
78776         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
78777         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
78778
78779 2005-10-22  Simon Josefsson  <jas@extundo.com>
78780
78781         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
78782         suggested by Bruno Haible <bruno@clisp.org>.
78783
78784 2005-10-22  Simon Josefsson  <jas@extundo.com>
78785
78786         * lib/crc.h: Include stddef.h, for size_t.
78787
78788 2005-10-22  Simon Josefsson  <jas@extundo.com>
78789
78790         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
78791         arcfour_context struct (simplify test vector testing in GNU
78792         Shishi).
78793
78794 2005-10-21  Simon Josefsson  <jas@extundo.com>
78795
78796         * modules/des, modules/des-tests: New files.
78797
78798         * modules/gc-des, modules/gc-des-tests: New files.
78799
78800         * tests/test-des.c, tests/test-gc-des.c: New file.
78801
78802 2005-10-21  Simon Josefsson  <jas@extundo.com>
78803
78804         * modules/arctwo, modules/arctwo-tests: New files.
78805
78806         * tests/test-arctwo.c: New file.
78807
78808         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
78809
78810         * tests/test-gc-arctwo.c: New file.
78811
78812 2005-10-21  Simon Josefsson  <jas@extundo.com>
78813
78814         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
78815         Bruno Haible <bruno@clisp.org>.
78816
78817         * m4/gc-des.m4: New file.
78818
78819 2005-10-21  Simon Josefsson  <jas@extundo.com>
78820
78821         * m4/arctwo.m4: New file.
78822
78823         * m4/gc-arctwo.m4: New file.
78824
78825 2005-10-21  Simon Josefsson  <jas@extundo.com>
78826
78827         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
78828         block.
78829
78830 2005-10-21  Simon Josefsson  <jas@extundo.com>
78831
78832         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
78833         <bruno@clisp.org>.
78834
78835         * lib/hmac-sha1.c (hmac_sha1): Likewise.
78836
78837         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
78838         Bruno Haible <bruno@clisp.org>.
78839
78840         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
78841         <bruno@clisp.org>.
78842
78843 2005-10-21  Simon Josefsson  <jas@extundo.com>
78844
78845         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
78846
78847 2005-10-21  Simon Josefsson  <jas@extundo.com>
78848
78849         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
78850
78851 2005-10-21  Simon Josefsson  <jas@extundo.com>
78852
78853         * lib/des.h, lib/des.c: New files.
78854
78855         * lib/gc-gnulib.c: Support DES.c
78856
78857 2005-10-21  Simon Josefsson  <jas@extundo.com>
78858
78859         * lib/arctwo.h, lib/arctwo.c: New files.
78860
78861         * lib/gc-gnulib.c: Support ARCTWO.
78862
78863 2005-10-21  Simon Josefsson  <jas@extundo.com>
78864
78865         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
78866         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78867
78868 2005-10-21  Simon Josefsson  <jas@extundo.com>
78869
78870         * gnulib-tool (func_import, func_create_testdir): Define automake
78871         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
78872         Makefile.am snippet),
78873         suggested by Bruno Haible <bruno@clisp.org>.
78874
78875         * modules/gc (Makefile.am): Use it.
78876
78877 2005-10-21  Bruno Haible  <bruno@clisp.org>
78878
78879         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
78880         patch.
78881
78882 2005-10-19  Simon Josefsson  <jas@extundo.com>
78883
78884         * tests/test-gc-rijndael.c: New file.
78885
78886         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
78887
78888 2005-10-19  Simon Josefsson  <jas@extundo.com>
78889
78890         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
78891         interface too.
78892
78893 2005-10-19  Simon Josefsson  <jas@extundo.com>
78894
78895         * tests/test-gc-arcfour.c: New file.
78896
78897         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
78898
78899 2005-10-19  Simon Josefsson  <jas@extundo.com>
78900
78901         * modules/gc-md4, modules/gc-md4-tests: New file.
78902
78903         * tests/test-gc-md4.c: New file.
78904
78905 2005-10-19  Simon Josefsson  <jas@extundo.com>
78906
78907         * m4/gc-md4.m4: New file.
78908
78909 2005-10-19  Simon Josefsson  <jas@extundo.com>
78910
78911         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
78912         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
78913         <kasal@ucw.cz>.
78914
78915 2005-10-19  Simon Josefsson  <jas@extundo.com>
78916
78917         * m4/gc-arcfour.m4: New file.
78918
78919         * m4/gc-rijndael.m4: New file.
78920
78921 2005-10-19  Simon Josefsson  <jas@extundo.com>
78922
78923         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
78924
78925 2005-10-19  Simon Josefsson  <jas@extundo.com>
78926
78927         * lib/gc-gnulib.c: Support ARCFOUR.
78928
78929 2005-10-19  Simon Josefsson  <jas@extundo.com>
78930
78931         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
78932         support.
78933
78934         * lib/gc.h: Add ECB enum type.
78935
78936         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
78937
78938 2005-10-18  Simon Josefsson  <jas@extundo.com>
78939
78940         * tests/test-md5.c: New file.
78941
78942         * modules/md5-tests: New file.
78943
78944 2005-10-18  Simon Josefsson  <jas@extundo.com>
78945
78946         * tests/test-md4.c: New file.
78947
78948         * modules/md4, modules/md4-tests: New files.
78949
78950 2005-10-18  Simon Josefsson  <jas@extundo.com>
78951
78952         * m4/md4.m4: New file.
78953
78954 2005-10-18  Simon Josefsson  <jas@extundo.com>
78955
78956         * lib/md4.h, lib/md4.c: New files, based on md5.?.
78957
78958 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
78959
78960         * gnulib-tool (func_create_testdir): Omit the second check whether
78961         BUILT_SOURCES in nonempty.
78962
78963 2005-10-17  Simon Josefsson  <jas@extundo.com>
78964
78965         * tests/test-rijndael.c: New file.
78966
78967 2005-10-17  Simon Josefsson  <jas@extundo.com>
78968
78969         * modules/sha1: Depend on stdint instead of md5.
78970
78971         * modules/md5: Depend on stdint, remove uint32_t.
78972
78973 2005-10-17  Simon Josefsson  <jas@extundo.com>
78974
78975         * modules/gc-sha1-tests: New file.
78976
78977         * tests/test-gc-sha1.c: New file.
78978
78979 2005-10-17  Simon Josefsson  <jas@extundo.com>
78980
78981         * m4/md5.m4: Remove call to uint32_t.m4.
78982
78983 2005-10-17  Simon Josefsson  <jas@extundo.com>
78984
78985         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
78986
78987         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
78988         md5.h.
78989
78990         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
78991
78992         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
78993
78994 2005-10-17  Simon Josefsson  <jas@extundo.com>
78995
78996         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
78997
78998 2005-10-17  Simon Josefsson  <jas@extundo.com>
78999
79000         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
79001
79002 2005-10-17  Simon Josefsson  <jas@extundo.com>
79003
79004         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
79005
79006         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
79007
79008 2005-10-17  Bruno Haible  <bruno@clisp.org>
79009
79010         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
79011         that it can also be used in a test.
79012
79013 2005-10-16  Bruno Haible  <bruno@clisp.org>
79014
79015         * gnulib-tool (func_emit_tests_Makefile_am): Also define
79016         TESTS_ENVIRONMENT, so that individual tests can augment it.
79017
79018         * gnulib-tool (func_create_testdir): Use an intermediate target for
79019         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
79020         macros, like $(ALLOCA_H), which cannot be passed through the command
79021         line.
79022
79023 2005-10-15  Simon Josefsson  <jas@extundo.com>
79024
79025         * modules/rijndael-tests: New file.
79026
79027         * modules/rijndael: New file.
79028
79029 2005-10-15  Simon Josefsson  <jas@extundo.com>
79030
79031         * m4/rijndael.m4: New file.
79032
79033 2005-10-15  Simon Josefsson  <jas@extundo.com>
79034
79035         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
79036
79037         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
79038
79039 2005-10-14  Simon Josefsson  <jas@extundo.com>
79040
79041         * tests/test-arcfour.c: New file.
79042
79043         * modules/arcfour, modules/arcfour-tests: New files.
79044
79045 2005-10-14  Simon Josefsson  <jas@extundo.com>
79046
79047         * m4/arcfour.m4: New file.
79048
79049 2005-10-14  Simon Josefsson  <jas@extundo.com>
79050
79051         * lib/arcfour.h, lib/arcfour.c: New files.
79052
79053 2005-10-14  Roland McGrath  <roland@redhat.com>
79054
79055         Import from libc.  [BZ #1331]
79056         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
79057         macro argument.
79058         Reported by Matej Vela <vela@debian.org>.
79059
79060 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79061
79062         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
79063         include <wchar.h>; no longer needed.
79064
79065 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
79066
79067         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
79068
79069 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
79070         and  Ulrich Drepper  <drepper@redhat.com>
79071
79072         Import from libc.
79073         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
79074         instead of inline stream orientation test and two separate
79075         function calls.  Pay no attention to USE_IN_LIBIO.
79076
79077 2005-10-13  Simon Josefsson  <jas@extundo.com>
79078
79079         * modules/gc-hmac-md5-tests: New file.
79080
79081         * tests/test-gc-hmac-sha1.c: New file.
79082
79083         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
79084
79085         * modules/gc-hmac-md5-tests: New file.
79086
79087         * tests/test-gc-md5.c: New file.
79088
79089         * modules/gc-md5-tests: New file.
79090
79091 2005-10-13  Simon Josefsson  <jas@extundo.com>
79092
79093         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
79094         Move memory allocation outside of loop.
79095
79096 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
79097
79098         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
79099         intermediate directory is in a read-only file system.  Problem
79100         reported by Eric Blake.
79101
79102 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
79103
79104         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
79105
79106 2005-10-12  Simon Josefsson  <jas@extundo.com>
79107
79108         * tests/test-hmac-sha1.c: New file.
79109
79110         * modules/hmac-sha1-tests: New file.
79111
79112         * modules/hmac-sha1: New file.
79113
79114 2005-10-12  Simon Josefsson  <jas@extundo.com>
79115
79116         * modules/gc-sha1: New file.
79117
79118 2005-10-12  Simon Josefsson  <jas@extundo.com>
79119
79120         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
79121
79122         * tests/test-gc-pbkdf2-sha1.c: New file.
79123
79124 2005-10-12  Simon Josefsson  <jas@extundo.com>
79125
79126         * modules/gc-md5, modules/gc-hmac-md5: New files.
79127
79128         * modules/gc (Files): Remove md5, memxor and hmac files.
79129
79130 2005-10-12  Simon Josefsson  <jas@extundo.com>
79131
79132         * m4/gc-pbkdf2-sha1.m4: New file.
79133
79134         * m4/gc-hmac-sha1.m4: New file.
79135
79136         * m4/gc-sha1: New file.
79137
79138         * m4/hmac-sha1.m4: New file.
79139
79140 2005-10-12  Simon Josefsson  <jas@extundo.com>
79141
79142         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
79143
79144         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
79145
79146 2005-10-12  Simon Josefsson  <jas@extundo.com>
79147
79148         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
79149         suggested by Bruno Haible <bruno@clisp.org>.
79150
79151 2005-10-12  Simon Josefsson  <jas@extundo.com>
79152
79153         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
79154
79155 2005-10-12  Simon Josefsson  <jas@extundo.com>
79156
79157         * lib/gc-pbkdf2-sha1.c: New file.
79158
79159         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
79160
79161 2005-10-12  Simon Josefsson  <jas@extundo.com>
79162
79163         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
79164
79165         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
79166
79167 2005-10-12  Simon Josefsson  <jas@extundo.com>
79168
79169         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
79170         GC_USE_HMAC_MD5, respectively.
79171
79172         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
79173         (gc_md5): Fix typo.
79174
79175         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
79176
79177         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
79178
79179         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
79180
79181 2005-10-12  Bruno Haible  <bruno@clisp.org>
79182
79183         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
79184         Reported by Stepan Kasal <kasal@ucw.cz>.
79185
79186 2005-10-11  Simon Josefsson  <jas@extundo.com>
79187
79188         * tests/test-crc.c: New file.
79189
79190         * modules/crc, modules/crc-tests: New files.
79191
79192 2005-10-11  Simon Josefsson  <jas@extundo.com>
79193
79194         * m4/crc.m4: New file.
79195
79196 2005-10-11  Simon Josefsson  <jas@extundo.com>
79197
79198         * lib/gc.h: Add gc_hash and gc_hash_buffer.
79199
79200         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
79201
79202         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
79203
79204 2005-10-11  Simon Josefsson  <jas@extundo.com>
79205
79206         * lib/crc.h, lib/crc.c: New files.
79207
79208         * lib/gc.h (gc_hash_buffer): Add doc.
79209
79210 2005-10-11  Bruno Haible  <bruno@clisp.org>
79211
79212         * modules/c-strcasestr: New file.
79213         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
79214
79215 2005-10-11  Bruno Haible  <bruno@clisp.org>
79216
79217         * modules/c-strcase: New file.
79218         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
79219
79220 2005-10-11  Bruno Haible  <bruno@clisp.org>
79221
79222         * lib/strcasecmp.c: Include limits.h.
79223         (strcasecmp): Avoid integer overflow on exotic platforms.
79224         * lib/strncasecmp.c: Include limits.h.
79225         (strncasecmp): Avoid integer overflow on exotic platforms.
79226         Reported by Paul Eggert.
79227
79228 2005-10-11  Bruno Haible  <bruno@clisp.org>
79229
79230         * lib/c-strcasestr.h: New file, from GNU gettext.
79231         * lib/c-strcasestr.c: New file, from GNU gettext.
79232
79233 2005-10-11  Bruno Haible  <bruno@clisp.org>
79234
79235         * lib/c-strcase.h: New file, from GNU gettext.
79236         * lib/c-strcasecmp.c: New file, from GNU gettext.
79237         * lib/c-strncasecmp.c: New file, from GNU gettext.
79238
79239 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
79240
79241         * modules/mempcpy (License): GPL -> LGPL.
79242         * modules/strchrnul (License): Likewise.
79243         * modules/sysexits (License): Likewise.
79244
79245 2005-10-08  Simon Josefsson  <jas@extundo.com>
79246
79247         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
79248
79249 2005-10-07  Simon Josefsson  <jas@extundo.com>
79250
79251         * m4/memxor.m4: Remove gl_C_RESTRICT call.
79252
79253 2005-10-06  Simon Josefsson  <jas@extundo.com>
79254
79255         * tests/test-hmac-md5.c: New file.
79256
79257         * modules/hmac-md5-tests: New file.
79258
79259         * modules/hmac-md5: New file.
79260
79261 2005-10-06  Simon Josefsson  <jas@extundo.com>
79262
79263         * m4/hmac-md5.m4: New file.
79264
79265         * m4/memxor.m4: Require gl_C_RESTRICT.
79266
79267 2005-10-06  Simon Josefsson  <jas@extundo.com>
79268
79269         * lib/memxor.c (memxor): Avoid casts and warnings.
79270
79271 2005-10-06  Simon Josefsson  <jas@extundo.com>
79272
79273         * lib/hmac-md5.c: New file.
79274
79275         * lib/hmac.h: New file.
79276
79277 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79278
79279         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79280         promotes to int, not unsigned int, to catch the AIX 5.3
79281         compiler bug.
79282
79283 2005-10-05  Simon Josefsson  <jas@extundo.com>
79284
79285         * modules/memxor: New file.
79286
79287         * modules/iconv (Files): Move config.rpath to havelib, it is used
79288         there.
79289
79290         * modules/havelib (Files): Add config.rpath.
79291
79292 2005-10-05  Simon Josefsson  <jas@extundo.com>
79293
79294         * m4/memxor.m4: New file.
79295
79296 2005-10-05  Simon Josefsson  <jas@extundo.com>
79297
79298         * lib/memxor.c (memxor): Fix compiler error.
79299
79300         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
79301         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
79302
79303         * lib/memxor.h, lib/memxor.c: New files.
79304
79305         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
79306         we assume all systems have it, suggested by Jim Meyering
79307         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
79308         any systems lack sys/socket.h; mingw32 is known to lack it, but we
79309         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
79310         same reasons.
79311
79312 2005-10-05  Simon Josefsson  <jas@extundo.com>
79313
79314         * config/srclist.txt: Add glibc bug 1423 for md5.h.
79315
79316 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
79317
79318         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
79319         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
79320         needed, since the source code now assumes these .h files.
79321
79322 2005-10-05  Derek Price  <derek@ximbiot.com>
79323
79324         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
79325
79326 2005-10-05  Bruno Haible  <bruno@clisp.org>
79327
79328         * modules/stdint (License): Change to LGPL.
79329
79330 2005-10-04  Simon Josefsson  <jas@extundo.com>
79331
79332         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
79333         D. Baushke" <mdb@gnu.org>.
79334
79335 2005-10-04  Bruno Haible  <bruno@clisp.org>
79336
79337         * lib/verify.h (verify_true): Provide alternative definition for C++.
79338
79339 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
79340
79341         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
79342         (SSIZE_MAX): New macro, if not already defined.
79343         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
79344         than 2 GiB.
79345
79346 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79347
79348         Sync from coreutils.
79349         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
79350         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
79351         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
79352         ULLONG_MAX doesn't work with 2.7.2.1.
79353
79354 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79355
79356         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
79357         From Ben Pfaff.
79358
79359         * modules/exclude (Depends-on): Depend on verify.
79360         * modules/strtoimax (Depends-on): Likewise.
79361         * modules/utimecmp (Depends-on): Likewise.
79362
79363 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79364
79365         * lib/exclude.c: Include verify.h.
79366         (verify): Remove.  All callers changed to use verify.h's version.
79367         * lib/strtoimax.c: Likewise.
79368         * lib/utimecmp.c: Likewis.e
79369
79370         Sync from coreutils.
79371         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
79372         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
79373         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
79374         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
79375         bother returning ENOSYS if settimeofday or stime fails; just let
79376         them return whatever errno they want to return.
79377         * lib/utimens.c: Include unistd.h, for dup2.
79378         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
79379         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
79380
79381 2005-10-02  Jim Meyering  <jim@meyering.net>
79382
79383         Sync from coreutils.
79384         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
79385         from glibc-2.2.5 that fails for read-only files.
79386
79387 2005-10-02  Jim Meyering  <jim@meyering.net>
79388
79389         Sync from coreutils.
79390         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
79391         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
79392         `#if HAVE_CONFIG_H'.
79393         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
79394         Remove AT_FDCWD test.
79395         Do not consume the fd unless successful.
79396         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
79397         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
79398         block, so that we don't even try to compile it if settimeofday is
79399         available.  This works around a compilation failure on OSF1 V5.1,
79400         due to stime requiring a `long int*' while tv_sec is `int'.
79401
79402 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
79403
79404         Sync from coreutils.
79405         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
79406         against `yes', rather than just testing for nonempty.
79407
79408 2005-10-01  Simon Josefsson  <jas@extundo.com>
79409
79410         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
79411         and Darwin.
79412
79413         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
79414         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
79415         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
79416         freeaddrinfo and gai_strerror are declared by the POSIX headers.
79417         Check if struct addrinfo is declared.
79418
79419 2005-10-01  Simon Josefsson  <jas@extundo.com>
79420
79421         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
79422         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
79423         AI_* and EAI_* definitions.  Protect function declarations.
79424
79425 2005-10-01  Jim Meyering  <jim@meyering.net>
79426
79427         Sync from coreutils.
79428
79429         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
79430         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
79431         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
79432         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79433         in the inet and nsl libraries.  Required on Solaris 5.7.
79434
79435 2005-10-01  Jim Meyering  <jim@meyering.net>
79436
79437         Sync from coreutils.
79438         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79439         in the inet and nsl libraries.  Required on Solaris 5.7.
79440
79441 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
79442
79443         * lib/getdelim.c (getdelim): Remove unused variables.
79444
79445 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
79446
79447         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
79448         so that the code works even with ancient cpp.  Portability problem
79449         with GCC 2.7.2.1 reported by Thomas M.Ott.
79450
79451 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
79452
79453         * modules/regex (Depends-on): Add strcase.
79454
79455         * modules/gethostname (Licence): Change from GPL to LGPL, since
79456         gethostname.c is a trivial implementation of a standard library
79457         function.
79458         * modules/poll (License): Change from GPL to LGPL, since it's
79459         derived from LGPL code.
79460
79461 2005-09-27  Jim Meyering  <jim@meyering.net>
79462
79463         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
79464         HAVE_CONFIG_H.
79465
79466         * lib/intprops.h (signed_type_or_expr__): Define.
79467         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
79468         for unsigned types.
79469
79470 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
79471
79472         * lib/verify.h (verify_expr): Remove, replacing with:
79473         (verify_true): New macro that returns true instead of void.
79474         (verify_type__): Remove.
79475         (verify): Use verify_true rather than verify_type__.
79476
79477 2005-09-26  Bruno Haible  <bruno@clisp.org>
79478
79479         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
79480         is necessary.
79481         (lib_SOURCES): Remove mbchar.c.
79482         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
79483         (Files): Add m4/mbrtowc.m4.
79484         * modules/mbiter: Likewise.
79485         * modules/mbuiter: Likewise.
79486
79487 2005-09-26  Bruno Haible  <bruno@clisp.org>
79488
79489         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
79490         compile mbchar.c if they are not both present.
79491         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
79492         * m4/mbiter.m4 (gl_MBITER): Likewise.
79493         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
79494         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
79495         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
79496
79497 2005-09-25  Jim Meyering  <jim@meyering.net>
79498
79499         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
79500         also uses socklen_t.
79501
79502 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
79503
79504         * lib/utimens.c (ENOSYS): Define if not already defined.
79505         (futimens): Support having a null PATH if the file descriptor
79506         is nonnegative.
79507
79508         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
79509         Remove.
79510         (__attribute): Define to empty unless GCC 3.1 or later.
79511         This works around a core dump on OpenBSD 3.4, which has GCC
79512         2.95.3, which dumps core when given __attribute__(()).  It also
79513         simplifies other tests, since we really don't want to bother with
79514         worrying about which ancient version of GCC supported what.
79515         Original problem reported by Yoann Vandoorselaere, with part of
79516         the fix suggested by Derek Price.
79517
79518 2005-09-24  Jim Meyering  <jim@meyering.net>
79519
79520         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
79521         so we can once again use a positive bitfield width of 1 -- now we
79522         don't have to explain why we were using a bitfield width of 2.
79523
79524 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79525
79526         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
79527         and similarly for the other external symbols.  Problem reported
79528         by James Gallager.
79529
79530         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
79531         bug reported by Jim Meyering.
79532
79533         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
79534         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
79535         not needed, since socklen is a prerequisite module.
79536
79537 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79538
79539         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
79540         Problem reported by Eric Blake.
79541         (getaddrinfo): Initialize se so that it's not garbage.
79542         Redo internal storage allocation so that it doesn't make unportable
79543         assumptions about alignment.
79544         Fix a memory leak.
79545
79546         * lib/utimens.c (futimens): Use futimesat if available.
79547         Prefer it to futimes since it doesn't have the futimes bug.
79548
79549         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
79550         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
79551         Instead, declare a function that returns a pointer to an array,
79552         and use verify_type__ to declare the size of the array.
79553         Problem and germ of a solution reported by Bruno Haible.
79554         (verify_type__): Use 2, not 1, for bitfield size, to avoid
79555         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
79556
79557 2005-09-23  Jim Meyering  <jim@meyering.net>
79558
79559         Sync from coreutils.
79560         Correct build failure (socklen_t not defined) on at least
79561         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
79562         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
79563
79564 2005-09-23  Jim Meyering  <jim@meyering.net>
79565
79566         * modules/getaddrinfo (Depends-on): Add socklen.
79567
79568 2005-09-23  Bruno Haible  <bruno@clisp.org>
79569
79570         * tests/test-verify.c: New file.
79571
79572 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79573
79574         Sync from coreutils.
79575
79576         * modules/argmatch (Depends-on): Add verify.
79577         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
79578         unistd-safer.
79579         * modules/save-cwd (Depends-on): Likewise.
79580
79581         * modules/openat (Files): Add lib/openat-die.c.
79582         (Depends-on): Remove error, exitfail.
79583         Add dirname.
79584
79585         * modules/verify: New file.
79586         * MODULES.html.sh (Diagnostics <assert.h>): New section,
79587         with "verify" module.
79588
79589 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79590
79591         Sync from coreutils.
79592
79593         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
79594         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
79595         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
79596         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
79597         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
79598         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
79599         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
79600         Don't bother checking for string.h, stdlib.h, unistd.h.
79601         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
79602         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
79603         module's job.
79604         * m4/jm-macros.m4 (gl_MACROS): Likewise.
79605         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
79606
79607         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
79608         (gl_GETDATE): Use it.
79609
79610         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
79611
79612 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79613
79614         Sync from coreutils.
79615
79616         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
79617         stat-time.h.
79618         * lib/argmatch.h: Include verify.h
79619         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
79620         (ARGMATCH_ASSERT): Remove; unused.
79621         * lib/canonicalize.c: Assume STDC_HEADERS.
79622         * lib/exclude.c: Include "strcase.h".
79623         * lib/regex_internal.h [!defined _LIBC]: Likewise.
79624         * lib/getusershell.c: Include stdio--.h rather than stdio.h
79625         and stdio-safer.h.
79626         (getusershell): Call fopen, not fopen_safer.
79627         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
79628         Do not include unistd-safer.h.
79629         (save_cwd): Don't call fd_safer; no longer needed
79630         now that we include fcntl--.h.
79631
79632         * lib/getdate.y (relative_time): New type.
79633         (RELATIVE_TIME_0): New constant.
79634         (parser_control): Use relative_time instead of doing it ourselves.
79635         (%union): Add new relative_time rel member.
79636         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
79637         Now typeless.
79638         (relunit, relunit_snumber): Now of type rel.
79639         (zone, rel, relunit, get_date): Adjust to above changes.
79640
79641         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
79642         Do not include unistd-safer.h.
79643         (getloadavg): Don't call fd_safer; no longer needed
79644         now that we include fcntl--.h.
79645
79646         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
79647         (make_dir_parents): Treat ENOSYS like EEXIST.
79648
79649         Improve quality of diagnostics on restore_cwd failure.
79650         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
79651         (make_dir_parents): Last arg is now int * (for errno), not bool *.
79652         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
79653         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
79654         each time through the loop.  Do not diagnose restore_cwd failure;
79655         that is the caller's job (and perhaps the caller does not care).
79656
79657         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
79658         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
79659         If the file already exists but is not a directory, don't bother
79660         to try to make its parents.
79661         Close potential file descriptor leak if we can't chdir("/") (!).
79662         Don't always return true if chdir($PWD) fails; return true only
79663         if the requested action was done successfully (except for the
79664         chdir($PWD)).
79665         Don't log final directory unless we actually made it.
79666         Refactor to avoid duplicate code to fix up permissions.
79667         Don't attempt to fix up parent permissions if chdir($PWD) fails.
79668
79669         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
79670         to make it a bit faster and (I hope) clearer.
79671         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
79672         Fix bug in formats like %2N.
79673
79674         * lib/verify.h: New file.
79675
79676 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79677
79678         Sync from coreutils.
79679         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
79680
79681 2005-09-22  Jim Meyering  <jim@meyering.net>
79682
79683         Sync from coreutils.
79684
79685         * m4/lstat.m4 (gl_FUNC_LSTAT):
79686         Use AC_LIBSOURCES to require lstat.c and lstat.h.
79687         Remove obsolete comment.
79688         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
79689         * m4/xstrtod.m4: Likewise.
79690
79691         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
79692
79693 2005-09-22  Jim Meyering  <jim@meyering.net>
79694
79695         Sync from coreutils.
79696
79697         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
79698
79699         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
79700         the .tm_year member, since otherwise gcc-4.0 would now warn about
79701         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
79702
79703         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
79704         order to avoid an unsuppressible warning from gcc on 64-bit systems.
79705
79706         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
79707         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
79708         when run in a time zone for which daylight savings time is in effect
79709         for the starting date.
79710
79711         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
79712         stop us from restricting permissions of just-created absolute-named
79713         directories.
79714         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
79715         to restore initial working directory.
79716         * lib/mkdir-p.c (make_dir_parents): New parameter:
79717         different_working_dir, to tell caller if/when we change the working
79718         directory and are unable to return to the initial one.
79719         * lib/mkdir-p.h (make_dir_parents): Update prototype.
79720         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
79721         `return false'.  This fixes a bug introduced on 2004-07-30.
79722
79723         * lib/openat.c (fdopendir): Be sure to close the supplied
79724         file descriptor before returning.  This makes our replacement
79725         implementation a little closer to Solaris's, where fdopendir
79726         ties the file descriptor to the returned DIR* pointer.
79727         * lib/openat.c (unlinkat): New function.
79728         * lib/openat.h (unlinkat): Add prototype.
79729         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
79730         (openat_restore_fail): Rename from openat_restore_die.
79731         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
79732
79733         Provide an alternative to exiting immediately upon save_cwd or
79734         restore_cwd failure.  Now, an application can arrange e.g.,
79735         to perform a longjump in that case.
79736         * lib/openat.c: Include dirname.h.
79737         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
79738         (rpl_openat, fdopendir, fstatat): Call openat_save_die
79739         and openat_restore_die rather than calling error directly.
79740         Don't include "error.h" or "exitfail.h"; they're no longer needed.
79741
79742         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
79743         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
79744         define.
79745
79746         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
79747         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
79748                             int utc, int nanoseconds);
79749         Background:
79750         date should not have to allocate a megabyte of virtual memory to
79751         handle a format argument like +%1048575T.  When implemented with
79752         strftime, it must allocate such a buffer, use strftime to fill it
79753         in, print it, then free it.
79754         With fprintftime, it simply prints everything and exits.
79755         With no need for memory allocation, that's one fewer way to fail.
79756         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
79757         optional field width, not before, so we accept %9:z, not %:9z.
79758         (my_strftime): Be sure to use L_('x') for literals.
79759
79760         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
79761         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
79762         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
79763         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
79764         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
79765         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
79766         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
79767         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
79768         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
79769         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
79770         * lib/xgethostname.c, lib/xreadlink.c:
79771         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
79772
79773         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
79774         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
79775         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
79776         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79777         and don't include <sys/file.h>).
79778
79779 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
79780
79781         Sync from coreutils.
79782
79783         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
79784         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
79785         [!LDAV_DONE]: Avoid unused variable warning.
79786
79787 2005-09-21  Bruno Haible  <bruno@clisp.org>
79788
79789         * lib/unicodeio.h (unicode_to_mb): New declaration.
79790
79791 2005-09-20  Derek Price  <derek@ximbiot.com>
79792
79793         * lib/getaddrinfo.c: Don't include <netdb.h> included from
79794         getaddrinfo.h.
79795
79796 2005-09-20  Bruno Haible  <bruno@clisp.org>
79797
79798         * gnulib-tool: Remove trailing slashes from the values specified for
79799         --source-base, --m4-base, --tests-base, --aux-dir.
79800         Suggested by Simon Josefsson <jas@extundo.com>.
79801
79802 2005-09-20  Bruno Haible  <bruno@clisp.org>
79803
79804         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
79805         func_modules_to_filelist, func_import, func_create_testdir): Make all
79806         sorting results locale-independent, so that gnulib-cache.m4 doesn't
79807         change when gnulib-tool is invoked in a different locale.
79808
79809 2005-09-19  Simon Josefsson  <jas@extundo.com>
79810
79811         * m4/socklen.m4: Fix typo.
79812
79813 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79814
79815         Use a consistent style for including <config.h>.
79816         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
79817         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
79818         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
79819         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
79820         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
79821         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
79822         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
79823         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
79824         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
79825         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
79826         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
79827         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
79828         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
79829         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
79830         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
79831         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
79832         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
79833         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
79834         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
79835         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
79836         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
79837         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
79838         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
79839         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
79840         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
79841         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
79842         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
79843         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
79844         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
79845         lib/xstrtoumax.c, lib/yesno.c:
79846         Standardize inclusion of config.h.
79847         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
79848         lib/inttostr.h:  Removed inclusion of config.h from header files.
79849         * lib/inttostr.c:  Adjusted in-tree users.
79850         * lib/timespec.h: Remove superfluous warning to include config.h.
79851         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
79852         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
79853         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
79854         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
79855         config.h with HAVE_CONFIG_H.
79856
79857 2005-09-19  Jim Meyering  <jim@meyering.net>
79858
79859         * modules/pathmax (License): Change to LGPL.
79860
79861 2005-09-19  Derek Price  <derek@ximbiot.com>
79862
79863         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
79864
79865 2005-09-19  Bruno Haible  <bruno@clisp.org>
79866
79867         * gnulib-tool (import): Provide default for --tests-base.
79868
79869 2005-09-19  Bruno Haible  <bruno@clisp.org>
79870
79871         * doc/quote.texi: New file, extracted from gnulib.texi.
79872         * doc/ctime.texi: New file, extracted from gnulib.texi.
79873         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
79874         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
79875         * doc/gnulib.texi: Include them.
79876
79877 2005-09-18  Bruno Haible  <bruno@clisp.org>
79878
79879         Portability fix.
79880         * gnulib-tool (func_readlink): New function.
79881         (func_ln_if_changed): Use it.
79882
79883 2005-09-18  Bruno Haible  <bruno@clisp.org>
79884
79885         * gnulib-tool: Support --with-tests also with --import.
79886         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
79887         (func_import): Use variables $testsbase and $inctests. Emit a
79888         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
79889         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
79890         SUBDIRS += $testsdir.
79891         (func_create_testdir): Update.
79892
79893 2005-09-18  Bruno Haible  <bruno@clisp.org>
79894
79895         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
79896         instead of $dry_run.
79897         (func_cp_if_changed, func_mv_if_changed): Remove functions.
79898         (func_ln_if_changed): Don't handle dry-run here.
79899         (func_import): In dry-run mode, detect more precisely which actions
79900         would be performed, and don't use "...ing" verbs.
79901
79902 2005-09-18  Bruno Haible  <bruno@clisp.org>
79903
79904         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
79905         (func_import): Use join on two temporary files instead of three nested
79906         loops, in order to determine which files are new or old.
79907
79908 2005-09-18  Bruno Haible  <bruno@clisp.org>
79909
79910         * gnulib-tool (func_import): Comment out code that spits out the
79911         new files with --dry-run.
79912
79913 2005-09-18  Bruno Haible  <bruno@clisp.org>
79914
79915         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
79916
79917 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79918
79919         * lib/stat-time.h: New file.
79920         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
79921         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
79922         in a different way.
79923         (timespec_cmp): New function.
79924         * lib/utimecmp.c: Include stat-time.h.
79925         (SYSCALL_RESOLUTION): Depend on whether various struct stat
79926         members exist, not on the obsolescent ST_MTIM_NSEC.
79927         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
79928
79929 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79930
79931         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
79932
79933 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79934
79935         * MODULES.html.sh (File system functions): Add stat-time.
79936         * modules/stat-time: New file.
79937         * modules/timespec (Files): Remove m4/st_mtim.m4; this
79938         is now done in a different way, by the stat-time module.
79939         * modules/utimecmp (Depends-on): Add stat-time.
79940
79941 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79942
79943         * m4/st_mtim.m4: Remove.  Superseded by...
79944         * m4/stat-time.m4: New file.
79945         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
79946         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
79947
79948 2005-09-15  Derek Price  <derek@ximbiot.com>
79949
79950         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
79951
79952 2005-09-15  Derek Price  <derek@ximbiot.com>
79953
79954         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
79955         * lib/regex_internal.c: Ditto, using this...
79956         (__GNUC_PREREQ): ...new macro.
79957         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
79958         using...
79959         (__GNUC_PREREQ): ...this new macro.
79960
79961         * lib/strstr.h: Include string.h. Define strstr as a macro here.
79962
79963 2005-09-15  Derek Price  <derek@ximbiot.com>
79964             Paul Eggert  <eggert@cs.ucla.edu>
79965
79966         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
79967         changes, consolidating in...
79968         * lib/regex_internal.h: ...this file.
79969
79970 2005-09-13  Jim Meyering  <jim@meyering.net>
79971
79972         * lib/canon-host.c: Filter through gnu indent and reword comments
79973         slightly.
79974         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
79975
79976 2005-09-13  Derek Price  <derek@ximbiot.com>
79977
79978         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
79979         failure.
79980         Reported by Jim Meyering  <jim@meyering.net>.
79981
79982 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79983
79984         * lib/base64.c: Typo.
79985         (base64_encode): Put b64str in initialized data section.
79986
79987 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
79988
79989         Merge glibc and coreutils changes into gnulib, plus a few
79990         extra fixes.
79991         * lib/md5.c: Use #error rather than a string.
79992         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
79993         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
79994         (__attribute__): Define to empty for non recent-GCC.
79995         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
79996         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
79997         Renamed from their non-__ counterparts, with new macros replacing
79998         them if not _LIBC.  Add __THROW attribute.
79999         (rol): Remove.
80000         (struct md5_ctx): Align buffer if using GCC.
80001         * lib/sha1.h (struct sha1_ctx): Likewise.
80002         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
80003         The old name was backwards.
80004         (NOTSWAP): Remove; not used.
80005         (rol): New macro, moved here from md5.h.
80006         (sha1_process_block): Remove a FIXME that doesn't make sense.
80007
80008 2005-09-12  Derek Price  <derek@ximbiot.com>
80009
80010         Return usable errors from canon-host.
80011         * lib/canon-host.h: New file.
80012         * lib/canon-host.c (canon_host): Wrap...
80013         (canon_host_r): ...this new function, which now relies exclusively on
80014         getaddrinfo.
80015         (ch_strerror): New function.
80016         (last_cherror): New global.
80017         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
80018         interface.
80019         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
80020         void *.
80021         (freeaddrinfo): Free ai->ai_canonname when set.
80022
80023 2005-09-12  Derek Price  <derek@ximbiot.com>
80024
80025         Make canon-host require getaddrinfo.
80026         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
80027         AC_LIBSOURCE canon-host.h.  Call...
80028         (gl_PREREQ_CANON_HOST): ...this new function, which requires
80029         gl_GETADDRINFO.
80030         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
80031
80032 2005-09-12  Derek Price  <derek@ximbiot.com>
80033
80034         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
80035         LGPL.
80036         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
80037
80038 2005-09-12  Derek Price  <derek@ximbiot.com>
80039
80040         * lib/gai_strerror.c: Include config.h when available.  Include
80041         getaddrinfo.h before other headers to test interface.
80042         Reported by Larry Jones <lawrence.jones@ugs.com>.
80043
80044 2005-09-12  Derek Price  <derek@ximbiot.com>
80045             Paul Eggert  <eggert@cs.ucla.edu>
80046
80047         * modules/glob (Files): Add glob-libc.h.
80048
80049 2005-09-12  Derek Price  <derek@ximbiot.com>
80050             Paul Eggert  <eggert@cs.ucla.edu>
80051
80052         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
80053         glob_.h, glob-libc.h.
80054         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
80055
80056 2005-09-12  Derek Price  <derek@ximbiot.com>
80057             Paul Eggert  <eggert@cs.ucla.edu>
80058
80059         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
80060         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
80061         protecting things that should be done only in gnulib contexts.
80062         * lib/glob_.h: New file, containing only the glob things needed for
80063         gnulib.
80064         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
80065         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
80066         (glob, globfree, glob_pattern_p): Now defined simply in terms of
80067         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
80068         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
80069         and to respect the namespace rules better.
80070
80071 2005-09-08  Simon Josefsson  <jas@extundo.com>
80072
80073         * modules/socklen: New file.
80074
80075 2005-09-08  Simon Josefsson  <jas@extundo.com>
80076
80077         * m4/socklen.m4: New file.
80078
80079 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80080
80081         * modules/utimens (Files): Add m4/utimbuf.m4, since
80082         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
80083         Reported by Sergey Poznyakoff.
80084
80085 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80086
80087         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
80088         definitions, since that's the preferred style in glibc.
80089         Fix a minor spacing issue, and update copyright notice to match
80090         glibc's.
80091
80092 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
80093
80094         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
80095
80096 2005-09-06  Simon Josefsson  <jas@extundo.com>
80097
80098         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
80099         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
80100
80101 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80102
80103         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
80104         warning.
80105
80106 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80107
80108         * config/srclist.txt: Add glibc bug 1302.
80109
80110 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
80111
80112         Change bitset word type from unsigned int to unsigned long int,
80113         as this has better performance on typical 64-bit hosts.
80114         Port bitset code to hosts with unusual word sizes.
80115         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
80116         (build_collating_symbol):
80117         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
80118         argument is a bitset.  This is merely a style issue, but it makes
80119         it clearer that an entire array is expected.
80120         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
80121         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
80122         Port to the case where bitset_word is not the same as unsigned int.
80123         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80124         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
80125         Likewise.
80126         * lib/regexec.c (check_dst_limits_calc_pos_1,
80127         check_subexp_matching_top):
80128         (build_trtable, group_nodes_into_DFAstates):
80129         Likewise.
80130         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
80131         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
80132         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
80133         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
80134         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
80135         * lib/regcomp.c (optimize_subexps, lower_subexp):
80136         Work even if bitset_word has holes in its bitwise representation.
80137         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
80138         * lib/regexec.c (check_dst_limits_calc_pos_1,
80139         check_subexp_matching_top):
80140         Likewise.
80141         * lib/regex_internal.c (re_string_reconstruct):
80142         Don't assume UCHAR_MAX == 255.
80143         * lib/regex_internal.h (bitset_set_all): Likewise.
80144         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
80145         All uses changed.
80146         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
80147         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
80148         All uses changed.
80149         (BITSET_WORD_MAX): New macro.
80150         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
80151         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
80152         (bitset_empty, bitset_copy):
80153         Prefer sizeof (bitset) to multiplying it out ourselves.
80154         (bitset_not_merge): Remove; unused.
80155         (bitset_contain): Return bool, not unsigned int with one bit on.
80156         All callers changed.
80157         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
80158         alignment than re_node_set; do this by defining a new internal
80159         type struct dests_alloc and using it to allocate memory.
80160
80161 2005-09-05  Bruno Haible  <bruno@clisp.org>
80162
80163         * gnulib-tool (func_import): Fix comparison in handling of symbolic
80164         links.
80165
80166 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
80167
80168         * modules/size_max (Makefile.am): Add size_max.h
80169
80170 2005-09-04  Derek Price  <derek@ximbiot.com>
80171
80172         * gnulib-tool (func_import): Fix reversed $symbolic logic.
80173
80174 2005-09-03  Simon Josefsson  <jas@extundo.com>
80175
80176         * gnulib-tool: Fix typo.
80177
80178 2005-09-03  Simon Josefsson  <jas@extundo.com>
80179
80180         * config/srclist.txt: Add glibc bug 1293.
80181
80182 2005-09-03  Derek Price  <derek@ximbiot.com>
80183
80184         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
80185         From Larry Jones <lawrence.jones@ugs.com>.
80186
80187 2005-09-02  Simon Josefsson  <jas@extundo.com>
80188
80189         * modules/socklen: New file.
80190
80191 2005-09-02  Simon Josefsson  <jas@extundo.com>
80192
80193         * modules/havelib: New module.
80194
80195         * modules/gettext, modules/iconv, modules/lock, modules/readline:
80196         Use havelib.
80197
80198 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80199
80200         Check for arithmetic overflow when calculating sizes, to prevent
80201         some buffer-overflow issues.  These patches are conservative, in the
80202         sense that when I couldn't determine whether an overflow was possible,
80203         I inserted a run-time check.
80204         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
80205         macros.
80206         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
80207         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
80208         (re_xnrealloc, re_x2nrealloc): New inline functions.
80209         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
80210         parse_bracket_exp):
80211         (build_equiv_class, build_charclass): Check for arithmetic overflow
80212         in size expression calculations.
80213         * lib/regex_internal.c (re_string_realloc_buffers):
80214         (build_wcs_upper_buffer, re_node_set_add_intersect):
80215         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
80216         (re_dfa_add_node, register_state): Likewise.
80217         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
80218         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
80219         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
80220         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
80221
80222 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
80223
80224         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
80225         m4/ulonglong.m4.  Problem reported by Martin Lambers.
80226
80227 2005-09-02  Bruno Haible  <bruno@clisp.org>
80228
80229         Support for lib vs. lib64 distinction on biarch platforms.
80230         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
80231         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
80232         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
80233
80234 2005-09-02  Bruno Haible  <bruno@clisp.org>
80235
80236         * gnulib-tool (import): In the other first-use case, provide defaults
80237         as well.
80238
80239 2005-09-02  Bruno Haible  <bruno@clisp.org>
80240
80241         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
80242         patches not yet found in the latest gettext release.
80243
80244 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80245
80246         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
80247         to avoid a collision with bits/local_lim.h in glibc.
80248         All uses changed.  Problem reported by Dmitry V. Levin in
80249         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
80250
80251         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
80252         bugs in int versus size_t comparisons.
80253         (re_string_context_at): Fix bug where the code assumed that
80254         Idx is signed.
80255
80256         Use bool where appropriate.
80257         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
80258         All callers changed.
80259         (calc_eclosure_iter): Likewise, for ROOT arg.
80260         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
80261         (build_charclass_op): Likewise, for NON_MATCH arg.
80262         * lib/regex_internal.c (re_string_allocate, re_string_construct):
80263         (re_string_construct_common): Likewise, for ICASE arg.
80264         * lib/regexec.c (re_search_2_stub, re_search_stub):
80265         Likewise, for RET_LEN arg.
80266         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80267         (set_regs): Likewise, for FL_BACKTRACK arg.
80268         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80269         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80270         (calc_eclosure_iter, parse_bracket_exp):
80271         Use bool for internal variables that are booleans.
80272         * lib/regexec.c (re_search_internal, check_matching,
80273         proceed_next_node):
80274         (set_regs, build_sifted_states, sift_states_bkref):
80275         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80276         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80277         (find_collation_sequence_value):
80278         Likewise.
80279         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80280         (re_node_set_compare):
80281         Return bool, not int. All callers changed.
80282         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80283         (build_trtable, check_node_accept): Likewise.
80284         * lib/regex_internal.h: Include stdbool.h.
80285
80286         Fix bugs uncovered when converting to bool.
80287         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
80288         failure instead of charging ahead blindly.
80289         * lib/regex_internal.c (register_state): Likewise.
80290         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
80291         for freeing internal storage.
80292         (group_nodes_into_DFA_states): Use unsigned int, not int, for
80293         bitset pieces used as boolean, to avoid undefined behavior
80294         on hosts that do int overflow checking.
80295
80296 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80297
80298         * config/srclist.txt: Add glibc bugs 1285-1287.
80299
80300 2005-09-01  Jim Meyering  <jim@meyering.net>
80301
80302         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
80303         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
80304         Require gl_STAT_MACROS, too.
80305
80306 2005-09-01  Bruno Haible  <bruno@clisp.org>
80307
80308         * gnulib-tool (import): In the first-use case, provide defaults.
80309
80310 2005-09-01  Bruno Haible  <bruno@clisp.org>
80311
80312         * gnulib-tool (func_import): Remove the .tmp files.
80313
80314 2005-09-01  Bruno Haible  <bruno@clisp.org>
80315
80316         * gnulib-tool (func_import): Fix handling of symbolic links.
80317
80318 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80319
80320         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
80321         old glibc regex code mishandles strings longer than 2**31 bytes.
80322         This patch fixes this when the regex code is used in gnulib
80323         (i.e., outside glibc).
80324
80325         This patch should not affect the use of the regex code inside
80326         glibc.  No doubt this problem also needs to be handled for glibc
80327         as well, but the result will be an incompatible change to the
80328         glibc ABI, and the old ABI will have to be supported too.  That
80329         can be the the subject for another patch.
80330
80331         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
80332         governing whether the rest of this patch is active.  By default,
80333         the macro is disabled and the patch has no effect.
80334         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
80335         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
80336         (struct re_pattern_buffer, re_search, re_search_2, re_match):
80337         (re_match_2, re_set_registers): Use the new types.
80338         * lib/regex_internal.h (Idx, re_hashval_t): New types.
80339         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
80340         New macros.
80341         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
80342         (re_string_context_at, bin_tree_t, re_dfastate_t):
80343         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
80344         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
80345         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
80346         (re_string_char_size_at, re_string_wchar_at):
80347         (re_string_elem_size_at):
80348         Use the new types and macros to port to 64-bit hosts.
80349         Use unsigned types for internal values, so that the code
80350         mostly works even for arrays larger than SSIZE_MAX.
80351         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
80352         (search_duplicated_node, calc_eclosure_iter, fetch_number):
80353         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
80354         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
80355         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
80356         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
80357         (calc_inveclosure, parse_dup_op, build_range_exp):
80358         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
80359         (fetch_number, create_token_tree, mark_opt_subexp):
80360         Likewise.
80361         * lib/regex_internal.c (re_string_construct_common,
80362         create_ci_newstate):
80363         (create_cd_newstate, re_string_allocate, re_string_construct):
80364         (re_string_realloc_buffers, build_wcs_upper_buffer):
80365         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80366         (re_string_reconstruct, re_string_peek_byte_case):
80367         (re_string_fetch_byte_case, re_string_context_at):
80368         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80369         (re_node_set_init_copy, re_node_set_add_intersect):
80370         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80371         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80372         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80373         (re_acquire_state, re_acquire_state_context, register_state):
80374         Likewise.
80375         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
80376         search_cur_bkref_entry):
80377         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
80378         (re_search_internal, re_search_2_stub, re_search_stub)
80379         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
80380         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
80381         (update_cur_sifted_state, check_dst_limits):
80382         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80383         (check_subexp_limits, sift_states_bkref, merge_state_array):
80384         (check_subexp_matching_top, get_subexp, get_subexp_sub):
80385         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
80386         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80387         (expand_bkref_cache, check_node_accept_bytes):
80388         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
80389         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
80390         (acquire_init_state_context, check_halt_node_context):
80391         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
80392         (sift_states_backward, clean_state_log_if_needed):
80393         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
80394         (find_recover_state, transit_state_sb, transit_state_mb):
80395         (transit_state_bkref, build_trtable, match_ctx_clean):
80396         Likewise.
80397         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
80398         to work around an assumption that REG_MISSING is negative.
80399
80400         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
80401         (seek_collating_symbol_entry) [defined _LIBC]:
80402         (lookup_collation_sequence_value) [defined _LIBC]:
80403         (build_range_exp, build_collating_symbol) [defined _LIBC]:
80404         Use prototypes rather than old-style function definitions.
80405         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
80406         (transit_state_sb) [0]:
80407         (find_collation_sequence_value) [defined _LIBC]: Likewise.
80408
80409         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
80410         rm_eo.
80411
80412         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
80413         (optimize_subexps, lower_subexp):
80414         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
80415         since the signed shift might overflow.  Use 1u<<31 instead.
80416         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80417         Likewise.
80418         * lib/regexec.c (check_dst_limits_calc_pos_1,
80419         check_subexp_matching_top): Likewise.
80420
80421         * lib/regcomp.c (optimize_subexps, lower_subexp):
80422         Use CHAR_BIT rather than 8, for clarity.
80423         * lib/regexec.c (check_dst_limits_calc_pos_1):
80424         (check_subexp_matching_top): Likewise.
80425         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
80426         have to worry about portability issues when shifting it left.
80427         Remove no-longer-needed test for table_size > 0.
80428         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
80429         in a word, as the resulting behavior is undefined.
80430         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
80431         in one case, a <= should have been an <, and in another case the
80432         whole test was missing.
80433         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
80434         the standard name CHAR_BIT.
80435         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
80436         this is not true on one's complement and signed-magnitude hosts.
80437
80438         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
80439         next_last_offset.
80440         (struct re_dfa_t): Remove unused member states_alloc.
80441         * lib/regcomp.c (init_dfa): Don't initialize unused members.
80442
80443 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80444
80445         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
80446         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
80447         and large-file glibc and in 32-bit large-file Solaris.
80448
80449 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80450
80451         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
80452         lengths fit in regoff_t; this isn't true if regoff_t is the same
80453         width as size_t.
80454         * lib/regex.c (re_search_internal): 5th arg is LAST_START
80455         (= START + RANGE) instead of RANGE.  This avoids overflow
80456         problems when regoff_t is the same width as size_t.
80457         All callers changed.
80458         (re_search_2_stub): Check for overflow when adding the
80459         sizes of the two strings.
80460         (re_search_stub): Check for overflow when adding START
80461         to RANGE; if it occurs, substitute the extreme value.
80462
80463 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80464
80465         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
80466
80467 2005-08-31  Jim Meyering  <jim@meyering.net>
80468
80469         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
80470         a pointer-to-const.
80471         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
80472         (register_state): Likewise.
80473         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
80474         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80475         (group_nodes_into_DFAstates): Likewise.
80476
80477 2005-08-31  Jim Meyering  <jim@meyering.net>
80478
80479         * check-module: Add a FIXME comment.
80480
80481 2005-08-31  Eric Blake  <ebb9@byu.net>
80482
80483         * modules/unistd-safer (Files): Add unistd--.h.
80484         * modules/stdio-safer (Files): Add stdio--.h.
80485
80486 2005-08-31  Derek Price  <derek@ximbiot.com>
80487
80488         * lib/getdelim.c (getdelim): Return EOF on EOF.
80489         Reported by Larry Jones <lawrence.jones@ugs.com>.
80490
80491 2005-08-31  Bruno Haible  <bruno@clisp.org>
80492
80493         Avoid unnecessary diffs in the generated lib/Makefile.am.
80494         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
80495         the generated files.
80496         (func_import): Don't set cmd.
80497
80498 2005-08-31  Bruno Haible  <bruno@clisp.org>
80499
80500         * lib/strstr.c: Include <stddef.h>, for NULL.
80501         * lib/strcasestr.c: Likewise.
80502         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80503
80504 2005-08-31  Bruno Haible  <bruno@clisp.org>
80505
80506         * gnulib-tool: New option --macro-prefix.
80507         (func_import): Use macro_prefix.
80508         (import): Handle option --macro-prefix.
80509
80510 2005-08-31  Bruno Haible  <bruno@clisp.org>
80511
80512         * gnulib-tool (import): Rename most ac_* variables to cached_*.
80513         Also use new variables cached_lgpl, cached_libtool.
80514
80515 2005-08-31  Bruno Haible  <bruno@clisp.org>
80516
80517         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
80518         always instantiating them.
80519
80520 2005-08-31  Bruno Haible  <bruno@clisp.org>
80521
80522         * gnulib-tool (func_import): Read the previous cached settings
80523         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
80524         earlier added by gnulib but are now dropped. Warn when a gnulib file
80525         overwrites a non-gnulib file.
80526
80527 2005-08-31  Bruno Haible  <bruno@clisp.org>
80528
80529         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
80530         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
80531         projects that don't keep autogenerated files in CVS. Put into
80532         actioncmd only the specified modules, not the transitive closure.
80533
80534 2005-08-31  Bruno Haible  <bruno@clisp.org>
80535
80536         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
80537         Create directories that shall be filled.
80538         (import): Don't look for gl_* macros in configure.ac. Recurse across
80539         all directories containing a gnulib-cache.m4 files, if meaningful.
80540
80541 2005-08-31  Bruno Haible  <bruno@clisp.org>
80542
80543         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
80544         (import): Set seen_libtool when we see gl_LIBTOOL.
80545
80546 2005-08-31  Bruno Haible  <bruno@clisp.org>
80547
80548         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
80549         declaration macro definitions from generated gnulib.m4.
80550
80551 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
80552
80553         * lib/iconvme.h: Add prototype for iconv_alloc.
80554
80555 2005-08-29  Simon Josefsson  <jas@extundo.com>
80556
80557         * lib/iconvme.c: Fix errno.
80558
80559 2005-08-29  Bruno Haible  <bruno@clisp.org>
80560
80561         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
80562         that it works when the directory contains spaces.
80563
80564 2005-08-29  Bruno Haible  <bruno@clisp.org>
80565
80566         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
80567
80568 2005-08-29  Bruno Haible  <bruno@clisp.org>
80569
80570         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
80571         Emit more advice.
80572
80573 2005-08-29  Bruno Haible  <bruno@clisp.org>
80574         and Stepan Kasal  <kasal@ucw.cz>
80575
80576         * check-module: If more parameters are given, check each of them
80577         separately; add more exceptions, as noted by Jim Meyering.
80578         (check_module): New procedure.
80579         (%exempt_header): Now contains all exceptions.
80580
80581 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
80582
80583         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
80584
80585 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80586
80587         * lib/iconvme.c: Split iconv_string into iconv_alloc.
80588
80589 2005-08-28  Bruno Haible  <bruno@clisp.org>
80590
80591         * m4/gnulib-tool.m4: New file.
80592
80593 2005-08-27  Jim Meyering  <jim@meyering.net>
80594
80595         * modules/unistd-safer (Files): Add pipe-safer.c.
80596         * modules/fcntl-safer (Files): Add creat-safer.c.
80597
80598 2005-08-27  Jim Meyering  <jim@meyering.net>
80599
80600         * m4/stdlib-safer.m4: New file.  From coreutils.
80601         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
80602         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
80603         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
80604         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
80605         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
80606
80607 2005-08-27  Jim Meyering  <jim@meyering.net>
80608
80609         * lib/fopen-safer.c: Merge minor changes from coreutils.
80610         * lib/dup-safer.c: Likewise.
80611         * lib/fd-safer.c: Likewise.
80612
80613         Merge from coreutils.
80614         * lib/stdio--.h: New file.
80615         * lib/stdlib--.h: New file.
80616         * lib/mkstemp-safer.c: New file.
80617
80618         GNU tar needs these.
80619         * lib/pipe-safer.c: New file.
80620         * lib/creat-safer.c: New file.
80621         * lib/fcntl--.h (creat): Define to creat_safer.
80622         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
80623         * lib/unistd--.h (pipe): Define to pipe_safer.
80624         * lib/unistd-safer.h: Declare pipe_safer.
80625
80626 2005-08-26  Simon Josefsson  <jas@extundo.com>
80627
80628         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
80629         Haible <bruno@clisp.org>.
80630
80631 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
80632
80633         * lib/regex_internal.h: Remove all references to
80634         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
80635         or better.
80636         (bitset_not, bitset_merge, bitset_not_merge):
80637         (bitset_mask, re_string_allocate, re_string_construct):
80638         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
80639         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
80640         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
80641         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
80642         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80643         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80644         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
80645         (re_acquire_state_context):
80646         Remove unnecessary forward decls.
80647         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
80648         Put __attribute at function definition,
80649         now that the function decl has been removed.
80650         * lib/regex_internal.c (re_string_peek_byte_case):
80651         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
80652         Likewise.
80653
80654 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
80655
80656         * m4/regex.m4: Add AC_PREREQ(2.50).
80657         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
80658
80659 2005-08-25  Simon Josefsson  <jas@extundo.com>
80660
80661         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
80662         __fsetlocking.
80663
80664 2005-08-25  Simon Josefsson  <jas@extundo.com>
80665
80666         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
80667         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
80668         GLIBC specific code.
80669
80670 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80671
80672         Make regex safe for g++.  This fixes one real bug (an "err"
80673         that should have been "*err").  g++ problem reported by
80674         Sam Steingold.
80675         * lib/regex_internal.h (re_calloc): New macro, consistent with
80676         re_malloc etc.  All callers of calloc changed to use re_calloc.
80677         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
80678         not int.  All callers changed.
80679         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
80680         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
80681         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
80682         (find_recover_state): Change "err" to "*err"; this fixes what
80683         appears to be a real bug.
80684         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
80685         versus int.
80686
80687 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80688
80689         * modules/regex (Depends-on): Add malloc, since the code
80690         assumes that !malloc(0) means failure.
80691
80692 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80693
80694         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
80695
80696         alloca modernization/simplification for regex.
80697         * lib/regex.c: Remove portability cruft for alloca.  This no longer
80698         needs to be at the start of the file, and can be moved into
80699         regex_internal.h and simplified.
80700         * lib/regex_internal.h: Include <alloca.h>.
80701         (__libc_use_alloca) [!defined _LIBC]: New macro.
80702         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
80703         now works outside glibc.
80704
80705 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80706
80707         * config/srclist.txt: Add glibc bugs 1241, 1245.
80708
80709 2005-08-25  Jim Meyering  <jim@meyering.net>
80710
80711         * lib/open-safer.c: Include <config.h>.
80712         Otherwise, we'd lose LARGEFILE support in any file using
80713         e.g. "fcntl--.h"
80714
80715 2005-08-25  Bruno Haible  <bruno@clisp.org>
80716
80717         * m4/minmax.m4: Require autoconf 2.52.
80718         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
80719         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
80720         alternatives of translit over the alphabet.
80721         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
80722
80723 2005-08-24  Simon Josefsson  <jas@extundo.com>
80724
80725         * tests/test-getpass.c: New file.
80726
80727 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80728
80729         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
80730         for GNU regex features.
80731
80732 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80733
80734         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
80735         * lib/regex.h (regerror): Likewise.
80736
80737         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
80738         requires this.  (The code never needed it.)
80739
80740         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
80741         All uses of recently-renamed identifiers changed to use the new,
80742         POSIX-compliant names.  The code will build and run just fine
80743         without these changes, but it's better to eat our own dog food
80744         and use the standard-conforming names.
80745
80746         * lib/regex.h: Fix a multitude of POSIX name space violations.
80747         These changes have an effect only for programs that define
80748         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
80749         do not change anything for programs compiled in the normal way.
80750         Also, there is no effect on the ABI.
80751
80752         (_REGEX_SOURCE): New macro.
80753         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
80754         defined and _GNU_SOURCE is not; this fixes a name space violation.
80755
80756         Rename the following macros to obey POSIX requirements.
80757         The old names are still visible as macros if _REGEX_SOURCE is defined.
80758         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
80759         RE_BACKSLASH_ESCAPE_IN_LISTS.
80760         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
80761         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
80762         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
80763         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
80764         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
80765         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
80766         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
80767         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
80768         (REG_INTERVALS): renamed from RE_INTERVALS.
80769         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
80770         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
80771         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
80772         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
80773         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
80774         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
80775         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
80776         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
80777         RE_UNMATCHED_RIGHT_PAREN_ORD.
80778         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
80779         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
80780         (REG_DEBUG): renamed from RE_DEBUG.
80781         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
80782         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
80783         unusual, since we can't clash with the POSIX REG_ICASE.
80784         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
80785         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
80786         (REG_NO_SUB): renamed from RE_NO_SUB.
80787         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
80788         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
80789         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
80790         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
80791         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
80792         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
80793         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
80794         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
80795         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
80796         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
80797         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
80798         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
80799         RE_SYNTAX_POSIX_MINIMAL_BASIC.
80800         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
80801         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
80802         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
80803         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
80804         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
80805         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
80806         (REG_FIXED): Renamed from REGS_FIXED.
80807         (REG_NREGS): Renamed from RE_NREGS.
80808
80809         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
80810         of other REG_* macros, since POSIX says the user is allowed to
80811         #undef these macros selectively.
80812
80813         (reg_errcode_t): Update comment stating what other tables need
80814         to be consistent.
80815
80816         Rename the following enum values to obey POSIX requirements.
80817         The old names are still visible as macros.
80818         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
80819         is not defined, since GNU is supposed to be a superset of POSIX as
80820         much as possible, and since we want reg_errcode_t to be a signed
80821         type for implementation consistency.
80822         (_REG_NOERROR): Renamed from REG_NOERROR.
80823         (_REG_NOMATCH): Renamed from REG_NOMATCH.
80824         (_REG_BADPAT): Renamed from REG_BADPAT.
80825         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
80826         (_REG_ECTYPE): Renamed from REG_ECTYPE.
80827         (_REG_EESCAPE): Renamed from REG_EESCAPE.
80828         (_REG_ESUBREG): Renamed from REG_ESUBREG.
80829         (_REG_EBRACK): Renamed from REG_EBRACK.
80830         (_REG_EPAREN): Renamed from REG_EPAREN.
80831         (_REG_EBRACE): Renamed from REG_EBRACE.
80832         (_REG_BADBR): Renamed from REG_BADBR.
80833         (_REG_ERANGE): Renamed from REG_ERANGE.
80834         (_REG_ESPACE): Renamed from REG_ESPACE.
80835         (_REG_BADRPT): Renamed from REG_BADRPT.
80836         (_REG_EEND): Renamed from REG_EEND.
80837         (_REG_ESIZE): Renamed from REG_ESIZE.
80838         (_REG_ERPAREN): Renamed from REG_ERPAREN.
80839         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
80840         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
80841         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
80842         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
80843
80844         (_REG_RE_NAME, _REG_RM_NAME): New macros.
80845         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
80846         changed.  But support the old name if the new one is not defined
80847         and if _REGEX_SOURCE.
80848
80849         Change the following member names in struct re_pattern_buffer.
80850         The old names are still supported if !_REGEX_SOURCE.
80851         The new names are always supported, regardless of _REGEX_SOURCE.
80852         (re_buffer): Renamed from buffer.
80853         (re_allocated): Renamed from allocated.
80854         (re_used): Renamed from used.
80855         (re_syntax): Renamed from syntax.
80856         (re_fastmap): Renamed from fastmap.
80857         (re_translate): Renamed from translate.
80858         (re_can_be_null): Renamed from can_be_null.
80859         (re_regs_allocated): Renamed from regs_allocated.
80860         (re_fastmap_accurate): Renamed from fastmap_accurate.
80861         (re_no_sub): Renamed from no_sub.
80862         (re_not_bol): Renamed from not_bol.
80863         (re_not_eol): Renamed from not_eol.
80864         (re_newline_anchor): Renamed from newline_anchor.
80865
80866         Change the following member names in struct re_registers.
80867         The old names are still supported if !_REGEX_SOURCE.
80868         The new names are always supported, regardless of _REGEX_SOURCE.
80869         (rm_num_regs): Renamed from num_regs.
80870         (rm_start): Renamed from start.
80871         (rm_end): Renamed from end.
80872
80873         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
80874         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
80875         Prepend __ to parameter names.
80876
80877         Undo yesterday's changes.
80878
80879 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80880
80881         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
80882         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
80883         lib/regex.c.
80884
80885 2005-08-24  Jim Meyering  <jim@meyering.net>
80886
80887         Sync from coreutils.
80888         * m4/fcntl-safer.m4: New file.
80889
80890         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
80891         and object files for this module.
80892
80893 2005-08-24  Jim Meyering  <jim@meyering.net>
80894
80895         Sync from coreutils.
80896         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
80897
80898 2005-08-24  Jim Meyering  <jim@meyering.net>
80899
80900         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
80901         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
80902
80903 2005-08-24  Jim Meyering  <jim@meyering.net>
80904
80905         * modules/fcntl-safer: New module.
80906         * modules/fts (Depends-on): Add fcntl-safer.
80907         * MODULES.html.sh (File descriptor based Input/Output):
80908         Add fcntl-safer.
80909
80910 2005-08-24  Bruno Haible  <bruno@clisp.org>
80911
80912         Support for unit test modules.
80913         * modules/README: Mention tests modules.
80914         * modules/TEMPLATE-TESTS: New file.
80915         * gnulib-tool: New options --extract-tests-module, --with-tests and
80916         --tests-base (unused for the moment).
80917         (testsbase, inctests): New variables.
80918         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
80919         (func_verify_module): Exclude TEMPLATE-TESTS.
80920         (func_verify_nontests_module, func_verify_tests_module): New functions.
80921         (func_get_dependencies): Add implicit dependency for tests modules.
80922         (func_get_tests_module): New function.
80923         (func_modules_transitive_closure): When --with-tests was specified,
80924         include the unit tests as well, unless explicitly avoided.
80925         (func_emit_lib_Makefile_am): Ignore the tests modules here.
80926         (func_emit_tests_Makefile_am): New function.
80927         (func_create_testdir): When --with-tests was specified, emit a
80928         tests/ directory.
80929         * MODULES.html.sh (Future developments): Update.
80930
80931 2005-08-24  Bruno Haible  <bruno@clisp.org>
80932
80933         * modules/tls-tests: New file.
80934         * tests/test-tls.c: New file, from GNU gettext.
80935
80936 2005-08-24  Bruno Haible  <bruno@clisp.org>
80937
80938         * modules/lock-tests: New file.
80939         * tests/test-lock.c: New file, from GNU gettext.
80940
80941 2005-08-24  Bruno Haible  <bruno@clisp.org>
80942
80943         * lib/lock.h: Add multiple inclusion guard.
80944         * lib/tls.h: Add multiple inclusion guard.
80945
80946 2005-08-24  Bruno Haible  <bruno@clisp.org>
80947
80948         * gnulib-tool: Add support for the --aux-dir option to
80949         --create-testdir, --create-megatestdir, --test, --megatest.
80950         (func_create_testdir, func_create_megatestdir): Optionally emit a
80951         AC_CONFIG_AUX_DIR directive.
80952         (create-testdir, create-megatestdir, test, megatest): Provide a
80953         default value for $auxdir.
80954
80955 2005-08-24  Bruno Haible  <bruno@clisp.org>
80956
80957         * gnulib-tool (import): Use compound statement instead of subshell
80958         where possible.
80959
80960 2005-08-24  Bruno Haible  <bruno@clisp.org>
80961
80962         * gnulib-tool (import): Change --aux-dir default to "build-aux".
80963
80964 2005-08-24  Bruno Haible  <bruno@clisp.org>
80965
80966         * gnulib-tool (func_version): Update.
80967
80968 2005-08-24  Bruno Haible  <bruno@clisp.org>
80969
80970         * gnulib-tool (func_import, func_create_testdir,
80971         func_create_megatestdir): Quote all autoconf macro arguments.
80972
80973 2005-08-24  Bruno Haible  <bruno@clisp.org>
80974
80975         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
80976         option --force, because --force causes the aclocal.m4 of each
80977         subdirectory to be newer than the corresponding config.h.in.
80978
80979 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80980
80981         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
80982         All contents moved to gl_REGEX.
80983         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
80984         assume that it does.
80985
80986 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80987
80988         * lib/regex.h (REG_NOSYS)
80989         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
80990         Define, since POSIX requires it as of 2001.
80991         (_REG_ENOSYS)
80992         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
80993         New private symbol, used to keep the enum signed in all cases.
80994         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
80995         Youngman in
80996         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
80997
80998         * lib/regex_internal.c (re_string_skip_chars, register_state):
80999         (calc_state_hash):
81000         Remove forward decls; no longer needed now that we use prototypes.
81001         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
81002         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
81003         (clean_state_log_if_needed): Likewise.
81004
81005 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
81006
81007         * config/srclist.txt: Add glibc bugs 1231-1233.
81008
81009 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81010
81011         Fix problems reported by Sam Steingold in
81012         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
81013         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
81014         assumed that reg_errcode_t is a signed type, which is not
81015         necessarily true if _XOPEN_SOURCE is not defined.
81016         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
81017         since some compilers warn about it otherwise.
81018
81019 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81020
81021         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
81022         (init_word_char, create_initial_state, duplicate_node_closure):
81023         (fetch_token, peek_token_bracket, build_range_exp):
81024         (build_collating_symbol): Remove forward decls; no longer needed
81025         now that we use prototypes.
81026
81027         * lib/regcomp.c:
81028         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
81029         (re_compile_fastmap_iter, regcomp, regerror, regfree):
81030         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
81031         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
81032         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
81033         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
81034         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
81035         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
81036         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
81037         (build_range_exp, build_collating_symbol, parse_bracket_exp):
81038         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
81039         (build_charclass, build_charclass_op, fetch_number, create_tree):
81040         (create_token_tree, mark_opt_subexp, duplicate_tree):
81041         Use prototypes rather than old-style definitions.
81042
81043         * lib/regex_internal.c:
81044         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
81045         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
81046         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
81047         (re_string_reconstruct, re_string_peek_byte_case):
81048         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
81049         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
81050         (re_node_set_init_copy, re_node_set_add_intersect):
81051         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
81052         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
81053         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
81054         (re_acquire_state, re_acquire_state_context, register_state):
81055         (create_ci_newstate, create_cd_newstate, free_state):
81056         Likewise.
81057         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
81058         re_search_2):
81059         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
81060         (re_search_internal, prune_impossible_nodes):
81061         (acquire_init_state_context, check_matching, static):
81062         (check_halt_node_context, check_halt_state_context, proceed_next_node):
81063         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
81064         (update_regs, sift_states_backward, build_sifted_states):
81065         (clean_state_log_if_needed, merge_state_array):
81066         (update_cur_sifted_state, add_epsilon_src_nodes):
81067         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
81068         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
81069         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
81070         (find_recover_state, check_subexp_matching_top, transit_state_mb):
81071         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
81072         (check_arrival, check_arrival_add_next_nodes):
81073         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
81074         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
81075         (check_node_accept_bytes, check_node_accept, extend_buffers):
81076         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
81077         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
81078         (sift_ctx_init):
81079         Likewise.
81080
81081         * lib/regex_internal.h:
81082         (re_string_allocate, re_string_construct, re_string_reconstruct):
81083         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
81084         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
81085         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
81086         (re_string_context_at, re_string_peek_byte_case):
81087         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
81088         is defined, since we now use prototypes always.
81089
81090         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
81091         C89 or better.  All uses removed.
81092
81093 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
81094
81095         * config/srclist.txt: Add glibc bugs 1220-1227.
81096
81097 2005-08-20  Jim Meyering  <jim@meyering.net>
81098
81099         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
81100         of unused local, dfa.
81101
81102 2005-08-20  Bruno Haible  <bruno@clisp.org>
81103
81104         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
81105
81106 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81107
81108         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
81109         (re_node_set_insert_last, re_dfa_add_node):
81110         Rename local variables to avoid GCC shadowing warnings.
81111
81112 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81113
81114         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
81115         [defined lint]: Suppress bogus uninitialized-variable warnings.
81116
81117         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
81118         and let the caller return REG_ESPACE if out of space.  This
81119         removes an uninitialied-variable warning with GCC 4.0.1, and also
81120         avoids taking the address of a local variable.  All callers
81121         changed.
81122
81123 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81124
81125         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
81126         $LIBCSRC/posix/regexec.c.
81127         Add glibc bug 1217 for regcomp.c.
81128
81129 2005-08-19  Jim Meyering  <jim@meyering.net>
81130
81131         * lib/regexec.c (proceed_next_node): Redo local variables to
81132         avoid GCC shadowing warnings.
81133
81134 2005-08-18  Bruno Haible  <bruno@clisp.org>
81135
81136         * lib/strstr.c (strstr): Fix return value in multibyte case.
81137         * lib/strcasestr.c (strcasestr): Likewise.
81138
81139 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81140
81141         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
81142
81143 2005-08-17  Jim Meyering  <jim@meyering.net>
81144
81145         Make the %s format (seconds since the epoch) work for a negative
81146         number and when used with a zero-padded field width, e.g. %015s.
81147
81148         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
81149         label so that it precedes the code to set `digits'.  Otherwise,
81150         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
81151         print `00-22'.  Now, it prints `-0022', as it should.
81152
81153 2005-08-17  Bruno Haible  <bruno@clisp.org>
81154
81155         * modules/strstr (Files): Add m4/mbrtowc.m4.
81156         (Depends-on): Add mbuiter.
81157
81158 2005-08-17  Bruno Haible  <bruno@clisp.org>
81159
81160         * modules/strcasestr: New file.
81161         * MODULES.html.sh (String handling, based on ANSI C 89): Add
81162         strcasestr.
81163
81164 2005-08-17  Bruno Haible  <bruno@clisp.org>
81165
81166         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
81167
81168 2005-08-17  Bruno Haible  <bruno@clisp.org>
81169
81170         * modules/mbuiter: New file.
81171         * MODULES.html.sh (Extended multibyte and wide character utilities):
81172         Add mbuiter.
81173
81174 2005-08-17  Bruno Haible  <bruno@clisp.org>
81175
81176         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
81177         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
81178
81179 2005-08-17  Bruno Haible  <bruno@clisp.org>
81180
81181         * m4/strcasestr.m4: New file.
81182
81183 2005-08-17  Bruno Haible  <bruno@clisp.org>
81184
81185         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
81186         * lib/strstr.c: Completely rewritten, with multibyte locale support.
81187
81188 2005-08-17  Bruno Haible  <bruno@clisp.org>
81189
81190         * lib/strcasestr.h: New file.
81191         * lib/strcasestr.c: New file.
81192
81193 2005-08-17  Bruno Haible  <bruno@clisp.org>
81194
81195         * lib/strcasecmp.c: Use mbuiter.h.
81196
81197 2005-08-17  Bruno Haible  <bruno@clisp.org>
81198
81199         * lib/mbuiter.h: New file.
81200
81201 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
81202
81203         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
81204         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
81205         and gl_GETOPT are both invoked via different paths (as happens
81206         with GNU tar CVS because it uses both argp and getopt), the former
81207         wins.
81208
81209 2005-08-16  Bruno Haible  <bruno@clisp.org>
81210
81211         * modules/tls: New file.
81212         * MODULES.html.sh (Multithreading): Add tls.
81213
81214 2005-08-16  Bruno Haible  <bruno@clisp.org>
81215
81216         * modules/strnlen1: New file.
81217         * MODULES.html.sh (String handling): Add strnlen1.
81218
81219 2005-08-16  Bruno Haible  <bruno@clisp.org>
81220
81221         * modules/strcase (Files): Add m4/mbrtowc.m4.
81222         (Depends-on): Add strnlen1, mbchar.
81223
81224 2005-08-16  Bruno Haible  <bruno@clisp.org>
81225
81226         * modules/mbiter: New file.
81227         * MODULES.html.sh (Extended multibyte and wide character utilities):
81228         Add mbiter.
81229
81230 2005-08-16  Bruno Haible  <bruno@clisp.org>
81231
81232         * modules/mbfile: New file.
81233         * MODULES.html.sh (Extended multibyte and wide character utilities):
81234         Add mbfile.
81235
81236 2005-08-16  Bruno Haible  <bruno@clisp.org>
81237
81238         * modules/mbchar: New file.
81239         * MODULES.html.sh (Extended multibyte and wide character utilities):
81240         New section.
81241
81242 2005-08-16  Bruno Haible  <bruno@clisp.org>
81243
81244         * m4/tls.m4: New file, from GNU gettext.
81245
81246 2005-08-16  Bruno Haible  <bruno@clisp.org>
81247
81248         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
81249         always.
81250         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
81251
81252 2005-08-16  Bruno Haible  <bruno@clisp.org>
81253
81254         * m4/mbiter.m4: New file.
81255
81256 2005-08-16  Bruno Haible  <bruno@clisp.org>
81257
81258         * m4/mbfile.m4: New file.
81259
81260 2005-08-16  Bruno Haible  <bruno@clisp.org>
81261
81262         * m4/mbchar.m4: New file.
81263
81264 2005-08-16  Bruno Haible  <bruno@clisp.org>
81265
81266         * lib/tls.h: New file, from GNU gettext.
81267         * lib/tls.c: New file, from GNU gettext.
81268
81269 2005-08-16  Bruno Haible  <bruno@clisp.org>
81270
81271         * lib/strnlen1.h: New file.
81272         * lib/strnlen1.c: New file.
81273
81274 2005-08-16  Bruno Haible  <bruno@clisp.org>
81275
81276         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81277         (mbi_init): Update.
81278         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81279         NUL byte, not after it.
81280
81281 2005-08-16  Bruno Haible  <bruno@clisp.org>
81282
81283         * lib/strcase.h (strcasecmp): Add note in comments.
81284         * lib/strncasecmp.c: Use code from strcasecmp.c.
81285         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
81286         (strcasecmp): Work correctly in multibyte locales.
81287
81288 2005-08-16  Bruno Haible  <bruno@clisp.org>
81289
81290         * lib/mbiter.h: New file.
81291
81292 2005-08-16  Bruno Haible  <bruno@clisp.org>
81293
81294         * lib/mbfile.h: New file.
81295
81296 2005-08-16  Bruno Haible  <bruno@clisp.org>
81297
81298         * lib/mbchar.h: New file.
81299         * lib/mbchar.c: New file.
81300
81301 2005-08-16  Bruno Haible  <bruno@clisp.org>
81302
81303         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
81304         the valid ones. Makes the comparison operations transitive:
81305         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
81306         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
81307
81308 2005-08-15  Simon Josefsson  <jas@extundo.com>
81309
81310         * modules/ssize_t (License): Change to 'unlimited'.
81311
81312         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
81313
81314 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81315
81316         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
81317         Add comments for each pending glibc patch.
81318
81319 2005-08-15  Bruno Haible  <bruno@clisp.org>
81320
81321         * lib/regex.h (__restrict_arr): Don't define to __restrict if
81322         __cplusplus is defined.
81323
81324 2005-08-14  Jim Meyering  <jim@meyering.net>
81325
81326         Sync from coreutils.
81327
81328         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
81329         Use the hash-table-based cycle-detection code not just when
81330         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
81331         Reported by James Youngman in
81332         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
81333         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
81334         FTS_TIGHT_CYCLE_CHECK.
81335         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
81336         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
81337         once again.
81338         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
81339         * lib/fts.c (fd_safer): Remove decl.
81340         Include fcntl--.h rather than unistd-safer.h
81341         (fts_safe_changedir): Don't call fd_safer; no longer needed
81342         now that we include fcntl--.h.
81343
81344 2005-08-12  Simon Josefsson  <jas@extundo.com>
81345
81346         * modules/getndelim2: Use ssize_t module.
81347         * modules/getnline: Likewise.
81348         * modules/safe-read: Likewise.
81349         * modules/xreadlink: Likewise.
81350
81351         * modules/ssize_t: New file.
81352
81353 2005-08-12  Simon Josefsson  <jas@extundo.com>
81354
81355         * m4/readline.m4: Look for termcap, curses or ncurses if required.
81356
81357 2005-08-12  Simon Josefsson  <jas@extundo.com>
81358
81359         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81360         ssize_t.
81361
81362 2005-08-12  Simon Josefsson  <jas@extundo.com>
81363
81364         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
81365         readline, getdelim and check_version.
81366         (Support for systems lacking ISO C 99: Sizes of integer types):
81367         Add size_max.
81368
81369 2005-08-12  Bruno Haible  <bruno@clisp.org>
81370
81371         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
81372
81373 2005-08-11  Simon Josefsson  <jas@extundo.com>
81374
81375         * modules/readline: New file.
81376
81377         * modules/strnlen (Files): Add strnlen.h.
81378
81379 2005-08-11  Simon Josefsson  <jas@extundo.com>
81380
81381         * m4/readline.m4: New file.
81382
81383 2005-08-11  Simon Josefsson  <jas@extundo.com>
81384
81385         * lib/readline.h, readline.c: New file.
81386
81387 2005-08-11  Simon Josefsson  <jas@extundo.com>
81388
81389         * doc/gnulib.texi (Initial import, Finishing touches): Mention
81390         gl_AVOID.
81391
81392 2005-08-11  Bruno Haible  <bruno@clisp.org>
81393
81394         * lib/strnlen.h (strnlen): Change parameter name to match comment.
81395
81396 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
81397
81398         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
81399
81400 2005-08-10  Simon Josefsson  <jas@extundo.com>
81401
81402         * tests/test-iconvme.c: New file.
81403
81404 2005-08-10  Simon Josefsson  <jas@extundo.com>
81405
81406         * m4/strnlen.m4: New file.
81407
81408         * m4/strndup.m4: Don't check for strnlen declaration, done in
81409         strnlen.m4.
81410
81411 2005-08-10  Simon Josefsson  <jas@extundo.com>
81412
81413         * lib/strndup.c: Use strnlen.h.
81414
81415         * lib/strnlen.h: New file.
81416
81417 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81418
81419         * README: Typos.
81420
81421 2005-08-02  Simon Josefsson  <jas@extundo.com>
81422
81423         * modules/readline: New file.
81424
81425 2005-08-02  Simon Josefsson  <jas@extundo.com>
81426
81427         * modules/getdelim: New file.
81428
81429         * modules/getline: Rewrite, don't use getndelim2.
81430
81431 2005-08-02  Simon Josefsson  <jas@extundo.com>
81432
81433         * m4/getline.m4: Separate out getdelim stuff into separate module.
81434
81435         * m4/getdelim.m4: New file.
81436
81437 2005-08-02  Simon Josefsson  <jas@extundo.com>
81438
81439         * lib/getline.h, getline.c: Rewrite.
81440
81441         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
81442
81443 2005-07-31  Bruno Haible  <bruno@clisp.org>
81444
81445         * lib/lock.h (gl_lock_initializer): New macro.
81446         (gl_lock_define_initialized): Use it.
81447         (gl_rwlock_initializer): New macro.
81448         (gl_rwlock_define_initialized): Use it.
81449         (gl_recursive_lock_initializer): New macro.
81450         (gl_recursive_lock_define_initialized): Use it.
81451
81452 2005-07-30  Karl Berry  <karl@gnu.org>
81453
81454         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
81455         Report from Ben Pfaff, regarding getopt.
81456
81457 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
81458
81459         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
81460         normal way.
81461         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
81462         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
81463         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
81464         (gl_GETOPT): Use the new macros.  Most of the implementation
81465         is moved to the new macros.  This is for programs like Emacs
81466         that don't want all the functionality of gl_GETOPT.
81467
81468 2005-07-26  Bruno Haible  <bruno@clisp.org>
81469
81470         * m4/lock.m4: Update from GNU gettext.
81471
81472 2005-07-26  Bruno Haible  <bruno@clisp.org>
81473
81474         * lib/lock.h: Update from GNU gettext.
81475         * lib/lock.c: Update from GNU gettext.
81476
81477 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
81478
81479         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
81480         obsolescent AC_TRY_RUN.  Include the default includes files, for
81481         'exit'.
81482
81483 2005-07-24  Bruno Haible  <bruno@clisp.org>
81484
81485         * modules/visibility: New file.
81486         * MODULES.html.sh (Misc): Add visibility.
81487
81488 2005-07-24  Bruno Haible  <bruno@clisp.org>
81489
81490         * m4/visibility.m4: New file.
81491
81492 2005-07-24  Bruno Haible  <bruno@clisp.org>
81493
81494         * doc/visibility.texi: New file.
81495
81496 2005-07-22  Bruno Haible  <bruno@clisp.org>
81497
81498         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
81499         $(ALLOCA_H), redundant through BUILT_SOURCES.
81500         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
81501         redundant through BUILT_SOURCES.
81502         * modules/byteswap (Makefile.am): Remove explicit dependency on
81503         $(BYTESWAP_H), redundant through BUILT_SOURCES.
81504         * modules/fnmatch (Makefile.am): Remove explicit dependency on
81505         $(FNMATCH_H), redundant through BUILT_SOURCES.
81506         * modules/getopt (Makefile.am): Remove explicit dependency on
81507         $(GETOPT_H), redundant through BUILT_SOURCES.
81508         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
81509         redundant through BUILT_SOURCES.
81510         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
81511         redundant through BUILT_SOURCES.
81512         * modules/stdbool (Makefile.am): Remove explicit dependency on
81513         $(STDBOOL_H), redundant through BUILT_SOURCES.
81514         * modules/stdint (Makefile.am): Remove explicit dependency on
81515         $(STDINT_H), redundant through BUILT_SOURCES.
81516         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
81517         Remove explicit dependency on $(SYSEXITS_H).
81518         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
81519
81520 2005-07-18  Simon Josefsson  <jas@extundo.com>
81521
81522         * lib/check-version.c (check_version): Accept identical versions too.
81523
81524 2005-07-18  Bruno Haible  <bruno@clisp.org>
81525
81526         * modules/lock: New file.
81527         * MODULES.html.sh (Multithreading): New section.
81528
81529 2005-07-18  Bruno Haible  <bruno@clisp.org>
81530
81531         * m4/lock.m4: New file, from GNU gettext.
81532
81533 2005-07-18  Bruno Haible  <bruno@clisp.org>
81534
81535         * lib/lock.h: New file, from GNU gettext.
81536         * lib/lock.c: New file, from GNU gettext.
81537
81538 2005-07-18  Bruno Haible  <bruno@clisp.org>
81539
81540         * lib/lock.h (gl_once_t): New type.
81541         (gl_once_define, gl_once): New macros.
81542         * lib/lock.c (fresh_once): New variable.
81543         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
81544         functions.
81545
81546 2005-07-16  Simon Josefsson  <jas@extundo.com>
81547
81548         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
81549         workaround, suggested by Bruno.
81550
81551 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81552
81553         * modules/xalloc (Depends-on): Add xalloc-die.
81554         * modules/xvasprintf (Depends-on): Add xalloc-die.
81555
81556 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81557
81558         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
81559         with a minor change.
81560
81561 2005-07-15  Bruno Haible  <bruno@clisp.org>
81562
81563         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
81564         When using lib/poll.c, define poll as rpl_poll.
81565
81566 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
81567
81568         * modules/argp (Depends-on): Remove unlocked-io.
81569
81570 2005-07-14  Derek Price  <derek@ximbiot.com>
81571
81572         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
81573         for glob symlink bug.
81574
81575 2005-07-14  Bruno Haible  <bruno@clisp.org>
81576
81577         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
81578         Instead, test for *_unlocked function declarations directly.
81579
81580 2005-07-11  Simon Josefsson  <jas@extundo.com>
81581
81582         * modules/size_max: New file.
81583
81584         * modules/xsize: Depend on size_max module for size_max.m4.
81585
81586 2005-07-11  Simon Josefsson  <jas@extundo.com>
81587
81588         * lib/size_max.h: New file.
81589
81590 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
81591
81592         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
81593         copyright symbol and the year.
81594         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
81595         (version_etc_va): Use parameterized copyright notice.
81596         Reword to conform to the current GNU coding standards.
81597
81598 2005-07-11  Karl Berry  <karl@gnu.org>
81599
81600         * doc/gnulib.texi (Quoting): new node.
81601         (Initial import): more info, from Patrice.
81602
81603 2005-07-11  Bruno Haible  <bruno@clisp.org>
81604
81605         * gnulib-tool (func_usage): Document option --avoid.
81606         (Command line options): Handle --avoid.
81607         (func_acceptable): New function.
81608         (func_modules_transitive_closure): Use it.
81609
81610 2005-07-11  Bruno Haible  <bruno@clisp.org>
81611
81612         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
81613         Reported by Jim Meyering.
81614
81615 2005-07-10  Bruno Haible  <bruno@clisp.org>
81616
81617         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
81618         Needed when size_t is smaller than 'unsigned int'.
81619         Reported by Paul Eggert.
81620
81621 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81622
81623         * modules/argp (Depends-on): Add unlocked-io
81624
81625 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81626
81627         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
81628         block of defines.
81629
81630 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81631
81632         * config/srclist.txt: Comment out regcomp.c, since we have a porting
81633         fix now.
81634
81635 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
81636         and Paul Eggert  <eggert@cs.ucla.edu>
81637
81638         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
81639         in wint_t, not wchar_t.  Remove now-unnecessary cast.
81640
81641 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81642
81643         * modules/regex (Files): Add lib/regex_internal.c,
81644         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
81645         (Depends-on): Add extensions.
81646         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
81647
81648 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81649
81650         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
81651         pathconf.
81652         * m4/same.m4 (gl_SAME): Likewise.
81653         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
81654
81655         * m4/regex.m4: Adjust to new libc regex implementation.
81656         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
81657         all the .c and .h parts of (the new) regex.
81658         Quote the m4 stuff better.
81659         Check for RE_ICASE bug of old gnulib.
81660         Check for REG_STARTEND of recent libc.
81661         Rename local variables from jm_* to gl_*.
81662         Quote operand of "test -f".
81663         Say "recent enough" version of libc, not "version 2".
81664         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
81665         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
81666         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
81667         Remove check for btowc, isascii.
81668         Require AM_LANGINFO_CODESET.
81669
81670 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81671
81672         * lib/regex.c, regex.h: Sync from libc.
81673         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
81674         * lib/regexec.c:
81675         New files, synced from libc, except that regex_internal.h
81676         currently has a small porting fix.
81677
81678 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81679
81680         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
81681         regex_internal.c, regexec.c.
81682         Add regex_internal.h too, but as a comment, since the libc version
81683         is currently broken in gnulib mode.
81684
81685 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81686
81687         Support programs like Emacs that use gnulib but not gettext.
81688         * MODULES.html.sh (Internationalization functions): Add gettext-h.
81689         * modules/gettext-h: New file.
81690         * modules/gettext (Files): Remove lib/gettext.h.
81691         (Depends-on): Add gettext-h.
81692         (Makefile.am): Remove lib_SOURCES.
81693         * modules/argmatch, modules/c-stack, modules/closeout:
81694         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
81695         * modules/execute, modules/file-type, modules/getaddrinfo:
81696         * modules/getopt, modules/human, modules/javacomp:
81697         * modules/javaexec, modules/mkdir-p, modules/obstack:
81698         * modules/openat, modules/pagealign_alloc, modules/pipe:
81699         * modules/quotearg, modules/regex, modules/rpmatch:
81700         * modules/unicodeio, modules/userspec, modules/version-etc:
81701         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
81702         * modules/xsetenv:
81703         Depend on gettext-h, not gettext.
81704
81705 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81706
81707         * gnulib-tool (func_import): Add support for 'public domain' license.
81708         * modules/alloca, modules/atexit, modules/memmove:
81709         Now public domain, not GPL.
81710         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
81711         * modules/realloc, modules/strerror, modules/strtod:
81712         Now LGPL, not GPL.
81713
81714 2005-07-05  Bruno Haible  <bruno@clisp.org>
81715
81716         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
81717         autoconf CVS. Needed for mingw.
81718
81719 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81720
81721         Remove the dependency of the strftime module on the tzset module.
81722         * modules/strftime (Depends-on): Remove dependency on tzset.
81723
81724 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81725
81726         Remove the dependency of the strftime module on the tzset module.
81727         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
81728         gl_FUNC_TZSET_CLOBBER.
81729
81730 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81731
81732         Remove the dependency of the strftime module on the tzset module.
81733         * lib/strftime.c (my_strftime)
81734         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
81735         Copy the input structure, to work around some of the bug with
81736         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
81737         Solaris releases, you should also use the tzset module, but we won't
81738         require it as a dependency any more since we don't want LGPLed code
81739         to depend on GPLed code.
81740
81741 2005-07-02  Jim Meyering  <jim@meyering.net>
81742
81743         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
81744         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
81745         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
81746         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
81747
81748 2005-07-02  Jim Meyering  <jim@meyering.net>
81749
81750         * lib/backupfile.c (backup_args): Change a `0' to NULL.
81751
81752 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81753
81754         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
81755         declares only 'struct timespec;' (!).
81756
81757 2005-07-01  Jim Meyering  <jim@meyering.net>
81758
81759         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
81760         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
81761         * lib/save-cwd.c, tempname.c:
81762         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81763         and don't include <sys/file.h>).
81764
81765 2005-06-29  Jim Meyering  <jim@meyering.net>
81766
81767         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
81768         type name.  Use the variable name instead.
81769         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
81770         Likewise.
81771
81772 2005-06-28  Simon Josefsson  <jas@extundo.com>
81773
81774         * modules/check-version (Files): Add check-version.m4.
81775
81776 2005-06-28  Simon Josefsson  <jas@extundo.com>
81777
81778         * m4/check-version.m4: New file, suggested by Jim Meyering
81779         <jim@meyering.net>.
81780
81781 2005-06-28  Simon Josefsson  <jas@extundo.com>
81782
81783         * lib/check-version.h, lib/check-version.c: New files.
81784
81785 2005-06-28  Simon Josefsson  <jas@extundo.com>
81786
81787         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
81788         collision with global variable.  Better indentation.  Don't
81789         increment buffer pointer beyond buffer end.  Based on comments
81790         from Paul Eggert <eggert@cs.ucla.edu>.
81791
81792         * lib/base64.h: Indent.
81793
81794 2005-06-28  Simon Josefsson  <jas@extundo.com>
81795
81796         * doc/gnulib.texi (Library version handling): New section.
81797
81798 2005-06-28  Jim Meyering  <jim@meyering.net>
81799
81800         * check-module (find_included_lib_files): Hard-code another
81801         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
81802         but modules/fts-lgpl (correctly) does not list those files.
81803
81804         * modules/canonicalize (Files): Add lib/pathmax.h.
81805
81806 2005-06-25  Simon Josefsson  <jas@extundo.com>
81807
81808         * modules/check-version: New file.
81809
81810 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
81811
81812         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
81813         initializer of struct addrinfo, as an indication that we don't
81814         care how many members the structure has.
81815
81816 2005-06-24  Derek Price  <derek@ximbiot.com>
81817         and Bruno Haible  <bruno@clisp.org>
81818
81819         Remove stat module & update lstat.
81820         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
81821         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81822         * m4/stat.m4: Remove this file.
81823
81824 2005-06-24  Derek Price  <derek@ximbiot.com>
81825         and Bruno Haible  <bruno@clisp.org>
81826
81827         Remove stat module & update lstat.
81828         * lib/stat.c: Remove this file...
81829         (slash_aware_lstat): ...moving this content and its support...
81830         * lib/lstat.c (rpl_lstat): ...into here.
81831         * lib/lstat.h: New file.
81832
81833 2005-06-24  Derek Price  <derek@ximbiot.com>
81834         and Bruno Haible  <bruno@clisp.org>
81835
81836         Remove stat module & update lstat.
81837         * config/srclist.txt (libc sources): Remove stat.
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         * MODULES.html.sh (stat): Remove.
81844         * MODULES.html: Regenerated.
81845         * modules/lstat (Description): Correct function name.
81846         (Files): Add "lstat.h".
81847         (Depends-on): Remove stat, add xalloc, stat-macros.
81848         * modules/stat: Remove this file.
81849         (Include): Add "lstat.h", remove <sys/stat.h>.
81850
81851 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
81852
81853         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
81854         (ranged_convert): Don't save conversion in a temporary struct.
81855         This causes a warning with GCC 4.0.0, and anyway in the typical
81856         case it's not worth the extra 100 bytes or so of code.
81857         (ranged_convert, __mktime_internal): When calling a function via a
81858         pointer P, use P () rather than (*P) (), as we now assume C89 or
81859         better.
81860
81861 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81862
81863         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
81864         "who -r" failed to give output.  Problem reported by Tim Waugh.
81865
81866         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
81867         (xcalloc): Use it to avoid needless tests.
81868         Problem reported by Jim Meyering.
81869
81870 2005-06-20  Derek Price  <derek@ximbiot.com>
81871
81872         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
81873         unnecessary for Autoconfs > 2.59c.
81874
81875 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81876
81877         * lib/argp.h (__option_is_short): Check upper limit of
81878         __key. Isprint() requires its argument to have the value
81879         of an unsigned char or EOF.
81880
81881 2005-06-16  Jim Meyering  <jim@meyering.net>
81882
81883         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
81884         when either N or S is zero.
81885
81886 2005-06-16  Derek Price  <derek@ximbiot.com>
81887
81888         * m4/bison.m4: Declare YACC & YFLAGS precious.
81889
81890 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
81891
81892         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
81893         multibyte string or pattern, fall back on unibyte matching.
81894         Problem reported by James Youngman.
81895
81896 2005-06-08  Bruno Haible  <bruno@clisp.org>
81897
81898         * modules/csharpcomp: New file.
81899         * MODULES.html.sh (C#): Add csharpcomp.
81900
81901 2005-06-08  Bruno Haible  <bruno@clisp.org>
81902
81903         * m4/csharpcomp.m4: New file, from GNU gettext.
81904
81905 2005-06-08  Bruno Haible  <bruno@clisp.org>
81906
81907         * lib/csharpcomp.h: New file, from GNU gettext.
81908         * lib/csharpcomp.c: New file, from GNU gettext.
81909         * lib/csharpcomp.sh.in: New file, from GNU gettext.
81910
81911 2005-06-08  Bruno Haible  <bruno@clisp.org>
81912
81913         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
81914         warning on mingw.
81915
81916 2005-06-07  Derek Price  <derek@ximbiot.com>
81917
81918         Sync from CVS.
81919         * lib/glob_.h: Indent nested #ifdef.
81920
81921 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81922
81923         Sync from coreutils.
81924         Use "file name" when talking about file names, instead of "filename"
81925         or "path", as per the GNU coding standards.
81926         * lib/mkdir-p.c: Renamed from makepath.c.
81927         (make_dir_parents): Renamed from make_path.  All callers changed.
81928         * lib/mkdir-p.h: Likewise.  All includers changed.
81929         * lib/filenamecat.c: Renamed from path-concat.c.
81930         (file_name_concat): Renamed from path_concat.  All callers changed.
81931         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
81932         * lib/filenamecat.h: Likewise.  All includers changed.
81933         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
81934         in comments or local variable names.
81935         * lib/basename.c: Likewise.
81936         * lib/canonicalize.c, canonicalize.h: Likewise.
81937         * lib/dirname.c, dirname.h: Likewise.
81938         * lib/euidaccess.c: Likewise.
81939         * lib/exclude.c: Likewise
81940         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
81941         * lib/fsusage.c, fsuage.h: Likewise.
81942         * lib/fts.c, fts_.h: Likewise.
81943         * lib/getcwd.c: Likewise.
81944         * lib/getloadavg.c: Likewise.
81945         * lib/mkstemp.c: Likewise.
81946         * lib/mountlist.c, mountlist.h: Likewise.
81947         * lib/openat.c, openat.h: Likewise.
81948         * lib/readlink-stub.c: Likewise.
81949         * lib/readutmp.c, readutmp.h: Likewise.
81950         * lib/rename.c: Likewise.
81951         * lib/rmdir.c: Likewise.
81952         * lib/same.c: Likewise.
81953         * lib/savedir.c: Likewise.
81954         * lib/stripslash.c: Likewise.
81955         * lib/tempname.c: Likewise.
81956         * lib/xreadlink.c: Likewise.
81957         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
81958         All uses changed.
81959         * lib/exclude.h: Likewise.
81960
81961         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
81962         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81963         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
81964         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81965         * lib/pathmax.h: Include <limits.h> unconditionally, since other
81966         files have been getting away with it for years (MORE/BSD 4.3
81967         is extinct now).
81968         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
81969         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81970
81971         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
81972         Define to 256, not 255, as per modern POSIX.
81973
81974 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81975
81976         Sync from coreutils.
81977         Use "file name" when talking about file names, instead of "filename"
81978         or "path", as per the GNU coding standards.
81979         * MODULES.html.sh: mkdir-p renamed from makepath.
81980         filenamecat renamed from path-concat.
81981         * modules/filenamecat: Renamed from modules/path-concat.
81982         (Files): filenamecat.h and filenamecat.c renamed from
81983         path-concat.h and path-concat.c.
81984         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
81985         (Include): filenamecat.h, not path-concat.h.
81986         * modules/mkdir-p: Renamed from modules/makepath.
81987         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
81988         makepath.c.
81989         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
81990         (Include): mkdir-p.h, not makepath.h.
81991
81992 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81993
81994         Sync from coreutils.
81995         * m4/mkdir-p.m4: Renamed from makepath.m4.
81996         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
81997         Rename files from makepath.c to mkdir-p.c, and from
81998         makepath.h to mkdir-p.h.
81999         * m4/filenamecat.m4: Renamed from path-concat.m4.
82000         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
82001         Rename files from path-concat.c to filenamecat.c,
82002         and from path-concat.h to filenamecat.h.
82003         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
82004         "file name" in local variables or comments.
82005         * m4/rename.m4: Likewise.
82006
82007 2005-06-01  Bruno Haible  <bruno@clisp.org>
82008
82009         * modules/csharpexec: New file.
82010         * MODULES.html.sh (C#): New section.
82011
82012 2005-06-01  Bruno Haible  <bruno@clisp.org>
82013
82014         * m4/csharp.m4: New file, from GNU gettext.
82015         * m4/csharpexec.m4: New file, from GNU gettext.
82016
82017 2005-06-01  Bruno Haible  <bruno@clisp.org>
82018
82019         * lib/csharpexec.h: New file, from GNU gettext.
82020         * lib/csharpexec.c: New file, from GNU gettext.
82021         * lib/csharpexec.sh.in: New file, from GNU gettext.
82022
82023 2005-05-31  Derek Price  <derek@ximbiot.com>
82024             Paul Eggert  <eggert@cs.ucla.edu>
82025
82026         Sync from cvs.
82027         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82028
82029 2005-05-31  Derek Price  <derek@ximbiot.com>
82030             Paul Eggert  <eggert@cs.ucla.edu>
82031
82032         Sync from cvs.
82033         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
82034
82035 2005-05-29  Derek Price  <derek@ximbiot.com>
82036
82037         * config/srclist.txt (glob_.h, glob.c): Add these files.
82038
82039 2005-05-29  Derek Price  <derek@ximbiot.com>
82040
82041         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
82042         * modules/glob: New file.
82043         * modules/getlogin_r: Add link to POSIX spec in description.
82044
82045 2005-05-29  Derek Price  <derek@ximbiot.com>
82046             Paul Eggert  <eggert@cs.ucla.edu>
82047
82048         * m4/glob.m4: New file.
82049
82050 2005-05-29  Derek Price  <derek@ximbiot.com>
82051             Paul Eggert  <eggert@cs.ucla.edu>
82052
82053         * lib/glob_.h, lib/glob.c: New files.
82054
82055 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82056
82057         * modules/fts (Files): Remove m4/inttypes-pri.m4.
82058         * modules/fts-lgpl (Depends-on): Remove gettext.
82059
82060 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82061
82062         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
82063         and don't require gt_INTTYPES_PRI.
82064
82065 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
82066
82067         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
82068
82069         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
82070         the configuration hassle isn't worth it.
82071         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
82072         (LONGEST_MODIFIER, PRIuMAX): Remove.
82073
82074 2005-05-27  Bruno Haible  <bruno@clisp.org>
82075
82076         * lib/getlogin_r.h: Remove second include of <stddef.h>.
82077
82078 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
82079
82080         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
82081         _POSIX_PTHREAD_SEMANTICS for Solaris.
82082
82083 2005-05-25  Derek Price  <derek@ximbiot.com>
82084
82085         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
82086
82087 2005-05-25  Derek Price  <derek@ximbiot.com>
82088             Paul Eggert  <eggert@cs.ucla.edu>
82089
82090         * modules/getlogin_r, m4/getlogin_r.m4: New files.
82091         * lib/getlogin_r.c, getlogin_r.h: New files.
82092
82093 2005-05-25  Bruno Haible  <bruno@clisp.org>
82094             Derek Price  <derek@ximbiot.com>
82095
82096         * lib/getlogin_r.h: Simplify API documentation.
82097
82098 2005-05-23  Derek Price  <derek@ximbiot.com>
82099
82100         * modules/minmax (Files): Add m4/minmax.m4.
82101         (configure.ac): Add gl_MINMAX.
82102
82103 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
82104
82105         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
82106         so that unistd-safer.h (GPL'ed code) need not be included.
82107
82108 2005-05-22  Bruno Haible  <bruno@clisp.org>
82109
82110         * m4/minmax.m4: New file.
82111         Based on a patch by Derek Price <derek@ximbiot.com>.
82112
82113 2005-05-22  Bruno Haible  <bruno@clisp.org>
82114
82115         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
82116         (INT64_MIN): Fix definition.
82117         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
82118
82119         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
82120         NEED_SIGNED_INT_TYPES.
82121
82122         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
82123         HAVE_SYSTEM_INTTYPES.
82124
82125 2005-05-22  Bruno Haible  <bruno@clisp.org>
82126
82127         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
82128         Also include <sys/param.h> if it defines MIN, MAX.
82129         Based on a patch by Derek Price <derek@ximbiot.com>.
82130
82131 2005-05-21  Jim Meyering  <jim@meyering.net>
82132
82133         * modules/fts (Files): Add m4/inttypes-pri.m4.
82134         (Depends-on): Add lstat and remove gettext.  Alphabetize.
82135
82136 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82137
82138         New fts module.
82139         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
82140         (setup_dir, free_dir): New functions.
82141         (enter_dir, leave_dir): Define trivial
82142         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
82143         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
82144         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
82145         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
82146         Move to fts-cycle.c.
82147         (fts_open): Use setup_dir.
82148         (fts_close): Use free_dir.
82149         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
82150         This adds a label and some gotos, but the alternatives were messier.
82151         Check for memory allocation failure when entering a dir.
82152         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
82153         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
82154         (FTS): New member fts_cycle, that is a union that contains the
82155         old active_dir_ht and cycle_state.  All uses changed to mention
82156         fts_cycle.ht and fts_cycle.state.
82157         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
82158         fts.c, with the following changes:
82159         (setup_dir, free_dir): New functions.
82160         (enter_dir): Now returns bool.  Return true if successful, false
82161         if memory exhausted.  All callers changed.
82162         Do not bother partly cleaning up on
82163         memory allocation failure; that is free_dir's job.
82164         However, free ad if hash_insert fails, to avoid memory leak.
82165         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
82166         fts->fts_options to see which union member to use.
82167
82168 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82169
82170         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
82171         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
82172
82173 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82174
82175         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
82176
82177 2005-05-20  Jim Meyering  <jim@meyering.net>
82178
82179         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
82180         Now a macro, to pacify GCC.
82181
82182 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82183
82184         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
82185         of -1.
82186
82187 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
82188
82189         * lib/chown.c (rpl_chown): Return -1 on failure.
82190
82191 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82192
82193         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
82194         Don't check for stddef.h.
82195         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
82196         don't use its results.
82197         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
82198         since we include them unconditionally.  Don't require
82199         AM_STDBOOL_H, since stdbool is a prerequisite.
82200         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
82201         since we assume C89 or better.
82202         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
82203         as we don't use their results.
82204         Don't check for fchdir, memmove, memset, strrchr, as we use
82205         them unconditionally.
82206         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
82207         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
82208
82209 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
82210
82211         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
82212         Include <stddef.h> unconditionally, since we assume C89 now.
82213         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
82214         * lib/fts.c: Include fts_.h first, to check interface.
82215         Do not include intprops.h; no longer needed.
82216         Include cycle-check.h and hash.h, since fts_.h no longer does.
82217         Remove unnecessary casts of closedir to void.
82218         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
82219         decide whether to decrement nlinks.
82220         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
82221         (FTS): Use struct hash_table * instead of Hash_table, so that
82222         we no longer need to include hash.h here.
82223
82224 2005-05-18  Jim Meyering  <jim@meyering.net>
82225
82226         * modules/dirfd (License): Change to LGPL.  Most of the code
82227         is already in the public domain.
82228
82229 2005-05-18  Jim Meyering  <jim@meyering.net>
82230
82231         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
82232         Reported by Yoann Vandoorselaere.
82233
82234 2005-05-17  Jim Meyering  <jim@meyering.net>
82235
82236         * m4/fts.m4: New file, from coreutils.
82237
82238 2005-05-17  Jim Meyering  <jim@meyering.net>
82239
82240         * lib/fts.c, lib/fts_.h: New files, from coreutils.
82241
82242 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82243
82244         Sync from coreutils.
82245         * m4/unlinkdir.m4: New file.
82246
82247 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82248
82249         Sync from coreutils.
82250         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
82251         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
82252         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
82253         White space changes only.
82254         * lib/makepath.c (make_path): Port to hosts where leading "//" is
82255         special.
82256         * lib/yesno.c: Include getline.h, not ctype.h.
82257         (yesno): Don't remove leading white space; POSIX doesn't allow it.
82258         Use getline to remove arbitrary restriction on response length.
82259
82260 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
82261
82262         * config/srclist-update: Spell out "Street" in FSF postal
82263         mail address; this is the style the FSF seems to prefer.
82264
82265         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82266         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82267         this updates FSF postal mail address.
82268
82269         Sync from coreutils.
82270         * modules/unlinkdir: New file.
82271         * modules/yesno (Depends-on): Add getline.
82272         * MODULES.html.sh (File system functions): Add unlinkdir.
82273
82274 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82275
82276         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82277         lib/strsep.h:
82278         Change the initial comment to refer to GPL, not LGPL.
82279         gnulib-tool will change it to LGPL as needed.
82280
82281         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82282         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82283         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
82284         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
82285         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
82286         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
82287         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
82288         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
82289         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
82290         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
82291         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
82292         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
82293         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
82294         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
82295         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
82296         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
82297         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
82298         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
82299         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
82300         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
82301         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
82302         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
82303         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
82304         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
82305         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
82306         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
82307         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
82308         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
82309         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
82310         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
82311         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
82312         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
82313         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
82314         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
82315         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
82316         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
82317         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
82318         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
82319         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
82320         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
82321         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
82322         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
82323         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
82324         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
82325         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
82326         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
82327         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
82328         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
82329         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
82330         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
82331         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82332         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
82333         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
82334         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
82335         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
82336         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
82337         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
82338         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
82339         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
82340         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
82341         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
82342         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
82343         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
82344         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
82345         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
82346         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
82347         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
82348         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
82349         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
82350         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
82351         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
82352         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
82353         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
82354         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
82355         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
82356         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
82357         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
82358         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
82359         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
82360         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
82361         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
82362         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
82363         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
82364         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
82365         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
82366         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
82367         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
82368         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
82369         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
82370         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
82371         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
82372         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
82373         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
82374         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
82375         lib/yesno.c, lib/yesno.h:
82376         Update FSF postal mail address.
82377
82378 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82379
82380         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
82381         tests/test-memmem.c, tests/test-stpncpy.c:
82382         Update FSF postal mail address.
82383
82384 2005-05-13  Bruno Haible  <bruno@clisp.org>
82385
82386         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
82387         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
82388         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
82389         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
82390         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
82391         Add support for 64-bit integers in the MSVC compiler.
82392
82393 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82394
82395         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
82396
82397 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
82398
82399         * gnulib-tool (func_import): Sort and uniquify recommended includes.
82400
82401 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
82402
82403         * doc/getdate.texi (General date syntax): Don't say that date
82404         date --iso-8601=ns generates acceptable dates; it doesn't yet.
82405         Problem reported by Nic Ferrier.
82406
82407 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82408
82409         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
82410         specified in ai_socktype. Fix invalid ai_protocol
82411         check. ai_protocol is usually set to 0 or depending on
82412         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
82413         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
82414         ai_socktype / ai_protocol in the returned addrinfo structure.
82415
82416 2005-05-10  Simon Josefsson  <jas@extundo.com>
82417
82418         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
82419         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82420
82421 2005-05-10  Karl Berry  <karl@gnu.org>
82422
82423         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
82424         (from http://www.gnu.org/licenses).
82425         * doc/COPYING.LIB: also rename to COPYING.LESSER.
82426         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
82427         fdl.texi suffices.
82428
82429 2005-05-10  Karl Berry  <karl@gnu.org>
82430
82431         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
82432         (COPYING.DOC): remove.
82433
82434         * config/srclist-update: new FSF address.
82435
82436 2005-05-10  Derek Price  <derek@ximbiot.com>
82437
82438         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
82439         possible.
82440
82441 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82442             Bruno Haible  <bruno@clisp.org>
82443
82444         * modules/inet_ntop: New file.
82445         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82446         inet_ntop.
82447
82448 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82449             Bruno Haible  <bruno@clisp.org>
82450
82451         * m4/inet_ntop.m4: New file.
82452
82453 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82454             Bruno Haible  <bruno@clisp.org>
82455
82456         * lib/inet_ntop.h: New file.
82457         * lib/inet_ntop.c: New file, from glibc with modifications.
82458
82459 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
82460
82461         * modules/time_r (License): Change to LGPL.
82462         * modules/extensions (License): Change to LGPL.  Actually,
82463         the license is more permissive than that, but currently gnulib-tool
82464         doesn't know how to handle more-permissive licenses.
82465
82466         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
82467         Problem reported by Dave Love.
82468
82469 2005-05-08  Jim Meyering  <jim@meyering.net>
82470
82471         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
82472         blank.
82473
82474 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82475
82476         * modules/argmatch (Depends-on): Add stdbool.
82477         * modules/backupfile (Depends-on): Likewise.
82478         * modules/chdir-long (Depends-on): Likewise.
82479         * modules/closeout (Depends-on): Likewise.
82480         * modules/cycle-check (Depends-on): Likewise.
82481         * modules/dirname (Depends-on): Likewise.
82482         * modules/fnmatch (Depends-on): Likewise.
82483         * modules/fsusage (Depends-on): Likewise.
82484         * modules/fwriteerror (Depends-on): Likewise.
82485         * modules/getcwd (Depends-on): Likewise.
82486         * modules/getloadavg (Depends-on): Likewise.
82487         * modules/hard-locale (Depends-on): Likewise.
82488         * modules/makepath (Depends-on): Likewise.
82489         * modules/mountlist (Depends-on): Likewise.
82490         * modules/nanosleep (Depends-on): Likewise.
82491         * modules/posixtm (Depends-on): Likewise.
82492         * modules/quotearg (Depends-on): Likewise.
82493         * modules/readtokens (Depends-on): Likewise.
82494         * modules/readtokens0 (Depends-on): Likewise.
82495         * modules/readutmp (Depends-on): Likewise.
82496         * modules/save-cwd (Depends-on): Likewise.
82497         * modules/strftime (Depends-on): Likewise.
82498         * modules/userspec (Depends-on): Likewise.
82499         * modules/utimecmp (Depends-on): Likewise.
82500         * modules/xgetcwd (Depends-on): Likewise.
82501         * modules/xnanosleep (Depends-on): Likewise.
82502         * modules/xstrtod (Depends-on): Likewise.
82503         * modules/yesno (Depends-on): Likewise.
82504
82505 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
82506
82507         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
82508         needless checks.
82509
82510 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82511
82512         Merge from coreutils.  Among other things,
82513         add bulletproofing for cases where stdin, stdout, or stderr are closed.
82514         * lib/fd-safer.c: New file.
82515         * lib/fcntl-safer.h, open-safer.c: Remove.
82516         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
82517         * lib/dup-safer.c: Include unistd-safer.h first.
82518         Don't include errno.h.
82519         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
82520         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
82521         * lib/file-type.c: Rely on file-type.h change.
82522         * lib/getloadavg.c: Include unistd-safer.h.
82523         (getloadavg): Use safer open.
82524         * lib/getusershell.c: Include "stdio-safer.h".
82525         (getusershell): Use safer fopen.
82526         * lib/long-options.c (long_options): Use NULL rather than 0.
82527         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
82528         'free'.
82529         * lib/modechange.c: Likewise.
82530         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
82531         (MODE_DONE): New constant.
82532         (struct mode_change): Remove 'next' member.
82533         (make_node_op_equals): New function; like the old one of the
82534         same name, except it allocates an array.
82535         (mode_compile, mode_create_from_ref): Use it.
82536         (mode_compile): Allocate result as an array, not a linked list.
82537         Parse octal string ourself, so that we catch mistakes like "+0".
82538         (mode_adjust): Arg is an array, not a linked list.
82539         * lib/modechange.c: Include stat-macros.h, xalloc.h.
82540         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
82541         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
82542         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
82543         Remove.  This is now stat-macros.h's job.
82544         (talloc): Remove.  All callers replaced by xalloc, so that
82545         our invokers don't have to worry about reporting memory failures.
82546         (make_node_op_equals): Remove.
82547         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82548         New constants.
82549         (struct mode_change): Moved here from modechange.h.
82550         (mode_append_entry): Remove.
82551         (mode_compile): Remove MASKED_OPS arg, since it encouraged
82552         apps to have incorrect behavior.  Use simpler algorithm for head
82553         and tail.  Don't futz with umask; that's now the job of mode_adjust.
82554         Detect more invalid usages rather than having somewhat-random behavior.
82555         Don't insert an "a=" action, as that leads to incorrect behavior.
82556         (mode_compile, mode_create_from_ref): Return NULL on error instead
82557         of an enum, since now there's only one way to have an error.  All
82558         callers changed.
82559         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
82560         at the correct time.  Simplify calculation of "+u" and its ilk.
82561         Don't mishandle "+X".
82562         (mode_free): Remove "register" and localize decls.
82563         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82564         (struct mode_change): Move to modechange.c; callers don't
82565         need to see this stuff.
82566         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
82567         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
82568         (mode_change, mode_adjust): Reflect the new signatures noted above.
82569         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
82570         that might redefine system include files.
82571         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
82572         (my_usleep): Use NULL rather than (void *) 0.
82573         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
82574         Use siginterrupt to specify that system calls should be interrupted.
82575         (rpl_nanosleep): Move initialization of suspended closer to call of
82576         my_usleep.
82577         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
82578         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
82579         (desirable_utmp_entry): New function.
82580         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
82581         using x2nrealloc, to simplify logic.
82582         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
82583         size calculation.  Do not assume utmp file is a regular file.
82584         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
82585         (READ_UTMP_CHECK_PIDS): New constant.
82586         * lib/save-cwd.c: Include unistd-safer.h.
82587         (save_cwd): Use fd_safer.
82588         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
82589         [!_LIBC] Include "stat-macros.h" instead.
82590         * lib/unistd-safer.h (fd_safer): New decl.
82591
82592 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82593
82594         * modules/getloadavg (Depends-on): Add unistd-safer.
82595         * modules/getusershell (Depends-on): Add stdio-safer.
82596         * modules/lstat (Depends-on): Remove xalloc.
82597         * modules/mkstemp (Depends-on): Add stat-macros.
82598         * modules/modechange (Depends-on): Remove xstrtol.
82599         Add stat-macros, xalloc.
82600         * modules/save-cwd (Depends-on): Add unistd-safer.
82601         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
82602         * modules/unistd-safer (Files): Add lib/fd-safer.c
82603         (Makefile.am): Remove lib_SOURCES.
82604
82605         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
82606         Remove fcntl-safer; unistd-safer supersedes it.
82607
82608 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82609
82610         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
82611         AC_HEADER_STAT.
82612         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
82613         (gl_PREREQ_CHOWN): Remove.
82614         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
82615         it.  Don't require AC_HEADER_STAT.
82616         (gl_PREREQ_LSTAT): Remove.
82617         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
82618         Don't require AC_HEADER_STAT.
82619         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
82620         (gl_PREREQ_RMDIR): Remove.
82621         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
82622         mention stat-macros.h or AC_HEADER_STAT, since we'll make
82623         the stat-macros module a prerequisite.
82624         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
82625         * m4/filemode.m4 (gl_FILEMODE): Likewise.
82626         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
82627         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
82628         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
82629         variable names.
82630         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
82631         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
82632         variable prefixes.
82633         * m4/fcntl-safer.m4: Remove.
82634         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
82635         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
82636         Invoke gl_PREREQ_FD_SAFER.
82637         (gl_PREREQ_FD_SAFER): New macro.
82638         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
82639         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
82640         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
82641         Remove duplicate call to AC_LIBOBJ(readutmp).
82642         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
82643
82644         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
82645         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
82646
82647 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82648
82649         * MODULES.html.sh (Misc): Add byteswap.
82650
82651 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82652
82653         * modules/getcwd (Depends-on): Add extensions.
82654         * modules/openat (Depends-on): Likewise.
82655
82656 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82657
82658         * modules/byteswap: New file.
82659
82660 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82661
82662         * m4/byteswap.m4: New file.
82663
82664 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82665
82666         * lib/byteswap_.h: New file.
82667
82668 2005-04-25  Karl Berry  <karl@gnu.org>
82669
82670         * m4/gettext.m4: Update from GNU gettext 0.14.4.
82671
82672 2005-04-25  Albert Chin  <china@thewrittenword.com>
82673
82674         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
82675         Toolkit C bug.
82676
82677 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
82678
82679         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
82680         (func_ln_if_changed): Remove forcibly for no error message
82681         in case file does not exist.
82682
82683 2005-04-19  Simon Josefsson  <jas@extundo.com>
82684
82685         * gnulib-tool (Options): Make --symlink mean --symbolic.
82686
82687 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
82688
82689         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
82690
82691 2005-04-16  Simon Josefsson  <jas@extundo.com>
82692
82693         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
82694
82695 2005-04-15  Simon Josefsson  <jas@extundo.com>
82696
82697         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
82698
82699 2005-04-15  Simon Josefsson  <jas@extundo.com>
82700
82701         * gnulib-tool: Rename --symlink to --symbolic.
82702
82703 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
82704
82705         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
82706         symbolic links to files instead of copying/moving.  Add --aux-dir,
82707         specifying directory relative --dir where auxiliary build tools
82708         are placed.
82709
82710 2005-04-14  Bruno Haible  <bruno@clisp.org>
82711
82712         * modules/allocsa (License): Change to LGPL.
82713         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
82714
82715 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82716
82717         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
82718         that "UTC +1 second" continues to work.  Problem reported
82719         by Dmitry V. Levin.
82720         (relunit_snumber): New rule.
82721         (relunit): Use it.
82722
82723 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82724
82725         * lib/getdate.y (universal_time_zone_table): New constant.
82726         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
82727         universal_time_zone_table.
82728         (lookup_zone): Prefer universal_time_zone_table to
82729         local_time_zone_table, so that "GMT" time stamps are allowed in
82730         London during the summer.  Problem reported by Ian Abbott.
82731
82732 2005-04-12  Jim Meyering  <jim@meyering.net>
82733
82734         * lib/human.c (humblock): Set *options even when returning due to
82735         xstrtoumax conversion failure.  Thanks to a used-uninitialized
82736         warning from gcc-4.
82737
82738 2005-04-09  Jim Meyering  <jim@meyering.net>
82739
82740         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
82741         -Wuninitialized: initialize tm0.tm_year.
82742
82743 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
82744
82745         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
82746         count, since there's no maximum.  All uses changed.
82747         Add member dsts_seen.
82748         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
82749         not being INT_MAX.
82750         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
82751         Use pc_rels_seen to decide whther a date is absolute.
82752
82753         * lib/getdate.y (number): Don't overwrite year.
82754         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
82755         check.
82756
82757 2005-04-02  Simon Josefsson  <jas@extundo.com>
82758
82759         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
82760         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
82761
82762 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
82763
82764         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
82765         where no absolute path name can be longer than PATH_MAX.
82766
82767 2005-03-27  Jim Meyering  <jim@meyering.net>
82768
82769         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
82770
82771 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
82772
82773         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
82774         "one's complement" -> "ones' complement" in comment, as per Knuth.
82775         "value of type" -> "type or expression" in comment.
82776         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
82777
82778 2005-03-26  Jim Meyering  <jim@meyering.net>
82779
82780         Comment nits.
82781         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
82782         Correct typos: s/or/of/.
82783
82784 2005-03-26  Jim Meyering  <jim@meyering.net>
82785
82786         * modules/check-include-files: Move to ../ and rename to...
82787         * check-module: ...this.
82788
82789 2005-03-25  Jim Meyering  <jim@meyering.net>
82790
82791         * modules/xvasprintf (Files): Add xalloc.h.
82792
82793 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
82794
82795         * modules/gettext (Files): config/config.rpath ->
82796         build-aux/config.rpath
82797         * modules/iconv (Files): Likewise.
82798         Problem reported by Oskar Liljeblad.
82799
82800 2005-03-23  Jim Meyering  <jim@meyering.net>
82801
82802         * modules/check-include-files: New script to check for
82803         missing dependencies, multiple includes, etc.
82804
82805         * modules/c-strtold (Depends-on): Add xalloc.
82806         * modules/c-strtod (Depends-on): Add xalloc.
82807         * modules/hash (Depends-on): Add xalloc.
82808         (Files): Remove lib/xalloc.h.
82809
82810         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
82811         * modules/userspec (Files): Add lib/inttostr.h.
82812
82813 2005-03-23  Jim Meyering  <jim@meyering.net>
82814
82815         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
82816
82817 2005-03-22  Jim Meyering  <jim@meyering.net>
82818
82819         * modules/stat-macros: New module.
82820         * modules/canonicalize, modules/euidaccess, modules/file-type,
82821         * modules/filemode, modules/lchown, modules/makepath,
82822         * modules/rmdir, modules/stat: Depend on new stat-macros module
82823         rather than listing lib/stat-macros.h manually.
82824         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
82825
82826 2005-03-22  Jim Meyering  <jim@meyering.net>
82827
82828         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
82829
82830 2005-03-22  Bruno Haible  <bruno@clisp.org>
82831
82832         * config/srclist.txt: Replace target directory 'config' with
82833         'build-aux'.
82834         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
82835         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
82836         ../build-aux/.
82837
82838 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
82839
82840         * modules/chdir-long (Depends-on): Add mempcpy.
82841
82842         * modules/acl, modules/backupfile, modules/c-strtod,
82843         modules/c-strtold, modules/canon-host, modules/canonicalize,
82844         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
82845         modules/exclude, modules/exitfail, modules/file-type,
82846         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
82847         modules/getdate, modules/getline, modules/getpagesize,
82848         modules/getpass, modules/getugroups, modules/group-member,
82849         modules/hard-locale, modules/hash, modules/human, modules/idcache,
82850         modules/inttostr, modules/long-options, modules/makepath,
82851         modules/md5, modules/memcasecmp, modules/memcoll,
82852         modules/modechange, modules/mountlist, modules/path-concat,
82853         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
82854         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
82855         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
82856         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
82857         modules/strftime, modules/strndup, modules/strverscmp,
82858         modules/timespec, modules/unlocked-io, modules/userspec,
82859         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
82860         modules/yesno:
82861         Remove lib_SOURCES line from Makefile.am section, as this is now
82862         done automatically by the corresponding Autoconf macro.
82863
82864 2005-03-21  Jim Meyering  <jim@meyering.net>
82865
82866         Changes imported from coreutils.
82867
82868         * lib/cycle-check.c: Don't include xalloc.h.
82869
82870         * lib/path-concat.c: Don't include assert.h.
82871         (path_concat): Remove assertion that would have triggered
82872         for ABASE starting with more than one slash.
82873         Reported by Andreas Schwab.
82874
82875         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
82876         properly when ABASE is an absolute file name.
82877         Correct the description of this function.
82878         Include <assert.h>.
82879         Add an assertion and a test driver.
82880         This fixes a bug introduced on 2004-07-02.
82881         Andreas Schwab reported the resulting failure of cp --parents:
82882         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
82883
82884 2005-03-21  Jim Meyering  <jim@meyering.net>
82885
82886         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
82887         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
82888
82889 2005-03-21  Jim Meyering  <jim@meyering.net>
82890         and  Paul Eggert  <eggert@cs.ucla.edu>
82891
82892         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
82893         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
82894         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
82895         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
82896         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
82897         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
82898         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
82899         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
82900         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
82901         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
82902         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
82903         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
82904         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
82905         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
82906         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
82907         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
82908         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
82909         for these modules.
82910
82911 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
82912
82913         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
82914         (which shouldn't happen), generate nothing instead of returning 0
82915         immediately, so that nstrftime (NULL, ...) doesn't return 0.
82916
82917 2005-03-16  Bruno Haible  <bruno@clisp.org>
82918
82919         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
82920         HAVE_LONGLONG_64BIT.
82921
82922 2005-03-16  Bruno Haible  <bruno@clisp.org>
82923
82924         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
82925         HAVE_LONGLONG_64BIT.
82926
82927 2005-03-16  Bruno Haible  <bruno@clisp.org>
82928
82929         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
82930         HAVE_LONGLONG_64BIT.
82931
82932 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82933
82934         * lib/strftime.c (my_strftime): Prepend space to format so that we can
82935         reliably distinguish strftime failure from empty output on POSIX
82936         hosts.
82937
82938 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82939
82940         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
82941         (iconv_string): Don't guess a size-zero buffer, as that might cause
82942         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
82943         result would be 'too large', where 'too large' is (heuristically)
82944         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
82945         overflow concerns.  This will prevent some unwanted malloc failures
82946         when the inputs are very large.
82947
82948 2005-03-15  Karl Berry  <karl@gnu.org>
82949
82950         * config/srclist.txt (config.rpath): from gettext.
82951         * config/config.rpath: update.
82952
82953 2005-03-15  Bruno Haible  <bruno@clisp.org>
82954
82955         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
82956         to 'negate'.
82957
82958         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
82959         variable.
82960
82961         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
82962         results.
82963
82964 2005-03-14  Simon Josefsson  <jas@extundo.com>
82965
82966         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
82967         <fx@gnu.org>.
82968
82969 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
82970
82971         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
82972         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
82973         intprops.h.
82974         * lib/strtol.c: Likewise.
82975
82976 2005-03-14  Jim Meyering  <jim@meyering.net>
82977
82978         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
82979         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
82980         to be nonzero so that we (and caller) can detect the difference
82981         between a valid zero-length expansion and an error return, even
82982         when the underlying strftime fails before writing anything into
82983         that location.
82984
82985 2005-03-14  Bruno Haible  <bruno@clisp.org>
82986
82987         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
82988         Update from GNU gettext 0.14.3.
82989
82990 2005-03-10  Jim Meyering  <jim@meyering.net>
82991
82992         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
82993
82994 2005-03-10  Jim Meyering  <jim@meyering.net>
82995
82996         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
82997         so that this module works on systems without fchdir.
82998
82999 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
83000
83001         Factor int-properties macros into a single file, except for
83002         glibc-related files.
83003         * lib/intprops.h: New file.
83004         * lib/getloadavg.c: Include it instead of limits.h.
83005         (INT_STRLEN_BOUND): Remove.
83006         * lib/human.c: Include intprops.h.
83007         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
83008         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
83009         302/1000.
83010         * lib/inttostr.h: Include intprops.h instead of limits.h.
83011         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
83012         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
83013         for consistency with intprops.h.
83014         (time_t_is_integer, twos_complement_arithmetic): Use them.
83015         * lib/sig2str.h: Include <signal.h>, intprops.h.
83016         (INT_STRLEN_BOUND): Remove.
83017         * lib/strftime.c (TYPE_SIGNED): Remove.
83018         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
83019         * lib/strtol.c: Adjust comments to match intprops.h.
83020         * lib/userspec.c: Include intprops.h.
83021         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
83022         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
83023         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
83024         instead of rolling our own expressions.
83025         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
83026
83027         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
83028         instead of int.
83029         (my_strftime): Do not mishandle years close to INT_MAX, by doing
83030         the right thing even if adding 1900 would overflow.  Similarly
83031         for tm_mon + 1 and tm_yday + 1.
83032         Make %Y always equivalent to %C%y, and similarly for %G and %g.
83033         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
83034         (DO_SIGNED_NUMBER): New macro.
83035         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
83036
83037 2005-03-07  Bruno Haible  <bruno@clisp.org>
83038
83039         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
83040
83041 2005-03-07  Bruno Haible  <bruno@clisp.org>
83042
83043         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
83044
83045 2005-03-04  Derek R. Price  <derek@ximbiot.com>
83046
83047         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
83048         (func_import): Only replace files via --import when they have actually
83049         changed.
83050
83051 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83052
83053         * m4/mmap-anon.m4: New file.
83054         * m4/pagealign_alloc.m4: New file.
83055
83056 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83057             Bruno Haible  <bruno@clisp.org>
83058
83059         * modules/pagealign_alloc: New file.
83060         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
83061
83062 2005-03-03  Derek R. Price  <derek@ximbiot.com>
83063             Bruno Haible  <bruno@clisp.org>
83064
83065         * lib/pagealign_alloc.h: New file.
83066         * lib/pagealign_alloc.c: New file.
83067
83068 2005-03-03  Bruno Haible  <bruno@clisp.org>
83069
83070         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
83071         Use an all-permissive copyright notice, recommended by RMS.
83072
83073 2005-03-02  Bruno Haible  <bruno@clisp.org>
83074
83075         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
83076         of AIX, the replacement has to be done only after <string.h> is
83077         included, therefore not in config.h. stpncpy.h does the replacement,
83078         and stpncpy.c uses it.
83079
83080 2005-03-02  Bruno Haible  <bruno@clisp.org>
83081
83082         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
83083         stpncpy.c uses it.
83084
83085 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83086
83087         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
83088         The workaround isn't strictly needed for POSIX conformance, and
83089         it's too much of a pain to configure and maintain.  We'll ask
83090         people to fix their kernels instead.
83091         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
83092         (NANOSLEEP_BUG_WORKAROUND): Remove.
83093         (xnanosleep): Remove the workaround.
83094
83095 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83096
83097         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
83098         Reported by Derek Price.
83099         (Include): Add "timespec.h".
83100
83101         * modules/xnanosleep (Depends-on): Remove gethrxtime.
83102
83103 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
83104
83105         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
83106         to detect nanosleep bug.
83107
83108 2005-03-01  Bruno Haible  <bruno@clisp.org>
83109
83110         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
83111
83112 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
83113
83114         * modules/gethrxtime: New file.
83115         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
83116         (Depends-on): Add gethrxtime.
83117         (configure.ac): Add gl_XNANOSLEEP.
83118         (Makefile.am): Remove lib_SOURCES line.
83119
83120 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83121
83122         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
83123         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
83124
83125 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
83126
83127         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
83128         * lib/timespec.h (gettime): Return void, since it always
83129         succeeds now.  All uses changed.
83130         * lib/gettime.c (gettime): Likewise.
83131         [HAVE_NANOTIME]: Prefer nanotime.
83132         Assume gettimeofday succeeds, as POSIX requires.
83133         Assime time () succeeds, since other code already does.
83134         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
83135         (timespec_subtract): Remove.
83136         (NANOSLEEP_BUG_WORKAROUND): New constant.
83137         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
83138         things considerably.  Use it only on GNU/Linux hosts, since the
83139         workaround shouldn't be needed elsewhere.
83140
83141 2005-02-24  Bruno Haible  <bruno@clisp.org>
83142
83143         * modules/gettext (Files): Add m4/glibc2.m4.
83144
83145 2005-02-24  Bruno Haible  <bruno@clisp.org>
83146
83147         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
83148         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
83149         * m4/progtest.m4:
83150         Update from GNU gettext 0.14.2.
83151         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
83152
83153 2005-02-24  Bruno Haible  <bruno@clisp.org>
83154
83155         * lib/localcharset.c: Update from GNU gettext 0.14.2.
83156         * lib/config.charset: Update from GNU gettext 0.14.2.
83157
83158 2005-02-24  Bruno Haible  <bruno@clisp.org>
83159
83160         * lib/gettext.h: Update from GNU gettext 0.14.2.
83161
83162 2005-02-23  Simon Josefsson  <jas@extundo.com>
83163
83164         * m4/iconvme.m4: New file.
83165
83166 2005-02-23  Jim Meyering  <jim@meyering.net>
83167
83168         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
83169         change.
83170         Thanks to Bruno Haible for catching it.
83171
83172 2005-02-22  Simon Josefsson  <jas@extundo.com>
83173
83174         * modules/iconvme: New file.
83175
83176         * MODULES.html.sh: Add iconvme.
83177
83178 2005-02-22  Simon Josefsson  <jas@extundo.com>
83179
83180         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
83181
83182 2005-02-22  Simon Josefsson  <jas@extundo.com>
83183
83184         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
83185
83186 2005-02-22  Jim Meyering  <jim@meyering.net>
83187
83188         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
83189         s/ifndef/ifdef/.
83190
83191 2005-02-20  Neil Conway  <neilc@samurai.com>
83192
83193         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
83194         returned by OSX/Darwin if the specified buffer is not large
83195         enough for the hostname.
83196
83197 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83198
83199         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
83200         pass it to _help, otherwise the latter coredumps trying to
83201         dereference state.root_argp.
83202
83203 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83204
83205         * modules/chdir-long (Depends-on): Add memrchr.
83206         * modules/memrchr (Files): Add lib/memrchr.h.
83207         (Include): "memrchr.h".
83208
83209 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83210
83211         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
83212
83213 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
83214
83215         * lib/memrchr.h: New file.
83216         * lib/chdir-long.c: Include it.
83217         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
83218         Don't bother including stddef.h.
83219
83220 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
83221
83222         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
83223         inclusion.
83224         Include <sys/types.h>, for dev_t.
83225         (ME_DUMMY, ME_REMOTE): Move from here....
83226         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
83227         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
83228         Dmitry V. Levin.
83229         Include mountlist.h first, to test the interface.
83230
83231 2005-01-29  Bruno Haible  <bruno@clisp.org>
83232
83233         * lib/progname.c (program_name): Initialize.
83234         Needed when linking statically on MacOS X.
83235
83236 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83237
83238         Sync from coreutils.
83239         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
83240         (Depends-on): Add c-strtod.
83241         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
83242
83243 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
83244
83245         Sync from coreutils.
83246         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
83247
83248         Remove files that are specific to coreutils.
83249         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
83250
83251 2005-01-28  Bruno Haible  <bruno@clisp.org>
83252
83253         * modules/javacomp: New file.
83254         * MODULES.html.sh (Java): Add javacomp.
83255
83256 2005-01-28  Bruno Haible  <bruno@clisp.org>
83257
83258         * m4/javacomp.m4: New file, from GNU gettext.
83259
83260 2005-01-28  Bruno Haible  <bruno@clisp.org>
83261
83262         * lib/javacomp.sh.in: New file, from GNU gettext.
83263         * lib/javacomp.h: New file, from GNU gettext.
83264         * lib/javacomp.c: New file, from GNU gettext.
83265
83266 2005-01-26  Simon Josefsson  <jas@extundo.com>
83267
83268         * lib/gai_strerror.c: Use GPL in header.
83269
83270 2005-01-26  Bruno Haible  <bruno@clisp.org>
83271
83272         * modules/javaexec: New file.
83273         * MODULES.html.sh (Java): Add javaexec.
83274
83275 2005-01-26  Bruno Haible  <bruno@clisp.org>
83276
83277         * m4/javaexec.m4: New file, from GNU gettext.
83278
83279 2005-01-26  Bruno Haible  <bruno@clisp.org>
83280
83281         * lib/javaexec.sh.in: New file, from GNU gettext.
83282         * lib/javaexec.h: New file, from GNU gettext.
83283         * lib/javaexec.c: New file, from GNU gettext.
83284
83285 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83286
83287         * modules/lchown (Depends-on): Remove lchown.h
83288
83289 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83290
83291         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
83292         must be defined if the header file was not found, in order
83293         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
83294
83295 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83296
83297         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
83298         initializers for struct pentry_state.
83299         (__argp_error): Check return value of __asprintf
83300         (__argp_failure): Translate error message
83301
83302         * lib/argp-parse.c: Removed braces around the expansion of N_()
83303
83304 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83305
83306         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
83307         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
83308         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
83309         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
83310         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
83311         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
83312         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
83313         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
83314         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
83315         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
83316         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
83317         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
83318         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
83319         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
83320         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
83321         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
83322         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
83323         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
83324         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
83325         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
83326         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
83327         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
83328         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
83329         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
83330         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
83331         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
83332         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
83333         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
83334         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
83335         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
83336         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
83337         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
83338         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
83339         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
83340         xstrtol.m4, xstrtoumax.m4, yesno.m4:
83341         Use an all-permissive copyright notice, recommended by RMS.
83342
83343 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
83344
83345         * modules/chdir-long (Depends-on): Remove mempcpy.
83346
83347 2005-01-21  Jim Meyering  <jim@meyering.net>
83348
83349         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
83350         same value as for Solaris 9.
83351
83352         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
83353         component length.  This included changing the parameter to be
83354         of type `char *' rather than `char const *'.
83355         * lib/chdir-long.h (chdir_long): Update prototype.
83356
83357         * lib/openat.c (fdopendir, fstatat): New functions.
83358         * lib/openat.h: Include headers required for use of DIR and struct
83359         stat.
83360         [AT_SYMLINK_NOFOLLOW]: Define.
83361         (fdopendir, fstatat): Add prototypes.
83362
83363 2005-01-21  Bruno Haible  <bruno@clisp.org>
83364
83365         * modules/classpath: New file.
83366         * MODULES.html.sh (Java): Add classpath.
83367
83368 2005-01-21  Bruno Haible  <bruno@clisp.org>
83369
83370         * lib/classpath.h: New file, from GNU gettext.
83371         * lib/classpath.c: New file, from GNU gettext.
83372
83373 2005-01-20  Simon Josefsson  <jas@extundo.com>
83374
83375         * modules/version-etc-fsf: New file.
83376
83377 2005-01-20  Simon Josefsson  <jas@extundo.com>
83378
83379         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
83380         * lib/version-etc.c: Remove version_etc_copyright.
83381         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
83382         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
83383
83384 2005-01-20  Simon Josefsson  <jas@extundo.com>
83385
83386         * lib/base64.h (isbase64): Add.
83387
83388         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
83389         using a unsigned prototype, don't inline.
83390         (base64_decode): Use it.
83391
83392 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83393
83394         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
83395         it.
83396
83397 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83398
83399         * lib/save-cwd.c (save_cwd): Remove code to support the case
83400         where fchdir is missing or flaky.
83401
83402 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83403
83404         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
83405
83406 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
83407
83408         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
83409         AC_LIBSOURCES now does this.
83410         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
83411         with new ullong_max module.
83412
83413 2005-01-19  Bruno Haible  <bruno@clisp.org>
83414
83415         * modules/sh-quote: New file.
83416         * MODULES.html.sh (Executing programs): Add sh-quote.
83417
83418 2005-01-19  Bruno Haible  <bruno@clisp.org>
83419
83420         * lib/sh-quote.h: New file, from GNU gettext.
83421         * lib/sh-quote.c: New file, from GNU gettext.
83422
83423 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83424
83425         Merge from coreutils.
83426         * m4/ullong_max.m4: New file.
83427         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
83428         (gl_MACROS): Assume localeconv exists.
83429
83430 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83431
83432         Merge changes from coreutils, as described below in several
83433         changelogs dated today.
83434
83435         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
83436         (O_DIRECTORY): Remove; not needed here, since "." must be
83437         a directory.  All uses removed.
83438         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
83439         universal on Suns, and we also need to test for IRIX.
83440         Revamp code to use 'if' rather than '#if'.
83441         Avoid unnecessary comparison of cwd->desc to 0.
83442
83443         * lib/utimens.c (futimens): Robustify the previous patch, by checking
83444         for known valid error numbers rather than observed invalid ones.
83445
83446 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83447
83448         * modules/ullong_max: New file.
83449
83450         * modules/chdir-long, modules/openat: New files.
83451         * modules/save-cwd (Depends-on): Depend on chdir-long.
83452         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
83453
83454 2005-01-18  Jim Meyering  <jim@meyering.net>
83455
83456         Merge from coreutils.
83457         * m4/chdir-long.m4, m4/openat.m4: New files.
83458         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
83459         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
83460         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
83461         is sane and DOES follow symlinks.  Besides, testing 20 different
83462         systems found no broken chown implementations.
83463         Prompted by a change in rsync's copy of this macro.
83464         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
83465
83466         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
83467
83468         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
83469         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
83470         NULL-means-set-to-current-time semantics.
83471         Remove temporary file immediately, rather than waiting
83472         for configure's at-exit trap code to do it.
83473
83474 2005-01-18  Jim Meyering  <jim@meyering.net>
83475
83476         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83477
83478         * lib/utimens.c (futimens): Account for the fact that futimes
83479         can also fail with errno == ENOSYS or errno == ENOENT.
83480         Patch from Dmitry V. Levin.
83481
83482         Change the name of the robust chdir function from chdir to chdir_long.
83483         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
83484         (restore_cwd): Use chdir_long, not chdir.
83485         * lib/chdir-long.c: Renamed from chdir.c.
83486         * lib/chdir-long.h: Renamed from chdir.h.
83487         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
83488         Hurd.
83489
83490 2005-01-18  Bruno Haible  <bruno@clisp.org>
83491
83492         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
83493         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
83494         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
83495         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
83496         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
83497         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
83498         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
83499         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
83500         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
83501         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
83502         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
83503         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
83504         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
83505         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
83506         Use an all-permissive copyright notice, recommended by RMS.
83507
83508 2005-01-18  Bob Proulx  <bob@proulx.com>
83509
83510         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
83511         simplify offsetof() macro construct to avoid compile failure with
83512         native HP-UX 11.0 ANSI C compiler.
83513
83514 2005-01-17  Bruno Haible  <bruno@clisp.org>
83515
83516         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
83517         redundant because stpncpy.m4 takes care of it.
83518
83519 2005-01-17  Bruno Haible  <bruno@clisp.org>
83520
83521         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
83522
83523 2005-01-17  Bruno Haible  <bruno@clisp.org>
83524
83525         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
83526         used.
83527
83528 2005-01-17  Bruno Haible  <bruno@clisp.org>
83529
83530         * lib/fwriteerror.h (fwriteerror): Change specification to include
83531         fclose.
83532         * lib/fwriteerror.c: Include <stdbool.h>.
83533         (fwriteerror): At the end, close the file stream. Record whether
83534         stdout was already closed.
83535
83536 2005-01-17  Bruno Haible  <bruno@clisp.org>
83537
83538         * lib/execute.c (environ): Declare if needed.
83539         * lib/pipe.c (environ): Likewise.
83540         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
83541
83542 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83543
83544         * modules/argp: Depend on vsnprintf
83545
83546 2005-01-10  Jim Meyering  <jim@meyering.net>
83547
83548         * modules/closeout (Depends-on): Add atexit.
83549
83550 2005-01-06  Bruno Haible  <bruno@clisp.org>
83551
83552         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
83553
83554 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83555
83556         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
83557         definitions to be after all include files, to avoid collisions.
83558         Problem reported by Bob Proulx.
83559
83560 2005-01-04  Jim Meyering  <jim@meyering.net>
83561
83562         Changes imported from coreutils.
83563         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
83564         as the mkstemp template, use a temporary directory and an
83565         8.3-friendly template to avoid trouble on systems like DJGPP.
83566         Reported by Juan M. Guerrero via Stepan Kasal.
83567         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
83568         close. Remove the temporary directory right away, rather than waiting
83569         for configure's at-exit trap code to do it.
83570         Suggestion from Stepan Kasal.
83571
83572 2005-01-01  Simon Josefsson  <jas@extundo.com>
83573
83574         * gnulib-tool: Print #include directives when --import'ing.
83575
83576 2004-12-28  Simon Josefsson  <jas@extundo.com>
83577
83578         * tests/test-base64.c: Include required header files.  Remove
83579         unused variables.
83580
83581 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83582
83583         * modules/error (Depends-on): Remove gettext.
83584
83585 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83586
83587         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
83588         not needed.  This removes a dependency on the gettext module.
83589         [defined _LIBC]: Do not include <libintl.h>; not needed.
83590
83591 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83592
83593         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
83594         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
83595
83596 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83597
83598         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
83599         HAVE_DECL_STRTOLD.
83600
83601 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83602
83603         * modules/getdate (Depends-on): Remove alloca-opt.
83604
83605 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83606
83607         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
83608
83609 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83610
83611         * lib/argp-parse.c: Include <stddef.h>.
83612         (alignof, alignto): New macros.
83613         (parser_init): Don't assume that void * is aligned sufficiently
83614         for struct option.
83615
83616         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
83617         need to extend the stack.
83618         (YYINITDEPTH): New macro, so that the initial stack isn't overly
83619         large.
83620
83621 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83622
83623         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
83624
83625 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83626
83627         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
83628         (2004-10-24) change.  Apparently this was a false alarm.
83629
83630         * modules/getdate: Depend on alloca-opt, not alloca.
83631
83632 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83633
83634         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
83635         Remove now-obsolete comment about AIX.
83636         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
83637         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
83638         (YYMAXDEPTH): New macro.
83639
83640 2004-12-18  Simon Josefsson  <jas@extundo.com>
83641
83642         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
83643
83644 2004-12-18  Bruno Haible  <bruno@clisp.org>
83645
83646         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
83647
83648 2004-12-18  Bruno Haible  <bruno@clisp.org>
83649
83650         * lib/fatal-signal.c (fatal_signals): Make non-const.
83651         (init_fatal_signals): New function.
83652         (uninstall_handlers, install_handlers): Ignore signals that were set to
83653         SIG_IGN.
83654         (at_fatal_signal): Call init_fatal_signals.
83655         (init_fatal_signal_set): Likewise. Ignore signals that were set to
83656         SIG_IGN.
83657         Reported by Paul Eggert.
83658
83659 2004-12-18  Bruno Haible  <bruno@clisp.org>
83660
83661         * doc/alloca.texi: New file.
83662         * doc/alloca-opt.texi: New file.
83663
83664 2004-12-17  Jim Meyering  <jim@meyering.net>
83665
83666         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
83667         Otherwise, install-sh could exit with improper exit status when
83668         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
83669
83670 2004-12-16  Simon Josefsson  <jas@extundo.com>
83671
83672         * tests/test-base64.c: Add license.
83673
83674 2004-12-15  Stepan Kasal  <address@hidden>
83675
83676         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
83677
83678 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
83679
83680         * modules/getcwd (Files): Add m4/d-ino.m4.
83681         Suggested by Mark D. Baushke.
83682
83683 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83684
83685         * lib/getdate.y (textint): New member "negative".
83686         (time_zone_hhmm): New function.
83687         Expect 14 shift-reduce conflicts, not 13.
83688         (o_colon_minutes): New rule.
83689         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
83690         (yylex): Set the "negative" member of signed numbers.
83691
83692 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83693
83694         * doc/getdate.texi (Time of day items, Time zone items):
83695         Describe new formats +00:00, UTC+00:00.
83696
83697 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83698
83699         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
83700         spurious "-l"s.  Problem reported by Stepan Kasal.
83701
83702 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
83703
83704         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
83705         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
83706
83707 2004-12-04  Simon Josefsson  <jas@extundo.com>
83708
83709         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
83710         Vandoorselaere <yoann@prelude-ids.org>.
83711
83712 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83713
83714         Changes imported from coreutils.
83715         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
83716         exist.
83717         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
83718
83719 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83720
83721         Changes imported from coreutils.
83722         * lib/hard-locale.c: Assume <locale.h> exists.
83723         Include "strdup.h".
83724         (GLIBC_VERSION): New macro.
83725         (hard_locale): Assume setlocale exists.
83726         Rewrite to avoid #ifdef.
83727         Use strdup rather than malloc + strcpy.
83728         * lib/human.c: Assume <locale.h> exists.
83729         (human_readable): Assume localeconv exists.
83730
83731 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83732
83733         * modules/hard-locale (Depends-on): Add strdup.
83734
83735 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
83736
83737         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
83738         convert T2, not T.  (Imported from libc.)
83739
83740 2004-11-30  Simon Josefsson  <jas@extundo.com>
83741
83742         * modules/restrict (License): Change to LGPL.
83743
83744 2004-11-30  Simon Josefsson  <jas@extundo.com>
83745
83746         * m4/restrict.m4: Add copyright and copying conditions.
83747
83748 2004-11-30  Simon Josefsson  <jas@extundo.com>
83749
83750         * m4/base64.m4: New file.
83751
83752 2004-11-30  Simon Josefsson  <jas@extundo.com>
83753
83754         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
83755         base64.
83756
83757         * tests/test-base64.c: New file.
83758
83759         * modules/base64: New file.
83760
83761 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83762
83763         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
83764         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
83765
83766         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
83767
83768 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83769
83770         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
83771         (__getcwd.c): Don't restore errno; glibc doesn't.
83772         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
83773         first, falling back to our code only if its results look suspicious.
83774         Ensure that the resulting buffer is only as large as necessary.
83775
83776         * lib/readutmp.c: Include readutmp.h first.
83777         Include <errno.h>, since readutmp.h no longer does that.
83778         * lib/readutmp.h: Don't include <errno.h>,
83779         <sys/param.h>, <time.h>; not needed to establish interface.
83780         (errno): Remove decl.
83781         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
83782         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
83783         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
83784
83785 2004-11-28  Simon Josefsson  <jas@extundo.com>
83786
83787         * lib/base64.h, base64.c: New file.
83788
83789 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
83790
83791         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
83792
83793 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
83794
83795         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
83796         (Depends-on): Remove pathmax, same.  Add mempcpy.
83797         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
83798         (Makefile.am): Append getcwd.h to lib_SOURCES.
83799         (Include): Add getcwd.h.
83800         (Maintainer): Change from Jim Meyering to "all, glibc",
83801         since getdate now uses intended-for-glibc code.
83802         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
83803         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
83804
83805 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83806
83807         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
83808         HP's ANSI C compiler.
83809         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
83810         Declaring int functions causes warnings on some modern systems and
83811         shouldn't be needed to compile on ancient ones.
83812         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
83813         defined.
83814
83815         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
83816         with the following changes.
83817         (__set_errno): Parenthesize properly.
83818         Include <stdbool.h>.
83819         (MIN, MAX, MATCHING_INO): New macros.
83820         (__getcwd): Define with prototype, not K&R form.
83821         Use heuristics to allocate default buffer on stack if possible.
83822         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
83823         behavior, and to avoid the PATH_MAX limit when computing
83824         ../../../../...
83825         Use MATCHING_INO to compare inode number to file.
83826         Check for arithmetic overflow in size calculations.
83827         Fix bug in reallocation of dot array that caused getcwd to fail
83828         on directories nested deeper than 75.
83829         Be more careful about saving errno on error.
83830         Do not use realloc; use only free+malloc, as this is a bit
83831         more flexible and avoids a needless copy operation.
83832         Do not inspect st_dev and st_ino for symbolic links; POSIX
83833         doesn't specify the latter.
83834         Check for closedir errors.
83835         Avoid needless casts.
83836         Use "#ifdef weak_alias" around weak_alias, to be like other
83837         glibc code.
83838         The following changes to getcwd.c have effect only when used in
83839         gnulib; they have no effect inside glibc proper.
83840         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
83841         as alloca isn't used.
83842         (alloca, __alloca): Likewise.
83843         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
83844         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83845         unconditionally, as gnulib assumes C89 or better.
83846         Do not include <sys/param.h>.
83847         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
83848         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
83849         better.
83850         (NULL) [!defined NULL]: Remove; we assume C89 or better.
83851         Include <dirent.h> in a way that is compatible with modern Autoconf.
83852         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
83853         New macros, if not already defined.
83854         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
83855         Use "_LIBC", not "defined _LIBC", for consistency.
83856         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
83857         a mempcpy module.
83858         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
83859         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
83860         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
83861         credit only to Jim Meyering and adjust the copyright dates.
83862         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
83863         <stdlib.h>, <unistd.h>, "pathmax.h".
83864         Instead, include "xgetcwd.h" (first) and "getcwd.h".
83865         (INITIAL_BUFFER_SIZE): Remove.
83866         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
83867
83868 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83869
83870         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
83871         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
83872         Use the _ONCE methods, for efficiency.
83873         Check for fcntl.h.  In test program, include <errno.h>
83874         and <fcntl.h> if available.  Remove old K&R cruft from
83875         test program.  Check for common errors in GNU/Linux,
83876         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
83877         don't do AC_LIBOBJ, as that's getcwd.m4's job.
83878         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
83879         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
83880         name accordingly.
83881         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
83882         accommodate new getcwd.c.
83883         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
83884         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
83885         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
83886         that's all we need now.
83887
83888 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83889
83890         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
83891         argp-parse.c depends on getopt internals, that means we should
83892         always use our getopt, to be on the safe side.
83893         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
83894         order not to spoil the result of an eventual previous invocation
83895         of gl_GETOPT_SUBSTITUTE.
83896
83897 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83898
83899         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
83900         redefinition warnings. To avoid them, include the defines
83901         in `#if !defined __need_getopt ... #endif'. The only place
83902         where __getopt_argv_const is used is in definitions
83903         of getopt_long and getopt_long_only below, which are as well
83904         protected by `#ifndef __need_getopt'.
83905         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
83906         __need_getopt after including <stdio.h> and <unistd.h> These
83907         headers might have defined it.
83908
83909 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83910
83911         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
83912
83913 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83914
83915         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
83916         (futimens): New function, which uses futimes if available.
83917         (futimens, utimens): Support timespec==NULL, with same semantics
83918         as utime and utimens.
83919         * lib/utimens.h (futimens): New decl.
83920
83921 2004-11-23  Jim Meyering  <jim@meyering.net>
83922
83923         * lib/getopt_.h: Remove trailing blanks.
83924
83925 2004-11-23  Jim Meyering  <jim@meyering.net>
83926
83927         * lib/__fpending.c: Add comment.
83928
83929 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
83930
83931         * modules/canonicalize (Depends-on): Add xreadlink.
83932         Problem reported by James Youngman.
83933
83934 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
83935
83936         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
83937         New macros.
83938         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
83939         optopt): Use them instead of invoking ## directly; otherwise, the
83940         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
83941
83942 2004-11-19  Bruno Haible  <bruno@clisp.org>
83943
83944         * lib/strtok_r.c: Move comments from here...
83945         * lib/strtok_r.h: ... to here.
83946
83947 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83948
83949         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
83950         implementations that mishandle size_t overflow.
83951
83952 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83953
83954         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
83955         might fail.  Problem reported by Yoann Vandoorselaere.
83956         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
83957         implementations that mishandle size_t overflow.
83958
83959 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83960
83961         * modules/canon-host (Depends-on): Add strdup.
83962
83963 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83964
83965         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
83966
83967 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83968
83969         * lib/canon-host.c: Include "strdup.h".
83970         (canon_host): Use getaddrinfo if available, so that IPv6 works.
83971         Use strdup instead of malloc/strcpy to duplicate strings.
83972
83973         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
83974         (human_space_before_unit): New constant.
83975         * lib/human.c (human_readable): Support it.
83976
83977         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
83978         (xgetcwd): Set errno correctly when failing.
83979         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
83980         the failure is actually due to a PATH_MAX problem.
83981
83982         Further getopt changes to make it more likely that glibc will
83983         buy the changes back.
83984         * lib/getopt.c (POSIXLY_CORRECT): New constant.
83985         (getopt): Use it, so to preserve glibc semantic
83986         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
83987         when compiling for libc.
83988         * lib/getopt_.h (__getopt_argv_const): Bring it back.
83989         (getopt_long, getopt_long_only): Use it.
83990
83991         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
83992         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
83993         (getopt): Argv is now char * const *, as per standard.
83994         (_getopt_internal_r, _getopt_internal): Argv is now char **,
83995         not char *__getopt_argv_const *.
83996         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
83997         _getopt_long_only_r): Likewise.
83998         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
83999         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84000         _getopt_long_r, _getopt_long_only_r): Likewise.
84001         * lib/getopt_.h (__getopt_argv_const): Remove.
84002         (getopt): Argv is now char * const *, as per standard.
84003
84004         * lib/getdate.y (tORDINAL): New token.
84005         (day, relunit): Allow it for relative times.
84006         (relative_time_table): Use tORDINAL for ordinals.
84007
84008 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
84009
84010         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
84011         Document that "second" isn't allowed as an ordinal number.
84012
84013 2004-11-16  Jim Meyering  <jim@meyering.net>
84014
84015         * modules/closeout (Depends-on): Add fpending.
84016
84017 2004-11-15  Jim Meyering  <jim@meyering.net>
84018
84019         * lib/closeout.c: Include "__fpending.h" once again.
84020         Include <stdbool.h>.
84021         (close_stdout): Don't fail just because stdout was closed initially,
84022         since some programs don't write to stdout in the normal course of
84023         operation (other than --version and --help), and we don't want this
84024         function to make e.g. `touch file >&-' fail.
84025         But do fail if it was closed and someone has tried to write to it.
84026         E.g., `printf foo >&-' must fail.
84027
84028 2004-11-13  Jim Meyering  <jim@meyering.net>
84029
84030         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
84031
84032 2004-11-12  Simon Josefsson  <jas@extundo.com>
84033
84034         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
84035         small doc fix is still pending.
84036
84037 2004-11-11  Simon Josefsson  <jas@extundo.com>
84038
84039         * modules/strtok_r: New file.
84040
84041         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84042         strtok_r.
84043
84044 2004-11-11  Simon Josefsson  <jas@extundo.com>
84045
84046         * m4/strtok_r.m4: New file.
84047
84048         * m4/getopt.m4: Replace opterr.
84049
84050 2004-11-11  Simon Josefsson  <jas@extundo.com>
84051
84052         * lib/strtok_r.h, strtok_r.c: New file.
84053
84054 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84055
84056         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
84057         of replacing opterr, getopt, etc.  This should handle the
84058         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
84059
84060 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
84061
84062         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
84063         we can stop lying to compilers about the constness of argv when we
84064         are compiled outside glibc.
84065         (getopt, getopt_long, getopt_long_only): Use it.
84066         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
84067         _getopt_internal, getopt): Likewise.
84068         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
84069         _getopt_long_only_r): Likewise.
84070         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
84071         _getopt_long_r, _getopt_long_only_r): Likewise.
84072
84073         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
84074         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
84075         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
84076         the other external symbols.
84077         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
84078         declaration, since the above renaming now works around collisions.
84079
84080 2004-11-11  Jim Meyering  <jim@meyering.net>
84081
84082         * lib/linebreak.c: Remove trailing blanks.
84083         * lib/alloca_.h: Likewise.
84084         * lib/acosl.c: Likewise.
84085         * lib/euidaccess.c: Likewise.
84086         * lib/allocsa.h: Likewise.
84087
84088 2004-11-10  Simon Josefsson  <jas@extundo.com>
84089
84090         * m4/getaddrinfo.m4: New file.
84091
84092 2004-11-10  Simon Josefsson  <jas@extundo.com>
84093
84094         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
84095
84096 2004-11-10  Simon Josefsson  <jas@extundo.com>
84097
84098         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84099         getaddrinfo.
84100
84101         * modules/getaddrinfo: New file.
84102
84103 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84104
84105         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
84106
84107 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
84108
84109         * lib/mktime.c (SHR): New macro, which is a portable
84110         substitute for >> that should work even on Crays.
84111         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
84112         Problem reported by Mark D. Baushke in
84113         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
84114         * lib/getdate.y (SHR): Likewise.
84115         (tm_diff): Use it.
84116         * lib/strftime.c (SHR): Likewise.
84117         (tm_diff): Use it.
84118         * lib/quotearg.c (struct quoting_options): Use unsigned int for
84119         quote_these_too, so that right shifts are well defined.  All uses
84120         changed.
84121
84122 2004-11-10  Jim Meyering  <jim@meyering.net>
84123
84124         Ensure that no close failure goes unreported.
84125         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
84126         return early when it seems there's nothing to flush.
84127         Don't include __fpending.h.
84128
84129 2004-11-10  Jim Meyering  <jim@meyering.net>
84130
84131         * modules/closeout (Depends-on): Remove fpending.
84132
84133 2004-11-10  Jim Meyering  <jim@meyering.net>
84134
84135         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
84136
84137 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84138
84139         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
84140         gl_FUNC_STRFTIME.
84141         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
84142         and AC_REQUIRE when possible, to avoid duplicate checks.
84143         Check for <wchar.h>.
84144
84145 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
84146
84147         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
84148
84149 2004-11-09  Bruno Haible  <bruno@clisp.org>
84150
84151         * m4/sockpfaf.m4: New file.
84152
84153 2004-11-05  Bruno Haible  <bruno@clisp.org>
84154
84155         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
84156         Reported by Mark D. Baushke <mdb@cvshome.org>.
84157
84158 2004-11-04  Bruno Haible  <bruno@clisp.org>
84159
84160         2004-09-11  Bruno Haible  <bruno@clisp.org>
84161                 * allocsa.valgrind: New file.
84162         2004-02-06  Bruno Haible  <bruno@clisp.org>
84163                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
84164                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
84165                 Reported by Christopher Seip <chris.seip@hp.com>.
84166
84167 2004-11-04  Bruno Haible  <bruno@clisp.org>
84168
84169         * modules/allocsa (Files): Add lib/allocsa.valgrind.
84170         (Makefile.am): Distribute it.
84171
84172 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
84173
84174         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
84175         with errno == ERANGE if the buffer is too small.
84176         Problem reported by Mark D. Baushke.
84177
84178 2004-11-03  Albert Chin  <china@thewrittenword.com>
84179             Paul Eggert  <eggert@cs.ucla.edu>
84180
84181         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
84182         equivalent, substitute $ac_type for equivalent type rather than
84183         blindly using uint32_t *always* which won't work if uint32_t is not
84184         available.  Define _UINT32_T to work around typedef of uint32_t if
84185         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
84186         2.5.1.
84187
84188 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84189
84190         * m4/jm-macros.m4: Sync from coreutils.
84191         (gl_MACROS): Check for mbrlen, for pathchk.
84192         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
84193
84194 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84195
84196         * lib/xreadlink.c (MAXSIZE): New macro.
84197         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
84198         size does not exceed MAXSIZE.  Avoid cast.
84199         As suggested by Mark D. Baushke in
84200         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
84201         if readlink fails with buffer size just under MAXSIZE, try again
84202         with MAXSIZE.
84203
84204 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
84205
84206         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
84207
84208 2004-11-02  Derek R. Price  <derek@ximbiot.com>
84209         and  Paul Eggert  <eggert@cs.ucla.edu>
84210
84211         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
84212         (get_date): Overparenthesize to avoid GCC warning.
84213
84214 2004-11-02  Bruno Haible  <bruno@clisp.org>
84215
84216         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
84217         returns void.
84218
84219 2004-11-02  Bruno Haible  <bruno@clisp.org>
84220
84221         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
84222         function returns void.
84223
84224 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84225
84226         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
84227         fflush_unlocked, flockfile, funlockfile, funlockfile,
84228         fputs_unlocked, putc_unlocked.
84229
84230 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
84231
84232         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84233         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
84234         already declared.
84235
84236 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84237
84238         * modules/getdate (Files): Add doc/getdate.texi.
84239         (Depends-on): Add setenv, xalloc.
84240
84241 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84242
84243         * lib/getdate.y: Add support for TZ="foo" within a date string.
84244         Fix some bugs near time_t boundaries.  Reject dates with
84245         out-of-range components, e.g., "Sept 31".
84246         Include <stdlib.h>, "setenv.h", "xalloc.h".
84247         (ISDIGIT_LOCALE): Remove; unused.
84248         Note that the TZ and time functions used here are not reentrant.
84249         (mktime_ok, get_tz): New functions.
84250         (TZBUFSIZE): New constant.
84251         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
84252         This requires that we sometimes generate our own TZ="XXX..." setting.
84253
84254 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
84255
84256         * doc/getdate.texi: New file, from coreutils with modifications for
84257         the new TZ parsing.
84258
84259 2004-10-27  Derek R. Price  <derek@ximbiot.com>
84260
84261         * lib/mktime.c (not_equal_tm): Remove redundant check.
84262
84263 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84264
84265         * modules/regex (lib_SOURCES): Add regex.c.
84266         Reported by James Youngman in
84267         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84268
84269 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84270
84271         * lib/getdate.y: Use Bison 1.875 features, and some minor
84272         code cleanups.  This change does not affect semantics.
84273         Don't include <stdlib.h>; no longer needed.
84274         Don't include unlocked-io.h; only the "#if TEST" code uses
84275         stdio, and performance isn't crucial there.
84276         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84277         Bison 1.875 features as described below.
84278         All uses of "PC." replaced by "pc->".
84279         (YYSTYPE): Add a forward declaration.
84280         (yylex, yyerror): Use full prototypes in forward decls.
84281         Use "%pure-parser" rather than obsolescent "%pure_parser".
84282         Use %parse-param and %lex-param instead of obsolescent
84283         YYPARSE_PARAM and YYLEX_PARAM.
84284         (meridian_table, month_and_day_table, time_units_table,
84285         relative_time_table, time_zone_table, military_table,
84286         lookup_zone, lookup_word, get_date):
84287         Use NULL instead of 0 where appropriate.
84288         (to_hour): Avoid abort (), to avoid a dependency on
84289         stdlib.h.
84290         (yyerror, yylex): Now accepts parser_control * arg.
84291         (main) [TEST]: Use '\0' rather than 0 for char.
84292
84293 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84294
84295         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
84296
84297 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84298
84299         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
84300         It's now the caller's responsibility to handle the case where
84301         !HAVE_GETPAGESIZE && !defined getpagesize.
84302
84303         * lib/mktime.c (leapyear): Arg is long int, not int.
84304
84305 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
84306
84307         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
84308
84309 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84310
84311         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
84312         missing.  Problem reported by James Youngman.
84313
84314 2004-10-16  Simon Josefsson  <jas@extundo.com>
84315
84316         * gnulib-tool: Fix comments.  Fix parse problem.
84317         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
84318
84319 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
84320
84321         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
84322         implementation of getopt_long.  Problem reported by Alexander Taler in:
84323         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
84324
84325 2004-10-15  Bruno Haible  <bruno@clisp.org>
84326
84327         * gnulib-tool: Untabify. Initialize supplied_libname.
84328         (func_usage): More homogenous output.
84329         (func_modules_transitive_closure, func_modules_to_filelist,
84330         func_emit_lib_Makefile_am): New functions.
84331         (func_import): New function, extracted from big case statement. Use
84332         func_get_license, func_modules_transitive_closure,
84333         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
84334         opt_lgpl. Don't use test -a, as it's not portable.
84335         (func_create_testdir): Use func_modules_transitive_closure,
84336         func_modules_to_filelist, func_emit_lib_Makefile_am.
84337
84338 2004-10-15  Bruno Haible  <bruno@clisp.org>
84339
84340         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
84341
84342 2004-10-15  Bruno Haible  <bruno@clisp.org>
84343
84344         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
84345         the portions belonging to each module.
84346         Suggested by Derek Robert Price <derek@ximbiot.com>.
84347
84348 2004-10-12  Simon Josefsson  <jas@extundo.com>
84349
84350         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84351         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
84352         to real functions.
84353
84354 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84355
84356         * modules/vsnprintf: New file.
84357
84358 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84359
84360         * m4/vsnprintf.m4: New file.
84361
84362 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84363
84364         * lib/vsnprintf.h: New file.
84365         * lib/vsnprintf.c: New file.
84366
84367 2004-10-11  Bruno Haible  <bruno@clisp.org>
84368
84369         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
84370         vsnprintf.
84371
84372 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84373
84374         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
84375
84376 2004-10-07  Bruno Haible  <bruno@clisp.org>
84377
84378         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
84379         fits into the provided buffer.
84380
84381 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84382
84383         * lib/diacrit.c, diacrit.h: Add GPL notice.
84384
84385         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
84386         notice.
84387         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
84388         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
84389         This avoids a potential constant-folding bug.
84390
84391 2004-10-05  Bruno Haible  <bruno@clisp.org>
84392
84393         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
84394         for the declaration of strsep.
84395
84396 2004-10-05  Bruno Haible  <bruno@clisp.org>
84397
84398         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
84399
84400 2004-10-04  Simon Josefsson  <jas@extundo.com>
84401
84402         * modules/memmem: New file.
84403         * tests/test-memmem.c: New file.
84404         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
84405
84406 2004-10-04  Simon Josefsson  <jas@extundo.com>
84407
84408         * m4/memmem.m4: New file.
84409
84410 2004-10-04  Simon Josefsson  <jas@extundo.com>
84411
84412         * lib/memmem.h: New file.
84413         * lib/memmem.c: New file, taken from glibc.
84414
84415 2004-10-04  Simon Josefsson  <jas@extundo.com>
84416
84417         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
84418         '#ifdef USE_UNLOCKED_IO'.
84419
84420 2004-10-04  Simon Josefsson  <jas@extundo.com>
84421
84422         * config/srclist.txt: Add memmem from glibc.
84423
84424 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84425
84426         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
84427
84428         * modules/argmatch, modules/argp, modules/closeout, modules/error,
84429         modules/exclude, modules/getdate, modules/getline,
84430         modules/getndelim2, modules/getpass, modules/getpass-gnu,
84431         modules/getusershell, modules/linebuffer, modules/md5,
84432         modules/mountlist, modules/posixtm, modules/readtokens,
84433         modules/readutmp, modules/regex, modules/sha1,
84434         modules/version-etc, modules/yesno:
84435         Remove dependency on unlocked-io.
84436
84437 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84438
84439         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
84440
84441         * m4/unlocked-io.m4: Add copyright notice.
84442         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
84443
84444 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84445
84446         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
84447         * lib/xmalloc.c (xmemdup): Likewise.
84448         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
84449         XFREE): Remove these long-obsolescent macros.
84450         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
84451         * lib/xstrdup.c: Remove.
84452
84453         * lib/regex.c (re_comp): Cast gettext return value to char *,
84454         Problem reported by Martin Neitzel via Mark D. Baushke.
84455
84456 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84457
84458         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
84459         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
84460         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
84461         regex.c, sha1.c, version-etc.c, yesno.c:
84462         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
84463         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
84464         the includer's responsibility.
84465
84466         Sync from coreutils.
84467
84468         * lib/modechange.c (mode_compile): Don't decrement a pointer that
84469         points to the start of a string, as the C Standard says the
84470         resulting behavior is undefined.
84471
84472         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
84473         simple -> simple_backups, numbered_existing ->
84474         numbered_existing_backups, numbered -> numbered_backups
84475         to avoid shadowing problems.  All uses changed.
84476         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
84477         * lib/backupfile.c (check_extension, numbered_backup):
84478         Rename locals to avoid shadowing 'basename'.
84479         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
84480         once.
84481
84482         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
84483         * lib/.cvsignore: Add getopt.h.
84484
84485 2004-10-04  Bruno Haible  <bruno@clisp.org>
84486
84487         * modules/README: New file.
84488         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
84489         not a module.
84490
84491 2004-10-02  Jim Meyering  <jim@meyering.net>
84492
84493         * lib/dirfd.h, getpagesize.h: Add copyright notice.
84494
84495 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84496
84497         * modules/strsep: New file.
84498
84499 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84500
84501         * m4/strsep.m4: New file.
84502
84503 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84504
84505         * lib/strsep.h: New file.
84506         * lib/strsep.c: New file.
84507
84508 2004-10-01  Simon Josefsson  <jas@extundo.com>
84509
84510         * lib/snprintf.c (snprintf): Handle size==0.
84511
84512 2004-10-01  Simon Josefsson  <jas@extundo.com>
84513             Bruno Haible  <bruno@clisp.org>
84514
84515         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
84516         (snprintf): Declare 'args'.
84517
84518 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
84519
84520         * lib/snprintf.c: Remove comments as to why each header is needed.
84521
84522 2004-10-01  Bruno Haible  <bruno@clisp.org>
84523
84524         * MODULES.html.sh: Add strsep.
84525
84526 2004-09-30  Simon Josefsson  <jas@extundo.com>
84527
84528         * modules/snprintf: New file.
84529
84530 2004-09-30  Simon Josefsson  <jas@extundo.com>
84531
84532         * m4/snprintf.m4: New file.
84533
84534 2004-09-30  Simon Josefsson  <jas@extundo.com>
84535
84536         * lib/snprintf.h, lib/snprintf.c: New files.
84537
84538 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84539
84540         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
84541         (hol_entry_help): Never translate an empty string.
84542         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
84543         * lib/argp.h (OPTION_NO_TRANS): New option.
84544
84545 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84546
84547         * modules/argp (Maintainer): Replace Simon Josefsson
84548         by Sergey Poznyakoff.
84549
84550 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84551
84552         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
84553         changes merged back into glibc.
84554
84555 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84556
84557         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
84558
84559 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84560
84561         * lib/xvasprintf.c: Include xalloc.h.
84562         (xvasprintf): Use xalloc_die, not xmalloc_die.
84563
84564 2004-09-29  Bruno Haible  <bruno@clisp.org>
84565
84566         * modules/alloca-opt: New file, derived from modules/alloca.
84567         * modules/allocsa: Depend on alloca-opt instead of alloca.
84568         * modules/setenv: Likewise.
84569         * modules/vasnprintf: Likewise.
84570         * MODULES.html.sh: Add alloca-opt.
84571
84572 2004-09-28  Simon Josefsson  <jas@extundo.com>
84573
84574         * gnulib-tool: New parameter --lgpl, to asseert that modules are
84575         LGPL, and to replace license template from GPL to LGPL.
84576
84577 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84578
84579         * modules/dummy: Change license to LGPL.
84580
84581 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84582
84583         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
84584
84585 2004-09-24  Simon Josefsson  <jas@extundo.com>
84586
84587         * modules/minmax (License): Change from GPL to LGPL.
84588
84589 2004-09-23  Simon Josefsson  <jas@extundo.com>
84590
84591         * gnulib-tool (--import): Typo.
84592
84593 2004-09-23  Simon Josefsson  <jas@extundo.com>
84594
84595         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
84596
84597 2004-09-22  Bruno Haible  <bruno@clisp.org>
84598
84599         * modules/*: Add 'License' field.
84600         * gnulib-tool: Accept --extract-license option.
84601         (func_get_license): New function.
84602
84603 2004-09-21  Bruno Haible  <bruno@clisp.org>
84604
84605         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
84606         Reported by Simon Josefsson.
84607
84608 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84609
84610         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
84611         gl_AC_TYPE_LONG_LONG.
84612
84613 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84614
84615         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
84616
84617 2004-09-18  Simon Josefsson  <jas@extundo.com>
84618         and  Paul Eggert  <eggert@cs.ucla.edu>
84619
84620         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
84621         calls with autoreconf.  Define GL_LIB.
84622
84623 2004-09-14  Karl Berry  <karl@gnu.org>
84624
84625         * config/srclist.txt: unsync setenv.c, sigh.
84626
84627 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84628
84629         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
84630         Problem reported by Bruno Haible in:
84631         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
84632
84633 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84634
84635         * config/srclist.txt: Comment out argp-pvh.c.
84636
84637 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
84638
84639         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
84640         in case some system header has #define'd it.  Problem reported by
84641         Soeren D. Schulze in
84642         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
84643
84644 2004-09-09  Karl Berry  <karl@gnu.org>
84645
84646         * regex.[ch]: delete from the root.  These were supposed to be
84647                 synced with emacs cvs, but this has not happened for about
84648                 a year, and anyway nothing else uses emacs regex.[ch].
84649                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
84650                 lib/regex[.ch] is untouched.
84651
84652 2004-09-09  Bruno Haible  <bruno@clisp.org>
84653
84654         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
84655
84656 2004-09-09  Bruno Haible  <bruno@clisp.org>
84657
84658         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
84659         modifications.
84660         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
84661
84662 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84663
84664         * modules/xvasprintf: New file.
84665         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
84666
84667 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84668
84669         * lib/xvasprintf.h: New file.
84670         * lib/xvasprintf.c: New file.
84671         * lib/xasprintf.c: New file.
84672
84673 2004-09-08  Bruno Haible  <bruno@clisp.org>
84674
84675         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
84676
84677 2004-09-08  Bruno Haible  <bruno@clisp.org>
84678
84679         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
84680         length is > INT_MAX.
84681         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
84682         more.
84683
84684 2004-09-08  Bruno Haible  <bruno@clisp.org>
84685
84686         * lib/stdint_.h: New file, taken from GNU clisp.
84687
84688 2004-09-08  Bruno Haible  <bruno@clisp.org>
84689             Oskar Liljeblad  <oskar@osk.mine.nu>
84690
84691         * modules/stdint: New file.
84692         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
84693
84694 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84695
84696         Import from coreutils.
84697         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
84698         strings on unbounded length.  alloca's performance benefits aren't
84699         that important here.
84700         (V_STRDUP): Remove.
84701         (parse_with_separator): New function, with most of the internals
84702         of the old parse_user_spec.  Allow user to omit both user and group,
84703         for compatibility with FreeBSD.
84704         Clone only the user name, not the entire spec.
84705         Do not set *uid, *gid unless entirely successful.
84706         Avoid memory leak in some failing cases.
84707         Fix regression for USER.GROUP reported by Dmitry V. Levin in
84708         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
84709         (parse_user_spec): Rewrite to use parse_with_separator.
84710
84711 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84712
84713         * modules/userspec: Don't depend on alloca.
84714
84715 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84716
84717         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
84718
84719 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84720
84721         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
84722         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
84723         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
84724
84725 2004-08-16  Simon Josefsson  <jas@extundo.com>
84726
84727         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
84728         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
84729         Add --dry-run for --import.
84730         Let user provided command line parameters override configure.ac
84731         settings.
84732
84733 2004-08-12  Simon Josefsson  <jas@extundo.com>
84734
84735         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
84736         as discussed with Paul Eggert in threads rooted at
84737         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
84738         and
84739         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
84740         Before, the test was empty, and relied on ELIDE_CODE in source
84741         code.)
84742         (gl_PREREQ_GETOPT): New macro.
84743         (gl_GETOPT): Use them.
84744
84745 2004-08-12  Simon Josefsson  <jas@extundo.com>
84746
84747         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
84748         * lib/getopt_.h: Renamed from getopt.h.
84749
84750 2004-08-12  Simon Josefsson  <jas@extundo.com>
84751
84752         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
84753         Change default library name from libfoo to libgnu.
84754         Now, if you have a configure.ac that says:
84755                 gl_SOURCE_BASE(gl)
84756                 gl_M4_BASE(gl/m4)
84757                 gl_MODULES(error getopt etcetera)
84758                 gl_INIT
84759         you can import all you need by running:
84760                 ../gnulib/gnulib-tool --import
84761
84762         * modules/getopt (Files): Rename getopt.h to getopt_.h.
84763         (Makefile.am): Rewrite, use logic from argz.
84764         (Include): Use <getopt.h> instead of "getopt.h".
84765
84766 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84767
84768         * modules/argp (Files): Add m4/unlocked-io.m4.
84769         (Depends-on): Add extensions.
84770
84771 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84772
84773         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
84774         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
84775         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
84776         Check for program_invocation_name, program_invocation_short_name,
84777         flockfile, funlockfile, features.h, _getopt_long_only_r.
84778
84779 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84780
84781         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
84782         its complicated substitute.
84783         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
84784         and program_invocation_name.
84785         (__argp_basename) [!_LIBC]: Remove; the only use was
84786         replaced by its body.
84787         (__argp_short_program_name): Change condition from
84788         !defined __argp_short_program_name to
84789         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
84790         to match argp-namefrob.h.
84791         (__argp_failure): Don't assume strerror_r returns char *.
84792         * lib/argp-parse.c (N_): Define unconditionally.
84793         (argp_default_options): Fill out initializers with 0 to avoid
84794         gcc warnings.
84795
84796 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84797
84798         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
84799         getopt1.c.
84800
84801 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84802
84803         Merge from coreutils.
84804
84805         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
84806
84807         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
84808         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
84809
84810 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84811
84812         Merge from coreutils.
84813
84814         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
84815         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
84816         for Reliant Unix 5.43.
84817
84818         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
84819         (union fooround): Use uintmax_t, not long int.
84820         The rest is a merge from libc:
84821         [defined _LIBC]: Include <shlib-compat.h>.
84822         (_obstack) [defined _LIBC]: Remove after 2.3.4.
84823
84824         * lib/settime.c (settime): Recode to avoid warning with
84825         Sun Forte C 6U2.
84826
84827         * lib/strverscmp.c: Convert to UTF-8.
84828
84829 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84830
84831         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84832         m4/uintmax_t.m4.
84833
84834 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84835
84836         * modules/xalloc-die: New file.
84837         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
84838
84839         * modules/md5 (Files): Add m4/uint32_t.m4.
84840         * modules/sha1: Renamed from modules/sha.
84841         (Files):
84842         Rename lib/sha.h to lib/sha1.h.
84843         Rename lib/sha.c to lib/sha1.c.
84844         Rename m4/sha.m4 to m4/sha1.m4.
84845         (lib_SOURCES): Likewise.
84846         (configure.ac): Rename gl_SHA to gl_SHA1.
84847         (Include): sha.h -> sha1.h.
84848
84849 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84850
84851         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
84852         * m4/sha1.m4: Renamed from sha.m4.
84853         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
84854
84855 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84856
84857         * lib/obstack.h (obstack_empty_p):
84858         Don't assume that chunk->contents is suitably aligned.
84859         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
84860         Likewise. Problem reported by Benno in
84861         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
84862
84863         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
84864         readable.  This could be improved further but it'd take some work.
84865
84866 2004-08-08  Simon Josefsson  <jas@extundo.com>
84867
84868         * modules/xgethostname (Depends-on): Remove exit and error (not
84869         used).
84870
84871         * modules/getpass-gnu: Add getpass.h.
84872         (Depends-on): Add stdbool.
84873         * modules/getpass: Add getpass.h.
84874
84875 2004-08-08  Simon Josefsson  <jas@extundo.com>
84876
84877         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
84878         Check getpass declaration.
84879
84880 2004-08-08  Simon Josefsson  <jas@extundo.com>
84881
84882         * lib/xgethostname.c: Don't include error.h (not used).
84883
84884         * lib/getpass.h: Add.
84885         * lib/getpass.c: Include getpass.h first.
84886
84887 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
84888
84889         * lib/xalloc-die.c: New file.
84890         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
84891         All uses removed.
84892         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
84893         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
84894         xalloc-die.c.
84895         (_, N_, xalloc_die): Move to xalloc-die.c.
84896         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
84897         so that we needn't mess with xalloc_msg_memory_exhausted.
84898
84899         * lib/sha1.h: Renamed from sha.h.
84900         (SHA1_H): Renamed from _SHA_H.
84901         (sha1_ctx): Renamed from sha_ctx.
84902         (sha1_init_ctx): Renamed from sha_init_ctx.
84903         (sha1_process_block): Renamed from sha_process_block.
84904         (sha1_process_bytes): Renamed from sha_process_bytes.
84905         (sha1_finish_ctx): Renamed from sha_finish_ctx.
84906         (sha1_read_ctx): Renamed from sha_read_ctx.
84907         (sha1_stream): Renamed from sha_stream.
84908         (sha1_buffer): Renamed from sha_buffer.
84909         * lib/sha1.c: Likewise; renamed from sha.c.
84910         Do not include <sys/types.h>.
84911         Include <stddef.h> rather than <stdlib.h>.
84912
84913 2004-08-08  Bruno Haible  <bruno@clisp.org>
84914
84915         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
84916         FILESYSTEM_PREFIX_LEN.
84917         * lib/progreloc.c: Likewise.
84918         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
84919
84920 2004-08-06  Simon Josefsson  <jas@extundo.com>
84921
84922         * modules/progname (Depends-on): Don't depend on stdbool.
84923
84924 2004-08-06  Simon Josefsson  <jas@extundo.com>
84925
84926         * modules/getsubopt: New file.
84927         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84928         getsubopt.
84929
84930 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84931
84932         More merge from coreutils.
84933
84934         * m4/utimens.m4, m4/utimecmp.m4: New files.
84935         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
84936         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
84937         prereq.m4, sha.m4: Import changes from coreutils.
84938
84939 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84940
84941         More merge from coreutils.
84942         * modules/raise, modules/readtokens0, modules/utimens:
84943         * modules/utimecmp, module/xnanosleep: New files.
84944         * modules/strftime: Add lib/strftime.h.
84945         Change include from <time.h> to "strftime.h".
84946         * modules/yesno: Add lib/yesno.h.
84947         * modules/backupfile: Remove lib/addext.c.
84948         * modules/euidaccess: Add stat-macros.h.
84949         * modules/canonicalize, modules/euidaccess,
84950         modules/filemode, modules/lchown, modules/makepath,
84951         modules/rmdir, modules/stat: Likewise.
84952
84953 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84954
84955         Merge from tar.
84956         * lib/argp-help.c (make_hol, hol_append): Don't assume that
84957         SIZE_MAX is a valid preprocessor constant.
84958         (__argp_basename): Change from "#ifndef _LIBC"
84959         to "#ifndef __argp_short_program_name", so that
84960         we don't compile these functions for tar.
84961
84962         More merges from coreutils.
84963         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
84964         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
84965         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
84966         * lib/addext.c: Remove; no longer needed.
84967         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
84968         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
84969         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
84970         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
84971         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
84972         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
84973         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
84974         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
84975         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
84976         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
84977         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
84978         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
84979         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
84980         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
84981         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
84982         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
84983         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
84984         Import changes from coreutils.
84985
84986 2004-08-05  Simon Josefsson  <jas@extundo.com>
84987
84988         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
84989
84990 2004-08-05  Simon Josefsson  <jas@extundo.com>
84991
84992         * m4/getsubopt.m4: New file.
84993
84994 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84995
84996         Merge from coreutils.
84997
84998         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
84999         * m4/getcwd-path-max.m4: New files.
85000
85001         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
85002         FILESYSTEM_PREFIX_LEN ->
85003         FILE_SYSTEM_PREFIX_LEN.
85004         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
85005         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
85006         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
85007         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
85008
85009         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
85010         prerequisite modules now handle the DOS stuff.
85011         Don't check for unistd.h.
85012
85013 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85014
85015         Merge from coreutils.
85016
85017         * lib/.gdb-history: Remove; this doesn't belong here.
85018
85019         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
85020         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
85021         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
85022         * lib/getcwd.c: New files.
85023
85024         * lib/dirname.h: Include <stdbool.h>.
85025         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
85026         for consistency with POSIX terminology.  All uses changed.
85027         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
85028         (strip_trailing_slashes): Use bool for booleans.
85029         * lib/stripslash.c (strip_trailing_slashes): Likewise.
85030
85031         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
85032         sometimes returns a positive errno value even when it succeeds.
85033         (print_errno_message) [!LIBC]: Fall back on strerror if
85034         __strerror_r fails.
85035
85036         * lib/path-concat.c (mempcpy): Don't define if a system header defines
85037         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
85038         (longest_relative_suffix): New function.
85039         (path_concat): Use it.  Assume first argument is not NULL.
85040         Port to DOS.  Omit redundant separators.
85041         Report an error instead of returning NULL.
85042         Use mempcpy instead of memcpy.
85043         (xpath_concat): Remove: not declared or used.
85044
85045         * lib/same.h: Include <stdbool.h>
85046         (same_name): Return bool, not int.
85047         * lib/same.c (same_name): Likewise.
85048         (errno): Don't declare; we assume C89 or better now.
85049
85050         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
85051         if not already defined.
85052
85053         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
85054         * lib/dup-safer.c (errno): Likewise.
85055
85056 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
85057
85058         Merge from coreutils.
85059         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
85060         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
85061         * modules/path-concat: Don't depend on strdup.
85062
85063 2004-08-03  Simon Josefsson  <jas@extundo.com>
85064
85065         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
85066         * lib/progname.h: Don't include stdbool.h.
85067
85068 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85069
85070         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
85071         * MODULES.html.sh (func_all_modules): Remove fatal.
85072
85073 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85074
85075         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
85076
85077 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
85078
85079         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
85080         working.
85081
85082 2004-08-02  Simon Josefsson  <jas@extundo.com>
85083
85084         * lib/getsubopt.h: New file, with comments from Bruno Haible.
85085         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
85086         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
85087
85088 2004-08-01  Simon Josefsson  <jas@extundo.com>
85089
85090         * lib/xgetdomainname.c: Include stdlib.h, for free().
85091
85092 2004-07-19  Bruno Haible  <bruno@clisp.org>
85093
85094         * MODULES.html.sh (func_all_modules): Add dummy.
85095
85096 2004-07-16  Simon Josefsson  <jas@extundo.com>
85097
85098         * modules/dummy: New file.
85099
85100 2004-07-16  Simon Josefsson  <jas@extundo.com>
85101
85102         * lib/dummy.c: New file.
85103
85104 2004-07-16  Bruno Haible  <bruno@clisp.org>
85105
85106         * lib/backupfile.h: Add extern "C" for C++.
85107         * lib/closeout.h: Likewise.
85108         * lib/copy-file.h: Likewise.
85109         * lib/findprog.h: Likewise.
85110         * lib/full-write.h: Likewise.
85111         * lib/pathname.h: Likewise.
85112         * lib/progname.h: Likewise.
85113         * lib/stpcpy.h: Likewise.
85114         * lib/stpncpy.h: Likewise.
85115         * lib/strcase.h: Likewise.
85116         * lib/strstr.h: Likewise.
85117         * lib/xalloc.h: Likewise.
85118
85119         * lib/mbswidth.h: Add extern "C" for C++.
85120         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
85121
85122 2004-07-13  Robert Millan  <robertmh@gnu.org>
85123
85124         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
85125
85126 2004-07-09  Simon Josefsson  <jas@extundo.com>
85127
85128         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
85129         failed without this.)
85130
85131 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85132
85133         * modules/chown (Files): Add lib/fchown-stub.c, since
85134         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
85135
85136 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
85137
85138         * lib/fchown-stub.c: New file.
85139
85140 2004-06-24  Jim Meyering  <jim@meyering.net>
85141
85142         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
85143
85144 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85145
85146         * modules/argz: Omit "#include".
85147
85148         * MODULES.html.sh (func_all_modules): Add calloc, to match
85149         2004-06-01 addition of calloc module.
85150
85151 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85152
85153         * m4/argz.m4: New file, which is autoupdated from libtool.
85154
85155 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85156
85157         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
85158         libtool.
85159
85160 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85161
85162         * config/srclist-update: Don't insist on "USA." before the
85163         close-comment, as libtool omits the period and puts the */ on a
85164         separate line.
85165         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
85166         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
85167
85168 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
85169
85170         * modules/argz: New file.
85171         * MODULES.html.sh (func_all_modules): Add argz.
85172
85173 2004-06-12  Jim Meyering  <jim@meyering.net>
85174         and  Paul Eggert  <eggert@cs.ucla.edu>
85175
85176         * modules/hash (Files): Add lib/xalloc.h.
85177         * modules/pipe (Depends-on): Add wait-process.
85178         * modules/stat (Depends-on): Add xalloc.
85179         * modules/userspec (Files): Add lib/userspec.h.
85180         * modules/xstrto
85181
85182         Upgrade from gettext-0.13.
85183         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
85184         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
85185         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
85186
85187 2004-06-10  Jim Meyering  <jim@meyering.net>
85188
85189         * lib/calloc.c: New file.
85190
85191 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
85192
85193         * lib/getdate.y (yylex): Allow space between sign and number.
85194         Problem reported by Dan Jacobson.
85195
85196 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85197
85198         Merge from coreutils CVS.
85199
85200         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
85201         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
85202         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
85203         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
85204         xstrtol.m4: Fix copyright date and/or serial number.
85205
85206         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
85207         See if we need an fchown replacement.
85208         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
85209         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
85210         and use the replacement function if we detect either defect.
85211
85212         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
85213         gl_UTIMECMP.
85214
85215 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
85216         and  Jim Meyering  <jim@meyering.net>
85217
85218         Merge from coreutils CVS.
85219
85220         * lib/stat-macros.h: New file, with contents from file-type.h
85221         and coreutils' system.h.
85222         * lib/file-type.c: Include "stat-macros.h".
85223         * lib/file-type.h (file_type): Move all macro definitions to new file,
85224         stat-macros.h.
85225
85226         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
85227         Wrap old code with this conditional.
85228         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
85229         function that does not dereference symlinks.
85230         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
85231
85232         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
85233         dependency problems.
85234         (xreadlink): Accept new arg SIZE, for efficiency.
85235         All decls and uses changed.
85236         * lib/xreadlink.h: Include <stddef.h>, for size_t.
85237
85238         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
85239         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
85240
85241         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
85242         sysexits.h.
85243
85244 2004-06-01  Jim Meyering  <jim@meyering.net>
85245
85246         * m4/calloc.m4: New file.
85247
85248 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
85249
85250         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
85251         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
85252         Also, fix a typo in a diagnostic.
85253
85254 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85255
85256         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
85257         or AC_FUNC_REALLOC.
85258
85259 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
85260
85261         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
85262         macros to be defined.
85263         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
85264         the allocator returns NULL because the requested size is zero.
85265
85266 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85267
85268         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85269         var.  Add comment explaining why libc still defines it.  This
85270         merges the following patch from glibc:
85271         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85272
85273 2004-05-20  Andreas Schwab  <schwab@suse.de>
85274
85275         * m4/free.m4: Replace free if it not known to work, not the other
85276         way round.
85277
85278 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85279
85280         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85281         present in glibc since revision 1.1 of this file.
85282         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85283         obstack_alignment_mask, obstack_alloc, obstack_base,
85284         obstack_blank, obstack_blank_fast, obstack_chunk_size,
85285         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
85286         obstack_grow0, obstack_init, obstack_int_grow,
85287         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
85288         obstack_next_free, obstack_object_size, obstack_ptr_grow,
85289         obstack_ptr_grow_fast, obstack_room): Remove declarations of
85290         nonexistent functions.
85291
85292 2004-05-18  Karl Berry  <karl@gnu.org>
85293
85294         * config/srclist.txt: break link for vasnprintf.c.
85295
85296 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85297
85298         Port obstack to the AS/400, where pointers are 16 bytes wide and
85299         you cannot cast an integer to a valid pointer.  This patch is
85300         currently waiting to be integrated into glibc; see
85301         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
85302
85303         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
85304         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
85305         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
85306         (struct obstack): temp member is now a union of a pointer and
85307         an integer, instead of an integer.  All integer uses changed.
85308         This does not affect the physical layout of struct obstack,
85309         except on hosts (like the AS/400) where the size or alignment of
85310         void * is greater than that of ptrdiff_t.
85311         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
85312         __STDC__)]: Store temporary in pointer member of union, not
85313         integer member.
85314         * lib/obstack.c: Include <stddef.h>, for offsetof.
85315         (struct fooalign): Remove; it doesn't need a name.
85316         (union fooround): Change double to long double, and add void *.
85317         (DEFAULT_ALIGNMENT): Use offsetof to compute.
85318         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
85319         not a macro.  Hence the values are always int; so remove all
85320         casts-to-int in uses.
85321
85322 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85323
85324         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
85325         we can get this patch merged into glibc.
85326
85327 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85328             Paul Eggert  <eggert@cs.ucla.edu>
85329
85330         * m4/argp: Depend on alloca.
85331
85332 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85333             Paul Eggert  <eggert@cs.ucla.edu>
85334
85335         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
85336         freecoding.
85337
85338 2004-05-17  Bruno Haible  <bruno@clisp.org>
85339
85340         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
85341         precision that consists of a '.' followed by an empty digit string.
85342         Patch by Tor Lillqvist <tml@iki.fi>.
85343
85344 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85345
85346         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
85347         for backward compatibility with older code.  We need our own
85348         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
85349         it under some other name, and our alloca.h will define it.
85350
85351 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85352             Derek Price  <derek@ximbiot.com>
85353
85354         * lib/alloca.c: Include <alloca.h>, to get our interface.
85355         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
85356         include <alloca.h> first.  Use C89 prototype for alloca; this
85357         requires including <stddef.h> for size_t.  Use extern "C" if C++.
85358         Use #elif for simplicity, since we can assume C89 now.
85359         Don't try to source the system alloca.h since it will not be found
85360         and to prevent recursively including its replacement.
85361         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
85362         * lib/regex.c: Likewise.
85363
85364 2004-05-16  Derek Price  <derek@ximbiot.com>
85365             Paul Eggert  <eggert@cs.ucla.edu>
85366
85367         getline cleanup.  This changes the getndelim2 API: both order of
85368         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
85369         no delimiter).
85370
85371         * lib/getline.c: Don't include stddef.h or stdio.h, since our
85372         interface does that.
85373         (getline): Always use getdelim, so that we don't have two
85374         copies of this code.
85375         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
85376         if available.
85377         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
85378         (GETNDELIM2_MAXIMUM): New macro.
85379         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
85380         instead of the old practice of delim2==0.  All callers changed.
85381         Return -1 on overflow, instead of returning junk.
85382         Do not set *linesize unless allocation succeeds.
85383         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
85384         that we include sys/types.h.
85385         * lib/getnline.h: Likewise.
85386         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
85387         (getndelim2): Reorder arguments.
85388         * lib/getnline.c (getnline, getndelim):
85389         Don't discard the NMAX argument.
85390         (getnline): Invoke getndelim, to avoid code duplication.
85391         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
85392         of (size_t) -1 by callers of the getnline family.
85393
85394 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85395
85396         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
85397         Check for gettimeofday.
85398         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
85399         Check for settimeofday, stime.
85400
85401 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85402
85403         * lib/nanosleep.c (suspended): Change its type from int to
85404         sig_atomic_t volatile.
85405         (first_call): Make it private to rpl_nanosleep, and have it
85406         be zero initially as that's a bit faster.
85407         (my_usleep): Round up fractional times instead of truncating them,
85408         as this is the usual meaning for 'sleep'.
85409
85410         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
85411         doesn't work.
85412         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
85413         (ENOSYS): Define if not defined.
85414         (settime): Fall back on stime if it exists and settimeofday fails.
85415         But don't bother with fallbacks if a method fails with errno == EPERM.
85416
85417 2004-05-11  Jim Meyering  <jim@meyering.net>
85418
85419         Prior to this change, the save_cwd caller required read access to the
85420         current directory on most systems (ones with the fchdir function).
85421
85422         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
85423         fails, try write-only, and finally, resort to using xgetcwd.
85424
85425 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85426
85427         * lib/obstack.c, obstack.h: Import changes from libc.
85428
85429 2004-04-28  Bruno Haible  <bruno@clisp.org>
85430
85431         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
85432         also implicitly appends .exe to executables.
85433         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
85434         accepts Windows pathnames.
85435         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85436         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85437         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85438         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85439         Reported by Derek Robert Price <derek@ximbiot.com>.
85440
85441 2004-04-21  Karl Berry  <karl@gnu.org>
85442
85443         * config/srclist.txt (localcharset.c): break sync.
85444
85445 2004-04-20  Paul Eggert  <eggert@twinsun.com>
85446
85447         * m4/host-os.m4: Add a copyright notice.
85448
85449 2004-04-20  Jim Meyering  <jim@meyering.net>
85450
85451         Change UTILS_ to gl_ in AC_DEFINE'd names.
85452         Change utils_- and jm_-prefixed variables, too.
85453         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
85454         UTILS_FUNC_MKDIR_TRAILING_SLASH.
85455         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
85456
85457         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
85458         Don't emit trailing blanks.
85459         Also rename jm_-prefixed variables to have gl_ prefix.
85460
85461         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
85462         Also rename jm_-prefixed variables to have gl_ prefix.
85463
85464         * m4/jm-macros.m4: Reflect the renamings.
85465         * m4/prereq.m4: Likewise.
85466
85467 2004-04-20  Jim Meyering  <jim@meyering.net>
85468
85469         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
85470         memory.
85471
85472 2004-04-20  Jim Meyering  <jim@meyering.net>
85473             Bruno Haible  <bruno@clisp.org>
85474
85475         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
85476         memory when realloc fails.
85477
85478 2004-04-19  Jim Meyering  <jim@meyering.net>
85479
85480         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
85481         now that readutmp.c may call `free (0)'.
85482
85483 2004-04-19  Bruno Haible  <bruno@clisp.org>
85484
85485         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
85486         * m4/inttypes_h.m4: Likewise.
85487         * m4/stdint_h.m4: Likewise.
85488         * m4/intmax_t.m4: Likewise.
85489         * m4/uintmax_t.m4: Likewise.
85490
85491 2004-04-18  Jim Meyering  <jim@meyering.net>
85492
85493         * m4/prereq.m4: Don't forbid jm_ prefix.
85494
85495         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
85496         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
85497         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
85498         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
85499         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
85500         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
85501         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
85502         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
85503         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
85504         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
85505         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
85506         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
85507         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
85508         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
85509         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
85510         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
85511         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
85512         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
85513         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
85514
85515 2004-04-18  Jim Meyering  <jim@meyering.net>
85516
85517         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
85518         failure, don't leak memory and do call END_UTMP_ENT.
85519
85520 2004-04-16  Jim Meyering  <jim@meyering.net>
85521
85522         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
85523         coreutils' stat program.
85524         (gl_PREREQ): Don't require jm_PREREQ_STAT.
85525
85526 2004-04-11  Paul Eggert  <eggert@twinsun.com>
85527
85528         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
85529         C89.
85530         (CHAR_BIT): Remove, since we assume C89.
85531         Include <stdint.h> if available, as per current Autoconf CVS advice.
85532
85533 2004-03-31  Jim Meyering  <jim@meyering.net>
85534
85535         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
85536         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
85537         * m4/xalloc.m4: Likewise.
85538
85539 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85540
85541         Merge from coreutils.
85542
85543         * m4/inttostr.m4: New file.
85544         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
85545         Require AM_STDBOOL_H and gl_TIMESPEC instead.
85546         Require gl_CLOCK_TIME.
85547         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
85548
85549 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85550
85551         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
85552         not bool, to be more consistent with Unix conventions.
85553         Suggested by Bruno Haible.
85554
85555         Merge from coreutils.
85556
85557         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
85558         * lib/umaxtostr.c: New files.
85559
85560         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
85561         the usual <time.h> dance.
85562         (get_date): Change signature to support fractional time stamps.
85563         All callers changed.
85564         * lib/getdate.y: Include "getdate.h" first, as we can now
85565         assume C89 and don't need to worry about 'const'.
85566         Similarly, include "unlocked-io.h" near start, not in middle.
85567         Include <limits.h>.
85568         (textint.value): Use long int rather than int.
85569         (textint.digits): Use size_t rather than int.
85570         (BILLION, LOG10_BILLION): New constants.
85571         (parser_control): New member rel_ns.  Members day_ordinal,
85572         time_zone, month, day, hour, minutes, rel_year, rel_month,
85573         rel_day, rel_hour, rel_minutes, rel_seconds
85574         are now long int, not int.  Member seconds is now struct timespec,
85575         not int.  New member timespec_seen.  Members dates_seen, days_seen,
85576         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
85577         not int.
85578         (%union.intval): Now long int, not int.
85579         New member timespec.
85580         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
85581         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
85582         (spec): Now is a timespec or an item list.
85583         (timespec, items): New nonterminals.
85584         (time, rel, relunit, number, get_date):
85585         Add support for fractional seconds.
85586         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
85587         (gmtime, localtime, mktime): Remove decls; not needed with C89.
85588         (to_hour): First arg is now long int, not int.
85589         (to_year): Returns long int, not int.
85590         Don't treat year -70 like 70.
85591         (tm_diff): Returns long int, not int.
85592         (lookup_word): Use bool instead of int when appropriate.
85593         (yylex): Use size_t for count, not int.
85594         Detect overflow when parsing large integer constants.
85595         Add support for fractions.
85596         (get_date): Make pointers 'const' if possible.
85597         Use more-portable code to detect integer overflow.
85598         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
85599         Don't use ctime; it's not reliable if the year has >4 digits.
85600
85601         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
85602         This is for compatibility with BSD.
85603
85604         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
85605         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
85606         From coreutils' system.h.
85607
85608         * lib/userspec.c: Don't include "posixver.h".
85609         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
85610         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
85611         compatible extension.  Simplify code by removing a boolean int
85612         that was always nonzero if a string was nonnull.
85613
85614 2004-03-30  Jim Meyering  <jim@meyering.net>
85615
85616         Merge from coreutils.
85617
85618         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
85619         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
85620         on some systems one must include <grp.h> before it.
85621         Reported by Christian Krackowizer.
85622
85623 2004-03-30  Jim Meyering  <jim@meyering.net>
85624
85625         Merge from coreutils.
85626
85627         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
85628
85629         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
85630         an empty input stream.
85631
85632         * lib/readtokens.c: Include <stdbool.h>.
85633         (readtoken): Use `size_t' rather than int/long.
85634         All callers adjusted.
85635         Use `bool' rather than `int' where appropriate.
85636         Use memset rather than an explicit loop.
85637         Use x2nrealloc rather than xrealloc.
85638         Allow the use of `\0' as a delimiter.
85639         (readtokens): Likewise.
85640         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
85641
85642 2004-03-30  Jim Meyering  <jim@meyering.net>
85643
85644         * m4/realloc.m4: Remove file, since now it does no more than
85645         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
85646         the `configure.ac' section of module/realloc.
85647         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
85648
85649 2004-03-30  Bruno Haible  <bruno@clisp.org>
85650
85651         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
85652         nonnull.
85653
85654 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85655
85656         Merge changes to getloadavg.c from coreutils and Emacs.
85657
85658         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
85659         Define to an expression, not to the empty string.
85660         Include cloexec.h and xalloc.h.
85661         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
85662         Use set_cloexec_flag rather than rolling our own.
85663         * lib/cloexec.c, lib/cloexec.h: New files.
85664
85665 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85666
85667         * m4/cloexec.m4: New file.
85668
85669 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85670
85671         * lib/getopt.h: Sync with libc CVS.
85672
85673 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85674             Bruno Haible  <bruno@clisp.org>
85675
85676         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
85677         mbswidth.
85678
85679 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85680             Bruno Haible  <bruno@clisp.org>
85681
85682         * lib/mbswidth.h: Include <wchar.h> only if
85683         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
85684         <wchar.h>.
85685         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
85686
85687 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85688
85689         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
85690         Sync with libc CVS.
85691         * lib/getopt_int.h: New file, also synced from libc.
85692
85693 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85694
85695         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
85696         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
85697         Bring back getopt.c, getopt.h, getopt1.c.
85698
85699 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85700
85701         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
85702         All uses changed.  Check for sa_sigaction member; this fixes
85703         a bug first reported by Jason Andrade in
85704         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85705
85706 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85707
85708         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
85709         '#if' expressions.  Unlike the code it replaces, it does not
85710         depend on (defined _SC_PAGESIZE).  However, it does depend on
85711         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
85712         first reported by Jason Andrade in
85713         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85714
85715 2004-02-25  Simon Josefsson  <jas@extundo.com>
85716
85717         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
85718
85719 2004-02-25  Simon Josefsson  <jas@extundo.com>
85720
85721         * lib/strdup.h: New file.
85722         * lib/strdup.c: Include it.
85723         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
85724         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
85725
85726 2004-02-23  Karl Berry  <karl@gnu.org>
85727
85728         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
85729         (from fencepost.gnu.org:/gd/gnuorg).
85730
85731 2004-02-23  Karl Berry  <karl@gnu.org>
85732
85733         * config/srclistvars.sh (GNUORG) [karl]: redefine.
85734         * config/srclist.txt: add maintain/standards documents.
85735
85736 2004-02-18  Bruno Haible  <bruno@clisp.org>
85737
85738         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
85739         Reported by Derek Robert Price <derek@ximbiot.com>.
85740
85741 2004-02-16  Karl Berry  <karl@gnu.org>
85742
85743         * config/mkinstalldirs, install-sh: update from automake.
85744
85745 2004-02-06  Karl Berry  <karl@gnu.org>
85746
85747         * m4/po.m4: update from gettext 0.14.1.
85748
85749 2004-02-06  Karl Berry  <karl@gnu.org>
85750
85751         * lib/config.charset: update from gettext 0.14.1.
85752
85753 2004-02-05  Paul Eggert  <eggert@twinsun.com>
85754
85755         Add comments and code, prompted by suggestions from Bruno Haible
85756         for sh-quote.
85757         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
85758         describing the enum quoting_style values.
85759         * lib/quotearg.c (quotearg_alloc): New function.
85760         (quotearg_buffer_restyled): Treat lone { and } as special.
85761         Treat = as special.  Work around bug with older shells
85762         that "see" a '\' that is really the 2nd byte of a multibyte char.
85763         Quote empty string with shell_quoting_style.
85764
85765 2004-02-03  Bruno Haible  <bruno@clisp.org>
85766
85767         * m4/pipe.m4: New file, from GNU gettext.
85768
85769 2004-02-03  Bruno Haible  <bruno@clisp.org>
85770
85771         * lib/pipe.h: New file, from GNU gettext.
85772         * lib/pipe.c: New file, from GNU gettext.
85773
85774 2004-01-27  Bruno Haible  <bruno@clisp.org>
85775
85776         * m4/execute.m4: New file, from GNU gettext.
85777
85778 2004-01-27  Bruno Haible  <bruno@clisp.org>
85779
85780         * lib/execute.h: New file, from GNU gettext.
85781         * lib/execute.c: New file, from GNU gettext.
85782         * lib/w32spawn.h: New file, from GNU gettext.
85783
85784 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85785
85786         Merge from diffutils.
85787
85788         * lib/file-type.c (file_type): Add typed memory objects.
85789         * lib/file-type.h (S_TYPEISTMO): New macro.
85790
85791         * lib/c-stack.h (c_stack_action): Remove argv argument.
85792         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
85793         (die): Don't calculate message unless segv_action returns.
85794         (get_stack_location, min_address_from_argv, max_address_from_argv,
85795         volatile stack_base, volatile_stack_size): Remove.
85796         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
85797         that every segmentation violation is a stack overflow.  (Ouch!)
85798         See Debian bug 136249 (still outstanding) for more info about why
85799         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
85800
85801 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85802
85803         Exit-status fix from coreutils.
85804
85805         Use exit_failure consistently in place of EXIT_FAILURE,
85806         so that program exit statuses are consistent on failure.
85807
85808         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
85809         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
85810         * lib/argmatch.h: Comment fix to match the above.
85811         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
85812         Now a macro referring to exit_failure, instead of a separate
85813         variable.  Include "exitfail.h" to get it.
85814         * lib/xstrtol.h: Include "exitfail.h".
85815         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
85816
85817         * lib/long-options.c (parse_long_options): Use prototype
85818         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
85819         for clarity.
85820
85821 2004-01-21  Jim Meyering  <jim@meyering.net>
85822
85823         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
85824         so as not to conflict with a different-sized __mktime_internal
85825         function in GNU libc.
85826         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
85827         Problem building statically-linked `ls' reported by Michael Brunnbauer.
85828
85829 2004-01-20  Karl Berry  <karl@gnu.org>
85830
85831         * config/config.guess: update from config.
85832
85833         * config/srclistvars.sh: GNUWWWLICENSES for karl.
85834
85835 2004-01-20  Bruno Haible  <bruno@clisp.org>
85836
85837         Safer stack allocation.
85838         * lib/setenv.c: Include allocsa.h.
85839         (alloca): Remove fallback definition.
85840         (freea): Remove macro.
85841         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
85842         instead of freea.
85843
85844 2004-01-20  Bruno Haible  <bruno@clisp.org>
85845
85846         * m4/eealloc.m4: New file, from GNU gettext.
85847
85848 2004-01-20  Bruno Haible  <bruno@clisp.org>
85849
85850         * m4/allocsa.m4: New file, from GNU gettext.
85851
85852 2004-01-20  Bruno Haible  <bruno@clisp.org>
85853
85854         * lib/xallocsa.h: New file, from GNU gettext.
85855         * lib/xallocsa.c: New file, from GNU gettext.
85856
85857 2004-01-20  Bruno Haible  <bruno@clisp.org>
85858
85859         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
85860
85861 2004-01-20  Bruno Haible  <bruno@clisp.org>
85862
85863         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
85864         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
85865         specially.
85866
85867 2004-01-20  Bruno Haible  <bruno@clisp.org>
85868
85869         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
85870         patch.
85871
85872 2004-01-20  Bruno Haible  <bruno@clisp.org>
85873
85874         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
85875
85876 2004-01-20  Bruno Haible  <bruno@clisp.org>
85877
85878         * lib/eealloc.h: New file.
85879
85880 2004-01-20  Bruno Haible  <bruno@clisp.org>
85881
85882         * lib/binary-io.h: Avoid warnings on Cygwin.
85883
85884 2004-01-20  Bruno Haible  <bruno@clisp.org>
85885
85886         * lib/allocsa.h: New file, from GNU gettext.
85887         * lib/allocsa.c: New file, from GNU gettext.
85888
85889 2004-01-18  Karl Berry  <karl@gnu.org>
85890
85891         * doc/gpl.texi, doc/lgpl.texi: new files.
85892
85893 2004-01-18  Karl Berry  <karl@gnu.org>
85894
85895         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
85896         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
85897
85898 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85899
85900         Merge from coreutils.
85901
85902         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
85903         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
85904         (gl_DEFAULT_POSIX2_VERSION): Move
85905         the documentation from 'configure' into 'config.hin',
85906         so that 'configure --help' isn't burdened by it and
85907         we don't have to worry about its formatting there.
85908         Reword the documentation so that it's more succinct
85909         and can be run together into a single paragraph.
85910         * m4/same.m4 (gl_SAME): Check for pathconf.
85911
85912 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85913
85914         Merge from coreutils.
85915
85916         * lib/posixver.c: Include posixver.h.
85917
85918         * lib/same.c: Include <stdbool.h>, <limits.h>.
85919         (_POSIX_NAME_MAX): Define if not defined.
85920         (MIN): New macro.
85921         (same_name): If file names are silently truncated, report
85922         that the file names are the same if they are the same after
85923         the silent truncation.
85924
85925         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
85926         conversion function.
85927         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
85928         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
85929         longer needed.
85930
85931 2004-01-15  Jim Meyering  <jim@meyering.net>
85932
85933         Merge from coreutils.
85934
85935         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
85936         if no library is required.
85937         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
85938         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
85939         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
85940         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
85941         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
85942         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
85943         value, $ac_cv_search_crypt, if it's "none required".
85944         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
85945         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
85946         not gl_FUNC_GETLOADAVG.
85947         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
85948         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
85949
85950 2004-01-15  Jim Meyering  <jim@meyering.net>
85951
85952         Merge from coreutils.
85953
85954         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
85955         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
85956         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
85957
85958         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
85959         optional configure-time default.
85960
85961         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85962
85963         * lib/xreadlink.c (xreadlink): Correct outdated comment.
85964
85965 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
85966
85967         Merge from coreutils.
85968
85969         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
85970         value, $ac_cv_search_nanosleep, if it's "none required".
85971
85972 2004-01-14  Paul Eggert  <eggert@twinsun.com>
85973
85974         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
85975         with like-named macro in fnmatch.c.
85976         (EXT): Use an internal constant instead.
85977
85978         Merge fnmatch patches from glibc.
85979         * lib/fnmatch.c (mbsinit): Remove define.
85980         Add libc_hidden_ver (__fnmatch, fnmatch).
85981         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
85982         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
85983
85984 2004-01-14  Karl Berry  <karl@gnu.org>
85985
85986         * config/install-sh: update from automake.
85987
85988 2004-01-13  Karl Berry  <karl@gnu.org>
85989
85990         * config/install-sh: update from automake.
85991
85992 2004-01-09  Karl Berry  <karl@gnu.org>
85993
85994         * config/install-sh: update from automake.
85995
85996 2004-01-05  Karl Berry  <karl@gnu.org>
85997
85998         * config/config.{sub,guess}: update from config.
85999
86000 2003-12-31  Karl Berry  <karl@gnu.org>
86001
86002         * config/depcomp: update from automake.
86003
86004 2003-12-14  Karl Berry  <karl@gnu.org>
86005
86006         * lib/config.charset: update from gettext-runtime.
86007
86008 2003-12-03  Paul Eggert  <eggert@twinsun.com>
86009
86010         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
86011         Bug reported by Alfred M. Szmidt.
86012
86013 2003-12-03  Bruno Haible  <bruno@clisp.org>
86014
86015         * m4/gettext.m4: Upgrade from gettext-0.13.
86016         * m4/po.m4: Upgrade from gettext-0.13.
86017         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
86018         * m4/intmax.m4: New file, from gettext-0.13.
86019         * m4/printf-posix.m4: New file, from gettext-0.13.
86020
86021 2003-11-29  Karl Berry  <karl@gnu.org>
86022
86023         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
86024
86025 2003-11-25  Paul Eggert  <eggert@twinsun.com>
86026             Bruno Haible  <bruno@clisp.org>
86027
86028         * lib/printf-parse.h: Don't include sys/types.h.
86029         (ARG_NONE): New macro.
86030         (char_directive): Change type of *arg_index fields to size_t.
86031         * lib/printf-parse.c: Don't include sys/types.h.
86032         (SSIZE_MAX): Remove macro.
86033         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
86034         Remove unnecessary overflow check.
86035         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
86036         fields.
86037
86038 2003-11-25  Bruno Haible  <bruno@clisp.org>
86039
86040         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
86041
86042 2003-11-25  Bruno Haible  <bruno@clisp.org>
86043
86044         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
86045         gt_TYPE_SSIZE_T.
86046
86047 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86048
86049         * modules/alloca: Remove dependency on xalloc.
86050
86051 2003-11-24  Paul Eggert  <eggert@twinsun.com>
86052
86053         * lib/alloca.c: Remove dependency on xalloc module.
86054         (xalloc_die): Remove.
86055         (memory_full) [!defined emacs]: New macro.
86056         [!defined emacs]: Don't include xalloc.h.
86057         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
86058         address arithmetic overflows.  Change datatypes a bit to avoid
86059         unnecessary casts.
86060
86061 2003-11-22  Jim Meyering  <jim@meyering.net>
86062
86063         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
86064         s/size/size_t/.
86065
86066 2003-11-21  Karl Berry  <karl@gnu.org>
86067
86068         * config/config.{sub,guess}: update from config.
86069
86070 2003-11-18  Karl Berry  <karl@gnu.org>
86071
86072         * config/config.{sub,guess}: update from config.
86073
86074         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
86075
86076 2003-11-17  Paul Eggert  <eggert@twinsun.com>
86077
86078         * README: Mention that S+T cannot overflow if S is the size of
86079         an existing object and T is sufficiently small.
86080
86081 2003-11-17  Jim Meyering  <jim@meyering.net>
86082
86083         On systems without utime and without a utimes function capable of
86084         dealing with a NULL struct utimbuf* argument, this utime replacement
86085         could -- in unusual circumstances -- leak a file descriptor.
86086         * lib/utime.c: Include <unistd.h> and <errno.h>.
86087         (utime_null): Be sure to close `fd' and to preserve errno.
86088         Reported by Geoff Collyer via Arnold Robbins.
86089
86090 2003-11-17  Bruno Haible  <bruno@clisp.org>
86091
86092         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
86093         (Depends-on): Add xsize.
86094
86095 2003-11-17  Bruno Haible  <bruno@clisp.org>
86096
86097         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
86098
86099 2003-11-17  Bruno Haible  <bruno@clisp.org>
86100
86101         * lib/vasnprintf.c (alloca): Remove fallback definition.
86102         (freea): Remove definition.
86103         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
86104         Reported by Paul Eggert.
86105
86106 2003-11-16  Paul Eggert  <eggert@twinsun.com>
86107             Bruno Haible  <bruno@clisp.org>
86108
86109         Protect against address arithmetic overflow.
86110         * lib/printf-args.h: Include stddef.h.
86111         (arguments): Change type of field 'count' to size_t.
86112         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
86113         'unsigned int' where appropriate.
86114         * lib/printf-parse.h: Include sys/types.h.
86115         (char_directive): Change type of *arg_index fields to ssize_t.
86116         (char_directives): Change type of fields 'count', max_*_length to
86117         size_t.
86118         * lib/printf-parse.c: Include sys/types.h and xsize.h.
86119         (SSIZE_MAX): Define fallback value.
86120         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
86121         instead of 'int' where appropriate. Check a_allocated, d_allocated
86122         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
86123         * lib/vasnprintf.c: Include xsize.h.
86124         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
86125         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
86126         overflow. Avoid wraparound when converting a width or precision from
86127         decimal to binary.
86128
86129 2003-11-16  Bruno Haible  <bruno@clisp.org>
86130
86131         Update from GNU gettext.
86132         * lib/printf-parse.c: Generalize to it can be compiled for wide
86133         strings.
86134         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
86135         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
86136         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
86137         SNPRINTF): New macros.
86138         Don't include <alloca.h> if the file is used inside libintl.
86139         (local_wcslen): New function, for Solaris 2.5.1.
86140         (VASNPRINTF): Use it instead of wcslen.
86141
86142 2003-11-16  Bruno Haible  <bruno@clisp.org>
86143
86144         * lib/xsize.h (xmax): New function.
86145         (xsum, xsum3, xsum4): Declare as "pure" functions.
86146
86147 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86148
86149         * modules/xalloc (Files): Undo latest change, since xalloc.h
86150         no longer needs SIZE_MAX or PTRDIFF_MAX.
86151
86152 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86153
86154         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
86155         gl_PTRDIFF_MAX.
86156
86157 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86158
86159         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
86160         "return", to pacify some unknown compiler.  Problem reported
86161         by Joerg Schilling.
86162
86163 2003-11-12  Paul Eggert  <eggert@twinsun.com>
86164
86165         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
86166         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
86167         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
86168         heuristic is just as accurate as far as we know, and it removes a
86169         dependency on size_max.m4 and ptrdiff_max.m4.
86170
86171 2003-11-11  Bruno Haible  <bruno@clisp.org>
86172
86173         * modules/xsize (Files): Add m4/size_max.m4.
86174         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
86175
86176 2003-11-11  Bruno Haible  <bruno@clisp.org>
86177
86178         * m4/size_max.m4: New file.
86179         * m4/ptrdiff_max.m4: New file.
86180         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
86181         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
86182         (gl_XALLOC): Invoke it.
86183
86184 2003-11-11  Bruno Haible  <bruno@clisp.org>
86185
86186         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
86187         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
86188         defined.
86189
86190 2003-11-10  Paul Eggert  <eggert@twinsun.com>
86191
86192         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
86193         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
86194         rejected some allocations of exactly SIZE_MAX - 2 bytes.
86195         From Bruno Haible.
86196         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
86197         not (size_t) -1, since it's defined here.
86198
86199 2003-11-09  Karl Berry  <karl@gnu.org>
86200
86201         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
86202
86203 2003-11-06  Paul Eggert  <eggert@twinsun.com>
86204
86205         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
86206         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
86207         Reject sizes of exactly SIZE_MAX bytes.
86208         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
86209         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
86210
86211 2003-11-05  Bruno Haible  <bruno@clisp.org>
86212
86213         * lib/xsize.h: Include limits.h, to avoid a possible collision with
86214         SIZE_MAX defined in <limits.h> on Solaris.
86215
86216 2003-11-04  Jim Meyering  <jim@meyering.net>
86217
86218         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
86219         variable names, rather than @VAR@.
86220         * modules/poll: Likewise.
86221
86222 2003-11-04  Bruno Haible  <bruno@clisp.org>
86223
86224         * modules/xsize: New file.
86225         * modules/linebreak: Depend on xsize.
86226         * MODULES.html.sh (func_all_modules): Add xsize.
86227
86228 2003-11-04  Bruno Haible  <bruno@clisp.org>
86229
86230         * m4/xsize.m4: New file.
86231
86232 2003-11-04  Bruno Haible  <bruno@clisp.org>
86233
86234         * lib/xsize.h: New file.
86235         * lib/linebreak.c: Include xsize.h.
86236         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
86237         argument for overflow.
86238         Suggested by Paul Eggert.
86239
86240 2003-11-03  Karl Berry  <karl@gnu.org>
86241
86242         * config/config.{guess,sub}: update from config.
86243
86244 2003-11-03  Jim Meyering  <jim@meyering.net>
86245
86246         * modules/userspec (lib_SOURCES): Add userspec.h.
86247         (Include): Add "userspec.h".
86248         Improve description.
86249
86250 2003-11-03  Jim Meyering  <jim@meyering.net>
86251
86252         * lib/userspec.c: Include "userspec.h".
86253         * lib/userspec.h: New file.
86254
86255 2003-11-03  Bruno Haible  <bruno@clisp.org>
86256
86257         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
86258
86259 2003-11-03  Bruno Haible  <bruno@clisp.org>
86260
86261         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
86262         available, to avoid (extremely rare) race condition.
86263         Suggested by Paul Eggert.
86264
86265 2003-11-02  Karl Berry  <karl@gnu.org>
86266
86267         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86268
86269 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86270
86271         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86272         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86273         (read_filesystem_list): Set and use me_type_malloced.
86274         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86275         whatever the type happens to be), for brevity and consistency.
86276         Check for size calculation overflow on Alphas running OSF/1.
86277
86278 2003-10-31  Jim Meyering  <jim@meyering.net>
86279
86280         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86281
86282         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86283
86284 2003-10-30  Paul Eggert  <eggert@twinsun.com>
86285             Bruno Haible  <bruno@clisp.org>
86286
86287         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
86288         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
86289
86290 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86291
86292         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
86293         netbsd*-gnu*.  Suggested by Robert Millan.
86294
86295 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86296
86297         * modules/group-member: Depend on stdbool.
86298
86299 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86300
86301         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
86302
86303 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86304
86305         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
86306         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
86307         after the 'gnu' in these cases.  This fixes some bugs in the
86308         previous change, and is based on suggestions by Robert Millan.
86309
86310 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86311
86312         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
86313         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
86314         no longer needed.
86315         * lib/quotearg.c (quotearg_n_options): Use it.
86316         * lib/group-member.c: Include <stdbool.h>.
86317         (free_group_info): Arg is now const *; don't free arg.
86318         (get_group_info): Now returns bool and accepts struct group_info *,
86319         rather than returning a malloc'ed struct group_info *.
86320         All uses changed.  Check for overflow in internal size calculation.
86321
86322         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
86323         rather than xmalloc/xrealloc.
86324         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
86325         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
86326         conformance bug: the old code used a pointer after freeing the
86327         storage that it addressed.
86328         * lib/hash.c (hash_initialize): Simplify the code by using
86329         xalloc_oversized rather than doing it by hand.
86330         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
86331         the buffer preserved.  Use free and xmalloc instead.
86332         * lib/quotearg.c (quotearg_n_options): Likewise.
86333         Use a simpler test for size overflow.  Don't use xalloc_oversized
86334         because unsigned int might be wider than size_t (!); this suggests
86335         that we should switch from unsigned int to size_t for slot numbers.
86336
86337 2003-10-28  Paul Eggert  <eggert@twinsun.com>
86338
86339         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
86340         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
86341         NetBSD kernels.  Requested by Richard Stallman.
86342
86343 2003-10-27  Paul Eggert  <eggert@twinsun.com>
86344
86345         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
86346         to allocate the returned structure.  Do not allocate a subarray,
86347         as x2nrealloc will do that.
86348         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
86349         instead of xnrealloc.
86350         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
86351
86352 2003-10-27  Bruno Haible  <bruno@clisp.org>
86353
86354         * lib/stdbool_.h: Better support for BeOS.
86355
86356 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86357
86358         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
86359         now uses inline.
86360
86361 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86362
86363         * lib/xalloc.h (xalloc_oversized): New static inline function, for
86364         callers that want to do their own size-overflow checking.  Include
86365         <stdbool.h>, since xalloc_oversized returns bool.
86366         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
86367         to use xalloc_oversized.
86368
86369         Add two functions x2realloc, x2nrealloc, for programs that grow
86370         arrays dynamically by doubling their sizes.
86371         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
86372         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
86373         New functions.
86374
86375         Port to C99 semantics for 'inline' of external functions.
86376         Bug reported by Bruno Haible.
86377         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
86378         with the old contents of xnmalloc.
86379         (xnmalloc, xmalloc): Use it.
86380         (xnrealloc_inline): New static inline function,
86381         with the old contents of xnrealloc.
86382         (xnrealloc, xrealloc): Use it.
86383
86384         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
86385         that.
86386
86387 2003-10-26  Karl Berry  <karl@gnu.org>
86388
86389         * config/srclist.txt (COPYING.DOC): no longer available from
86390         /gd/gnuorg; don't know where the ultimate source is.
86391
86392 2003-10-25  Paul Eggert  <eggert@twinsun.com>
86393
86394         Fix several address-calculation bugs in the hash modules,
86395         plus some minor code cleanup.
86396
86397         * lib/hash.h: Include <stdbool.h>, for bool.
86398         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
86399         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
86400         hash_get_n_entries, hash_get_max_bucket_length,
86401         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
86402         hash_rehash): Use size_t rather than unsigned.
86403         * lib/hash.c (struct hash_table, hash_get_n_buckets,
86404         hash_get_n_buckets_used, hash_get_n_entries,
86405         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
86406         hash_get_entries, hash_do_for_each, hash_string, is_prime,
86407         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
86408         Likewise.
86409         (SIZE_MAX): Define if not defined.
86410         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
86411         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
86412         hash_print):
86413         Use const * when possible.
86414         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
86415         (check_tuning): Fix bug: if tuning parameters were very close to
86416         0 or 1, rounding errors could have caused subscript violations.
86417         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
86418         (hash_initialize): Add 'fail:' label
86419         to free table and return NULL, and use it to simplify code.
86420         Use calloc rather than clearing the storage ourself.
86421         (hash_initialize, hash_rehash): Check for arithmetic overflow in
86422         buffer size calculations.
86423         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
86424         Include <stddef.h>, for size_t.
86425         * lib/hash-pjw.c (hash_pjw): Likewise.
86426         Switch to method described by Bruno Haible.
86427         Include <limits.h>, for CHAR_BIT.
86428         (SIZE_BITS): New macro.
86429
86430 2003-10-23  Paul Eggert  <eggert@twinsun.com>
86431
86432         * m4/getline.m4 (AM_FUNC_GETLINE):
86433         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
86434         hosts.  Problem reported by Derek Robert Price in
86435         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
86436         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
86437         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
86438
86439 2003-10-21  Paul Eggert  <eggert@twinsun.com>
86440
86441         * lib/getndelim2.c (getndelim2): When size calculation overflows,
86442         ceiling the allocation at NMAX bytes rather than silently
86443         discarding input bytes before NMAX is reached.  This makes
86444         a difference only if NMAX exceeds SIZE_MAX / 2.
86445
86446         * lib/obstack.c: Merge from glibc.
86447         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
86448         Add libc_hidden_def (_obstack_newchunk).
86449         (_obstack_free) [! defined _LIBC]: Remove.
86450         [defined _LIBC]: Make a strong alias from obstack_free, rather than
86451         a clone of the function body.
86452         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
86453         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
86454
86455         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
86456         glibc.
86457         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
86458         arg to memcpy.
86459
86460         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
86461         (obstack_ptr_grow_fast, obstack_int_grow_fast):
86462         Don't use lvalue casts, as GCC plans to remove support for them
86463         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
86464         was also present in the non-GCC version, indicating that this
86465         code had always been buggy and had never been widely used.
86466         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
86467         Use the fast variant of each macro, rather than copying the
86468         definiens of the fast variant; that way, we'll be more likely to
86469         catch future bugs in the fast variants.
86470
86471 2003-10-20  Bruno Haible  <bruno@clisp.org>
86472
86473         * modules/wait-process: New file.
86474         * MODULES.html.sh (func_all_modules): Add wait-process.
86475
86476 2003-10-20  Bruno Haible  <bruno@clisp.org>
86477
86478         * m4/wait-process.m4: New file.
86479
86480 2003-10-20  Bruno Haible  <bruno@clisp.org>
86481
86482         * lib/wait-process.h: New file, from GNU gettext.
86483         * lib/wait-process.c: New file, from GNU gettext.
86484
86485 2003-10-19  Jim Meyering  <jim@meyering.net>
86486
86487         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
86488         HPUX 10.20.
86489
86490 2003-10-18  Karl Berry  <karl@gnu.org>
86491
86492         * config/config.guess: update from config.
86493
86494 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86495
86496         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
86497         (getgroups): First arg is int, not size_t.
86498         Don't let 'free' mangle errno.
86499
86500 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86501
86502         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
86503
86504 2003-10-16  Karl Berry  <karl@gnu.org>
86505
86506         * config/config.{guess,sub}: update from config.
86507
86508 2003-10-16  Jim Meyering  <jim@meyering.net>
86509
86510         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
86511         memcpy.
86512
86513 2003-10-15  Paul Eggert  <eggert@twinsun.com>
86514
86515         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
86516         (SIZE_MAX): Remove.
86517         (new_exclude, add_exclude_file): Initial size no longer needs to
86518         be a power of 2.
86519         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
86520         our own address arithmetic overflow checking.
86521
86522         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
86523         (fnmatch): Do not alloca more than 2000 wide characters;
86524         instead, use malloc for large buffers.
86525         Check for address arithmetic overflow, and return -1
86526         with errno set to ENOMEM in that case.
86527         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
86528         (NEW_PATTERN): Do not alloca more than 8000 bytes;
86529         instead, return -1.  Check for address arithmetic overflow.
86530
86531 2003-10-14  Paul Eggert  <eggert@twinsun.com>
86532
86533         Handle invalid suffixes and overflow independently, so that
86534         callers can treat them independently as needed.  Fix some bugs in
86535         suffix handling, e.g., "100k@" was not diagnosed as an invalid
86536         suffix for a human-readable blocksize.  The major caller-visible
86537         change is the addition of a new
86538         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
86539         that both overflow and suffix chars were found.
86540
86541         * lib/human.c (humblock): Don't check separately for invalid suffix
86542         char; that is xstrtoumax's job (now that its bug is fixed).
86543         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
86544         INTMAX_MAX]: New macros.
86545         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
86546         TYPE_MAXIMUM): New macros.
86547         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
86548         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
86549         if overflow occurs, as it's what __strtol does and it's more useful
86550         in practice.
86551         (__xstrtol): If __strtol reports some error other than ERANGE,
86552         reflect it to the caller as LONGINT_INVALID.  If it reports
86553         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
86554         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
86555         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
86556         value.
86557         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
86558         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
86559         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
86560         [defined UINTMAX_MAX]: New macros.
86561
86562 2003-10-14  Bruno Haible  <bruno@clisp.org>
86563
86564         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
86565
86566 2003-10-14  Bruno Haible  <bruno@clisp.org>
86567
86568         * m4/sig_atomic_t: New file, from GNU gettext.
86569         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
86570
86571 2003-10-14  Bruno Haible  <bruno@clisp.org>
86572
86573         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
86574         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
86575         Also use volatile where needed.
86576
86577 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86578
86579         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
86580         Change maintainer from Bruno Haible to 'all'.
86581
86582 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86583
86584         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
86585
86586 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86587
86588         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
86589         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
86590         and define in terms of the other primitives.
86591         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
86592         (SIZE_MAX): Define if not already defined.
86593         (array_size_overflow): New function.
86594         (xalloc_die): Abort instead of exiting if 'error' returns.
86595         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
86596         (xmalloc, xrealloc): Use them.
86597         (xcalloc): Check for address arithmetic overflow.
86598         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
86599         a bit faster than strcpy.
86600
86601 2003-10-10  Simon Josefsson  <jas@extundo.com>
86602
86603         * modules/argp (Depends-on): Add restrict and strcase.
86604
86605 2003-10-10  Simon Josefsson  <jas@extundo.com>
86606
86607         * m4/argp.m4: Add AC_C_INLINE.
86608
86609 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86610
86611         Merge getpass from libc, plus a few fixes.
86612
86613         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
86614         Include <stdbool.h>.
86615         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
86616         __fsetlocking to empty.
86617         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
86618         do include <bits/libc-lock.h>.
86619         Do not include <fcntl.h>; not needed.
86620         [_LIBC]: Include <wchar.h>.
86621         (NOTCANCEL_MODE): New macro.
86622         (flockfile, funlockfile) [_LIBC]: New macros.
86623         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
86624         [!_LIBC]: New macros.
86625         (call_fclose): New function.
86626         (getpass): Use it.  Save tty stream separately; this simplifies the
86627         code and makes it more reliable if stdin happens to equal stdout.
86628         Invoke __fsetlocking on tty.
86629         Handle thread cancellation if needed.
86630         Namespace cleanup (use __tcgetattr, __getline).
86631         Use bool for Booleans.
86632         [USE_IN_LIBIO]: Handle wide streams.
86633         [!_LIBC]: Unconditionally do the fseek, since we don't know what
86634         stream might go where.
86635
86636         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
86637         doesn't have to include <stdio.h> before us.
86638         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
86639         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
86640         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
86641         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
86642         if not declared, so that we can use getpass.c code from libc without
86643         rewriting it.
86644         (flockfile, ftrylockfile, funlockfile): New macros.
86645
86646 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86647
86648         * modules/getpass: Depend on stdbool.
86649
86650 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86651
86652         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
86653
86654 2003-10-07  Karl Berry  <karl@gnu.org>
86655
86656         * config/config.{guess,sub}: update from config.
86657
86658 2003-10-06  Jim Meyering  <jim@meyering.net>
86659             Bruno Haible  <bruno@clisp.org>
86660
86661         This lets translators provide better translations for the
86662         "Written by ..." part of --version output.
86663         * lib/version-etc.h: Include stdarg.h.
86664         (version_etc_copyright): Declare as readonly.
86665         (version_etc): Make this function variadic with a NULL-terminated list
86666         of author name strings.
86667         (version_etc_va): New declaration.
86668         * lib/version-etc.c: Include stdarg.h, stdlib.h.
86669         (version_etc_copyright): Declare as readonly.
86670         (version_etc_va): New function. Provide a different translatable string
86671         for each possible number of authors < 10. Abbreviate when there are 10
86672         authors or more.
86673         (version_etc): Make this function variadic. Call version_etc_va.
86674         Suggestion from Gary V. Vaughan.
86675
86676         * lib/long-options.h (parse_long_options): Change prototype: the
86677         authors string is moved to the end and becomes variadic.
86678         * lib/long-options.c: Include stdarg.h.
86679         (parse_long_options): Make this function variadic, too.
86680         Call version_etc_va, not version_etc.
86681
86682 2003-10-06  Bruno Haible  <bruno@clisp.org>
86683
86684         * modules/version-etc-2: Remove file.
86685         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
86686
86687 2003-10-06  Bruno Haible  <bruno@clisp.org>
86688
86689         * modules/fatal-signal: New file.
86690         * MODULES.html.sh (func_all_modules): Add fatal-signal.
86691
86692 2003-10-06  Bruno Haible  <bruno@clisp.org>
86693
86694         * m4/fatal-signal.m4: New file.
86695         * m4/signalblocking.m4: New file, from GNU gettext.
86696
86697 2003-10-06  Bruno Haible  <bruno@clisp.org>
86698
86699         * lib/version-etc-2.h: Remove file.
86700         * lib/version-etc-2.c: Remove file.
86701
86702 2003-10-06  Bruno Haible  <bruno@clisp.org>
86703
86704         * lib/fatal-signal.h: New file, from GNU gettext.
86705         * lib/fatal-signal.c: New file, from GNU gettext.
86706
86707 2003-10-05  Paul Eggert  <eggert@twinsun.com>
86708
86709         * README: Rework advice for preventing empty .o files.
86710         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
86711         not <sys/types.h>.
86712
86713 2003-10-04  Karl Berry  <karl@gnu.org>
86714
86715         * lib/argp*: update from libc.
86716
86717 2003-10-04  Karl Berry  <karl@gnu.org>
86718
86719         * config/config.{guess,sub}: update from config.
86720
86721 2003-10-02  Bruno Haible  <bruno@clisp.org>
86722
86723         * modules/lchown (Include): Add lchown.h.
86724         * modules/time_r (Include): Use "..." syntax.
86725         * modules/xgetdomainname (Include): Add xgetdomainname.h.
86726
86727 2003-10-01  Simon Josefsson  <jas@extundo.com>
86728
86729         * MODULES.html.sh (func_all_modules): Move gethostname from section
86730         'based on' to section 'lacking' POSIX:2001.
86731
86732 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
86733
86734         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
86735         to output mode on the same stream.
86736
86737 2003-09-29  Paul Eggert  <eggert@twinsun.com>
86738
86739         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
86740         Fix arg typo in previous patch.
86741
86742 2003-09-28  Jim Meyering  <jim@meyering.net>
86743
86744         * lib/error.c: Correct cpp indentation.
86745
86746 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86747
86748         * modules/free: New file.
86749
86750 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86751
86752         * m4/free.m4: New file.
86753
86754 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86755
86756         * lib/minmax.h (MIN, MAX)
86757         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
86758         Omit the special code that used __typeof__, since we worry that
86759         it could be more trouble than it's worth.  See:
86760         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
86761         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
86762
86763         * lib/free.c: New file.
86764
86765 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
86766
86767         Trivial fixes to Makefile.am parts of module listings.
86768         * modules/strstr: Append strstr.h to lib_SOURCES.
86769         * modules/strcase: Likewise, for strcase.h.
86770
86771 2003-09-27  Karl Berry  <karl@gnu.org>
86772
86773         * config/mkinstalldirs: update from automake.
86774
86775 2003-09-26  Paul Eggert  <eggert@twinsun.com>
86776
86777         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
86778         (error_tail): Do not loop, reallocating temporary buffer, since
86779         the output cannot contain more wide characters than the input
86780         contains bytes, the size must be big enough already.  This avoids
86781         one potential size overflow calculation.  Check for size overflow
86782         when calculating temporary buffer size.  Free temporary buffer
86783         when done, if it was allocated with malloc; this plugs a memory
86784         leak.  Remove casts from void * to pointers, that are no longer
86785         needed now that we're assuming C89 or better.
86786
86787         Merge error changes from glibc.
86788
86789         * lib/error.c, error.h: Update copyright notice header to match glibc.
86790         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
86791         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
86792         Disable cancellation while printing error.
86793         * lib/error.h: Prepend __ to parameter names.
86794
86795 2003-09-26  Jim Meyering  <jim@meyering.net>
86796
86797         * lib/error.c (error_tail): Move some declarations
86798         into inner scope where the local variables are used.
86799
86800 2003-09-26  Bruno Haible  <bruno@clisp.org>
86801
86802         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
86803         stpncpy().
86804         Don't define stpncpy through config.h; it's now done through stpncpy.h.
86805
86806 2003-09-26  Bruno Haible  <bruno@clisp.org>
86807
86808         * lib/stpncpy.h (gnu_stpncpy): New declaration.
86809         (stpncpy): Define as alias for gnu_stpncpy.
86810         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
86811
86812 2003-09-25  Simon Josefsson  <jas@extundo.com>
86813
86814         * lib/xgetdomainname.h: New file.
86815         * lib/xgetdomainname.c: New file.
86816
86817 2003-09-25  Simon Josefsson  <jas@extundo.com>
86818             Bruno Haible  <bruno@clisp.org>
86819
86820         * modules/getdomainname: New file.
86821         * modules/xgetdomainname: New file.
86822         * MODULES.html.sh (func_all_modules): Add getdomainname,
86823         xgetdomainname.
86824
86825 2003-09-25  Simon Josefsson  <jas@extundo.com>
86826             Bruno Haible  <bruno@clisp.org>
86827
86828         * m4/getdomainname.m4: New file.
86829
86830 2003-09-25  Simon Josefsson  <jas@extundo.com>
86831             Bruno Haible  <bruno@clisp.org>
86832
86833         * lib/getdomainname.h: New file.
86834         * lib/getdomainname.c: New file.
86835
86836 2003-09-25  Karl Berry  <karl@gnu.org>
86837
86838         * lib/argp-fmtstream.c, argp-help.c: update from libc.
86839
86840 2003-09-25  Karl Berry  <karl@gnu.org>
86841
86842         * config/install-sh: update from automake.
86843
86844 2003-09-25  Bruno Haible  <bruno@clisp.org>
86845
86846         * modules/version-etc-2: New file, from modules/version-etc with
86847         modifications.
86848         * MODULES.html.sh (func_all_modules): Add version-etc-2.
86849
86850 2003-09-25  Bruno Haible  <bruno@clisp.org>
86851
86852         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
86853         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
86854
86855 2003-09-24  Simon Josefsson  <jas@extundo.com>
86856
86857         * modules/xgethostname: Add xgethostname.h.
86858
86859 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86860
86861         * lib/linebuffer.c (freebuffer): Don't free the argument, just
86862         the buffer associated with the argument.  Bug reported by
86863         Simon Josefsson.
86864
86865 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86866
86867         * README: Document assumptions that 'int' is at least 32 bits
86868         wide, that integer arithmetic is 2's complement without overflow,
86869         that there are no holes in integer values, that adding sizes of
86870         two nonoverlapping objects can't overflow, and that all-bits-zero
86871         yields scalar zero.  Fix spelling and capitalization typos.
86872
86873 2003-09-19  Karl Berry  <karl@gnu.org>
86874
86875         * lib/argp.h: update from libc.
86876
86877 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86878
86879         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
86880         to avoid spurious warnings like "AC_RUN_IFELSE was called before
86881         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
86882
86883 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86884
86885         * gnulib-tool: Use "test -h", not "test -L", for portability
86886         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
86887         (tags_regexp): Remove, since \| doesn't conform to POSIX.
86888         (sed_extract_prog): Issue s commands one-by-one, rather than
86889         using \| in one s command.
86890
86891 2003-09-16  Paul Eggert  <eggert@twinsun.com>
86892
86893         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
86894         input error, instead of returning NULL the next time we are called
86895         (and therefore losing track of errno).
86896
86897 2003-09-16  Bruno Haible  <bruno@clisp.org>
86898
86899         * gnulib-tool (func_create_testdir): Warn about duplicated
86900         dependencies.
86901
86902 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86903
86904         * modules/argmatch, modules/fatal, modules/obstack,
86905         modules/xalloc, modules/xgethostname: Sort dependencies by
86906         importance, not alphabetically.
86907
86908 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86909
86910         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
86911         fails, so that the caller gets the proper errno.
86912
86913         * lib/readutmp.c (read_utmp): Likewise.
86914         Check for fstat error.  Close stream and free storage
86915         when failing.
86916
86917 2003-09-14  Karl Berry  <karl@gnu.org>
86918
86919         * config/srclist.txt (strdup.c): disable for c89 changes.
86920
86921 2003-09-14  Jim Meyering  <jim@meyering.net>
86922
86923         * lib/getloadavg.c: Correct cpp indentation.
86924         * lib/strdup.c: Likewise.
86925         * lib/vasnprintf.c: Likewise.
86926
86927 2003-09-14  Bruno Haible  <bruno@clisp.org>
86928
86929         * modules/fwriteerror: New file.
86930         * MODULES.html.sh (func_all_modules): Add fwriteerror.
86931
86932 2003-09-14  Bruno Haible  <bruno@clisp.org>
86933
86934         * lib/fwriteerror.h: New file.
86935         * lib/fwriteerror.c: New file.
86936
86937 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86938
86939         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
86940         modules/xgethostname, modules/xalloc: Depend on exit.
86941
86942 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86943
86944         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
86945
86946         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
86947         and AC_MINIX, too, so that their extensions are available.
86948
86949         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
86950         This macro has been superseded by gl_BACKUPFILE.
86951
86952         More patches to assume C89 or better.
86953
86954         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
86955
86956         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
86957         unconditionally.
86958         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
86959         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
86960         Include <string.h>, <stdlib.h> unconditionally.
86961         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
86962         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
86963         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
86964         headers or for string.h.
86965         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
86966         or strtoul.
86967
86968         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
86969         headers.
86970         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
86971         * m4/userspec.m4 (gl_USERSPEC): Likewise.
86972         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
86973         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
86974         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
86975         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
86976         memcpy, memset.
86977         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
86978         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
86979         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
86980         strtol.
86981         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
86982         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
86983         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
86984         strtoul.
86985
86986 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86987
86988         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
86989         * lib/obstack.c [!defined _LIBC]: Likewise.
86990         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
86991         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
86992         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
86993
86994         More changes to assume C89 or better.
86995
86996         * lib/error.c (error_tail): Assume vprintf.
86997
86998         * lib/argmatch.c (getenv): Remove decl.
86999         * lib/progreloc.c (get_full_program_name): Define via prototype.
87000         * lib/setenv.c (clearenv): Likewise.
87001         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
87002         needed.
87003         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
87004         (malloc, memcpy): Remove decls.
87005         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
87006         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
87007         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87008         (memcpy): Remove macro.
87009         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
87010         (__P): Remove.  All uses removed.
87011         (PTR): Remove.  All uses changed to void *.
87012         (CHAR_BIT, NULL): Remove.
87013         (spaces, zeros, memset_space, memset_zero)
87014         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
87015         Remove.
87016         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
87017         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
87018         Define with prototype.
87019         Remove now-unnecessary prototype decl.
87020         (extra_args_spec): Assume ANSI C.  All uses changed.
87021         (extra_args_spec_iso): Remove.
87022         (my_strftime, emacs_strftimeu): Define via prototype.
87023         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
87024         unconditionally.
87025         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
87026         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
87027         (strtoul, strtol): Remove decls.
87028         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
87029         LONG_MAX): Remove.
87030         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
87031         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
87032         (LOCALE_PARAM_PROTO): New macro.
87033         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
87034         (INTERNAL (strtol), strtol): Define with a prototype.
87035         (PARAMS): Remove.  All uses removed.
87036         * lib/tempname.c: Include <string.h> unconditionally.
87037         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
87038         * lib/xgethostname.c (main): Define with a prototype.
87039         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
87040         Include <stdlib.h> unconditionally.
87041         (calloc, malloc, realloc, free): Remove decls.
87042         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
87043         Include <stdlib.h> unconditionally.  Sort include file names.
87044         (strtod): Remove.
87045         (xstrtod): Define with a prototype.
87046         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
87047         (strtol, strtoul): Remove decls.
87048
87049 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87050
87051         More patches to assume C89 or better.
87052         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
87053         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
87054         string.h, memchr, STDC_HEADERS.
87055
87056 2003-09-11  Paul Eggert  <eggert@twinsun.com>
87057
87058         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
87059         Include <stdlib.h>, <string.h> unconditionally.
87060         Remove now-unnecessary cast to char *.
87061         * lib/strnlen.c: Include <string.h> unconditionally.
87062         * lib/yesno.c (yesno): Define with a prototype.
87063
87064 2003-09-11  Bruno Haible  <bruno@clisp.org>
87065
87066         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
87067
87068 2003-09-10  Jim Meyering  <jim@meyering.net>
87069
87070         * lib/error.c: Correct indentation of cpp directives.
87071
87072 2003-09-10  Bruno Haible  <bruno@clisp.org>
87073
87074         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
87075         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
87076         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
87077         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
87078         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
87079         <stdlib.h> and <string.h> checks.
87080         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
87081         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
87082
87083 2003-09-10  Bruno Haible  <bruno@clisp.org>
87084
87085         * lib/strcspn.c: Include <string.h> unconditionally.
87086         * lib/strpbrk.c: Include <string.h> unconditionally.
87087         * lib/strstr.c: Include <string.h> unconditionally.
87088         * lib/unicodeio.c: Include <string.h> unconditionally.
87089         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
87090         * lib/unsetenv.c: Likewise.
87091         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
87092         * lib/yesno.c: Include <stdlib.h> unconditionally.
87093         (rpmatch): Add prototype.
87094
87095 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87096
87097         More patches to assume C89 or better.
87098         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
87099         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
87100         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
87101         or for string.h.
87102         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
87103         stdlib.h.
87104         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
87105         C headers.
87106         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
87107         string.h.
87108         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
87109         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
87110         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
87111         or for string.h.
87112         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
87113         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
87114         C headers.
87115         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
87116         memcpy.
87117         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
87118         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
87119         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
87120         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
87121         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
87122         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
87123         string.h, free.
87124         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
87125         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
87126         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
87127         C headers, or for string.h.
87128         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
87129         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
87130         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
87131         headers, memory.h, stdlib.h, string.h, strings.h.
87132         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
87133         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
87134         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
87135         strchr.
87136         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
87137         headers, memory.h, string.h.
87138         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
87139         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
87140         free.
87141         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
87142         headers.
87143         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
87144         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
87145         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
87146         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
87147         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
87148
87149 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87150
87151         More K&R removal.
87152
87153         * lib/acosl.c (main): Use a prototype.
87154         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
87155         tanl.c: Likewise.
87156
87157         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
87158
87159         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
87160         (getopt, etopt_long, getopt_long_only, _getopt_internal)
87161         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
87162         with a prototype.
87163         * lib/getopt.c (const): Remove macro.
87164         Include <string.h> unconditionally.
87165         (my_index): Remove; all uses changed to strchr.
87166         (strlen): Remove decl.
87167         (exchange): Remove forward decl; no longer needed.
87168         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
87169         Define with prototype.
87170         * lib/getopt1.c (const): Remove macro.
87171         (getopt_long, getopt_long_only, main): Define with prototype.
87172
87173         * lib/getugroups.c: Include <string.h> unconditionally.
87174
87175         * lib/getusershell.c: Include <stdlib.h> unconditionally.
87176         (getusershell, setusershell, endusershell, readname, main):
87177         Define with prototypes.
87178
87179         * lib/group-member.c: Include group-member.h first.
87180         Include <stdlib.h> unconditionally.
87181
87182         * lib/hard-locale.c: Include hard-locale.h first.
87183         Include <stdlib.h>, <string.h> unconditionally.
87184
87185         * lib/hash.c (free, malloc): Remove decls.
87186         Include <stdlib.h> unconditionally.
87187
87188         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
87189         (getenv): Do not declare.
87190
87191         * lib/idcache.c: Include <string.h> unconditionally.
87192
87193         * lib/long-options.c: Include long-options.h first, to test interface.
87194         Include <stdlib.h> unconditionally.
87195
87196         * lib/makepath.c: Include makepath.h first, to test interface.
87197         Include <stdlib.h> and <string.h> unconditionally.
87198
87199         * lib/linebuffer.c: Include <stdlib.h>.
87200         (free): Remove decl.
87201
87202         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
87203         stddef.h. rpl_malloc returns void *, not char *.
87204         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
87205         prototype.
87206
87207         * lib/md5.h: Include <limits.h> unconditionally.
87208         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
87209         (__P): Remove; all uses removed.
87210         * lib/md5.c: Include "md5.h" first.
87211         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
87212         md5_buffer, md5_process_bytes, md5_process_block):
87213         Define with prototypes.
87214         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
87215         * lib/sha.c: Include "sha.h" first.
87216         Include <stdlib.h>, <string.h> unconditionally.
87217
87218         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
87219         * lib/memcmp.c (__ptr_t): Likewise.
87220         * lib/memrchr.c (__ptr_t): Likewise.
87221         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
87222         Include <string.h> unconditionally.
87223         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
87224         * lib/memchr.c: Include <stdlib.h> unconditionally.
87225         * lib/memchr.c (LONG_MAX): Remove.
87226         * lib/memrchr.c (LONG_MAX): Likewise.
87227         * lib/memchr.c (__memchr): Define via a prototype.
87228         * lib/memrchr.c (__memrchr): Likewise.
87229         * lib/memcmp.c (__P): Remove, and remove all uses.
87230         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
87231         Remove forward decls; no longer needed.
87232         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
87233         Use types required by C89 in prototype.
87234
87235         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
87236         * lib/savedir.c: Likewise.
87237         * lib/mkdir.c (free): Remove decl.
87238         * lib/rmdir.c (rmdir): Define with a prototype.
87239         * lib/savedir.c: Include savedir.h first, to test interface.
87240
87241         * lib/mktime.c (STDC_HEADERS): Remove.
87242         Include <stdlib.h>, <string.h> unconditionally.
87243
87244         * lib/modechange.c: Include <stdlib.h> unconditionally.
87245         (malloc): Remove decl.
87246
87247         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
87248         (free): Remove decl.
87249
87250         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
87251         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
87252         (This type really should be intptr_t, but that's a C99ism.)
87253         (_obstack_memcpy): Remove: all uses changed to memcpy.
87254         Include <string.h> unconditionally.
87255         (struct obstack): Assume __STDC__ for types of members
87256         chunkfun, freefun, extra_arg.
87257         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
87258         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
87259         obstack_begin, obstack_specify_allocation,
87260         obstack_specify_allocation_with_arg, obstack_chunkfun,
87261         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
87262         Remove unprototyped decls and the macros that use them.
87263         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
87264         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
87265         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87266         (defined __STDC__ && __STDC__)]:
87267         Remove nonprototyped code.
87268         Include <stdlib.h> unconditionally.
87269         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87270         _obstack_allocated_p, _obstack_free, obstack_free,
87271         _obstack_memory_used, print_and_abort):
87272         Define using prototypes.
87273         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87274         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87275         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87276         obstack_next_free, obstack_object_size, obstack_room) [0]:
87277         Remove unused, unprototyped code.
87278
87279         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87280
87281         * lib/physmem.c (physmem_total, physmem_available, main): Define
87282         with prototypes.
87283
87284         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
87285         (main): Define with a prototype.
87286
87287         * lib/posixver.c (getenv): Remove decl.
87288
87289         * lib/putenv.c (malloc): Returns void *, not char *.
87290         Include <string.h> unconditionally.
87291         (strchr, memcpy, NULL): Do not define.
87292
87293         * lib/readtokens.c: Include readtokens.h first, to test interface.
87294         Include <stdlib.h>, <string.h> unconditionally.
87295         (init_tokenbuffer): Define with a prototype.
87296
87297         * lib/regex.c (PARAMS): Remove.  All uses removed.
87298         All uses of _RE_ARGS removed, too.
87299         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87300         unconditionally.
87301         (bzero): Assume memset exists.
87302         (memcmp, memcpy, NULL): Remove.
87303         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
87304         char, or assignments to local vars of type signed char.
87305         (init_syntax_once, PREFIX(extract_number_and_incr),
87306         PREFIX(print_partial_compiled_pattern),
87307         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
87308         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
87309         PREFIX(regex_grow_registers), PREFIX(regex_compile),
87310         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
87311         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
87312         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
87313         wcs_compile_range, byte_compile_range, truncate_wchar,
87314         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
87315         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
87316         count_mbs_length, wcs_re_match_2_internal,
87317         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
87318         PREFIX(alt_match_null_string_p),
87319         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
87320         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
87321         regfree, PREFIX(extract_number)): Define with prototype.  Remove
87322         now-unnecessary declaration, if any.
87323         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
87324         regcomp, regexec):
87325         Remove now-unnecessary casts among pointer types.
87326         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
87327
87328         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
87329         (free): Remove decl.
87330
87331         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
87332
87333         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
87334         (free): Remove decl.
87335
87336         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
87337         * lib/xgetcwd.c: Likewise.
87338
87339         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
87340         (free): Remove decl.
87341
87342         * lib/strchrnul.c (strchrnul): Define with a prototype.
87343         Fix bug: c_in was not converted to char before searching.
87344
87345         The following changes are not K&R related:
87346
87347         * lib/group-member.h: Include <sys/types.h>, so that this file is
87348         self-contained.
87349         * lib/makepath.h: Likewise.
87350
87351         * lib/getusershell.c (readname, default_index, line_size, readname):
87352         Use size_t, not int, for sizes.
87353         (readname): If the size overflows, report an error instead of
87354         looping forever.
87355
87356 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87357
87358         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
87359         libc.
87360
87361 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87362
87363         * README: New section: portability guidelines.
87364
87365 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87366
87367         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
87368         C89 spec.
87369
87370 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87371
87372         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
87373
87374 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87375
87376         Assume C89 or better; remove K&R cruft.
87377         A few of these changes were first proposed by Derek Robert Price
87378         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
87379
87380         * lib/addext.c: Include <string.h> unconditionally.
87381         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
87382         Don't declare getenv or malloc.
87383
87384         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
87385         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
87386         (NULL): Remove.
87387         (find_stack_direction, alloca): Use prototypes.
87388
87389         * lib/atexit.c (atexit): Define using a prototype.
87390
87391         * lib/basename.c, dirname.c, stripslash.c:
87392         Include <string.h> unconditionally.
87393
87394         * lib/bcopy.c: Include <stddef.h>.
87395         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
87396
87397         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
87398
87399         * lib/error.h (error, error_at_line, error_print_progname)
87400         [! (defined (__STDC__) && __STDC__)]: Remove decls.
87401         * lib/error.c: Include error.h first, to check interface.
87402         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87403         (VA_START): Remove; all uses changeed to va_start.
87404         (exit, strerror): Remove decls.
87405         (error_print_progname): Prototype uncondionally.
87406         Don't include <errno.h>; no longer needed.
87407         (private_strerror): Remove.
87408         (error_tail): Always define.
87409         (error, error_at_line): Assume C89 or better; always use prototypes.
87410         * lib/fatal.c: Include "fatal.h" first, to test interface.
87411         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87412         (VA_START): Remove; all uses changed to va_start.
87413         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
87414         this case.
87415         (exit): Remove decl.
87416         (fatal): Prototype unconditionally.  Assume va_start works.
87417         Abort at end, to pacify gcc.
87418
87419         * lib/euidaccess.c (main): Define with a prototype.
87420
87421         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
87422
87423         * lib/exitfail.c: Include <stdlib.h> unconditionally.
87424
87425         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
87426         prototypes.
87427         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
87428         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
87429         (getenv): Remove decl.
87430         (fnmatch): Define using a prototype.
87431         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
87432         (FCT): Define using a prototype.
87433
87434         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
87435
87436         * lib/gethostname.c: Include <stddef.h>.
87437         (gethostname): Define with prototype.  Length is size_t, not int.
87438
87439 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87440
87441         Assume C89 or better; remove K&R cruft.
87442         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
87443         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
87444         string.h, getenv, malloc.
87445         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
87446         headers.
87447         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
87448         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
87449         do not check for strerror.
87450         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
87451         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
87452         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
87453         do not check for doprnt or vprintf.
87454         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
87455         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
87456
87457 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87458
87459         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
87460         getversion.c should have been removed then, but was accidentally
87461         preserved.
87462
87463         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
87464         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
87465
87466 2003-09-08  Karl Berry  <karl@gnu.org>
87467
87468         * config/config.sub, config.guess, srclistvars.sh: update from savannah
87469                 config, forget about prep.
87470
87471         * config/depcomp, missing: update from automake.
87472
87473 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87474
87475         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
87476         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87477
87478 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87479
87480         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
87481         copy_tm_result.  Bug reported by Simon Josefsson in
87482         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87483
87484 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87485
87486         * m4/time_r.m4: New file.
87487         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
87488         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
87489         is. Check for timegm declaration.
87490         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
87491         Do not check for gmtime_r.
87492         Replace mktime if __mktime_internal does not exist and if mktime
87493         hasn't been replaced already.
87494
87495 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87496
87497         * lib/time_r.c, lib/time_r.h: New files.
87498
87499         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
87500         __localtime_r.
87501         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
87502         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
87503
87504         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
87505         __gmtime_r.
87506         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
87507         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
87508         Include <time_r.h>.
87509
87510         * lib/timegm.c: Switch to glibc implementation, with the following
87511         changes:
87512         [defined HAVE_CONFIG_H]: Include <config.h>.
87513         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
87514         (__mktime_internal) [!defined _LIBC]: New decl.
87515         (__gmtime_r) [!defined _LIBC]: New macro and function.
87516         (timegm): Use a prototype, since gnulib assumes C89.
87517         Do not bother declaring tmp to be const, as it's not really usefu.
87518         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
87519         (timegm): Declare only if HAVE_DECL_TIMEGM.
87520
87521 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87522
87523         * MODULES.html.sh (func_all_modules): Add time_r.
87524         * modules/time_r: New file.
87525         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
87526         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
87527
87528 2003-09-03  Paul Eggert  <eggert@twinsun.com>
87529
87530         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
87531         Bug reported by Lute Kamstra in
87532         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
87533
87534         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
87535         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
87536         course with correspondingly smaller numbers for tomorrow and
87537         yesterday.  From Tadayoshi Funaba.  Originally installed into
87538         sh-utils on 1999-08-07, but the patch got lost (I guess during the
87539         coreutils merge?).
87540
87541 2003-08-31  Simon Josefsson  <jas@extundo.com>
87542
87543         * modules/timegm: New file.
87544         * MODULES.html.sh (func_all_modules): Add timegm.
87545
87546 2003-08-31  Simon Josefsson  <jas@extundo.com>
87547
87548         * m4/timegm.m4: New file.
87549
87550 2003-08-31  Simon Josefsson  <jas@extundo.com>
87551
87552         * lib/timegm.h: New file.
87553         * lib/timegm.c: New file.  Based on
87554         wget-1.8.2/src/http.c:mktime_from_utc.
87555
87556 2003-08-31  Karl Berry  <karl@gnu.org>
87557
87558         * lib/argp.h: update from libc.
87559
87560 2003-08-28  Bruno Haible  <bruno@clisp.org>
87561
87562         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
87563         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
87564         followed by '#define fnmatch fnmatch_posix' gives an error.
87565
87566 2003-08-28  Bruno Haible  <bruno@clisp.org>
87567
87568         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
87569         warning on QNX, which defines O_BINARY to 000000.
87570
87571 2003-08-27  Jim Meyering  <jim@meyering.net>
87572
87573         * m4/mkstemp.m4: Require that the system mkstemp be able to create
87574         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
87575         would fail after 32.  Reported by Danny Levinson.  Details here:
87576         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
87577
87578 2003-08-24  Bruno Haible  <bruno@clisp.org>
87579
87580         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
87581         MSVC7 <stdio.h> is included later.
87582
87583 2003-08-22  Simon Josefsson  <jas@extundo.com>
87584
87585         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
87586
87587 2003-08-20  Karl Berry  <karl@gnu.org>
87588
87589         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
87590
87591 2003-08-20  Bruno Haible  <bruno@clisp.org>
87592
87593         * modules/progname: New file.
87594         * MODULES.html.sh (func_all_modules): Add progname.
87595
87596 2003-08-20  Bruno Haible  <bruno@clisp.org>
87597
87598         * lib/progname.h: New file, from GNU gettext.
87599         * lib/progname.c: New file, from GNU gettext.
87600         * lib/progreloc.c: New file, from GNU gettext.
87601
87602 2003-08-19  Jim Meyering  <jim@meyering.net>
87603
87604         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
87605         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
87606
87607 2003-08-19  Bruno Haible  <bruno@clisp.org>
87608
87609         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
87610         more.
87611
87612 2003-08-19  Bruno Haible  <bruno@clisp.org>
87613
87614         * lib/xstrdup.c: Assume <string.h> exists.
87615
87616 2003-08-18  Paul Eggert  <eggert@twinsun.com>
87617
87618         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
87619         in makefile rules.
87620
87621 2003-08-18  Jim Meyering  <jim@meyering.net>
87622
87623         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
87624         * m4/lib-ld.m4: Likewise.
87625
87626 2003-08-18  Jim Meyering  <jim@meyering.net>
87627
87628         * lib/setenv.h: Indent nested cpp directive.
87629         * lib/vasnprintf.c: Remove trailing blanks.
87630
87631 2003-08-17  Simon Josefsson  <jas@extundo.com>
87632
87633         * modules/xstrndup: New file.
87634         * MODULES.html.sh (func_all_modules): Add xstrndup.
87635
87636 2003-08-17  Simon Josefsson  <jas@extundo.com>
87637
87638         * modules/argp: Fix autoconf macro name. Add more dependencies.
87639
87640 2003-08-17  Simon Josefsson  <jas@extundo.com>
87641
87642         * m4/xstrndup.m4: New file.
87643
87644 2003-08-17  Simon Josefsson  <jas@extundo.com>
87645
87646         * m4/argp.m4: New file.
87647
87648 2003-08-17  Simon Josefsson  <jas@extundo.com>
87649             Bruno Haible  <bruno@clisp.org>
87650
87651         * lib/xstrndup.h: New file.
87652         * lib/xstrndup.c: New file.
87653
87654 2003-08-17  Bruno Haible  <bruno@clisp.org>
87655
87656         * modules/strndup (Files, Include): Add lib/strndup.h.
87657
87658 2003-08-17  Bruno Haible  <bruno@clisp.org>
87659
87660         * modules/euidaccess (Files): Add lib/euidaccess.h.
87661
87662 2003-08-17  Bruno Haible  <bruno@clisp.org>
87663
87664         * lib/strndup.h: New file.
87665
87666 2003-08-17  Bruno Haible  <bruno@clisp.org>
87667
87668         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
87669         like AC_GNU_SOURCE.
87670         * modules/extensions (configure.ac): Comment out the invocation of
87671         gl_USE_SYSTEM_EXTENSIONS.
87672
87673 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87674
87675         Merges from coreutils, etc.
87676         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
87677         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
87678         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
87679         fixing a typo.
87680         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
87681         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
87682
87683 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87684
87685         Document merge from coreutils.
87686         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
87687         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
87688         * modules/utime: Add m4/utimes-null.m4.
87689
87690 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87691
87692         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
87693         space, undoing this 2003-08-12 change:
87694         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87695
87696 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87697
87698         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
87699         strtoul.c from libc, undoing this 2003-08-12 change:
87700         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87701
87702 2003-08-16  Jim Meyering  <jim@meyering.net>
87703
87704         Merges from coreutils.
87705         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
87706         prefix.  Adjust cache variables similarly.  Create 500 rather than
87707         just 300 files, to exercise bug on Darwin6.5, too.
87708         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
87709         $missing_dir.
87710         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
87711         AM_SYS_POSIX_TERMIOS.
87712         Reported by mkc@mathdogs.com.
87713         Also change use of $am_cv_sys_posix_termios
87714         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
87715         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
87716         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
87717         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
87718         in /proc/mounts until it finds one with matching device number.  This
87719         is unnecessary when the FILE argument *is* a mount point.  No stat call
87720         is necessary in that case.  So, disable the statvfs-testing code on
87721         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
87722         as RedHat bug# 84846.
87723         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87724         to 1MB, so as not to render systems with no stack size limit (e.g.,
87725         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87726         Include <unistd.h>.  On some systems,
87727         it is required for the definition of _SC_PAGESIZE.
87728
87729 2003-08-16  Jim Meyering  <jim@meyering.net>
87730
87731         Merge from coreutils.
87732         * lib/xstrtoimax.c: #else #if -> #elif.
87733         * lib/xstrtoumax.c: Likewise.
87734
87735 2003-08-16  Jim Meyering  <jim@meyering.net>
87736
87737         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
87738         * m4/utimes.m4: Removed.
87739         * m4/utimes-null.m4: Renamed from utimes.m4.
87740
87741         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87742         to 1MB, so as not to render systems with no stack size limit (e.g.,
87743         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87744         Include <unistd.h>.  On some systems,
87745         it is required for the definition of _SC_PAGESIZE.
87746
87747 2003-08-16  Jim Meyering  <jim@meyering.net>
87748         and Paul Eggert  <eggert@cs.ucla.edu>
87749
87750         Merges from coreutils, etc.
87751
87752         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
87753         using the latest version from cvs.  This avoids problems with #line
87754         directives using a vendor (Sun) compiler.
87755         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
87756         Don't set GETGROUPS_LIB here; now it's
87757         done via getgroups.m4's wrapper function.
87758         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
87759         rather than just in sh-util/configure.in, so that the
87760         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
87761         same.
87762         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
87763         AC_FUNC_GETLOADAVG where to find getloadavg.c.
87764         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
87765         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
87766         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
87767         Remove code that is now done by the newly-required macros.
87768         Append $(EXEEXT) to DF_PROG.
87769         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
87770         Do not invoke or require the following here,
87771         since prereq.m4 or some gnulib .m4 now does this for us:
87772         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
87773         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
87774         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
87775         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
87776         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
87777         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
87778         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
87779         AC_FUNC_OBSTACK.
87780         Do not replace the following functions, as this is now the job
87781         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
87782         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
87783         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
87784         atexit getpass, strdup, getpagesize.
87785         Replace 'raise'.
87786         Do not check for the following functions, as this is now the job
87787         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
87788         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
87789         setregid.
87790         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
87791         Check for sys/sysctl.h.
87792         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
87793         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
87794         of checking for ssize_t ourselves.
87795
87796         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
87797         Require every macro that gnulib/modules/* suggests for us.
87798         (jm_PREREQ_ADDEXT): New macro.
87799         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
87800         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
87801
87802         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
87803         (gl_PHYSMEM): Use it.
87804         Also check for `table' function.
87805         Check for new headers and functions.
87806         Add check for sys/sysmp.h.
87807         With suggestions from Kaveh Ghazi.
87808         Ignore headers that are present but cannot be compiled.  This
87809         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
87810         C 5.4.
87811
87812 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87813
87814         Document merge from coreutils.
87815         * modules/userspec: Depend on posixver.
87816         * modules/strftime: Depend on tzset.
87817
87818 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87819
87820         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
87821         rather than tab, after '#' in shell-script copyright notices.
87822         Suggested by Bruno Haible.
87823
87824 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87825
87826         * config/srclist-update: Use three spaces, rather than tab, after '#'
87827         in shell-script copyright notices.  Suggested by Bruno Haible.
87828         Remove unnecessary parenthesization in regular expression.
87829
87830 2003-08-15  Jim Meyering  <jim@meyering.net>
87831
87832         Merge from coreutils.
87833         * lib/xgethostname.c: Include <stdlib.h>.
87834         (xghostname): Don't exit for anything other than memory-related
87835         failure; just return NULL.
87836         * lib/userspec.c: Include "posixver.h".
87837         (parse_user_spec): Accept `.' as a separator only
87838         in pre-POSIX-200112 mode.
87839         * lib/strtoimax.c: Use #elif rather than #else #if.
87840         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
87841         Remove function, now that we can rely on a working tzset function.
87842         [!_LIBC]: Ensure that the required autoconf test has been run.
87843         [!defined _NL_CURRENT && HAVE_STRFTIME]:
87844         Use underlying_strftime for %r.
87845         * lib/sha.c: Merge in some clean-up and optimization changes from
87846         glibc.
87847         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
87848         Ensure that it is a multiple of 64.
87849         Rearrange loop exit tests so as to avoid performing an
87850         additional fread after encountering an error or EOF.
87851         * lib/realloc.c: Update copyright date.
87852
87853 2003-08-15  Jim Meyering  <jim@meyering.net>
87854         and Paul Eggert  <eggert@twinsun.com>
87855
87856         Merge from coreutils.
87857         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
87858         member but strut utmpx does not.  Needed for AIX 4.3.3.
87859         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
87860
87861 2003-08-15  Jim Meyering  <jim@meyering.net>
87862         and Paul Eggert  <eggert@cs.ucla.edu>
87863
87864         Merges from coreutils, etc.
87865         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
87866         Require gl_FUNC_TZSET_CLOBBER.
87867         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
87868         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
87869         members.
87870
87871 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87872
87873         Help the merge from coreutils.
87874         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
87875         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
87876         * m4/tzset.m4: Use it too.
87877
87878 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87879
87880         * modules/tzset: New file.
87881
87882 2003-08-14  Jim Meyering  <jim@meyering.net>
87883
87884         Merges from coreutils.
87885         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
87886         variable names, rather than @FNMATCH_H@.
87887         * modules/alloca: Likewise for $(ALLOCA_H).
87888
87889         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
87890         the three copies of the literal target, `fnmatch.h'.
87891         * modules/alloca (alloca.h): Likewise.
87892
87893 2003-08-14  Jim Meyering  <jim@meyering.net>
87894
87895         Merge from coreutils.
87896         * m4/tzset.m4: New file.
87897         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
87898         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
87899         otherwise, AIX 5.1 systems would end up using the latter.
87900         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
87901         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
87902         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
87903         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
87904
87905 2003-08-14  Jim Meyering  <jim@meyering.net>
87906
87907         Merge from coreutils.
87908         * lib/obstack.h: Whitespace changes.
87909         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
87910         and xcalloc return values.
87911         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
87912         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
87913         hang on OSF/1 5.1 for DIR on both local and remote file systems.
87914         Reported by (and fix confirmed by) Nelson H. F. Beebe.
87915         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
87916         error from mntctl.
87917         Use mntctl's return value to drive the entry-processing loop, since
87918         we can't rely on the value of the vmt_length member in the last
87919         entry.  On some systems doing so could result in exhausting
87920         virtual memory.  Based in part on a patch from Mike Jetzer.
87921
87922 2003-08-14  Jim Meyering  <jim@meyering.net>
87923         and Paul Eggert  <eggert@twinsun.com>
87924
87925         Merges from coreutils, plus other fixes.
87926         * lib/physmem.c: Merge in portability changes from gcc/libiberty
87927         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
87928         for credits and details.  Thanks to Kaveh Ghazi for helping
87929         to keep these files in sync.
87930         (ARRAY_SIZE): Define it.
87931         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
87932         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
87933         (memcasecmp): Don't assume size_t fits in unsigned int.
87934         Remove casts and duplicate code.
87935         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
87936         (memcpy): Remove definition.
87937         Merge in some clean-up and optimization changes from glibc.
87938         [BLOCKSIZE]: Move definition to top of file.
87939         Ensure that it is a multiple of 64.
87940         Rearrange loop exit tests so as to avoid performing an
87941         additional fread after encountering an error or EOF.
87942         * lib/md5.h (md5_uintptr): Define.
87943         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
87944         return to the initial working directory.  Preserve errno
87945         for caller.
87946         * lib/idcache.c: Include "xalloc.h".
87947         (xmalloc, xrealloc): Remove decls.
87948         (getuser): Remove casts no longer required in C89.
87949         * lib/human.c: Include stdio.h, for sprintf.
87950         * lib/group-member.c: Include "xalloc.h".
87951         (xmalloc, xrealloc): Remove decls.
87952         (get_group_info): Remove casts no longer required in C89.
87953         * lib/getusershell.c (readname): Remove casts no longer required in
87954         C89.
87955         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
87956         * lib/getline.c: Whitespace fix, from coreutils.
87957
87958 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87959
87960         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
87961         Check for isascii.
87962
87963         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87964         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87965         Undo previous (whitespace-only) change.
87966
87967 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87968
87969         * lib/exclude.c: Include <ctype.h>
87970         (IN_CTYPE_DOMAIN): New macro.
87971         (is_space): New fn.
87972         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
87973         and empty lines.
87974
87975         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87976         Undo previous (whitespace-only) change.
87977
87978 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87979
87980         * config/srclist-update: Change update back to the old behavior,
87981         leaving whitespace alone.  Use one 'sed' command rather than a
87982         pipeline.
87983         (fixlicense): Now a variable, not a function.
87984         (remove_trailing_blanks): Remove.
87985         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
87986         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
87987         Undo previous (whitespace-only) change.
87988
87989 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87990
87991         Merge from coreutils.
87992         * modules/euidaccess: Add lib_SOURCES, include for new
87993         file euidaccess.h
87994
87995 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87996
87997         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87998         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87999         Normalize leading white space and remove trailing white space.
88000
88001         Merge from coreutils
88002         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
88003
88004         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
88005         0.12.1.  These files are now being upgraded automatically by
88006         ../config/srclist-update.
88007
88008 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88009
88010         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
88011         Normalize leading white space and remove trailing white space.
88012         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
88013         notice, as per ../config/srclist-update.
88014
88015         Merge from coreutils.
88016         * lib/euidaccess.h: New file.
88017         * lib/euidaccess.c: Include it.
88018         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
88019         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
88020         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
88021
88022 2003-08-12  Paul Eggert  <eggert@twinsun.com>
88023
88024         * config/srclist-update: Add copyright notice.
88025         (remove_id_lines, remove_trailing_blanks): New constants.
88026         (fixfile): Use them to normalize spacing a bit in copied files.
88027         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
88028         Normalize leading white space and remove trailing white space.
88029
88030         * config/texinfo.tex: Sync with texinfo.
88031
88032         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
88033         strtoul.c from libc, to merge coreutils whitespace changes.
88034
88035         * config/srclist.txt: Get the following m4 files from gettext:
88036         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
88037         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
88038         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
88039         wint_t.m4.
88040
88041 2003-08-12  Karl Berry  <karl@gnu.org>
88042
88043         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
88044         been made.
88045
88046 2003-08-11  Paul Eggert  <eggert@twinsun.com>
88047
88048         * modules/gnu-source, m4/gnu-source.m4:
88049         Remove; we're assuming Autoconf 2.54 or later now.
88050         Suggested by Bruno Haible.
88051         * MODULES.html.sh (func_all_modules): Remove gnu-source.
88052
88053 2003-08-11  Bruno Haible  <bruno@clisp.org>
88054
88055         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
88056
88057 2003-08-11  Bruno Haible  <bruno@clisp.org>
88058
88059         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
88060         (vasnprintf): Use it instead of wcslen.
88061
88062 2003-08-11  Bruno Haible  <bruno@clisp.org>
88063
88064         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
88065         value to ensure that _Bool promotes to int. Use #define for _Bool when
88066         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
88067
88068 2003-08-10  Karl Berry  <karl@gnu.org>
88069
88070         * lib/regex.h: update from libc (whitespace fix).
88071
88072 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88073
88074         Merge some files from coreutils.  These changes were
88075         originally made by Jim Meyering.
88076         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
88077         many older Unixes require this.
88078         * lib/alloca.c (alloca): Remove cast to argument of free;
88079         no longer needed in C89.
88080         * lib/alloca_.h, regex.h: Fix white space to match
88081         what GNU indent does.
88082
88083 2003-08-09  Paul Eggert  <eggert@twinsun.com>
88084
88085         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
88086         apparently Emacs's Unicode mode got confused before my 2003-08-05
88087         checkin.
88088
88089 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88090
88091         * m4/extensions.m4: New file.
88092         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
88093         Require gl_USE_SYSTEM_EXTENSIONS.
88094         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
88095         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
88096
88097 2003-08-08  Paul Eggert  <eggert@twinsun.com>
88098
88099         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
88100         * modules/extensions, modules/gnu-source: New files.
88101         * modules/timespec, modules/unlocked-io: Depend on extensions.
88102
88103 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88104
88105         * modules/restrict: New file.
88106         * MODULES.html.sh (func_all_modules): Add restrict.
88107         * modules/regex: Depend on restrict.
88108
88109 2003-08-07  Paul Eggert  <eggert@twinsun.com>
88110
88111         * m4/restrict.m4: New file.
88112         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
88113
88114 2003-08-07  Bruno Haible  <bruno@clisp.org>
88115
88116         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
88117         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
88118
88119 2003-08-07  Bruno Haible  <bruno@clisp.org>
88120
88121         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
88122         makes the module 'getndelim2' compatible with the module 'getline'.
88123
88124 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88125
88126         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
88127         byte with "\201" to avoid glitches when editing that source file
88128         with multi-gnome-terminal.
88129
88130 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88131
88132         * lib/bumpalloc.h: Remove.
88133
88134 2003-08-05  Paul Eggert  <eggert@twinsun.com>
88135
88136         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
88137         * modules/bumpalloc: Remove.
88138
88139 2003-08-04  Paul Eggert  <eggert@twinsun.com>
88140
88141         * lib/getloadavg.c: Change copyright notice and spacing to conform to
88142         GNU coding style.
88143
88144         Merge from coreutils.
88145         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
88146         1. From glibc.
88147         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
88148         from Karl Berry, implemented by Jim Meyering.
88149         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
88150         from Dmitry V. Levin.
88151         Remove anachronistic cast of xrealloc.
88152         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
88153         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
88154         type. Otherwise, it wouldn't compile with at least /bin/cc on
88155         ymp-cray-unicos9.0.2.X.
88156         Combine two mostly-identical uses of alloca into one.
88157         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
88158
88159 2003-08-04  Dave Love  <d.love@dl.ac.uk>
88160
88161         [From Emacs.]
88162
88163         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
88164         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
88165         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
88166         obsolete NLIST_NAME_UNION.
88167         [__GNU__]: Undef BSD and FSCALE.
88168         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
88169
88170 2003-08-03  Paul Eggert  <eggert@twinsun.com>
88171
88172         * lib/stdbool_.h (_Bool): Make it signed char, instead of
88173         an enum type, so that it's guaranteed to promote to int.  See:
88174         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
88175
88176 2003-08-03  Karl Berry  <karl@gnu.org>
88177
88178         * config/depcomp: update from automake.
88179
88180 2003-07-31  Paul Eggert  <eggert@twinsun.com>
88181
88182         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
88183         (strerror): Don't assume that a printable int fits in 14 bytes.
88184
88185 2003-07-31  Bruno Haible  <bruno@clisp.org>
88186
88187         * modules/getpass-gnu: New file.
88188         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
88189
88190 2003-07-31  Bruno Haible  <bruno@clisp.org>
88191
88192         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
88193
88194 2003-07-24  Karl Berry  <karl@gnu.org>
88195
88196         * config/missing: update from automake.
88197
88198 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
88199             Bruno Haible  <bruno@clisp.org>
88200
88201         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
88202         * lib/getline.c (getline, getdelim): Likewise.
88203         Remove _GNU_SOURCE define; now it's defined in config.h through
88204         m4/getline.m4.
88205
88206 2003-07-23  Karl Berry  <karl@gnu.org>
88207
88208         * config/config.sub: update from prep.
88209
88210 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88211
88212         * modules/xalloc (Depends-on): Add exitfail.
88213         * modules/xmemcoll: Likewise.
88214
88215 2003-07-22  Paul Eggert  <eggert@twinsun.com>
88216
88217         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
88218         over-parenthesization in macros.
88219
88220         Sync with coreutils.
88221
88222         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
88223         required by C99.
88224
88225         Use `exit_failure' for xalloc and xmemcoll instead of their own
88226         private exit-failure variables.
88227         * lib/xalloc.h (xalloc_exit_failure): Remove.
88228         * lib/xmalloc.c: Likewise.  Include exitfail.h.
88229         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
88230         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
88231         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
88232         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
88233
88234 2003-07-20  Jim Meyering  <jim@meyering.net>
88235
88236         * modules/closeout (Depends-on): Add exitfail.
88237         Suggestion from Bruno Haible.
88238
88239 2003-07-19  Karl Berry  <karl@gnu.org>
88240
88241         * config/config.sub: update from prep.
88242
88243 2003-07-18  Paul Eggert  <eggert@twinsun.com>
88244
88245         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
88246         Remove.
88247         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
88248         to test that it can stand by itself.  Include "exitfail.h".
88249         Clients should set exit_failure instead.
88250         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
88251
88252 2003-07-18  Bruno Haible  <bruno@clisp.org>
88253
88254         * modules/getndelim2: New file.
88255         * modules/getline: Share files with module getndelim2.
88256         * modules/getnline: Depend on getndelim2 instead of sharing files with
88257         it. Add getnline.c to lib_SOURCES.
88258         * MODULES.html.sh (func_all_modules): Add getndelim2.
88259
88260 2003-07-18  Bruno Haible  <bruno@clisp.org>
88261
88262         * m4/getndelim2.m4: New file.
88263         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
88264         invoke gl_PREREQ_GETNDELIM2.
88265         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88266         gl_PREREQ_GETNDELIM2.
88267         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88268         gl_GETNDELIM2.
88269
88270 2003-07-18  Bruno Haible  <bruno@clisp.org>
88271
88272         * lib/getndelim2.h: New file.
88273         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88274         getndelim2.h.
88275         (getndelim2): Make non-static. Change return type to ssize_t.
88276         * lib/getline.h: Change argument names.
88277         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88278         * lib/getnline.c: Include getndelim2.h.
88279
88280 2003-07-18  Andreas Schwab  <schwab@suse.de>
88281
88282         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88283
88284 2003-07-17  Karl Berry  <karl@gnu.org>
88285
88286         * config/config.sub: update from prep.
88287
88288 2003-07-17  Bruno Haible  <bruno@clisp.org>
88289
88290         * modules/getnline: New file.
88291         * modules/getline: Add lib/getndelim2.c to source file list.
88292         * MODULES.html.sh (func_all_modules): Add getnline.
88293
88294 2003-07-17  Bruno Haible  <bruno@clisp.org>
88295
88296         * m4/getnline.m4: New file.
88297
88298 2003-07-17  Bruno Haible  <bruno@clisp.org>
88299
88300         * m4/Makefile.am.in: Remove file.
88301         * m4/Makefile.am: Remove file.
88302         * m4/Makefile.in: Remove file.
88303
88304 2003-07-17  Bruno Haible  <bruno@clisp.org>
88305
88306         * lib/getnline.h: New file.
88307         * lib/getnline.c: New file.
88308         * lib/getndelim2.c: New file, extracted from getline.c.
88309         (getndelim2): Renamed from getdelim2, with added nmax argument.
88310         * lib/getline.c: Include getndelim2.c.
88311         (getdelim2): Moved out to getndelim2.c.
88312         (getline, getdelim): Update.
88313
88314 2003-07-17  Bruno Haible  <bruno@clisp.org>
88315
88316         * lib/Makefile.am: Remove file.
88317         * lib/Makefile.in: Remove file.
88318
88319 2003-07-17  Bruno Haible  <bruno@clisp.org>
88320
88321         * configure.in: Remove file.
88322         * Makefile.in: Remove file.
88323
88324 2003-07-17  Bruno Haible  <bruno@clisp.org>
88325
88326         * MODULES.html.sh: Put the </BODY> right before </HTML>.
88327
88328 2003-07-16  Karl Berry  <karl@gnu.org>
88329
88330         * config/srclist-update: was running fixlicense twice, which caused
88331                 texinfo.tex to be nullified for some reason.  Simplify,
88332                 $gplsrc is no longer needed as far as I can see?
88333
88334 2003-07-16  Jim Meyering  <jim@meyering.net>
88335
88336         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
88337
88338 2003-07-15  Paul Eggert  <eggert@twinsun.com>
88339
88340         * config/srclist.txt: Get the following files from gettext-runtime/intl
88341         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
88342         ref-del.sin.  From Bruno Haible.
88343         * config/srclist-update (fixfile): Change grep pattern again, since the
88344         previous fix didn't work (there was another trailing $).  Use
88345         '[$]' to escape the $s.
88346
88347 2003-07-15  Karl Berry  <karl@gnu.org>
88348
88349         * lib/vasnprintf.c: update from gettext.
88350
88351 2003-07-15  Karl Berry  <karl@gnu.org>
88352
88353         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
88354         gets expanded when surrounded by '$'.
88355
88356 2003-07-15  Jim Meyering  <jim@meyering.net>
88357
88358         * modules/save-cwd: Don't depend on error.  From Derek Price.
88359
88360 2003-07-15  Jim Meyering  <jim@meyering.net>
88361
88362         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
88363
88364 2003-07-14  Simon Josefsson  <jas@extundo.com>
88365
88366         * modules/mempcpy: New file.
88367         * MODULES.html.sh (func_all_modules): Add mempcpy.
88368
88369 2003-07-14  Simon Josefsson  <jas@extundo.com>
88370
88371         * m4/mempcpy.m4: New file.
88372
88373 2003-07-14  Simon Josefsson  <jas@extundo.com>
88374
88375         * lib/mempcpy.h: New file.
88376         * lib/mempcpy.c: New file.
88377
88378 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88379
88380         * modules/getdate, modules/posixtm: Depend on mktime.
88381
88382 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88383
88384         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
88385         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
88386         unicodeio.c, unicodeio.h, unlocked-io.h:
88387         Switch from LGPL to GPL.
88388
88389 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88390
88391         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
88392         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
88393         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
88394         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
88395         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
88396         updated automatically by ../config/srclist-update.  This changes
88397         their license from LPGL to GPL.
88398
88399 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88400
88401         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
88402         assumed to refer to the root of the most recent stable gettext version.
88403         * config/srclistvars.sh: Add defaults for eggert.
88404         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
88405         Match "This program" as well as "The program".  This is needed
88406         for gettext.
88407
88408 2003-07-14  Jim Meyering  <jim@meyering.net>
88409
88410         Don't emit diagnostics.  Let callers do that.
88411         * lib/save-cwd.c: Don't include "error.h".
88412         (save_cwd): Don't call error.  Ensure that errno is valid
88413         when returning nonzero.
88414
88415         * lib/save-cwd.h (restore_cwd): Update prototype.
88416         * lib/save-cwd.c (restore_cwd): Remove two parameters.
88417         Simplify.  Don't call error upon failure.  Let callers do that.
88418         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
88419         when auditing is enabled.  But don't bother updating the #if.
88420
88421 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
88422
88423         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
88424         it breaks C++ compilation.
88425         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
88426
88427 2003-07-10  Simon Josefsson  <jas@extundo.com>
88428
88429         * modules/strchrnul (Makefile.am): Add strchrnul.h.
88430
88431 2003-07-10  Jim Meyering  <jim@meyering.net>
88432
88433         * m4/clock_time.m4: Remove trailing blank.
88434         * m4/intmax_t.m4: Likewise.
88435
88436 2003-07-10  Jim Meyering  <jim@meyering.net>
88437
88438         * lib/vasnprintf.c: Remove trailing blanks.
88439         Make cpp indentation consistent.
88440
88441 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88442
88443         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
88444         posixver.c, strftime.c, strnlen.c, strverscmp.c:
88445         Switch from LGPL to GPL.
88446
88447 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88448
88449         * config/srclist.txt: Sort sublists.  Add
88450         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
88451         that differ from gnulib for one reason or another; we'd like this list
88452         to be smaller but for now let's document what we have.
88453
88454 2003-07-08  Paul Eggert  <eggert@twinsun.com>
88455
88456         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
88457         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
88458         and sweeter "eval x=$x".
88459         * config/srclist.txt: Get lib/argp* from glibc.
88460
88461 2003-07-07  Paul Eggert  <eggert@twinsun.com>
88462
88463         * lib/mktime.c: Fix some boundary cases and remove need for floating
88464         point.
88465
88466         Issue a compile-time diagnostic if time_t is floating point, or if
88467         two's complement arithmetic is not in effect, or if arithmetic
88468         right shift does not propagate the sign.  These assumptions were
88469         all in the original code but they weren't checked.
88470
88471         (TIME_T_MIDPOINT, verify): New macros.
88472         (__isleap): Remove; it has integer overflow problems.
88473         (leapyear): New function, without those problems.
88474         (ydhms_tm_diff): Remove; splitting into two parts.
88475         (ydhms_diff): New function, containing the arithmetic part of
88476         the old ydhms_tm_diff function.  Issue a compile-time
88477         diagnostic if we are not using C99 integer division.
88478         Avoid casts when possible.
88479         (guess_time_tm): New function, containing the checking part of
88480         the old ydhms_tm_diff function.  Return the new value, rather than
88481         the difference between it and the old.  Accept a new argument T
88482         so that *T specifies the old value.  Check for overflow in the result.
88483
88484         (__mktime_internal): Use a time_t offset, not a long int offset.
88485         This undoes the 2003-06-04 change, which is no longer needed now
88486         that we have better overflow checking.
88487         (localtime_offset): Likewise.
88488
88489         (__mktime_internal): Avoid harmful overflow on hosts where time_t
88490         and long are 64-bit but int is only 32-bit.
88491         (ydhms_diff): Use long int to store year1 and yday1.
88492         Issue a compile-time diagnostic if long int is not wide enough.
88493
88494         (__mktime_internal): Use long int to store adjusted year and yday.
88495         Use plain C rather than preprocessor commands, if that doesn't
88496         affect efficiency.
88497         Check for overflow (and try to repair) after each probe
88498         rather than checking only at the very end.  This avoids some bugs
88499         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
88500         does not equal GMT offset at maximum time).
88501         Use integer to check for overflow rather than floating point; this
88502         is more portable to non-IEEE hosts, and is a tad faster.
88503         When we detect that we are oscillating between two values,
88504         don't check whether tm_isdst has the requested value, since
88505         we already know the answer.  When tm_isdst has the wrong value,
88506         use a different heuristic to find the right one, based on the
88507         extreme values actually observed in practice in tz2003a,
88508         rather than the (overly optimistic) "previous 3 calendar quarters".
88509
88510         (not_equal_tm, print_tm, check_result): Use "const T" rather than
88511         "T const" to accommodate glibc style.
88512         (check_result): Use less-confusing report format.  "long" -> "long int.
88513         (main): Likewise.
88514         Don't loop if the iteration overflows time_t.
88515         Allow a negative step in the iteration.
88516
88517 2003-07-06  Karl Berry  <karl@gnu.org>
88518
88519         * config/depcomp: update from automake.
88520         * config/config.sub: update from prep.
88521
88522 2003-07-03  Karl Berry  <karl@gnu.org>
88523
88524         * config/config.guess: update from prep.
88525
88526 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88527
88528         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
88529         xreadlink.c now includes it unconditionally.
88530
88531 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88532
88533         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
88534         having it depend on HAVE_SYS_TYPES_H.
88535
88536 2003-07-01  Bruno Haible  <bruno@clisp.org>
88537
88538         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
88539         <sys/types.h> should be sufficient.
88540         Reported by Paul Eggert.
88541
88542 2003-06-26  Karl Berry  <karl@gnu.org>
88543
88544         * config/depcomp: update from automake.
88545
88546 2003-06-26  Bruno Haible  <bruno@clisp.org>
88547
88548         * modules/human: Depend on module stdbool.
88549
88550 2003-06-25  Bruno Haible  <bruno@clisp.org>
88551
88552         * modules/readlink: New file.
88553         * modules/xreadlink: Depend on it.
88554         * MODULES.html.sh (func_all_modules): Add readlink.
88555
88556 2003-06-25  Bruno Haible  <bruno@clisp.org>
88557
88558         * m4/readlink.m4: New file.
88559
88560 2003-06-25  Bruno Haible  <bruno@clisp.org>
88561
88562         * lib/readlink.c: New file.
88563
88564 2003-06-22  Karl Berry  <karl@gnu.org>
88565
88566         * config/srclist.txt: update mkinstalldirs from automake.
88567         * config/mkinstalldirs: update.
88568
88569 2003-06-22  Bruno Haible  <bruno@clisp.org>
88570
88571         Portability to mingw32.
88572         * m4/ssize_t.m4: New file, from GNU gettext.
88573         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
88574         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
88575
88576 2003-06-22  Bruno Haible  <bruno@clisp.org>
88577
88578         * modules/safe-read: Add m4/ssize_t.m4.
88579         * modules/xreadlink: Add m4/ssize_t.m4.
88580
88581 2003-06-20  Bruno Haible  <bruno@clisp.org>
88582
88583         Assume C89, so PARAMS isn't needed.
88584         * lib/unicodeio.h (PARAMS): Remove.
88585         * lib/unicodeio.c: Don't use PARAMS.
88586
88587 2003-06-18  Karl Berry  <karl@gnu.org>
88588
88589         * config/config.{guess,sub}: update from prep.
88590
88591 2003-06-18  Jim Meyering  <jim@meyering.net>
88592
88593         Merge changes from coreutils.
88594         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
88595         Remove explicit declarations of xmalloc and realloc.
88596         Include xalloc.h.
88597         (read_utmp): Remove anachronistic cast of xmalloc.
88598
88599 2003-06-17  Paul Eggert  <eggert@twinsun.com>
88600
88601         Assume C89, so PARAMS isn't needed.
88602         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
88603         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
88604         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
88605         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
88606         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
88607         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
88608         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
88609         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
88610         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
88611         lib/xstrtod.h, lib/xstrtol.h: Likewise.
88612         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
88613         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
88614         no longer needed. Anyway, config.h should always be included before any
88615         other file.
88616
88617 2003-06-11  Simon Josefsson  <jas@extundo.com>
88618
88619         * modules/sysexits: New file.
88620         * MODULES.html.sh (func_all_modules): Add sysexits.
88621
88622 2003-06-11  Simon Josefsson  <jas@extundo.com>
88623
88624         * lib/sysexit_.h: New file.
88625
88626 2003-06-11  Derek Price  <derek@ximbiot.com>
88627
88628         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
88629         necessary.
88630
88631 2003-06-11  Bruno Haible  <bruno@clisp.org>
88632
88633         * m4/sysexits.m4: New file.
88634
88635 2003-06-10  Simon Josefsson  <jas@extundo.com>
88636
88637         * lib/argp.h: New file, from glibc.
88638         * lib/argp-ba.c: New file, from glibc.
88639         * lib/argp-eexst.c: New file, from glibc.
88640         * lib/argp-fmtstream.c: New file, from glibc.
88641         * lib/argp-fmtstream.h: New file, from glibc.
88642         * lib/argp-fs-xinl.c: New file, from glibc.
88643         * lib/argp-help.c: New file, from glibc.
88644         * lib/argp-namefrob.h: New file, from glibc.
88645         * lib/argp-parse.c: New file, from glibc.
88646         * lib/argp-pv.c: New file, from glibc.
88647         * lib/argp-pvh.c: New file, from glibc.
88648         * lib/argp-xinl.c: New file, from glibc.
88649
88650 2003-06-10  Simon Josefsson  <jas@extundo.com>
88651
88652         * modules/strchrnul: New file.
88653
88654 2003-06-10  Simon Josefsson  <jas@extundo.com>
88655
88656         * modules/argp: New file.
88657
88658 2003-06-10  Simon Josefsson  <jas@extundo.com>
88659
88660         * m4/strchrnul.m4: New file.
88661
88662 2003-06-10  Simon Josefsson  <jas@extundo.com>
88663
88664         * lib/strchrnul.h: New file.
88665         * lib/strchrnul.c: New file.
88666
88667 2003-06-10  Bruno Haible  <bruno@clisp.org>
88668
88669         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
88670
88671 2003-06-07  Karl Berry  <karl@gnu.org>
88672
88673         * config/config.{guess,sub}: update from prep.
88674
88675 2003-06-07  Jim Meyering  <jim@meyering.net>
88676
88677         * modules/strtod: Use $(...) notation, not @...@ for
88678         AC_REPLACE'd variables.
88679         * modules/localcharset: Likewise.
88680
88681 2003-06-07  Jim Meyering  <jim@meyering.net>
88682
88683         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
88684         in place of my name in the copyright comment.
88685         Remove definition and uses of __P.
88686
88687         From coreutils.
88688         * lib/stat.c: Don't declare xmalloc explicitly.
88689         Instead, include "xalloc.h".
88690         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
88691         xrealloc, and xcalloc return values.
88692         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
88693         Improve comment.
88694         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
88695
88696 2003-06-07  Bruno Haible  <bruno@clisp.org>
88697
88698         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
88699         avoid AC_CONFIG_LINKS.
88700         * modules/fnmatch (Makefile.am): Use explicit creation rule for
88701         fnmatch.h, to avoid AC_CONFIG_LINKS.
88702         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
88703
88704 2003-06-07  Bruno Haible  <bruno@clisp.org>
88705
88706         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
88707         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
88708         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88709         directory.
88710         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
88711         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88712         directory.
88713
88714 2003-06-06  Jim Meyering  <jim@meyering.net>
88715
88716         Merge from coreutils.
88717         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
88718         Consolidate declarations and initializations of *_base* locals.
88719
88720         Merge from coreutils.
88721         This avoids a core dump on systems without GNU putenv,
88722         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
88723         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
88724         (unsetenv): New static function, from GNU libc.
88725         (rpl_putenv): Use it.
88726
88727         * lib/modechange.c: Remove trailing blanks.
88728
88729         Merge from coreutils.
88730         * lib/fsusage.c: Remove declaration of statfs.
88731         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
88732
88733         * lib/posixtm.c: Include <stdbool.h> unconditionally.
88734
88735 2003-06-06  Jim Meyering  <jim@meyering.net>
88736
88737         * lib/stdbool_.h: Renamed from stdbool.h.in.
88738
88739 2003-06-06  Jim Meyering  <jim@meyering.net>
88740             Bruno Haible  <bruno@clisp.org>
88741
88742         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
88743         Adjust Makefile.am snippet not to redirect directly to target.
88744         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
88745
88746 2003-06-05  Paul Eggert  <eggert@twinsun.com>
88747
88748         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
88749         mismatch, look in future quarters as well as past.  This fixes a
88750         bug when processing fall-backwards gaps immediately after a long
88751         period of daylight-saving time.
88752
88753         * lib/mktime.c: Assume freestanding C89 or better.
88754         (HAVE_LIMITS_H): Remove.  Assume it's 1.
88755         (__P): Remove; not used.
88756         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
88757         (mktime, not_equal_tm, print_tm, check_result,
88758         main): Use prototypes.  Use const * where appropriate.
88759         (main): Fix typo in testing code that uncovered by above changes.
88760         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
88761
88762 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88763
88764         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
88765         locale.h, localeconv.  This merges changes from coreutils.
88766
88767         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
88768         It can be removed after the next Autoconf is released.
88769         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
88770         needed.
88771
88772 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88773
88774         * lib/mktime.c: Fix Debian bug 177940
88775         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
88776         (localtime_offset): Now long int, not time_t, because we want it
88777         to be guaranteed to be signed.  All uses changed.
88778         (__mktime_internal): If overflow would occur when adding offset,
88779         don't add it.
88780
88781         Merge 'human' changes from coreutils.  Rewrite to support
88782         locale-specific notations like thousands separators.
88783         * lib/human.c: Simplify authorship notice.
88784         Include human.h immediately after config.h.
88785         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
88786         <limits.h>: Do not include, since human.h does.
88787         (SIZE_MAX, UINTMAX_MAX): New macros.
88788         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
88789         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
88790         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
88791         (power_letter): Renamed from suffixes.
88792         (generate_suffix_backwards): Remove.
88793         (adjust_value): Now takes int style (because of human.h changes)
88794         and long double value (for greater precision on some platforms).
88795         (group_number): New function.
88796         (human_readable): Use it.  Use integer options, not enum.
88797         Put the options before the sizes in the arg list.
88798         Support all the new options.
88799         The old human_readable function has been removed;
88800         use inttostr.h instead.
88801         (human_readable, default_block_size, humblock):
88802         Use uintmax_t, not int, for block sizes.
88803         (human_readable_inexact, block_size_types): Remove.
88804         (block_size_opts): New constant.
88805         (human_options): Renamed from human_block_size, with new signature
88806         that allows block sizes up to UINTMAX_MAX.  All callers changed.
88807         * lib/human.h: Add copyright and authorship notice.
88808         Include <limits.h> and <stdbool.h> unconditionally.
88809         (PARAMS): Remove.  All uses removed.
88810         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
88811         (enum human_inexact_style): Remove tag; now a nameless enum.
88812         (human_floor, human_ceiling, human_round_to_even): Now have
88813         values 2, 0, 1 rather than -1, 1, 0.
88814         (human_group_digits, human_suppress_point_zero, human_autoscale,
88815         human_base_1024, human_SI, human_B): New constants.
88816         (human_readable_inexact, human_block_size): Remove.
88817         (human_readable): Size args are now uintmax_t, not int.
88818         (human_options): New decl.
88819
88820         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
88821         unnecessary now that we assume C89 or better.  This change
88822         imported from coreutils.
88823
88824         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88825         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
88826         in the 2003-05-30 sync from glibc.
88827
88828         .h files should stand alone, but we shouldn't include <sys/types.h>
88829         if we can get away with just <stddef.h>.
88830
88831         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
88832         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
88833         rather than <sys/types.h>, as we merely need size_t.
88834         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
88835         to get size_t.
88836         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
88837         Include <stdio.h>, to get FILE.
88838         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
88839         memcasecmp.h has included <stddef.h> and all we need is size_t.
88840         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
88841         our interface, instead of including <sys/types.h>
88842
88843 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88844
88845         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
88846         now, as glibc mktime is buggy on non-glibc systems.
88847
88848 2003-06-03  Karl Berry  <karl@gnu.org>
88849
88850         * config/config.sub: update from prep.
88851
88852 2003-06-02  Paul Eggert  <eggert@twinsun.com>
88853
88854         [from coreutils]
88855         Fix some minor time-related bugs with POSIX time arguments.
88856         Some valid time stamps were being rejected (notably -1, and
88857         time stamps before 1900 on 64-bit hosts).  And some invalid
88858         time stamps were being accepted, e.g. September 31.
88859
88860         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
88861         that we can return (time_t) -1 successfully.
88862         * lib/posixtm.c: Likewise.
88863         [HAVE_STDBOOL_H]: Include <stdbool.h>.
88864         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
88865         (t): Remove static var.
88866         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
88867         of static var.  All uses changed.
88868         (year): Do not reject years before 1900; they can occur with
88869         64-bit time_t.
88870         (posix_time_parse): Do not check for out-of-range components;
88871         that is now the caller's responsibility, since our checks were
88872         only approximations.
88873         (posixtime): Use mktime to check for out-of-range components,
88874         since it knows them exactly.
88875         If mktime returns (time_t) -1, check whether an error actually occurred
88876         by invoking localtime on -1.
88877         (main) [TEST_POSIXTIME]: Check for input data errors, and report
88878         posixtime failures better.
88879         Improve the test data (in comments only).
88880
88881 2003-06-02  Karl Berry  <karl@gnu.org>
88882
88883         * config/mkinstalldirs (version): new variable.
88884         (--version): new option.
88885         (usage): improve message.
88886
88887 2003-05-30  Karl Berry  <karl@gnu.org>
88888
88889         * lib/mktime.c: update from libc.
88890
88891 2003-05-30  Bruno Haible  <bruno@clisp.org>
88892
88893         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
88894         * config/config.rpath: Upgrade to gettext-0.12.1.
88895
88896 2003-05-30  Bruno Haible  <bruno@clisp.org>
88897
88898         * m4/gettext.m4: Upgrade to gettext-0.12.1.
88899         * m4/nls.m4: New file, from gettext-0.12.1.
88900         * m4/po.m4: New file, from gettext-0.12.1.
88901         * m4/progtest.m4: Upgrade to gettext-0.12.1.
88902
88903 2003-05-30  Bruno Haible  <bruno@clisp.org>
88904
88905         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
88906         * lib/localcharset.h: Likewise.
88907         * lib/localcharset.c: Likewise.
88908
88909 2003-05-29  Karl Berry  <karl@gnu.org>
88910
88911         * config/config.rpath: update from gettext.
88912
88913 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88914
88915         Assume the headers required for C89 freestanding compilers.
88916         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
88917         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
88918         * m4/human.m4 (gl_HUMAN): Likewise.
88919         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
88920         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
88921         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88922         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
88923         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88924         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
88925
88926 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88927
88928         Assume the headers required for C89 freestanding compilers.
88929         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
88930         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
88931         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
88932         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
88933         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
88934         define, since <limits.h> is guaranteed to do that.
88935         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
88936         * lib/exclude.c: Include <stdbool.h> unconditionally.
88937         * lib/tempname.c: Include <stddef.h> unconditionally.
88938         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
88939         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
88940         <stddef.h> does that.
88941         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
88942         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
88943         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
88944         needed.
88945         * lib/xstrtol.c: Likewise.
88946         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
88947         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
88948
88949         * lib/addext.c (addext): Use assignment rather than cast, to avoid
88950         warnings on some platforms.
88951
88952         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88953         arbitrarily.
88954
88955 2003-05-26  Jim Meyering  <jim@meyering.net>
88956
88957         Merge in a change from coreutils:
88958         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
88959         that is guaranteed to be `no'.  Use `no_such_member' to indicate
88960         that condition, rather than `-1' which is slightly misleading.
88961         Change the name of the cache variable to have the gl_ prefix.
88962         Prompted by a patch from Richard Dawe for DJGPP.
88963
88964 2003-05-24  Karl Berry  <karl@gnu.org>
88965
88966         * config/config.guess: update from prep.
88967
88968 2003-05-22  Karl Berry  <karl@gnu.org>
88969
88970         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
88971
88972 2003-05-20  Karl Berry  <karl@gnu.org>
88973
88974         * config/config.guess: update from prep.
88975
88976 2003-05-18  Karl Berry  <karl@gnu.org>
88977
88978         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
88979         might actually be set by the user.
88980
88981         * config/depcomp, install-sh, mdate-sh: update from automake.
88982
88983 2003-05-17  Bruno Haible  <bruno@clisp.org>
88984
88985         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
88986         invalid expansion for AC_EGREP_CPP.
88987         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
88988         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
88989         Suggested by Akim Demaille <akim@epita.fr> in
88990         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
88991
88992 2003-05-12  Jim Meyering  <jim@meyering.net>
88993
88994         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
88995         the space-padded-by-default conversion specifiers, %e, %k, %l.
88996
88997 2003-05-12  Bruno Haible  <bruno@clisp.org>
88998
88999         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
89000         the string is longer than 4 KB.
89001
89002 2003-05-11  Karl Berry  <karl@gnu.org>
89003
89004         * config/config.{guess,sub}: update from prep.
89005
89006 2003-05-09  Bruno Haible  <bruno@clisp.org>
89007
89008         * modules/error: Add m4/strerror_r.m4 to file list.
89009
89010 2003-05-03  Bruno Haible  <bruno@clisp.org>
89011
89012         Upgrade to Unicode-4.0.
89013         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
89014         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
89015         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
89016         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
89017         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
89018         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
89019         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
89020         Change width of U+E0100..U+E01EF from 1 to 0.
89021
89022 2003-04-25  Jim Meyering  <jim@meyering.net>
89023
89024         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
89025         of type size_t, not int.
89026
89027 2003-04-25  Bruno Haible  <bruno@clisp.org>
89028
89029         * lib/copy-file.c: Include <stddef.h>, for size_t.
89030
89031 2003-04-21  Paul Eggert  <eggert@twinsun.com>
89032
89033         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
89034         code which expansion is under static control.  Patch imported from
89035         Akim Demaille's patch to Bison; see
89036         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
89037
89038 2003-04-14  Bruno Haible  <bruno@clisp.org>
89039
89040         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
89041
89042 2003-04-11  Jim Meyering  <jim@meyering.net>
89043
89044         Merge changes from Coreutils.
89045
89046         2003-03-22  Jim Meyering  <jim@meyering.net>
89047
89048         * lib/strftime.c (widen): Cast alloca return value to proper type.
89049
89050         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
89051
89052         From GNU libc.
89053         * lib/strftime.c (my_strftime): Handle very large width
89054         specifications for numeric values correctly.  Improve checks for
89055         overflow.
89056
89057         2003-01-19  Jim Meyering  <jim@meyering.net>
89058
89059         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
89060         definitions.
89061         (nl_get_alt_digit) [! defined my_strftime]: Define.
89062         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
89063         _nl_get_alt_digit and _nl_get_walt_digit.
89064
89065         * lib/strftime.c (my_strftime): Merge in locale-related changes from
89066         libc. These changes have no effect outside of _LIBC.
89067
89068 2003-04-10  Bruno Haible  <bruno@clisp.org>
89069
89070         * modules/findprog: New file.
89071         * MODULES.html.sh (func_all_modules): Add it.
89072
89073 2003-04-10  Bruno Haible  <bruno@clisp.org>
89074
89075         * m4/findprog.m4: New file.
89076         * m4/eaccess.m4: New file.
89077
89078 2003-04-10  Bruno Haible  <bruno@clisp.org>
89079
89080         * lib/findprog.h: New file, from GNU gettext.
89081         * lib/findprog.c: New file, from GNU gettext.
89082
89083 2003-04-05  Jim Meyering  <jim@meyering.net>
89084
89085         Merge changes from Coreutils.
89086
89087         * lib/exclude.h (PARAMS): Remove definition and uses.
89088         * lib/exclude.c: Remove uses of `PARAMS'.
89089
89090         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
89091         Add test-cases for DOS filenames. Declare program_name.
89092         (main): Set up program_name.  Patch by Rich Dawe.
89093
89094         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
89095         error from mntctl.
89096         Use mntctl's return value to drive the entry-processing loop, since
89097         we can't rely on the value of the vmt_length member in the last
89098         entry.  On some systems doing so could result in exhausting
89099         virtual memory.  Based in part on a patch from Mike Jetzer.
89100
89101 2003-04-04  Bruno Haible  <bruno@clisp.org>
89102
89103         * modules/linebreak: New file.
89104         * MODULES.html.sh (func_all_modules): Add it.
89105
89106 2003-04-04  Bruno Haible  <bruno@clisp.org>
89107
89108         * m4/linebreak.m4: New file.
89109
89110 2003-04-04  Bruno Haible  <bruno@clisp.org>
89111
89112         * lib/linebreak.h: New file, from GNU gettext.
89113         * lib/linebreak.c: New file, from GNU gettext with slight
89114         modifications.
89115         * lib/lbrkprop.h: New file, from GNU gettext.
89116
89117 2003-04-03  Bruno Haible  <bruno@clisp.org>
89118
89119         * modules/utf8-ucs4: New file.
89120         * modules/utf16-ucs4: New file.
89121         * modules/ucs4-utf8: New file.
89122         * modules/ucs4-utf16: New file.
89123         * MODULES.html.sh (func_all_modules): Add them.
89124
89125 2003-04-03  Bruno Haible  <bruno@clisp.org>
89126
89127         * m4/utf-ucs4.m4: New file.
89128         * m4/ucs4-utf.m4: New file.
89129
89130 2003-04-03  Bruno Haible  <bruno@clisp.org>
89131
89132         * lib/utf8-ucs4.h: New file, from GNU gettext.
89133         * lib/utf16-ucs4.h: New file, from GNU gettext.
89134         * lib/ucs4-utf8.h: New file, from GNU gettext.
89135         * lib/ucs4-utf16.h: New file, from GNU gettext.
89136
89137 2003-04-02  Bruno Haible  <bruno@clisp.org>
89138
89139         * modules/binary-io: New file.
89140         * MODULES.html.sh (func_all_modules): Add it.
89141
89142 2003-04-02  Bruno Haible  <bruno@clisp.org>
89143
89144         * lib/binary-io.h: New file, from GNU gettext.
89145
89146 2003-04-01  Bruno Haible  <bruno@clisp.org>
89147
89148         * modules/pathname: New file.
89149         * MODULES.html.sh (func_all_modules): Add it.
89150
89151 2003-04-01  Bruno Haible  <bruno@clisp.org>
89152
89153         * lib/pathname.h: New file, from GNU gettext.
89154         * lib/concatpath.c: New file, from GNU gettext.
89155
89156 2003-03-30  Bruno Haible  <bruno@clisp.org>
89157
89158         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
89159
89160 2003-03-30  Bruno Haible  <bruno@clisp.org>
89161
89162         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
89163         function chown() doesn't exist.
89164
89165 2003-03-28  Bruno Haible  <bruno@clisp.org>
89166
89167         * modules/copy-file: New file.
89168         * MODULES.html.sh (func_all_modules): Add it.
89169
89170 2003-03-28  Bruno Haible  <bruno@clisp.org>
89171
89172         * m4/copy-file.m4: New file.
89173
89174 2003-03-28  Bruno Haible  <bruno@clisp.org>
89175
89176         * lib/copy-file.h: New file, from GNU gettext.
89177         * lib/copy-file.c: New file, from GNU gettext.
89178
89179 2003-03-18  Jim Meyering  <jim@meyering.net>
89180
89181         * lib/quote.c (quote_n): Fix typo in comment.
89182
89183 2003-03-18  Bruno Haible  <bruno@clisp.org>
89184
89185         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
89186         checking.
89187         * m4/onceonly_2_57.m4: Likewise.
89188
89189 2003-03-17  Bruno Haible  <bruno@clisp.org>
89190
89191         * m4/onceonly.m4: Require autoconf 2.54 or newer.
89192         (m4_quote): Remove macro.
89193         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
89194
89195 2003-03-14  Jim Meyering  <jim@meyering.net>
89196
89197         Merge changes from Coreutils.
89198         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
89199         to be const, in order to avoid warnings.
89200         (obstack_room): Likewise.
89201         (obstack_empty_p): Likewise.
89202
89203 2003-03-14  Bruno Haible  <bruno@clisp.org>
89204
89205         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
89206         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
89207
89208 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89209
89210         Merge changes from Bison.
89211         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
89212         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
89213         when compiling Bison 1.875's `bitset bset = obstack_alloc
89214         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
89215         * lib/hash.c: Include <stdbool.h> unconditionally.
89216
89217 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89218
89219         * m4/onceonly.m4 (m4_quote): New macro.
89220         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
89221         Quote AC_FOREACH variable-expansions properly.
89222
89223 2003-03-13  Paul Eggert  <eggert@twinsun.com>
89224
89225         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
89226
89227 2003-03-09  Paul Eggert  <eggert@twinsun.com>
89228
89229         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
89230         Reported by Bruce Becker; see:
89231         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
89232
89233 2003-03-03  Paul Eggert  <eggert@twinsun.com>
89234             Bruno Haible  <bruno@clisp.org>
89235
89236         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
89237         Reported by John Hughes, see
89238         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
89239
89240 2003-02-20  Bruno Haible  <bruno@clisp.org>
89241
89242         * MODULES.html.sh (func_all_modules): Add poll.
89243
89244 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89245
89246         * modules/poll: New file.
89247
89248 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89249
89250         * lib/poll_.h: New file.
89251         * lib/poll.c: New file.
89252
89253 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
89254
89255         * m4/poll.m4: New file.
89256
89257 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89258
89259         * modules/mathl: New file.
89260
89261 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89262
89263         * lib/mathl.h: New file.
89264         * lib/acosl.c: New file.
89265         * lib/asinl.c: New file.
89266         * lib/atanl.c: New file.
89267         * lib/ceill.c: New file.
89268         * lib/cosl.c: New file.
89269         * lib/expl.c: New file.
89270         * lib/floorl.c: New file.
89271         * lib/frexpl.c: New file.
89272         * lib/ldexpl.c: New file.
89273         * lib/logl.c: New file.
89274         * lib/sincosl.c: New file.
89275         * lib/sinl.c: New file.
89276         * lib/sqrtl.c: New file.
89277         * lib/tanl.c: New file.
89278         * lib/trigl.c: New file.
89279         * lib/trigl.h: New file.
89280
89281 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89282
89283         * m4/mathl.m4: New file.
89284
89285 2003-02-18  Bruno Haible  <bruno@clisp.org>
89286
89287         * MODULES.html.sh (func_all_modules): Add mathl.
89288
89289 2003-02-17  Bruno Haible  <bruno@clisp.org>
89290
89291         * modules/mkdtemp: New module.
89292         * MODULES.html.sh (func_all_modules): Add it.
89293
89294 2003-02-17  Bruno Haible  <bruno@clisp.org>
89295
89296         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
89297
89298 2003-02-17  Bruno Haible  <bruno@clisp.org>
89299
89300         * lib/mkdtemp.h: New file, from GNU gettext.
89301         * lib/mkdtemp.c: New file, from GNU gettext.
89302
89303 2003-02-02  Jim Meyering  <jim@meyering.net>
89304
89305         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
89306         e.g. glibc-2.2.93.
89307
89308 2003-01-31  Bruno Haible  <bruno@clisp.org>
89309
89310         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
89311         'rpl_rename'.
89312         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
89313         'rpl_strnlen'.
89314         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
89315         'rpl_strtod'.
89316         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
89317         'rpl_utime'.
89318
89319 2003-01-31  Bruno Haible  <bruno@clisp.org>
89320
89321         * lib/rename.c: #undef rename before defining rpl_rename.
89322         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
89323
89324 2003-01-30  Bruno Haible  <bruno@clisp.org>
89325
89326         * modules/vasnprintf, modules/vasprintf: New modules.
89327         * MODULES.html.sh (func_all_modules): Add them.
89328
89329 2003-01-30  Bruno Haible  <bruno@clisp.org>
89330
89331         * m4/signed.m4: New file, from GNU gettext.
89332         * m4/longdouble.m4: New file, from GNU gettext.
89333         * m4/wchar_t.m4: New file, from GNU gettext.
89334         * m4/wint_t.m4: New file, from GNU gettext.
89335         * m4/vasnprintf.m4: New file.
89336         * m4/vasprintf.m4: New file.
89337
89338 2003-01-30  Bruno Haible  <bruno@clisp.org>
89339
89340         * lib/printf-args.h: New file, from GNU gettext.
89341         * lib/printf-args.c: New file, from GNU gettext.
89342         * lib/printf-parse.h: New file, from GNU gettext.
89343         * lib/printf-parse.c: New file, from GNU gettext.
89344         * lib/vasnprintf.h: New file, from GNU gettext.
89345         * lib/vasnprintf.c: New file, from GNU gettext.
89346         * lib/asnprintf.c: New file, from GNU gettext.
89347         * lib/vasprintf.h: New file, from GNU gettext with modifications.
89348         * lib/vasprintf.c: New file, from GNU gettext.
89349         * lib/asprintf.c: New file, from GNU gettext.
89350
89351 2003-01-29  Bruno Haible  <bruno@clisp.org>
89352
89353         * modules/stpncpy: New module.
89354         * MODULES.html.sh (func_all_modules): Add it.
89355
89356 2003-01-29  Bruno Haible  <bruno@clisp.org>
89357
89358         * m4/stpncpy.m4: New file.
89359
89360 2003-01-29  Bruno Haible  <bruno@clisp.org>
89361
89362         * lib/stpncpy.h: New file, from GNU gettext with modifications.
89363         * lib/stpncpy.c: New file, from GNU gettext with modifications.
89364
89365 2003-01-28  Bruno Haible  <bruno@clisp.org>
89366
89367         * modules/c-ctype: New module.
89368         * MODULES.html.sh (func_all_modules): Add it.
89369
89370 2003-01-28  Bruno Haible  <bruno@clisp.org>
89371
89372         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
89373         Paul Eggert.
89374         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
89375         Paul Eggert.
89376
89377 2003-01-27  Bruno Haible  <bruno@clisp.org>
89378
89379         * modules/xsetenv: New module.
89380         * MODULES.html.sh (func_all_modules): Add it.
89381
89382 2003-01-27  Bruno Haible  <bruno@clisp.org>
89383
89384         * lib/xsetenv.h: New file, from GNU gettext.
89385         * lib/xsetenv.c: New file, from GNU gettext.
89386
89387 2003-01-23  Jim Meyering  <jim@meyering.net>
89388
89389         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
89390         from working on systems without dirfd (at least Irix and OSF1/Tru64).
89391
89392 2003-01-23  Bruno Haible  <bruno@clisp.org>
89393
89394         * modules/minmax: New module.
89395         * MODULES.html.sh (func_all_modules): Add it.
89396
89397 2003-01-23  Bruno Haible  <bruno@clisp.org>
89398
89399         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
89400         Eggert.
89401
89402 2003-01-22  Bruno Haible  <bruno@clisp.org>
89403
89404         * modules/exit: New module.
89405         * MODULES.html.sh (func_all_modules): Add it.
89406
89407 2003-01-22  Bruno Haible  <bruno@clisp.org>
89408
89409         * lib/exit.h: New file, from GNU gettext.
89410
89411 2003-01-19  Bruno Haible  <bruno@clisp.org>
89412
89413         * gnulib-tool: Recognize option --extract-maintainer.
89414         (func_get_maintainer): New function.
89415         * modules/*: Add Maintainer entry.
89416
89417 2003-01-16  Jim Meyering  <jim@meyering.net>
89418
89419         * m4/regex.m4: The `regex' struct is both input and output.
89420         Initialize it before each use.  Patch by Tim Waugh.
89421
89422 2003-01-16  Bruno Haible  <bruno@clisp.org>
89423
89424         * MODULES.html.sh: Add a table of contents. Add the module name as
89425         leftmost column. Add hyperlinks.
89426
89427 2003-01-15  Bruno Haible  <bruno@clisp.org>
89428
89429         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
89430
89431 2003-01-15  Bruno Haible  <bruno@clisp.org>
89432
89433         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
89434         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
89435         suffix.
89436
89437 2003-01-15  Bruno Haible  <bruno@clisp.org>
89438
89439         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
89440
89441 2003-01-15  Bruno Haible  <bruno@clisp.org>
89442
89443         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
89444         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
89445
89446 2003-01-14  Jim Meyering  <jim@meyering.net>
89447
89448         * lib/same.c (same_name): Tweak a comment.
89449
89450 2003-01-14  Bruno Haible  <bruno@clisp.org>
89451
89452         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
89453         when a string comparison is sufficient.
89454
89455 2003-01-14  Bruno Haible  <bruno@clisp.org>
89456
89457         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
89458         'unsigned int'.
89459
89460 2003-01-14  Bruno Haible  <bruno@clisp.org>
89461
89462         * lib/hash-pjw.c: Add comment about low quality of this function.
89463
89464 2003-01-13  Bruno Haible  <bruno@clisp.org>
89465
89466         * modules/stpcpy: Distribute lib/stpcpy.h.
89467         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
89468
89469 2003-01-13  Bruno Haible  <bruno@clisp.org>
89470
89471         * modules/*: Add a description.
89472         * modules/strpbrk: Fix Makefile.am snippet.
89473         * modules/strtoimax: Fix dependencies.
89474         * modules/strtoumax: Likewise.
89475
89476 2003-01-13  Bruno Haible  <bruno@clisp.org>
89477
89478         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
89479         * modules/alloca (Makefile.am): All object files depend on alloca.h.
89480         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
89481
89482 2003-01-13  Bruno Haible  <bruno@clisp.org>
89483
89484         * gnulib-tool (func_create_testdir): Store config/* files in the main
89485         directory.
89486         * config.rpath: Move to ...
89487         * config/config.rpath: ... here.
89488         * modules/gettext: Contains config/config.rpath, not config.rpath.
89489         * modules/iconv: Likewise.
89490
89491 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89492
89493         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89494         to avoid collisions with libcurses and libreadline.
89495
89496         * m4/getstr.m4: Remove.
89497         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
89498
89499 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89500
89501         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89502         to avoid collisions with libcurses and libreadline.
89503
89504         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
89505         * lib/getstr.h, getstr.c: Remove.
89506         * lib/getline.c: Include "getline.h", to check interface.
89507         Move body of old getstr.c here: this defines MIN_CHUNK and
89508         declares getdelim2, which is renamed from getstr.
89509         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
89510
89511         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
89512         All uses changed.
89513         * lib/linebuffer.h: Likewise.
89514         (readline): Remove backward-compatibility macro.
89515
89516 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89517
89518         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89519         to avoid collisions with libcurses and libreadline.
89520         * getstr: Remove.
89521         * MODULES.html.sh: Remove getstr.
89522         * modules/getline: Depend on unlocked-io, not getstr.
89523
89524 2003-01-12  Jim Meyering  <jim@meyering.net>
89525
89526         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
89527
89528 2003-01-10  Bruno Haible  <bruno@clisp.org>
89529
89530         * modules/alloca: Change Makefile.am requirements. Simplify Include
89531         requirements. Add lib/alloca_.h to file list.
89532
89533 2003-01-10  Bruno Haible  <bruno@clisp.org>
89534
89535         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
89536
89537 2003-01-10  Bruno Haible  <bruno@clisp.org>
89538
89539         * lib/alloca_.h: New file.
89540         * lib/getdate.y: Unconditionally include alloca.h.
89541         * lib/makepath.c: Likewise.
89542         * lib/setenv.c: Likewise.
89543         * lib/userspec.c: Likewise.
89544
89545 2003-01-09  Karl Berry  <karl@gnu.org>
89546
89547         * MODULES.html.sh: include `dirname $0` in PATH, to find
89548         gnulib-tool.
89549
89550 2003-01-09  Bruno Haible  <bruno@clisp.org>
89551
89552         * modules/stdbool: Change configure.ac, Makefile.am requirements.
89553         Simplify Include requirements. Add lib/stdbool.h.in to file list.
89554
89555 2003-01-09  Bruno Haible  <bruno@clisp.org>
89556
89557         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
89558
89559 2003-01-09  Bruno Haible  <bruno@clisp.org>
89560
89561         * lib/stdbool.h.in: New file.
89562
89563 2003-01-09  Bruno Haible  <bruno@clisp.org>
89564
89565         * gnulib-tool (func_all_modules): Ignore files ending in ~.
89566         * MODULES.html.sh: Likewise.
89567
89568 2003-01-08  Jim Meyering  <jim@meyering.net>
89569
89570         * lib/full-write.c: Undefine and define-away `const' after inclusion
89571         of errno.h, not before.  Suggestion from Bruno Haible.
89572
89573 2003-01-08  Bruno Haible  <bruno@clisp.org>
89574
89575         * modules/full-read: Depend on full-write.
89576
89577 2003-01-08  Bruno Haible  <bruno@clisp.org>
89578
89579         * lib/safe-read.c: Include specification header first, to ensure its
89580         selfcontainedness.
89581         * lib/full-write.c: Likewise.
89582
89583 2003-01-07  Jim Meyering  <jim@meyering.net>
89584
89585         * lib/full-write.c: Rework so that it may serve to define full_read,
89586         too.
89587         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
89588
89589 2003-01-07  Bruno Haible  <bruno@clisp.org>
89590
89591         * lib/strtoimax.c: Include <stdint.h> as an alternative to
89592         <inttypes.h>.
89593         * lib/xstrtol.h: Likewise.
89594         * lib/xstrtoimax.c: Likewise.
89595         * lib/xstrtoumax.c: Likewise.
89596         * lib/human.h: Likewise.
89597
89598         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
89599         on systems that have <inttypes.h> but not <stdint.h>.
89600
89601 2003-01-07  Bruno Haible  <bruno@clisp.org>
89602
89603         * MODULES.html.sh: Add copyright notice.
89604         (missed_files): Omit CVS directory entries.
89605         (func_module): Make it work with sed-3.02.
89606         * MODULES.txt: Remove file.
89607
89608 2003-01-06  Jim Meyering  <jim@meyering.net>
89609
89610         * lib/version-etc.c: Update year in translatable copyright string.
89611
89612 2003-01-03  Karl Berry  <karl@gnu.org>
89613
89614         * config/config.{guess,sub}: update from prep.
89615
89616 2003-01-02  Karl Berry  <karl@gnu.org>
89617
89618         * doc/COPYING.DOC: belatedly updated to 1.2.
89619
89620 2003-01-01  Karl Berry  <karl@gnu.org>
89621
89622         * gnulib-tool (func_verify_module): report module name $module in
89623         error message, not $1.
89624         * gnulib-tool (create-testdir): don't complain if destdir couldn't
89625         be created, only if it doesn't exist.
89626         * gnulib-tool (last_checkin_date): don't expand the $Date here.
89627
89628 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89629
89630         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
89631
89632 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89633
89634         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
89635         memcmp if strcoll doesn't work.
89636
89637 2002-12-31  Bruno Haible  <bruno@clisp.org>
89638
89639         * lib/utime.c (utime_null): No need to call ftruncate if the file was
89640         nonempty.
89641
89642 2002-12-31  Bruno Haible  <bruno@clisp.org>
89643
89644         * lib/memcoll.c (STRCOLL): New macro.
89645         (memcoll): Use it.
89646
89647 2002-12-31  Bruno Haible  <bruno@clisp.org>
89648
89649         * lib/localcharset.h: New file.
89650         * lib/localcharset.c: Include it.
89651         * lib/unicodeio.c: Likewise.
89652
89653 2002-12-31  Bruno Haible  <bruno@clisp.org>
89654
89655         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
89656         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
89657
89658 2002-12-31  Bruno Haible  <bruno@clisp.org>
89659
89660         * lib/getline.h: Include <stddef.h>, for size_t.
89661
89662         * lib/unicodeio.h: Include <stddef.h>, for size_t.
89663         * lib/unicodeio.c: Don't include <stddef.h>.
89664
89665 2002-12-31  Bruno Haible  <bruno@clisp.org>
89666
89667         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
89668         HAVE_TM_ZONE.
89669
89670 2002-12-24  Karl Berry  <karl@gnu.org>
89671
89672         * config/config.guess: update from prep.
89673
89674 2002-12-24  Bruno Haible  <bruno@clisp.org>
89675
89676         General infrasructure.
89677         * m4/README: Rewritten.
89678         * m4/onceonly.m4: New file.
89679         * m4/onceonly_2_57.m4: New file.
89680
89681         Module atexit.
89682         * m4/atexit.m4: New file.
89683
89684         Module strtod.
89685         * m4/strtod.m4: New file.
89686
89687         Module strtol.
89688         * m4/strtol.m4: New file.
89689
89690         Module strtoul.
89691         * m4/strtoul.m4: New file.
89692
89693         Module memchr.
89694         * m4/memchr.m4: New file.
89695
89696         Module memcmp.
89697         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
89698         (jm_FUNC_MEMCMP): Invoke it.
89699
89700         Module memcpy.
89701         * m4/memcpy.m4: New file.
89702
89703         Module memmove.
89704         * m4/memmove.m4: New file.
89705
89706         Module memset.
89707         * m4/memset.m4: New file.
89708
89709         Module strcspn.
89710         * m4/strcspn.m4: New file.
89711
89712         Module strpbrk.
89713         * m4/strpbrk.m4: New file.
89714
89715         Module strstr.
89716         * m4/strstr.m4: New file.
89717
89718         Module strerror.
89719         * m4/strerror.m4: New file.
89720
89721         Module mktime.
89722         * m4/mktime.m4: Renamed from jm-mktime.m4.
89723         (gl_PREREQ_MKTIME): New macro.
89724         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
89725
89726         Module malloc.
89727         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
89728         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
89729         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
89730
89731         Module realloc.
89732         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
89733         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
89734         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
89735
89736         Module strftime.
89737         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
89738         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
89739         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
89740         gl_TM_GMTOFF.
89741         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
89742
89743         Module xalloc.
89744         * m4/xalloc.m4: New file.
89745
89746         Module alloca.
89747         * m4/alloca.m4: New file.
89748
89749         Module putenv.
89750         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
89751         (jm_FUNC_PUTENV): Invoke it.
89752
89753         Module setenv.
89754         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
89755         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
89756         when invoked twice.
89757         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
89758         gt_FUNC_SETENV.
89759
89760         Module memrchr.
89761         * m4/memrchr.m4: New file.
89762
89763         Module stpcpy.
89764         * m4/stpcpy.m4: New file.
89765
89766         Module strcase.
89767         * m4/strcase.m4: New file.
89768
89769         Module strdup.
89770         * m4/strdup.m4: New file.
89771
89772         Module strnlen.
89773         * m4/strnlen.m4: New file.
89774
89775         Module strndup.
89776         * m4/strndup.m4: New file.
89777
89778         Module xstrtod.
89779         * m4/xstrtod.m4: New file.
89780
89781         Module xstrtol.
89782         * m4/xstrtol.m4: New file.
89783
89784         Module getdate.
89785         * m4/getdate.m4: New file.
89786
89787         Module unlocked-io.
89788         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
89789         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
89790         * m4/jm-glibc-io.m4n: Remove file.
89791
89792         Module long-options.
89793         * m4/long-options.m4: New file.
89794
89795         Module md5.
89796         * m4/md5.m4: New file.
89797
89798         Module sha.
89799         * m4/sha.m4: New file.
89800
89801         Module getstr.
89802         * m4/getstr.m4: New file.
89803
89804         Module getline.
89805         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
89806         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
89807         <sys/types.h>, for size_t. Use the function name gnu_getline, not
89808         simply getline. Infoke gl_PREREQ_GETLINE.
89809
89810         Module obstack.
89811         * m4/obstack.m4: New file.
89812
89813         Module hash.
89814         * m4/hash.m4: New file.
89815
89816         Module readtokens.
89817         * m4/readtokens.m4: New file.
89818
89819         Module strverscmp.
89820         * m4/strverscmp.m4: New file.
89821
89822         Module stdbool.
89823         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
89824         OSF/1.
89825
89826         Module strtoll.
89827         * m4/strtoll.m4: New file.
89828
89829         Module strtoull.
89830         * m4/strtoull.m4: New file.
89831
89832         Module strtoimax.
89833         * m4/strtoimax.m4: New file.
89834
89835         Module strtoumax.
89836         * m4/strtoumax.m4: New file.
89837
89838         Module xstrtoimax.
89839         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
89840         jm_AC_PREREQ_XSTRTOIMAX.
89841         Moved the strtol prerequisites to strtol.m4.
89842         Moved the strtoll prerequisites to strtoll.m4.
89843         Moved the strtoimax prerequisites to strtoimax.m4.
89844
89845         Module xstrtoumax.
89846         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
89847         jm_AC_PREREQ_XSTRTOUMAX.
89848         Moved the strtoul prerequisites to strtoul.m4.
89849         Moved the strtoull prerequisites to strtoull.m4.
89850         Moved the strtoumax prerequisites to strtoumax.m4.
89851
89852         Module chown.
89853         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
89854         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
89855
89856         Module dup2.
89857         * m4/dup2.m4: New file.
89858
89859         Module ftruncate.
89860         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
89861         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
89862
89863         Module getgroups.
89864         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
89865         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
89866
89867         Module gettimeofday.
89868         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
89869         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
89870         gl_PREREQ_GETTIMEOFDAY.
89871
89872         Module mkdir.
89873         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
89874         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
89875
89876         Module mkstemp.
89877         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
89878         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
89879         jm_AC_TYPE_UINTMAX_T.
89880         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
89881
89882         Module stat.
89883         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
89884         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
89885
89886         Module lstat.
89887         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
89888         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
89889
89890         Module timespec.
89891         * m4/timespec.m4 (gl_TIMESPEC): New macro.
89892         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
89893         * m4/st_mtim.m4: Indentation.
89894
89895         Module nanosleep.
89896         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
89897         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
89898         gl_PREREQ_NANOSLEEP.
89899
89900         Module regex.
89901         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
89902         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
89903         (gl_REGEX): New macro.
89904
89905         Module rename.
89906         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
89907         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
89908
89909         Module rmdir.
89910         * m4/rmdir.m4: New file.
89911
89912         Module utime.
89913         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
89914         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
89915         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
89916
89917         Module dirname.
89918         * m4/dirname.m4: New file.
89919
89920         Module getopt.
89921         * m4/getopt.m4: New file.
89922
89923         Module unistd-safer.
89924         * m4/unistd-safer.m4: New file.
89925
89926         Module fnmatch.
89927         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
89928         declaration.
89929         (gl_PREREQ_FNMATCH_EXTRA): New macro.
89930         (gl_FUNC_FNMATCH_POSIX): New macro.
89931         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
89932         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
89933         simply fnmatch.
89934
89935         Module exclude.
89936         * m4/exclude.m4: New file.
89937
89938         Module human.
89939         * m4/human.m4: New file.
89940
89941         Module acl.
89942         * m4/acl.m4: Nop.
89943
89944         Module backupfile.
89945         * m4/backupfile.m4: New file.
89946         * m4/d-ino.m4: Indentation.
89947
89948         Module fsusage.
89949         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
89950         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
89951         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
89952
89953         Module dirfd.
89954         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
89955         requirements.
89956
89957         Module euidaccess.
89958         * m4/euidaccess.m4: New file.
89959
89960         Module file-type.
89961         * m4/file-type.m4: New file.
89962
89963         Module fileblocks.
89964         * m4/fileblocks.m4: New file.
89965
89966         Module filemode.
89967         * m4/filemode.m4: New file.
89968
89969         Module isdir.
89970         * m4/isdir.m4: New file.
89971
89972         Module lchown.
89973         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
89974         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
89975
89976         Module makepath.
89977         * m4/makepath.m4: New file.
89978
89979         Module modechange.
89980         * m4/modechange.m4: New file.
89981
89982         Module mountlist.
89983         * m4/mountlist.m4: New file.
89984         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
89985         Indentation.
89986
89987         Module path-concat.
89988         * m4/path-concat.m4: New file.
89989
89990         Module pathmax.
89991         * m4/pathmax.m4: New file.
89992
89993         Module same.
89994         * m4/same.m4: New file.
89995
89996         Module save-cwd.
89997         * m4/save-cwd.m4: New file.
89998
89999         Module savedir.
90000         * m4/savedir.m4: New file.
90001
90002         Module xgetcwd.
90003         * m4/xgetcwd.m4: New file.
90004         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
90005
90006         Module xreadlink.
90007         * m4/xreadlink.m4: New file.
90008
90009         Module safe-read.
90010         * m4/safe-read.m4: New file.
90011
90012         Module safe-write.
90013         * m4/safe-write.m4: New file.
90014
90015         Module closeout.
90016         * m4/closeout.m4: New file.
90017
90018         Module stdio-safer.
90019         * m4/stdio-safer.m4: New file.
90020
90021         Module getpass.
90022         * m4/getpass.m4: New file.
90023
90024         Module getugroups.
90025         * m4/getugroups.m4: New file.
90026
90027         Module group-member.
90028         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
90029         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
90030
90031         Module idcache.
90032         * m4/idcache.m4: New file.
90033
90034         Module userspec.
90035         * m4/userspec.m4: New file.
90036
90037         Module gettime.
90038         * m4/clock_time.m4: New file.
90039         * m4/gettime.m4: New file.
90040
90041         Module settime.
90042         * m4/settime.m4: New file.
90043
90044         Module posixtm.
90045         * m4/posixtm.m4: New file.
90046
90047         Module gethostname.
90048         * m4/gethostname.m4: New file.
90049
90050         Module canon-host.
90051         * m4/canon-host.m4: New file.
90052
90053         Module gettext.
90054         * m4/codeset.m4: New file, from gettext-0.11.5.
90055         * m4/gettext.m4: New file, from gettext-0.11.5.
90056         * m4/glibc21.m4: New file, from gettext-0.11.5.
90057         * m4/iconv.m4: New file, from gettext-0.11.5.
90058         * m4/intdiv0.m4: New file, from gettext-0.11.5.
90059         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
90060         * m4/inttypes.m4: New file, from gettext-0.11.5.
90061         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
90062         * m4/isc-posix.m4: New file, from gettext-0.11.5.
90063         * m4/lcmessage.m4: New file, from gettext-0.11.5.
90064         * m4/lib-ld.m4: New file, from gettext-0.11.5.
90065         * m4/lib-link.m4: New file, from gettext-0.11.5.
90066         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
90067         * m4/progtest.m4: New file, from gettext-0.11.5.
90068         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
90069         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
90070         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
90071
90072         Module localcharset.
90073         * m4/localcharset.m4: New file.
90074
90075         Module hard-locale.
90076         * m4/hard-locale.m4: New file.
90077
90078         Module mbswidth.
90079         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
90080         onceonly macros.
90081         * m4/mbrtowc.m4: Add comment.
90082
90083         Module memcasecmp.
90084         * m4/memcasecmp.m4: New file.
90085
90086         Module memcoll.
90087         * m4/memcoll.m4: New file.
90088
90089         Module unicodeio.
90090         * m4/unicodeio.m4: New file.
90091
90092         Module rpmatch.
90093         * m4/rpmatch.m4: New file.
90094
90095         Module yesno.
90096         * m4/yesno.m4: New file.
90097
90098         Module exitfail.
90099         * m4/exitfail.m4: New file.
90100
90101         Module c-stack.
90102         * m4/c-stack.m4 (gl_C_STACK): New macro.
90103         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
90104
90105         Module error.
90106         * m4/error.m4 (gl_ERROR): New macro.
90107         (jm_PREREQ_ERROR): Use onceonly macros.
90108
90109         Module fatal.
90110         * m4/fatal.m4: New file.
90111
90112         Module getloadavg.
90113         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
90114         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
90115
90116         Module getpagesize.
90117         * m4/getpagesize.m4: New file.
90118
90119         Module getusershell.
90120         * m4/getusershell.m4: New file.
90121
90122         Module physmem.
90123         * m4/physmem.m4: New file.
90124
90125         Module posixver.
90126         * m4/posixver.m4: New file.
90127
90128         Module quotearg.
90129         * m4/quotearg.m4: New file.
90130
90131         Module quote.
90132         * m4/quote.m4: New file.
90133
90134         Module readutmp.
90135         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
90136
90137         Module sig2str.
90138         * m4/sig2str.m4: New file.
90139
90140         Other.
90141         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
90142         ulonglong.m4.
90143         * m4/intmax_t.m4: New file.
90144         * m4/d-type.m4: Indentation.
90145         * m4/jm-macros.m4: Update.
90146         * m4/prereq.m4 (jm_PREREQ): Update.
90147         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
90148         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
90149         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
90150         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
90151         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
90152         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
90153         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
90154         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
90155         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
90156         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
90157         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
90158         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
90159         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
90160         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
90161         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
90162         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
90163         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
90164         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
90165         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
90166
90167 2002-12-24  Bruno Haible  <bruno@clisp.org>
90168
90169         * MODULES.txt: Update according to m4/ changes.
90170
90171         Module gettext.
90172         * config.rpath: New file, from gettext-0.11.5.
90173
90174         * modules/*: New module descriptions.
90175         * gnulib-tool: New file.
90176         * MODULES.html.sh: New file.
90177
90178 2002-12-21  Karl Berry  <karl@gnu.org>
90179
90180         * doc/fdl.texi: update to version 1.2.
90181
90182 2002-12-19  Karl Berry  <karl@gnu.org>
90183
90184         * config/config.guess: update from prep.
90185
90186 2002-12-18  Bruno Haible  <bruno@clisp.org>
90187
90188         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
90189         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
90190
90191 2002-12-17  Bruno Haible  <bruno@clisp.org>
90192
90193         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
90194         stdlib.h, string.h.
90195
90196 2002-12-17  Bruno Haible  <bruno@clisp.org>
90197
90198         * lib/canon-host.c (strdup): Remove unused declaration.
90199
90200         * lib/fsusage.c: Include full_read.h.
90201         (get_fs_usage): Use full_read instead of safe_read.
90202
90203         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
90204
90205 2002-12-12  Karl Berry  <karl@gnu.org>
90206
90207         * config/config.guess: update from prep.
90208
90209 2002-12-11  Bruno Haible  <bruno@clisp.org>
90210
90211         * m4/setenv.m4: New file, from gettext-0.11.5.
90212
90213 2002-12-11  Bruno Haible  <bruno@clisp.org>
90214
90215         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
90216         not unsetenv().
90217         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
90218         modifications:
90219
90220         2002-12-11  Bruno Haible  <bruno@clisp.org>
90221
90222                 * setenv.c (alloca): Fall back to malloc.
90223                 (freea): New macro.
90224                 (setenv): Use freea() to free memory allocated with alloca().
90225
90226         2002-11-13  Bruno Haible  <bruno@clisp.org>
90227
90228                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
90229                 function declarations.
90230                 * unsetenv.c (unsetenv): Likewise.
90231
90232         2002-03-04  Bruno Haible  <bruno@clisp.org>
90233
90234                 Portability to AIX 4.3.3.
90235                 * unsetenv.c: New file, extracted from setenv.c.
90236                 * setenv.c: Move the unsetenv() function to unsetenv.c.
90237
90238         2001-12-20  Bruno Haible  <bruno@clisp.org>
90239
90240                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
90241                 use malloc instead. For SunOS 4.
90242
90243         2001-12-11  Bruno Haible  <bruno@clisp.org>
90244
90245                 * setenv.c: Declare alloca.
90246                 (compar_fn_t): New typedef.
90247                 (KNOWN_VALUE, STORE_VALUE): Use it.
90248
90249         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
90250         setenv.h.
90251
90252 2002-12-10  Paul Eggert  <eggert@twinsun.com>
90253
90254         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
90255         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
90256         Choose values that are less likely to collide with system fnmatch
90257         options.
90258         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
90259         defined (e.g., a pure POSIX system).
90260         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
90261         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
90262
90263 2002-12-06  Paul Eggert  <eggert@twinsun.com>
90264
90265         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90266         a pain in practice to deal with generated m4 files.  This change
90267         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90268
90269         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90270         and jm-glibc-io.m4, as they are no longer a special case.
90271         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90272         kludge and the auto-generation stuff.  Check only whether the
90273         functions are declared, not whether they exist, since older hosts
90274         that don't declare the functions can't use the optimization anyway.
90275
90276 2002-12-06  Jim Meyering  <jim@meyering.net>
90277
90278         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90279
90280         Merge in changes from libc's misc/error.c, in preparation
90281         for the merge of gnulib's changes back into libc.
90282
90283         * lib/error.c (_): Define only if not already defined.
90284         Move definition to follow all #include directives.
90285         Include unlocked-io.h only if !_LIBC.
90286         [_LIBC]: Include <libio/libioP.h>.
90287         [USE_IN_LIBIO]: Include <libio/iolibio.h>
90288         (fflush): Tweak definition to use INTUSE.
90289         (putc): Define.
90290
90291 2002-12-05  Paul Eggert  <eggert@twinsun.com>
90292
90293         * lib/alloca.c [defined emacs]: Include "lisp.h".
90294         (xalloc_die) [defined emacs]: New macro.
90295         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
90296         [! defined emacs]: Include <xalloc.h>.
90297         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
90298         (pointer): Typedef to POINTER_TYPE *.
90299         (malloc): Remove decl; we now always use xmalloc.
90300         (alloca): Use old-style definition, since Emacs needs this.
90301         Check for arithmetic overflow when computing combined size.
90302
90303 2002-12-04  Paul Eggert  <eggert@twinsun.com>
90304
90305         Do not generate unlocked-io.h automatically, since it's easier to
90306         maintain it by hand.
90307
90308         * lib/unlocked-io.h: New file, from GNU diffutils,
90309         but with proper copyright notice and attribution.
90310         * lib/gen-uio: Remove.
90311         * lib/Makefile.am: Add copyright notice.
90312         (libfetish_a_SOURCES): Add unlocked-io.h.
90313         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
90314         (DISTCLEANFILES, io_functions): Remove macros.
90315         (EXTRA_DIST): Remove gen_uio.
90316         (unlocked-io.h): Remove rule.
90317
90318 2002-12-04  Jim Meyering  <jim@meyering.net>
90319
90320         Reflect the fact that stat.c and lstat.c are no longer generated.
90321         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
90322         (DISTCLEANFILES): Likewise.
90323         (EXTRA_DIST): Likewise.
90324         (all_local): Don't depend on stat.c or lstat.c.
90325         (stat.c, lstat.c): Remove rules.
90326         (EXTRA_DIST): Remove xstat.in.
90327
90328         * lib/xstat.in: Remove file.  Contents moved into stat.c.
90329         * lib/stat.c: New file.  Contents mostly from xstat.in.
90330         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
90331         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
90332
90333         * lib/safe-read.c: Rework so that it may serve to define safe_write,
90334         too.
90335         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
90336
90337 2002-12-03  Jim Meyering  <jim@meyering.net>
90338
90339         * lib/safe-read.c, safe-write.c: Change variable names and comments,
90340         but not semantics, to minimize the differences between these two files.
90341         (safe_read): Change comment to mention SAFE_READ_ERROR.
90342
90343         * lib/safe-read.c (IS_EINTR): Define.
90344         (safe_read): Use IS_EINTR in place of in-function cpp directives.
90345
90346 2002-12-02  Jim Meyering  <jim@meyering.net>
90347
90348         * lib/safe-read.c (EINTR): Define.
90349         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90350         (INT_MAX): Provide fallback.
90351         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
90352
90353         * lib/safe-read.h (SAFE_READ_ERROR): Define.
90354
90355 2002-12-02  Bruno Haible  <bruno@clisp.org>
90356
90357         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
90358         Define, taken from safe-read.c.
90359         (INT_MAX): Provide fallback.
90360         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
90361         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
90362
90363         * lib/safe-read.c (EINTR): Remove definition.
90364         (safe_read): Don't use EINTR if it is absent.
90365
90366 2002-12-01  Jim Meyering  <jim@meyering.net>
90367
90368         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
90369         zero.
90370         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
90371
90372 2002-11-27  Paul Eggert  <eggert@twinsun.com>
90373
90374         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
90375         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
90376         with `if (! (value < limit)) abort ();', for readability.
90377
90378 2002-11-26  Karl Berry  <karl@gnu.org>
90379
90380         * lib/strdup.c: copy from libc again, with jim's ok.
90381         * lib/.cppi-disable: re-add strdup.c
90382
90383 2002-11-25  Karl Berry  <karl@gnu.org>
90384
90385         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
90386         instead of "strtol.c".
90387
90388 2002-11-25  Karl Berry  <karl@gnu.org>
90389
90390         * config/install-sh: update from automake for variable quoting, $0 in
90391         error msgs, etc.
90392
90393         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
90394         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
90395         entry.
90396
90397 2002-11-25  Jim Meyering  <jim@meyering.net>
90398
90399         * lib/mktime.c: Sync from libc, now that it has the latest fix.
90400
90401 2002-11-24  Karl Berry  <karl@gnu.org>
90402
90403         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
90404         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
90405
90406 2002-11-24  Jim Meyering  <jim@meyering.net>
90407
90408         Update from coreutils:
90409
90410         * lib/mktime.c: Merge in changes from libc.
90411
90412         Avoid a link-time failure on some Linux systems.
90413         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
90414         (otherwise).
90415         (__mon_yday): Declare with the STATIC attribute.
90416         (__mktime_internal): Likewise.
90417         Based on a report from Greg Schafer.
90418
90419 2002-11-23  Jim Meyering  <jim@meyering.net>
90420
90421         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
90422         Use `unsigned', not `int', as type of index.
90423
90424         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
90425
90426         * lib/fsusage.c: Remove unneeded parentheses around operands of
90427         `defined'.
90428
90429 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90430
90431         * lib/quotearg.h: Allow multiple inclusion by surrounding with
90432         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
90433         so that we can be included first.
90434         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
90435         * lib/quotearg.c: Include quotearg.h immediately after config.h.
90436         No need to include stddef.h or sys/types.h any more.
90437         Surround local include files with "", not "<>".
90438         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
90439         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
90440         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
90441         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
90442         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
90443         (ISPRINT): Remove; no longer needed now that we assume C89.
90444
90445         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
90446         Preserve errno.
90447
90448         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
90449         quotearg_char): Use SIZE_MAX rather than
90450         (size_t) -1 when we are talking about "infinity".
90451
90452         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
90453
90454 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90455
90456         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
90457         hint that one should use `if (! x) abort ();' rather than `assert
90458         (x);', and anyway it's one less thing to worry about configuring.
90459         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
90460         hash_rehash, hash_insert): Use abort rather than assert.
90461
90462 2002-11-22  Bruno Haible  <bruno@clisp.org>
90463
90464         * lib/safe-read.h: Assume C89. Add comments.
90465         (safe_read): Change return type to size_t.
90466         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
90467         byte counts > SSIZE_MAX correctly.
90468         * lib/safe-write.h: New file.
90469         * lib/safe-write.c: New file.
90470         * lib/full-read.h: New file.
90471         * lib/full-read.c: New file.
90472         * lib/full-write.h: Assume C89. Add comments.
90473         * lib/full-write.c: Include safe-write.h.
90474         (full_write): Rewritten to use safe_write.
90475         Suggested by Jim Meyering and Paul Eggert.
90476
90477 2002-11-21  Jim Meyering  <jim@meyering.net>
90478
90479         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
90480
90481         Merge in changes from the coreutils.
90482
90483         2002-09-25  Paul Eggert  <eggert@twinsun.com>
90484         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
90485         <stdint.h>.
90486         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
90487         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
90488         int.  Work more efficiently if X is the same width as uintmax_t.
90489         Do not compare X to -1, to avoid bogus compiler warning.
90490         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
90491         Don't assume that f_frsize and f_bsize are the same type.
90492
90493         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
90494         warning on FreeBSD.
90495
90496         * lib/makepath.c (make_path): Restore umask *before* creating the final
90497         component.
90498         (make_path): Minor reformatting.
90499
90500         * lib/xmalloc.c: Adjust to work with new autoconf macros,
90501         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
90502         HAVE_MALLOC/HAVE_REALLOC.
90503
90504         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
90505         dummy ones.  At least on GNU/Linux systems, `auto' means something
90506         else.
90507         From Michael Stone.
90508
90509 2002-11-21  Bruno Haible  <bruno@clisp.org>
90510
90511         Remove case insensitive option matching.
90512         * lib/argmatch.h (argcasematch): Remove declaration.
90513         (ARGCASEMATCH): Remove macro.
90514         (__xargmatch_internal): Remove case_sensitive argument.
90515         (XARGMATCH): Update.
90516         (XARGCASEMATCH): Remove macro.
90517         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
90518         case_sensitive argument.
90519         (argcasematch): Remove function.
90520         (__xargmatch_internal): Remove case_sensitive argument.
90521         (main): Use XARGMATCH instead of XARGCASEMATCH.
90522
90523         * lib/xmalloc.c: Change compile-time error message. Add comment about
90524         required autoconf version.
90525
90526 2002-11-20  Paul Eggert  <eggert@twinsun.com>
90527
90528         Merge argmatch cleanups from Bison.  Assume C89.
90529
90530         * lib/argmatch.c: Include config.h here, not in argmatch.h.
90531         Include stdlib.h, for EXIT_FAILURE.
90532         Always include <string.h>, since we assume C89.
90533         (EXIT_FAILURE): Remove pre-C89 bug workaround.
90534         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
90535         Include <stddef.h> instead, since it's all we need for size_t.
90536         (PARAMS): Remove.  All uses removed.
90537         (ARRAY_CARDINALITY): Do not bother to #undef.
90538         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
90539         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90540         Remove unnecessary parentheses.
90541         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90542         Insert necessary parentheses.
90543         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
90544         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
90545
90546 2002-11-19  Bruno Haible  <bruno@clisp.org>
90547
90548         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
90549         * lib/mbswidth.h: Include <stddef.h>, for size_t.
90550
90551         * lib/mbswidth.h (PARAMS): Remove macro.
90552         (mbswidth, mbsnwidth): Use ANSI C function declarations.
90553         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
90554
90555         * lib/gcd.h (PARAMS): Remove macro.
90556         (gcd): Use ANSI C function declarations.
90557         * lib/gcd.c (gcd): Likewise.
90558
90559 2002-11-15  Bruno Haible  <bruno@clisp.org>
90560
90561         * lib/strcspn.c: Include <stddef.h>.
90562         (strcspn): Use ANSI C function declaration. Change return type to
90563         size_t. Use NULL.
90564         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
90565         (strpbrk): Use NULL.
90566         * lib/strpbrk.h (PARAMS): Remove macro.
90567         (strpbrk): Use ANSI C function declaration.
90568         * lib/strstr.c: Don't include <sys/types.h>.
90569         * lib/strstr.h (PARAMS): Remove macro.
90570         (strstr): Use ANSI C function declarations.
90571
90572 2002-11-14  Karl Berry  <karl@gnu.org>
90573
90574         * config/mkinstalldirs: `do' on separate line, instead of
90575         `for var; do'.
90576
90577 2002-11-06  Bruno Haible  <bruno@clisp.org>
90578
90579         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
90580         * lib/gcd.c (gcd): Likewise.
90581
90582 2002-11-05  Bruno Haible  <bruno@clisp.org>
90583
90584         * lib/gcd.h: New file, from gettext-0.11.5.
90585         * lib/gcd.c: New file, from gettext-0.11.5.
90586
90587 2002-11-05  Bruno Haible  <bruno@clisp.org>
90588
90589         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90590         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90591         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90592         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90593
90594         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
90595         <libintl.h>.
90596         * lib/makepath.c: Include gettext.h instead of <locale.h> and
90597         <libintl.h>.
90598
90599         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
90600         * lib/human.c: Include gettext.h instead of <libintl.h>.
90601         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
90602         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
90603         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
90604         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
90605         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
90606         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
90607         (textdomain): Remove definition.
90608         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
90609
90610         * lib/long-options.c: Remove include of <libintl.h> and definition of
90611         _.
90612         * lib/same.c: Remove include of <libintl.h> and definition of _.
90613
90614 2002-11-04  Owen Taylor  <otaylor@redhat.com>
90615
90616         * lib/config.charset: A few additions for Solaris.
90617
90618 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90619
90620         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
90621         * lib/localcharset.c (locale_charset): Declare as extern "C".
90622
90623 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90624
90625         * lib/config.charset: msdos in uk_UA uses CP1125.
90626
90627 2002-11-04  Bruno Haible  <bruno@clisp.org>
90628
90629         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
90630         * lib/strcase.h: New file, from GNU gettext-0.11.5.
90631         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
90632         * lib/strstr.h: New file, from GNU gettext-0.11.5.
90633         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
90634
90635 2002-11-04  Bruno Haible  <bruno@clisp.org>
90636
90637         * lib/localcharset.c (locale_charset): Don't return an empty string.
90638
90639 2002-11-04  Bruno Haible  <bruno@clisp.org>
90640
90641         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
90642         aliases.
90643
90644 2002-11-04  Bruno Haible  <bruno@clisp.org>
90645
90646         * lib/config.charset: Update for newest glibc. Add canonical names
90647         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
90648
90649 2002-11-04  Bruno Haible  <bruno@clisp.org>
90650
90651         * lib/config.charset: Add support for NetBSD.
90652
90653 2002-11-04  Bruno Haible  <bruno@clisp.org>
90654
90655         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
90656
90657 2002-11-01  Bruno Haible  <bruno@clisp.org>
90658
90659         * configure.in: Add AC_CONFIG_AUX_DIR call.
90660         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
90661         test/Makefile.
90662         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
90663
90664 2002-09-28  Karl Berry  <karl@gnu.org>
90665
90666         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
90667         installed automake until the next release, since changes have been
90668         made.
90669
90670 2002-09-25  Karl Berry  <karl@gnu.org>
90671
90672         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
90673         * lib/getopt*: copy from libc/posix.
90674         * lib/gettext.h: copy from gettext.
90675         * lib/.cppi-disable: add strdup.c, gettext.h.
90676
90677 2002-09-25  Karl Berry  <karl@gnu.org>
90678
90679         * config/srclist.txt: enable gettext.h check.
90680         * config/config.{guess,sub}: update from prep.
90681         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
90682                 from automake 1.6.3.
90683         See srclist*.
90684
90685 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
90686
90687         * regex.c (PATFETCH): Remove the translating fetch.
90688         (PATFETCH_RAW): Rename to PATFETCH.
90689         (set_image_of_range): New fun.
90690         (SET_RANGE_TABLE_WORK_AREA): Use it.
90691         (regex_compile): Don't translate the pattern chars so eagerly.
90692         Only do it when inserting an `exactn' bytecode or when handling
90693         a char-range.
90694         (mutually_exclusive_p): Avoid empty statement.
90695
90696 2002-07-06  Jim Meyering  <meyering@lucent.com>
90697
90698         * m4/README: Don't mention Makefile.am.in.
90699         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
90700
90701 2002-07-01  Jim Meyering  <meyering@lucent.com>
90702
90703         * lib/c-stack.c: Include sys/time.h.
90704         From Volker Borchert.
90705
90706 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90707
90708         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
90709
90710 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90711
90712         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
90713         New macro.  Use it uniformly instead of
90714         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
90715         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
90716         reported by Vin Shelton.
90717
90718 2002-06-22  Paul Eggert  <eggert@twinsun.com>
90719
90720         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
90721         Do not assume SA_SIGINFO behavior.
90722         Bug reported by Jim Meyering on NetBSD 1.5.2.
90723
90724 2002-06-22  Jim Meyering  <meyering@lucent.com>
90725
90726         * m4/c-stack.m4: New file, from diffutils-2.8.2.
90727         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
90728
90729         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
90730         now that configure.ac uses AC_GNU_SOURCE.
90731         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
90732         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
90733
90734         Update to latest tools.  Suggestions from Paul Eggert.
90735         * m4/stdbool.m4: New file, from diffutils-2.8.2.
90736         * m4/gnu-source.m4: Update from diffutils-2.8.2.
90737         * m4/fnmatch.m4: Likewise.
90738         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
90739         to AC_HEADER_STDBOOL
90740
90741 2002-06-22  Jim Meyering  <meyering@lucent.com>
90742
90743         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
90744         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
90745
90746 2002-06-22  Jim Meyering  <meyering@lucent.com>
90747
90748         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
90749
90750         * lib/exitfail.c, exitfail.h: Likewise.
90751         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
90752
90753         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
90754         of fnmatch.h.
90755         (EXTRA_DIST): Add fnmatch_loop.c.
90756         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
90757
90758         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
90759         * lib/fnmatch.c: Update from diffutils-2.8.2.
90760         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
90761         * lib/fnmatch.h: Remove file.
90762
90763 2002-06-21  Jim Meyering  <meyering@lucent.com>
90764
90765         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
90766         * m4/mbrtowc.m4: Likewise.
90767
90768         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
90769         * m4/mbswidth.m4: Reflect name change:
90770         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
90771         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
90772
90773         * m4/lib-link.m4: Update from gettext-0.11.2.
90774         * m4/gettext.m4: Likewise.
90775
90776         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
90777         From Alfred M. Szmidt.
90778
90779 2002-06-18  Paul Eggert  <eggert@twinsun.com>
90780
90781         * lib/file-type.h: Report an error if neither S_ISREG nor
90782         S_IFREG is defined, instead of using a test specific to glibc
90783         2.2.  This should be safe, since POSIX requires S_ISREG and
90784         Unix Version 7 had S_IFREG.  We don't need to check for
90785         <sys/types.h> since we don't use any symbols that it defines.
90786
90787 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
90788
90789         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
90790         $@-t, so that each temporary file name is unique and valid in the first
90791         8 characters, for operation under DOS.
90792
90793 2002-06-15  Paul Eggert  <eggert@twinsun.com>
90794
90795         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
90796
90797 2002-06-15  Jim Meyering  <meyering@lucent.com>
90798
90799         Work even with DJGPP 2.03, which lacks support for symlinks.
90800         From Richard Dawe.
90801         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
90802         is defined.
90803         * lib/lchown.c (S_ISLNK): Likewise.
90804
90805 2002-06-15  Jim Meyering  <meyering@lucent.com>
90806
90807         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
90808         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
90809         have been included before this file.
90810
90811 2002-06-14  Jim Meyering  <meyering@lucent.com>
90812
90813         * lib/file-type.h: Use the version from diffutils-2.8.2.
90814         * lib/file-type.c: Likewise.
90815
90816 2002-06-07  Jim Meyering  <meyering@lucent.com>
90817
90818         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
90819         They're needed at least for NetBSD 1.5.2.
90820         ($statxfs_includes): Include those same headers.
90821         ($statxfs_includes): Include sys/vfs.h if available.
90822         ($statxfs_includes): Likewise for sys/statvfs.h.
90823         Check for the following members in both structs statfs and statvfs:
90824         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
90825
90826 2002-06-01  Jim Meyering  <meyering@lucent.com>
90827
90828         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
90829         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
90830
90831 2002-05-28  Jim Meyering  <meyering@lucent.com>
90832
90833         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
90834         Reported by Volker Borchert.
90835
90836 2002-05-27  Jim Meyering  <meyering@lucent.com>
90837
90838         Fix a problem seen only on nonconforming systems whereby ls.c's
90839         use of localtime, and then of gettimeofday would cause trouble:
90840         the localtime call used to initialize rpl_gettimeofday's save
90841         mechanism would clobber ls's current local time information so
90842         that in any long listing the first file would always be listed
90843         with date 1970-01-01.  Analysis by Volker Borchert.
90844
90845         * lib/gettimeofday.c (localtime): Undefine.
90846         (rpl_localtime): New function.
90847
90848 2002-05-27  Jim Meyering  <meyering@lucent.com>
90849
90850         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
90851         localtime.
90852
90853         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
90854         use the replacement function; it wouldn't resolve at link time.
90855         Reported by Volker Borchert.
90856
90857 2002-05-22  Jim Meyering  <meyering@lucent.com>
90858
90859         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
90860         file-type.h.
90861         * lib/file-type.h: New file.
90862         * lib/file-type.c (file_type): New file/function.  Extracted from
90863         diffutils.
90864
90865 2002-04-30  Jim Meyering  <meyering@lucent.com>
90866
90867         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
90868
90869 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90870
90871         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
90872
90873 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90874
90875         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
90876         Do not check for alloca.h (no longer used) or stdbool.h (was never
90877         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
90878
90879 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90880
90881         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
90882
90883 2002-04-29  Jim Meyering  <meyering@lucent.com>
90884
90885         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
90886         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
90887         Use AC_FUNC_STRNLEN here instead.
90888
90889         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
90890         With autoconf-2.53a, it's part of AC_PROG_CC.
90891
90892 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90893
90894         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
90895         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
90896
90897 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90898
90899         * lib/sig2str.h, lib/sig2str.c: New files.
90900         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
90901
90902 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90903
90904         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
90905         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
90906         of 127, since 64 is the largest conceivable number for ancient
90907         nonstandard hosts.
90908         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
90909
90910 2002-04-28  Jim Meyering  <meyering@lucent.com>
90911
90912         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
90913
90914 2002-04-24  Jim Meyering  <meyering@lucent.com>
90915
90916         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
90917         (jm_PREREQ): Use it.
90918
90919         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
90920         mach/mach.h fcntl.h.
90921         Check for this function: setlocale.
90922
90923 2002-04-24  Jim Meyering  <meyering@lucent.com>
90924
90925         * lib/gettext.h: New file, from Gettext.
90926         * lib/Makefile.am (INCLUDES): Remove -I../intl.
90927         (libfetish_a_SOURCES): Add gettext.h.
90928
90929 2002-04-16  Jim Meyering  <meyering@lucent.com>
90930
90931         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
90932         ut_pid, ut_id, ut_exit.
90933
90934 2002-04-16  Jim Meyering  <meyering@lucent.com>
90935
90936         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
90937         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
90938         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
90939
90940 2002-04-12  Jim Meyering  <meyering@lucent.com>
90941
90942         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
90943         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
90944         existence of the getmntinfo function.  Needed for Darwin 5.3.
90945
90946         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
90947         This is necessary at least on Darwin 5.3.
90948
90949         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
90950         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
90951         strnlen.o in the library, and that makes some versions of ranlib
90952         object.
90953
90954 2002-04-12  Jim Meyering  <meyering@lucent.com>
90955
90956         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
90957
90958 2002-04-09  Jim Meyering  <meyering@lucent.com>
90959
90960         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
90961         to be more precise.  Rather than saying we're checking whether the
90962         function `works', say what we're testing.
90963         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
90964         Reported by Bruno Haible.
90965
90966 2002-03-10  Jim Meyering  <meyering@lucent.com>
90967
90968         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
90969         Suggestion from Santiago Vila.
90970
90971 2002-03-08  Jim Meyering  <meyering@lucent.com>
90972
90973         * lib/rename.c: Mention that this wrapper is needed also on
90974         mips-dec-ultrix4.4 systems.
90975
90976 2002-03-02  Jim Meyering  <meyering@lucent.com>
90977
90978         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
90979         not HAVE_CLOCK_SETTIME.
90980
90981 2002-02-27  Paul Eggert  <eggert@twinsun.com>
90982
90983         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
90984         Check for clock_settime.
90985
90986 2002-02-27  Paul Eggert  <eggert@twinsun.com>
90987
90988         * lib/nanosleep.h: Rename to....
90989         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
90990
90991         * lib/gettime.c: New file.
90992         * lib/settime.c: New file.
90993         * lib/stime.c: Remove.
90994
90995         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
90996         timespec.h.  Remove nanosleep.h.
90997
90998 2002-02-25  Paul Eggert  <eggert@twinsun.com>
90999
91000         * m4/acl.m4: New file.
91001         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
91002         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
91003
91004 2002-02-25  Paul Eggert  <eggert@twinsun.com>
91005
91006         * lib/acl.c, lib/acl.h: New files.
91007         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
91008
91009 2002-02-24  Jim Meyering  <meyering@lucent.com>
91010
91011         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
91012         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
91013         cause trouble.  Reported by Nelson Beebe.
91014
91015 2002-02-23  Paul Eggert  <eggert@twinsun.com>
91016
91017         * lib/path-concat.c (xpath_concat): Reorder code to pacify
91018         compilers that don't know that xalloc_die never returns.
91019
91020 2002-02-20  Jim Meyering  <meyering@lucent.com>
91021
91022         * lib/getdate.c: Regenerate using bison-1.33.
91023
91024 2002-02-17  Jim Meyering  <meyering@lucent.com>
91025
91026         * config/config.guess (main): Don't use `head -1'; it's no longer
91027         portable. Use `sed 1q' instead.
91028
91029 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
91030
91031         * m4/codeset.m4: Upgrade to gettext-0.11.
91032         * m4/gettext.m4: Upgrade to gettext-0.11.
91033         * m4/glibc21.m4: Upgrade to gettext-0.11.
91034         * m4/iconv.m4: Upgrade to gettext-0.11.
91035         * m4/isc-posix.m4: Upgrade to gettext-0.11.
91036         * m4/lcmessage.m4: Upgrade to gettext-0.11.
91037         * m4/lib-ld.m4: New file, from gettext-0.11.
91038         * m4/lib-link.m4: New file, from gettext-0.11.
91039         * m4/lib-prefix.m4: New file, from gettext-0.11.
91040         * m4/progtest.m4: Upgrade to gettext-0.11.
91041
91042 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91043
91044         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
91045         (jm_PREREQ): Use it.
91046
91047 2002-02-15  Paul Eggert  <eggert@twinsun.com>
91048
91049         * lib/posixver.c, lib/posixver.h: New files.
91050         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91051
91052 2002-02-02  Paul Eggert  <eggert@twinsun.com>
91053             Bruno Haible  <bruno@clisp.org>
91054
91055         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
91056         (fwrite_success_callback): New declaration.
91057         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
91058         print_unicode_char. Call failure callback instead of error.
91059         (fwrite_success_callback): New function.
91060         (exit_failure_callback): New function.
91061         (fallback_failure_callback): New function.
91062         (print_unicode_char): Call unicode_to_mb.
91063
91064 2002-01-26  Jim Meyering  <meyering@lucent.com>
91065
91066         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
91067         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
91068
91069 2002-01-26  Jim Meyering  <meyering@lucent.com>
91070
91071         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
91072
91073 2002-01-22  Paul Eggert  <eggert@twinsun.com>
91074
91075         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
91076
91077 2002-01-22  Jim Meyering  <meyering@lucent.com>
91078
91079         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
91080         Otherwise, some versions of automake would omit the rule that makes
91081         Makefile from Makefile.in.
91082
91083 2002-01-21  Paul Eggert  <eggert@twinsun.com>
91084
91085         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
91086         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
91087         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
91088         (memcoll): Set errno to zero if there is no error.
91089
91090         * lib/quotearg.c (quotearg_buffer_restyled):
91091         Fix bug with quoting buffers containing NUL when backslashing escapes.
91092         This bug was exposed by the other changes in this patch.
91093         (quotearg_n_options): New arg ARGSIZE.
91094         All callers changed.
91095         (quoting_options_from_style): New function.
91096         (quotearg_n_style): Use it.
91097         (quotearg_n_style_mem): New function.
91098
91099         * lib/quotearg.h (quotearg_n_style_mem): New function.
91100
91101 2002-01-19  Jim Meyering  <meyering@lucent.com>
91102
91103         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
91104         Remove useless quotes: DF_PROG="df".
91105         * m4/strnlen.m4: New file.
91106
91107 2002-01-16  Paul Eggert  <eggert@twinsun.com>
91108
91109         * lib/backupfile.c (ISDIGIT): Comment fix.
91110         * lib/getdate.y (ISDIGIT): Likewise.
91111         * lib/posixtm.c (ISDIGIT, year): Likewise.
91112         * lib/strverscmp.c (ISDIGIT): Likewise.
91113         * lib/userspec.c (ISDIGIT): Likewise.
91114
91115 2002-01-16  Jim Meyering  <meyering@lucent.com>
91116
91117         * lib/getdate.y: Add three semicolons, each just before a closing
91118         brace. Bison (as of version 1.31) no longer papers over that mistake.
91119
91120 2002-01-05  Jim Meyering  <meyering@lucent.com>
91121
91122         * lib/version-etc.c (version_etc_copyright): Update copyright year.
91123
91124 2001-12-19  Paul Eggert  <eggert@twinsun.com>
91125
91126         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
91127         not silently exit merely because the output buffer happens to
91128         have nothing pending.
91129
91130 2001-12-18  Paul Eggert  <eggert@twinsun.com>
91131
91132         See the big note in ../ChangeLog.
91133         * lib/human.c (suffixes): Prefer K to k for 1024.
91134         (generate_suffix_backwards): New function.
91135         (human_readable_inexact): Use it.
91136         * lib/xstrtol.c (__xstrtol): If there is no number but there
91137         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
91138         Accept 'K' as well as 'k'.
91139
91140 2001-12-15  Jim Meyering  <meyering@lucent.com>
91141
91142         * lib/regex.h (__restrict_arr): Update from libc.
91143
91144         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
91145         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
91146         (STREQ): Define.
91147
91148 2001-12-14  Jim Meyering  <meyering@lucent.com>
91149
91150         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
91151         Suggestion from Bruno Haible.
91152
91153 2001-12-10  Jim Meyering  <meyering@lucent.com>
91154
91155         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
91156         xrealloc, Instead, include "xalloc.h".
91157         (initbuffer): Don't cast xmalloc return value to char*.
91158         (readline): Reword comment.
91159         Don't cast xrealloc return value to char*
91160         Return NULL, not 0.
91161
91162 2001-12-09  Jim Meyering  <meyering@lucent.com>
91163
91164         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
91165         about `signed and unsigned type in conditional expression'.
91166         * lib/posixtm.c (posix_time_parse): Likewise.
91167
91168         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
91169
91170         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
91171         to avoid a pedantic warning.
91172
91173         * lib/getstr.c: Don't include assert.h.
91174         (getstr): Remove warning-evoking assertions.
91175         Return -1 if offset parameter is out of bounds.
91176         Change the type of a local from int to size_t.
91177
91178         * lib/strftime.c (my_strftime_localtime_r): Include this function
91179         definition in the `#if ! HAVE_TM_GMTOFF' block.
91180
91181         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
91182         Include xalloc.h instead.
91183
91184 2001-12-02  Jim Meyering  <meyering@lucent.com>
91185
91186         * lib/tempname.c: Don't declare getenv, thus reverting the change of
91187         2001-11-18.  It's no longer necessary, now that stdlib.h is always
91188         included.
91189
91190         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
91191         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
91192
91193 2001-11-30  Akim Demaille  <akim@epita.fr>
91194
91195         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
91196         before being defined.
91197
91198 2001-11-27  Paul Eggert  <eggert@twinsun.com>
91199
91200         * lib/quotearg.h (quotearg_n, quotearg_n_style):
91201         First arg is int, not unsigned.
91202         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
91203         (SIZE_MAX, UINT_MAX): New macros.
91204         (quotearg_n_options): Abort if N is negative.
91205         Avoid overflow check on hosts where size_t is 64 bits and int
91206         is 32 bits, as overflow is impossible there.
91207         Fix off-by-one typo that caused unnecessary reallocation.
91208
91209 2001-11-27  Jim Meyering  <meyering@lucent.com>
91210
91211         * lib/tempname.c: Merge with version from libc.
91212         * lib/regex.c: Likewise.
91213
91214         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
91215         systems for which STDC_HEADERS is 0, it was not included, resulting in
91216         a warning about an integer-to-pointer conversion problem with getenv.
91217         Reported by Volker Borchert.
91218
91219 2001-11-26  Jim Meyering  <meyering@lucent.com>
91220
91221         * lib/gtod.h: Remove file.
91222         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
91223         * lib/gettimeofday.c: Don't include gtod.h.
91224         (GTOD_init): Remove function.
91225         (rpl_gettimeofday): Do its job here instead, rather than aborting.
91226         Suggestion from Volker Borchert.
91227
91228 2001-11-23  Jim Meyering  <meyering@lucent.com>
91229
91230         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
91231         it.
91232         * lib/hash.c (struct hash_table): Define it here instead.
91233
91234 2001-11-22  Jim Meyering  <meyering@lucent.com>
91235
91236         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
91237
91238 2001-11-20  Jim Meyering  <meyering@lucent.com>
91239
91240         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
91241         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
91242
91243 2001-11-19  Jim Meyering  <meyering@lucent.com>
91244
91245         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
91246         directory.  Use "conftestXXXXXX" as the template.
91247         Suggestion from Paul Eggert.
91248
91249         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
91250         immediately, so the test doesn't mistakenly hit the max-open-files
91251         limit.
91252
91253 2001-11-18  Paul Eggert  <eggert@twinsun.com>
91254
91255         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
91256         (TEMPORARIES): New macro.
91257         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
91258         removes an artificial limitation (e.g. HP-UX 10.20, where
91259         TMP_MAX is 17576).
91260
91261 2001-11-18  Jim Meyering  <meyering@lucent.com>
91262
91263         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
91264
91265 2001-11-18  Jim Meyering  <meyering@lucent.com>
91266
91267         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91268         on SunOS 4.
91269
91270         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91271         files will be created before anything else.
91272
91273 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91274
91275         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91276         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91277
91278 2001-11-17  Jim Meyering  <meyering@lucent.com>
91279
91280         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91281         Prompted by a report from Bob Proulx.
91282
91283         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
91284         Instead, require UTILS_FUNC_MKSTEMP.
91285
91286 2001-11-17  Jim Meyering  <meyering@lucent.com>
91287
91288         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
91289         Now, that's done as part of AC_FUNC_STRTOD.
91290
91291 2001-11-17  Jim Meyering  <meyering@lucent.com>
91292
91293         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
91294         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
91295         rather than group writable.  Patch by Juan F. Codagnone.
91296
91297         * lib/readtokens.c: Remove explicit declarations of xmalloc and
91298         xrealloc, Instead, include "xalloc.h".
91299
91300         * lib/mountlist.c: Include unlocked-io.h after all system headers.
91301         Remove explicit declarations of xmalloc, xrealloc,
91302         and xstrdup.  Instead, include "xalloc.h".
91303
91304         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
91305         unlocked-io.h.
91306         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
91307         Likewise.
91308         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
91309
91310         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
91311         Reported by Padraig Brady.
91312
91313         * lib/mkstemp.c: #undef mkstemp.
91314         Include config.h.
91315         (rpl_mkstemp): Rename from mkstemp.
91316         Protoize.
91317
91318 2001-11-16  Jim Meyering  <meyering@lucent.com>
91319
91320         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
91321         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
91322         determine the amount of total physical memory, use pstat_getstatic.
91323         HPUX-11 doesn't define _SC_PHYS_PAGES.
91324         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
91325         If sysconf couldn't be used to determine the amount of available
91326         physical memory, use both pstat_getstatic and pstat_getdynamic.
91327         Based on a patch from Bob Proulx.
91328
91329 2001-11-10  Jim Meyering  <meyering@lucent.com>
91330
91331         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
91332         (jm_PREREQ): Use it.
91333
91334 2001-11-09  Jim Meyering  <meyering@lucent.com>
91335
91336         * m4/jm-macros.m4: Require autoconf-2.52f.
91337         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
91338         Use these AC_-prefixed names, not the AM_-prefixed ones.
91339
91340         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
91341
91342 2001-11-05  Jim Meyering  <meyering@lucent.com>
91343
91344         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
91345
91346 2001-11-04  Jim Meyering  <meyering@lucent.com>
91347
91348         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
91349         $DEFS.
91350
91351 2001-11-03  Jim Meyering  <meyering@lucent.com>
91352
91353         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
91354         of AC_DEFUN.
91355
91356         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
91357         know the name of the variable in the macro definition.
91358
91359 2001-11-03  Jim Meyering  <meyering@lucent.com>
91360
91361         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
91362         in argmatch_to_argument call.
91363
91364         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
91365         argument.
91366
91367         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
91368         e.g., a fault due to an attempt to free a NULL pointer.
91369
91370 2001-11-01  Jim Meyering  <meyering@lucent.com>
91371
91372         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
91373         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
91374
91375 2001-11-01  Jim Meyering  <meyering@lucent.com>
91376
91377         * lib/dirfd.c, lib/dirfd.h: New files.
91378         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
91379
91380         * lib/hash.c (hash_print) [TESTING]: Clean up.
91381
91382 2001-10-22  Paul Eggert  <eggert@twinsun.com>
91383
91384         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
91385         to avoid a warning if -Wall.
91386
91387 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
91388
91389         * README: New file
91390         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
91391         (per RMS's instructions, this is now the canonical source)
91392         * lgpl/, gpl/: New directories.
91393
91394 2001-10-21  Paul Eggert  <eggert@twinsun.com>
91395
91396         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
91397
91398 2001-10-21  Jim Meyering  <meyering@lucent.com>
91399
91400         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
91401         this code would end up calling gettext even in packages built
91402         with --disable-nls.
91403         * lib/getopt.c (_): Likewise.
91404         * lib/regex.c (_): Likewise.
91405
91406 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91407
91408         * m4/error.m4 (jm_PREREQ_ERROR):
91409         Do not invoke AC_CHECK_FUNCS with strerror_r, as
91410         AC_FUNC_STRERROR_R does that.
91411         Check for strerror declaration.
91412
91413         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
91414         are supposed to have them these days.
91415         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
91416         Merge changes from latest Autoconf CVS.
91417         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
91418         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
91419         POSIX decided to standardize on the int flavor of strerror_r.
91420
91421 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91422
91423         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
91424         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
91425         Use strerror_r that is only a macro, even if it is not a function.
91426         (strerror): Check for HAVE_DECL_STRERROR before declaring.
91427         (private_strerror): Use prototypes, not old-style function definition.
91428         (print_errno_message): New function.
91429         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
91430         char*-flavored one.
91431         (error_tail, error, error_at_line): Use it.
91432
91433 2001-10-11  Jim Meyering  <meyering@lucent.com>
91434
91435         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
91436         and quote_n (1, ... to avoid clobbering a buffer.
91437
91438 2001-10-05  Jim Meyering  <meyering@lucent.com>
91439
91440         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
91441         hash-pjw.h.
91442         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
91443         * lib/hash-pjw.h: New file.
91444
91445 2001-09-30  Jim Meyering  <meyering@lucent.com>
91446
91447         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
91448         `struct fsstat' has the `f_fstypename' member.
91449         Use that to define FS_TYPE, which is now used to make
91450         the getfsstat link test tighter.
91451
91452 2001-09-30  Jim Meyering  <meyering@lucent.com>
91453
91454         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
91455         Include <sys/ucred.h>, for Apple Darwin.
91456         Include sys/mount.h and sys/fs_types.h only if available.
91457         (FS_TYPE): Define.
91458         (read_filesystem_list): Use FS_TYPE.
91459
91460 2001-09-29  Paul Eggert  <eggert@twinsun.com>
91461
91462         * lib/exclude.c (excluded_filename): 0 -> false, since it's
91463         a boolean context.
91464
91465 2001-09-29  Jim Meyering  <meyering@lucent.com>
91466
91467         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91468         [one-argument getmntent function]): Include stdio.h before mntent.h.
91469         SunOS 4.1.x needs it for the declaration of `FILE'.
91470         Patch by Volker Borchert.
91471
91472         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91473         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
91474         sys/fs_types.h, and make the link-test for getfsstat guard #include
91475         directives with appropriate #if HAVE_*_H tests so that we can
91476         detect getfsstat on Apple Darwin1.3.7 systems.
91477         Reported by Nelson Beebe.
91478         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
91479
91480 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91481
91482         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91483         #defines strtoimax.  Also treat the other strto* functions
91484         like strtoimax.
91485
91486         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91487         Check for strtoul and strtoumax,
91488         as those declarations are made even in the signed case.
91489         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
91490         Likewise, for strtol and strtoimax.
91491
91492 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91493
91494         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91495         #defines strtoimax.  Also treat the other strto* functions
91496         like strtoimax.
91497
91498         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
91499         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
91500         (strtoimax, strtoumax): Do not declare if already defined as a macro.
91501
91502 2001-09-26  Jim Meyering  <meyering@lucent.com>
91503
91504         Most macros in unlocked-io.h had the wrong number of arguments.
91505         * lib/gen-uio: New script.
91506         (USE_UNLOCKED_IO): Define to 1 if not already defined.
91507         * lib/unlocked-io.hin: Remove file.
91508         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
91509         rather than trying to embed it here.
91510         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
91511         Reported by Padraig Brady.
91512
91513 2001-09-25  Volker Borchert  <bt@teknon.de>
91514
91515         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
91516         `result'.
91517
91518 2001-09-24  Jim Meyering  <meyering@lucent.com>
91519
91520         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
91521
91522 2001-09-23  Jim Meyering  <meyering@lucent.com>
91523
91524         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
91525         instead of the mere test for existence of mntent.h.  The latter
91526         would get a false-positive on AIX 3.4 systems.
91527         In the outer getmntent if-block, don't die if neither of the getmntent
91528         tests succeeds.  Instead, just fall through and continue with the
91529         remaining tests.
91530
91531 2001-09-23  Jim Meyering  <meyering@lucent.com>
91532
91533         * lib/mountlist.c: Remove useless parentheses in #if directives.
91534         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
91535         the deprecated MOUNTED symbol is no longer defined in mntent.h.
91536
91537 2001-09-22  Jim Meyering  <meyering@lucent.com>
91538
91539         * m4/gettext.m4: New file.  From gettext.
91540         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
91541         * m4/progtest.m4: Likewise
91542         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
91543         * m4/glibc21.m4: Likewise.
91544
91545         * m4/libintl.m4: Remove.  No longer used.
91546
91547 2001-09-22  Jim Meyering  <meyering@lucent.com>
91548
91549         * lib/localcharset.c: Update from latest gettext.
91550         * lib/config.charset: Likewise.
91551
91552 2001-09-20  Jim Meyering  <meyering@lucent.com>
91553
91554         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
91555         strtoimax.
91556         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
91557         strtoumax.
91558
91559 2001-09-20  Jim Meyering  <meyering@lucent.com>
91560
91561         * lib/xstrtol.c (strtoimax): Guard declaration with
91562         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
91563         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
91564         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
91565         (strtoumax): Likewise, for completeness (it wasn't necessary).
91566
91567 2001-09-17  Paul Eggert  <eggert@twinsun.com>
91568
91569         * lib/strtoimax.c (HAVE_LONG_LONG):
91570         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
91571         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
91572         to work around bug in IBM C compiler.
91573
91574 2001-09-17  Jim Meyering  <meyering@lucent.com>
91575
91576         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
91577         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
91578         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
91579         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
91580         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
91581         whenever the right hand side need not be expanded by the shell.
91582
91583 2001-09-16  Paul Eggert  <eggert@twinsun.com>
91584
91585         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
91586         library.  It's not correct, as some older glibcs are buggy.
91587         fnmatch wasn't fixed until glibc 2.2.
91588
91589         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
91590         special shell magic here.
91591
91592 2001-09-16  Jim Meyering  <meyering@lucent.com>
91593
91594         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
91595         * m4/jm-macros.m4: Require it.
91596
91597 2001-09-16  Jim Meyering  <meyering@lucent.com>
91598
91599         * lib/mkdir.c: New file.
91600
91601 2001-09-15  Jim Meyering  <meyering@lucent.com>
91602
91603         * m4/jm-macros.m4: Check for help2man.
91604
91605 2001-09-11  Jim Meyering  <meyering@lucent.com>
91606
91607         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
91608         The body, by Paul Eggert, was moved here from configure.in.
91609         * m4/jm-macros.m4: Require UTILS_HOST_OS.
91610
91611 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91612
91613         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
91614         (jm_PREREQ): Use it.
91615
91616 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91617
91618         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
91619         Use ssize_t, not int, to store result of readlink.
91620         Check for ssize_t overflow as well as size_t overflow,
91621         as POSIX says the result of readlink is implementation-defined
91622         when ssize_t overflows.
91623         Remove unnecessary cast to char*.
91624         Use free+malloc instead of realloc, as the storage doesn't need
91625         to be preserved and it's clearer and can be more efficient that way.
91626         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
91627         * lib/xreadlink.h (xreadlink): Update prototype.
91628
91629 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91630
91631         * lib/xgetcwd.c: Revert some of the previous change; intead,
91632         fix the HAVE_GETCWD_NULL code to behave more like the
91633         !HAVE_GETCWD_NULL code used to.
91634
91635         Include "xalloc.h".
91636         (xgetcwd): Do not return NULL when memory is exhausted; instead,
91637         invoke xalloc_die.
91638
91639 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91640
91641         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
91642         sys/param.h, as pathmax.h includes them.
91643
91644 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91645
91646         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
91647         (jm_PREREQ_XGETCWD): New macro.
91648
91649         * m4/getcwd.m4: New file.
91650
91651 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91652
91653         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
91654         like the HAVE_GETCWD_NULL code.
91655         Include pathmax.h if not HAVE_GETCWD.
91656         Do not include xalloc.h.
91657         (INITIAL_BUFFER_SIZE): New symbol.
91658         Do not use xmalloc / xrealloc, since the caller is responsible for
91659         handling errors.  Preserve errno around `free' during failure.
91660         Do not overrun buffer when using getwd.
91661
91662 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91663
91664         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
91665         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
91666         getcwd (NULL, 0).
91667
91668 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91669
91670         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
91671         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
91672         spotted by Jim Meyering.
91673
91674 2001-09-03  Jim Meyering  <meyering@lucent.com>
91675
91676         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
91677         failure.
91678
91679 2001-09-02  Jim Meyering  <meyering@lucent.com>
91680
91681         * lib/error.c: Update from GNU libc.
91682
91683 2001-09-01  Jim Meyering  <meyering@lucent.com>
91684
91685         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
91686         Used by df.
91687
91688 2001-09-01  Jim Meyering  <meyering@lucent.com>
91689
91690         * lib/xreadlink.c: New file.
91691         * lib/xreadlink.h: New file.
91692         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
91693         xreadlink.h.
91694
91695         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
91696         doesn't conflict with sparc Solaris 7's definition in
91697         /usr/include/sys/int_types.h.
91698
91699         * lib/exclude.c: Use `""', not `<>' to #include non-system header
91700         files.
91701         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
91702         and strncasecmp as r-values.  Unixware didn't have declarations.
91703
91704 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91705
91706         * lib/xstrtol.h: Add copyright notice.
91707         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
91708         LONGINT_INVALID_SUFFIX_CHAR.
91709
91710 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91711
91712         * lib/xstrtol.c (strtoimax): New decl.
91713
91714 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91715
91716         * lib/xgetcwd.c: Don't include pathmax.h.
91717         Include stdlib.h and unistd.h if available.
91718         Include xalloc.h.
91719         (xmalloc, xstrdup, free): Remove decls.
91720         (xgetcwd): Don't assume sizes fit in unsigned.
91721         Check for overflow when computing sizes.
91722         Simplify reallocation code.
91723
91724 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91725
91726         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
91727         a directory's st_size can have an arbitrary value, so the old
91728         usage could waste an arbitrary amount of memory.  All uses
91729         changed.
91730         * lib/savedir.h: Update prototype.
91731
91732 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91733
91734         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
91735
91736         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
91737         old strtoimax.c.
91738
91739         Also, make the following further changes to make this file's
91740         configuration more similar to that of strtol.c:
91741         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
91742         (strtoumax, uintmax_t, strtoull, strtol): Remove.
91743         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
91744         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
91745         changed to signed values.
91746
91747         And make the following changes as well:
91748         Fix copyright notice, as 1999 was missing.
91749         (verify): New macro.
91750         (strtoimax): Check sizes at compile-time, not run-time.
91751         Prefer strtol to strtoll if both work.
91752         (main): Remove; it was not that useful and was a pain to maintain.
91753
91754         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
91755
91756 2001-08-31  Jim Meyering  <meyering@lucent.com>
91757
91758         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
91759         Use an initial, malloc'd, buffer of length 128 rather than
91760         a statically allocated one of length 1024.
91761
91762 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91763
91764         Simplify code, partly by assuming autoconf 2.52 semantics.
91765
91766         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
91767
91768         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
91769         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
91770         All uses removed.
91771         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
91772         Move AC_REQUIRE to next-to-top level, to avoid confusion.
91773         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
91774         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
91775         jm_AC_HEADER_INTTYPES_H.
91776         * m4/jm-macros.m4 (jm_MACROS): Likewise.
91777
91778         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
91779
91780         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91781         Quote first arg of AC_DEFUN.
91782         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
91783         since they are needed to parse the include file even if we need
91784         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
91785         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
91786         but with opposite signedness.
91787
91788 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91789
91790         Merge 'exclude' changes from tar 1.13.22.
91791         This fixes one or two unlikely storage allocation overflow bugs,
91792         but doesn't change user-visible behavior otherwise.
91793
91794 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91795
91796         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
91797         (jm_PREREQ_EXCLUDE): New macro.
91798
91799 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91800
91801         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
91802         tm to be declared.
91803
91804 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91805
91806         * lib/hash.c: Remove '2001' from copyright notice.
91807
91808 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91809
91810         * lib/full-write.h: New file.
91811         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
91812         * lib/full-write.c: Correct credits, as cccp.c no longer
91813         exists and anyway it was so heavily changed from the old cccp
91814         code as to be unrecognizable.  Include full-write.h.
91815         (full_write): Return size_t, with short writes meaning failure.
91816         All callers changed.  This fixes a bug with large buffers
91817         on 64-bit hosts.
91818         * lib/utime.c: Include full-write.h.
91819
91820 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91821
91822         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
91823         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
91824         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
91825         Include if available.
91826         (<xalloc.h>): Include
91827         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
91828         (verify): New macro.  Use it to verify that EXCLUDE macros do not
91829         collide with FNM macros.
91830         (struct patopts): New struct.
91831         (struct exclude): Use it, as exclude patterns now come with options.
91832         (new_exclude): Support above changes.
91833         (new_exclude, add_exclude_file):
91834         Initial size must now be a power of two to simplify overflow checking.
91835         (free_exclude, fnmatch_no_wildcards): New function.
91836         (excluded_filename): No longer requires options arg, as the options
91837         are determined by add_exclude.  Now returns bool, not int.
91838         (excluded_filename, add_exclude):
91839         Add support for the fancy new exclusion options.
91840         (add_exclude, add_exclude_file): Now takes int options arg.
91841         Check for arithmetic overflow when computing sizes.
91842         (add_exclude_file): xrealloc might modify errno, so don't
91843         realloc until after errno might be used.
91844
91845         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
91846         New macros.
91847         (free_exclude): New decl.
91848         (add_exclude, add_exclude_file): Now takes int options arg.
91849         (excluded_filename): No longer requires options arg, as the options
91850         are determined by add_exclude.  Now returns bool, not int.
91851
91852 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91853
91854         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
91855
91856 2001-08-27  Jim Meyering  <meyering@lucent.com>
91857
91858         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
91859
91860         * lib/version-etc.c (N_): Remove definition.
91861         Revert most of last change.
91862         Instead, simply don't mark the `Copyright...' string for translation.
91863         Based on advice from Paul Eggert.
91864
91865         * lib/strtoxmax.c: Tweak comment.
91866
91867 2001-08-26  Jim Meyering  <meyering@lucent.com>
91868
91869         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
91870
91871         * m4/xstrtoimax.m4: New file.
91872         * m4/xstrtoumax.m4: Add comments explaining why we
91873         AC_REPLACE_FUNCS(strtol).
91874
91875 2001-08-26  Jim Meyering  <meyering@lucent.com>
91876
91877         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
91878         of copyright with `%s' so translators don't get an untranslated
91879         message in 2002.
91880         (COPYRIGHT_YEAR): Define.
91881         (version_etc): Use fprintf rather than fputs.
91882         Suggestion from Ulrich Drepper.
91883
91884         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
91885
91886         * lib/strtoll.c: New file, from GNU libc.
91887         * lib/xstrtoimax.c: New file.
91888
91889         * lib/xstrtol.h: Add xstrtoimax.
91890         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
91891         * lib/strtoimax.c: New file.  Likewise, but first define
91892         STRTOUXMAX_SIGNED.
91893
91894         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
91895         ...
91896         * lib/strtoxmax.c: ... then renamed to this.
91897
91898 2001-08-18  Paul Eggert  <eggert@twinsun.com>
91899
91900         * m4/inttypes.m4: Add AC_PREREQ(2.13).
91901         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
91902         (jm_AC_TYPE_INTMAX_T): New macro.
91903         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
91904
91905         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
91906
91907         * m4/longlong.m4: Renamed from ulonglong.m4.
91908         * m4/inttypes.m4: Renamed from inttypes_h.m4.
91909         * m4/uintmax_t.m4: Removed.
91910
91911 2001-08-13  Paul Eggert  <eggert@twinsun.com>
91912
91913         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
91914         Port to Solaris 8, where 'sed' requires a space after the 'r'
91915         command, and where sh dislikes "$/".  Clean up the spacing a bit.
91916         Redirect output to $tmp just once.
91917
91918 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
91919
91920         * lib/addext.c (<errno.h>): Include.
91921         (errno): Declare if not defined.
91922         (addext): Work correctly when pathconf returns -1 and leaves
91923         errno alone because there is no limit.  Also, work even if
91924         pathconf returns a value greater than SIZE_MAX.
91925
91926 2001-08-12  Jim Meyering  <meyering@lucent.com>
91927
91928         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
91929         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
91930         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
91931         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
91932         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
91933         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
91934         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
91935         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
91936         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
91937         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
91938         utime.m4, utimes.m4, xstrtoumax.m4:
91939         Quote the first argument in each use of AC_DEFUN.
91940
91941 2001-08-12  Jim Meyering  <meyering@lucent.com>
91942
91943         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
91944         Simply `return getcwd (NULL, 0);'.
91945         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
91946         Use 1300 as initial value for length, not PATH_MAX.
91947
91948         * lib/pathmax.h: Clean up cpp syntax.
91949
91950 2001-08-12  Jim Meyering  <meyering@lucent.com>
91951
91952         * lib/gettimeofday.c: New file.
91953         * lib/gtod.h: New file.
91954         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
91955
91956 2001-08-05  Jim Meyering  <meyering@lucent.com>
91957
91958         * m4/jm-macros.m4: Require autoconf-2.52.
91959
91960 2001-08-04  Jim Meyering  <meyering@lucent.com>
91961
91962         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
91963         stmt, to get in sync with glibc.
91964
91965 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91966
91967         The following changes are from gettext 0.10.39 as maintained by
91968         Bruno Haible.
91969
91970         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
91971         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
91972         with inverted sense.  All uses changed.
91973
91974         * lib/mbswidth.c: Don't include <limits.h>.
91975         Include <stdlib.h> and <string.h> unconditionally.
91976         (iswcntrl, mbsinit, ISCNTRL): New macros.
91977         (mbsnwidth): Use K&R style function declarations.
91978         Don't bother checking for MB_LEN_MAX == 1, since the compiler
91979         can optimize it when MB_CUR_MAX == 1.
91980         The width of control characters is zero, not 1.
91981
91982 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91983
91984         The following changes are from gettext 0.10.39 as maintained by
91985         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
91986
91987         * m4/codeset.m4: Upgrade to serial AM1.
91988         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
91989         all uses changed.  Quote first arg of AC_DEFUN.
91990         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
91991
91992         * m4/iconv.m4: Upgrade to serial AM2.
91993         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
91994         Add --with-libconv-prefix.
91995         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
91996         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
91997         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
91998         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
91999         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
92000
92001         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
92002         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
92003         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
92004         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
92005         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
92006         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
92007         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
92008         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
92009         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
92010
92011         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
92012         string.h any more.
92013
92014         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
92015         not the default value.
92016
92017         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
92018         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
92019         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
92020         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
92021         Also check for iswcntrl, used for wcwidth fallback.
92022         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
92023         to Autoconf 2.13.
92024
92025 2001-08-03  Jim Meyering  <meyering@lucent.com>
92026
92027         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
92028         as it was in the original.  Reported by Paul Eggert.
92029
92030 2001-07-16  Jim Meyering  <meyering@lucent.com>
92031
92032         * m4/gettimeofday.m4: New file.
92033         Prompted by a report from Bernhard Baehr.
92034
92035 2001-07-15  Jim Meyering  <meyering@lucent.com>
92036
92037         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
92038         stuff. Now it's in ../Makefile.cfg.
92039
92040 2001-07-15  Jim Meyering  <meyering@lucent.com>
92041
92042         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
92043         (BUILT_SOURCES): Add unlocked-io.h.
92044         (io_functions): Define.
92045         (unlocked-io.h): New rule.
92046         (DISTCLEANFILES): Add unlocked-io.h.
92047         (all-local): Depend on unlocked-io.h, to ensure it is created.
92048
92049         * lib/unlocked-io.hin: New file
92050
92051         * lib/regex.c: Update from glibc.
92052
92053 2001-07-05  Jim Meyering  <meyering@lucent.com>
92054
92055         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
92056         recommendation.
92057         (libfetish_a_SOURCES): Put all .h files here instead.
92058         Remove a thus-exposed (better checks in automake) duplicate and
92059         two unnecessary .h files.
92060
92061 2001-07-04  Jim Meyering  <meyering@lucent.com>
92062
92063         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
92064         that generates jm-glibc-io.m4 so that it doesn't trigger any make
92065         distcheck failure.
92066
92067 2001-07-02  Jim Meyering  <meyering@lucent.com>
92068
92069         The following changes were prompted by suggestions from Bruno Haible.
92070
92071         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
92072         is now generated.
92073         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
92074         definition of EXTRA_DIST.
92075         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
92076         ensure that the generated file is created/updated whenever the list
92077         of $(unlocked_functions) is changed.
92078         (jm-glibc-io.m4): New rule.
92079         (unlocked-io.h): New rule -- currently unused.
92080
92081 2001-06-24  Jim Meyering  <meyering@lucent.com>
92082
92083         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
92084         unmatched right bracket, rather than kludging it with an extra,
92085         falsely-matching quote in a comment.  Patch by Akim Demaille.
92086
92087 2001-06-11  Jim Meyering  <meyering@lucent.com>
92088
92089         * lib/regex.c: Update from GNU libc.
92090
92091 2001-05-27  Jim Meyering  <meyering@lucent.com>
92092
92093         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
92094         Check for ut_type in struct utmp.
92095
92096 2001-05-27  Jim Meyering  <meyering@lucent.com>
92097
92098         * lib/readutmp.h (UT_TYPE): Define.
92099
92100 2001-05-24  Jim Meyering  <meyering@lucent.com>
92101
92102         * lib/argmatch.c: Include "quote.h".
92103         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
92104         quote function.  Reported by Göran Uddeborg.
92105
92106 2001-05-22  Jim Meyering  <meyering@lucent.com>
92107
92108         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
92109         now that we use the package-supplied version unconditionally.
92110         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
92111
92112 2001-05-21  Jim Meyering  <meyering@lucent.com>
92113
92114         * m4/regex.m4: Change a couple backticks to single quotes to avoid
92115         shell syntax errors.
92116
92117 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92118
92119         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
92120
92121 2001-05-20  Paul Eggert  <eggert@twinsun.com>
92122
92123         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
92124         Don't bother to check library strftime, since
92125         we'll be using our own my_strftime function anyway.
92126         Define my_strftime instead of strftime.
92127
92128 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
92129
92130         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
92131         which is not yet declared.
92132
92133 2001-05-15  Jim Meyering  <meyering@lucent.com>
92134
92135         * m4/regex.m4: Use proper quoting so brackets appear in the test
92136         program.
92137         Reported by, and with help from, Bruno Haible.
92138
92139 2001-05-13  Jim Meyering  <meyering@lucent.com>
92140
92141         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
92142         undefined.
92143
92144 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92145
92146         dirname code cleanup.  base_name now behaves more compatibly
92147         with POSIX basename when given file names that have trailing
92148         slashes, and similarly for dir_name.  Add new primitives
92149         base_len and dir_len.  Put the directory-name-related decls
92150         into dirname.h.
92151
92152         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
92153         * lib/backupfile.c (base_name): Likewise.
92154         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
92155         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
92156         * lib/makepath.c (strip_trailing_slashes): Likewise.
92157         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
92158         ISSLASH): Likewise.
92159         * lib/rename.c (strip_trailing_slashes): Likewise.
92160         * lib/same.c (base_name): Likewise.
92161         * lib/stripslash.c (ISSLASH): Likewise.
92162
92163         * lib/addext.c: Include <dirname.h> after size_t is defined.
92164         * lib/backupfile.c: Likewise.
92165
92166         * lib/addext.c (addext): Use base_len to trim redundant
92167         trailing slashes instead of doing it ourselves.
92168         But do not trim the last slash if it is not redundant.
92169
92170         * lib/backupfile.c (find_backup_file_name,
92171         max_backup_version): Use base_len instead of rolling it ourselves.
92172         Handle the case of "" and (on DOS) "C:" correctly.
92173
92174         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
92175         needed. Include <string.h>, <dirname.h>.
92176         (base_name): Allow file names ending in slashes, other than names
92177         that are all slashes.  In this case, return the basename followed
92178         by the slashes.  This is more general, and can be used in places
92179         where the original base_name purposely had an assertion failure.
92180         (base_len): New function.
92181
92182         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
92183         Do not include <assert.h>; no longer needed.
92184         Include xalloc.h.
92185         (memrchr): Remove decl.
92186         (dir_name_r): Remove.
92187         (dir_len): Renamed from dirlen.  All callers changed.
92188         Rewrite in terms of base_name, for simplicity and consistency.
92189         (dir_name): Never return NULL.  All callers changed.
92190         Do not include <stdlib.h> in test program; no longer needed.
92191         return 0; is fine for test program.
92192
92193         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
92194         New macros.
92195         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
92196
92197         * lib/path-concat.c (path_concat): Use base_len to compute
92198         base length, not strlen; this means we cannot rely on memcpy
92199         to null-terminate.
92200
92201         * lib/same.c (STREQ): Remove.
92202         (same_name): Handle the case where the basename ends in trailing '/'.
92203
92204         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
92205         a slash was stripped.  Do not strip the last slash after a
92206         file system prefix.
92207
92208 2001-05-11  Paul Eggert  <eggert@twinsun.com>
92209
92210         * lib/Makefile.am (libfetish_a_SOURCES):
92211         Add strftime.c, since we now compile it on all hosts.
92212
92213         * lib/strftime.c (my_strftime):
92214         Define to nstrftime if emacs, but only if my_strftime is not defined.
92215         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
92216         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
92217         Add one more extra argument: a nanoseconds value.
92218         All uses changed.
92219         (ns): New macro.
92220         (my_strftime function): Add %N format.
92221         (emacs_strftimeu): Renamed from emacs_strftime,
92222         with extra ut argument.
92223
92224 2001-05-09  Paul Eggert  <eggert@twinsun.com>
92225
92226         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
92227
92228 2001-04-21  Jim Meyering  <meyering@lucent.com>
92229
92230         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
92231         doesn't interfere.
92232
92233 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
92234
92235         * m4/ftruncate.m4: Check for chsize.
92236         Link with ftruncate.o unconditionally if ftruncate is missing.
92237         This was required when cross-compiling to i586-mingw32msvc.
92238
92239 2001-04-08  Jim Meyering  <meyering@lucent.com>
92240
92241         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
92242         recomputed; that's necessary when the offset spans a DST transition.
92243         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
92244
92245 2001-04-02  Jim Meyering  <meyering@lucent.com>
92246
92247         * lib/regex.h, regex.c: Update from GNU libc.
92248
92249 2001-03-24  Jim Meyering  <meyering@lucent.com>
92250
92251         * m4/jm-macros.m4: Require autoconf-2.49d.
92252
92253 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
92254
92255         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
92256
92257 2001-03-19  Paul Eggert  <eggert@twinsun.com>
92258
92259         * lib/version-etc.c (version_etc_copyright): Update to 2001.
92260
92261 2001-03-17  Jim Meyering  <meyering@lucent.com>
92262
92263         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
92264         now that the version in autoconf is equivalent.
92265         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92266
92267         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92268         Suggestion from Akim Demaille.
92269
92270         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92271         (jm_PREREQ_TEMPNAME): New function.
92272
92273 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92274
92275         * lib/tempname.c (uint64_t): Define to uintmax_t if
92276         not defined, and if UINT64_MAX is not defined.
92277         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92278         Reported by John David Anglin.
92279
92280 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92281
92282         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92283         resolve alias if codeset is empty.
92284         * lib/config.charset (BeOS): Use wildcard syntax.
92285
92286 2001-03-13  Jim Meyering  <meyering@lucent.com>
92287
92288         * lib/path-concat.c (path_concat)
92289         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
92290         concatenating e.g., `C:' and `foo'.
92291         From Bruno Haible.
92292
92293 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92294
92295         * lib/localcharset.c (locale_charset): Don't use
92296         setlocale(LC_CTYPE,NULL). Don't return NULL.
92297         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
92298
92299 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92300
92301         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
92302         support for DOS/DJGPP.
92303
92304 2001-03-01  Paul Eggert  <eggert@twinsun.com>
92305
92306         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
92307         lacks mkstemp.  Compile our own tempname.c if we compile our own
92308         mkstemp.c, as mkstemp relies on tempname.
92309
92310 2001-03-01  Jim Meyering  <meyering@lucent.com>
92311
92312         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
92313         AH_VERBATIM really does output its argument verbatim.
92314
92315 2001-02-28  Paul Eggert  <eggert@twinsun.com>
92316
92317         * lib/Makefile.am (libfetish_a_SOURCES):
92318         Add dup-safer.c, fopen-safer.c.
92319         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
92320
92321         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
92322         * lib/unistd-safer.h: New files.
92323
92324 2001-02-25  Paul Eggert  <eggert@twinsun.com>
92325
92326         The mkstemp replacement is taken from glibc 2.2.2, with some
92327         portability fixes for use outside glibc, as follows:
92328
92329         * lib/tempname.c (struct_stat64): New macro.
92330         (direxists, __gen_tempname): Use it.
92331         This avoids a portability problem with Solaris 8.
92332
92333         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
92334         (<stddef.h>, <stdint.h>, <string.h>):
92335         Include only if STDC_HEADERS || _LIBC.
92336         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
92337         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
92338         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
92339         (__set_errno): Define this macro if <errno.h> doesn't.
92340         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
92341         Define these macros if <stdio.h> doesn't.
92342         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
92343         Define these macros if <sys/stat.h>
92344         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
92345         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
92346         __xstat64): Define if not _LIBC.
92347         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
92348         (__gen_tempname): Invoke gettimeofday only if
92349         HAVE_GETTIMEOFDAY || _LIBC;
92350         otherwise, fall back on plain "time".
92351         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
92352
92353         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
92354
92355         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
92356
92357 2001-02-18  Paul Eggert  <eggert@twinsun.com>
92358
92359         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
92360
92361 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92362
92363         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
92364         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
92365         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
92366         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92367
92368 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92369
92370         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
92371         Remove workaround macros for hosts that have mbrtowc but not
92372         mbstate_t, as we now insist on proper declarations for both
92373         before using mbrtowc.
92374
92375 2001-02-17  Jim Meyering  <meyering@lucent.com>
92376
92377         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
92378         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
92379         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
92380         UnixWare 7.1.1.
92381
92382         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
92383         rather than AC_CACHE_VAL.
92384
92385 2001-02-17  Jim Meyering  <meyering@lucent.com>
92386
92387         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
92388         around included file name.
92389
92390         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
92391
92392         * lib/strftime.c: Update from GNU libc (the only changes were to
92393         comments).
92394
92395 2001-02-17  Jim Meyering  <meyering@lucent.com>
92396
92397         * lib/regex.c: Update from libc.
92398
92399 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
92400
92401         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
92402         clash.
92403
92404 2001-02-16  Paul Eggert  <eggert@twinsun.com>
92405
92406         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
92407         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
92408         Reported by Mark Hounschell via Paul Eggert.
92409
92410 2001-02-07  Jim Meyering  <meyering@lucent.com>
92411
92412         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
92413
92414 2001-02-05  Jim Meyering  <meyering@lucent.com>
92415
92416         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
92417         it includes the patch required for `large file' support with at least
92418         HP-UX's 10.20 /bin/cc.
92419
92420 2001-02-03  Jim Meyering  <meyering@lucent.com>
92421
92422         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
92423         AS_IF, now that it works once again (mysteriously).
92424         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92425
92426 2001-01-30  Jim Meyering  <meyering@lucent.com>
92427
92428         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
92429         * m4/chown.m4: Rename conftestchown to conftest.chown.
92430         * m4/rename.m4: s/conftestdir/conftest.d1/ and
92431         s/conftestdir2/conftest.d2/.
92432         * m4/utimes.m4: s/conftestdata/conftest.data/
92433         Inspired by Pavel Roskin's change in autoconf.
92434
92435 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
92436
92437         * lib/config.charset: Update for FreeBSD 4.2.
92438
92439 2001-01-27  Jim Meyering  <meyering@lucent.com>
92440
92441         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
92442         a use of AS_IF.
92443         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92444
92445 2001-01-26  Jim Meyering  <meyering@lucent.com>
92446
92447         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
92448         quotearg.c includes it.
92449
92450 2001-01-26  Jim Meyering  <meyering@lucent.com>
92451
92452         * lib/quotearg.c: Include stddef.h.
92453         * lib/quote.c: Include stddef.h.
92454         Reported by Axel Kittenberger.
92455
92456         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
92457         line in double quotes so that it evokes a better diagnostic.
92458         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
92459         Reported by Axel Kittenberger.
92460
92461 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
92462
92463         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
92464         as if it was a `charset'.
92465
92466 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92467
92468         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
92469         has const.
92470
92471 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92472
92473         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
92474         to avoid a warning.  Add back 'const' to inptr.
92475
92476 2001-01-20  Jim Meyering  <meyering@lucent.com>
92477
92478         Be sure that headers are checked before used in code compiled
92479         for the type checks.
92480         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
92481         In place of that, invoke jm_CHECK_ALL_TYPES.
92482         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
92483         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
92484         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
92485         The check for ssize_t was mistakenly run before the test for unistd.h.
92486
92487         The configure-time check for stdbool.h was missing.
92488         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
92489         (jm_PREREQ_HASH): New function.
92490
92491 2001-01-17  Jim Meyering  <meyering@lucent.com>
92492
92493         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
92494         for autoconf-2.49c.
92495         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
92496
92497 2001-01-16  Jim Meyering  <meyering@lucent.com>
92498
92499         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
92500         From Bruno Haible.
92501
92502 2001-01-14  Jim Meyering  <meyering@lucent.com>
92503
92504         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
92505         foo and bar.  Create conftestdir/ in the script, not in the C code.
92506         Remove directories in the script, not in the C code.
92507         Remove conftestdir{,2} before trying to create the directory.
92508         Make the entire configure script fail if the mkdir fails.
92509
92510 2001-01-14  Jim Meyering  <meyering@lucent.com>
92511
92512         * lib/rename.c: New file.  From Volker Borchert.
92513         Include stdlib.h, string.h or strings.h, and xalloc.h.
92514         Use strip_trailing_slashes rather than open-coding it.
92515
92516 2001-01-03  Paul Eggert  <eggert@twinsun.com>
92517
92518         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
92519
92520 2001-01-03  Jim Meyering  <meyering@lucent.com>
92521
92522         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
92523         of local `inptr' to avoid warning with some system declarations of
92524         iconv.
92525
92526 2001-01-02  Volker Borchert  <bt@teknon.de>
92527
92528         * m4/rename.m4: New file.
92529         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
92530
92531 2001-01-01  Jim Meyering  <meyering@lucent.com>
92532
92533         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
92534         even on systems with utmpx.h.  It's necessary for the declaration of
92535         utmp's ut_user member.  Reported by Andreas Jaeger.
92536
92537         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
92538         available. They are required for the declarations of getgrgid and
92539         getpwuid resp.
92540         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
92541         Reported by Andreas Jaeger.
92542
92543 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
92544
92545         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
92546         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
92547         so `make install' also works in VPATH builds.
92548
92549 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
92550
92551         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
92552         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
92553         can be used in subdirectories.
92554
92555 2000-12-29  Paul Eggert  <eggert@twinsun.com>
92556
92557         * lib/modechange.c: Do not assume that mode_t uses the
92558         traditional octal encoding.  E.g. "chmod 1 FOO" should set
92559         the other-execute bit of FOO even if S_IXOTH != 1.
92560
92561         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
92562         WOTH, XOTH, ALLM): New macros.
92563         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
92564          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
92565         Use them.
92566         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
92567         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
92568         (mode_compile):
92569         No need to use uintmax_t; unsigned long is long enough.
92570         Don't bother to get suffix since we don't use it.
92571
92572 2000-12-26  Jim Meyering  <meyering@lucent.com>
92573
92574         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
92575         better with autoheader.
92576
92577 2000-12-24  Jim Meyering  <meyering@lucent.com>
92578
92579         * lib/hash.c (is_prime): Return explicit boolean values.
92580         (hash_get_first): Return NULL to appease Irix5.6's 89.
92581         Reported by Nelson Beebe.
92582
92583 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
92584
92585         * lib/localcharset.c (locale_charset): Add support for Win32.
92586
92587 2000-12-18  Paul Eggert  <eggert@twinsun.com>
92588
92589         * lib/physmem.h, lib/physmem.c: New files.
92590
92591         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
92592         (noinst_HEADERS): Add physmem.h.
92593
92594         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
92595         't' for compatibility with Solaris 8 sort.
92596
92597 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
92598
92599         * lib/config.charset: Add support for BeOS.
92600
92601 2000-12-17  Jim Meyering  <meyering@lucent.com>
92602
92603         * m4/dos.m4 (jm_AC_DOS): New file and macro.
92604         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
92605
92606 2000-12-16  Jim Meyering  <meyering@lucent.com>
92607
92608         This bug had a serious impact on chown: `chown N:M FILE' (for integer
92609         N and M) would have treated it like `chown N:N FILE'.
92610
92611         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
92612
92613 2000-12-16  Jim Meyering  <meyering@lucent.com>
92614
92615         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
92616         SHELLS_FILE to a file name that's useful on djgpp systems.
92617         Include stdlib.h.
92618         (ADDITIONAL_DEFAULT_SHELLS): Define.
92619         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
92620         Based mostly on a patch from Prashant TR.
92621
92622 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
92623
92624         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
92625         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
92626         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
92627
92628 2000-12-08  Andreas Schwab  <schwab@suse.de>
92629
92630         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
92631         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
92632
92633 2000-12-07  Jim Meyering  <meyering@lucent.com>
92634
92635         * lib/stripslash.c (ISSLASH): Define.
92636         (strip_trailing_slashes): Use ISSLASH rather than comparing against
92637         `/'.
92638         From Prashant TR.
92639
92640         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
92641         (dir_name_r): Declare this function as static.
92642         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
92643         manifest itself on a name containing a mix of slashes and
92644         backslashes.
92645         Make this function work with names starting with a DOS-style
92646         drive letter and colon prefix.
92647         (dir_name): Append `.' if necessary.
92648         Based mostly on patches from Prashant TR and Eli Zaretskii.
92649
92650         * lib/dirname.h (dir_name_r): Remove prototype.
92651
92652 2000-12-06  Paul Eggert  <eggert@twinsun.com>
92653
92654         * m4/off_t-format.m4: Remove this file.
92655         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
92656
92657 2000-12-06  Jim Meyering  <meyering@lucent.com>
92658
92659         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
92660         replacement strtoull, we may well need the replacement strtoul, too.
92661         Check for declarations of strtoul and strtoull.
92662         Check for strtol.  Mainly as a cue to cause automake to include
92663         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
92664         Check for limits.h -- strtol.c needs it.
92665
92666 2000-12-05  Jim Meyering  <meyering@lucent.com>
92667
92668         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
92669
92670 2000-12-04  Jim Meyering  <meyering@lucent.com>
92671
92672         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
92673         Also include memory.h, stdlib.h, unistd.h if appropriate.
92674         Reported by Andreas Jaeger (conflicting declaration of malloc).
92675
92676 2000-12-02  Jim Meyering  <meyering@lucent.com>
92677
92678         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
92679         * m4/jm-macros.m4 (jm_MACROS): require it.
92680
92681 2000-12-02  Jim Meyering  <meyering@lucent.com>
92682
92683         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
92684
92685 2000-12-01  Paul Eggert  <eggert@twinsun.com>
92686
92687         * lib/memrchr.c: Include <config.h> before any system include file.
92688
92689 2000-11-30  Jim Meyering  <meyering@lucent.com>
92690
92691         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
92692
92693 2000-11-30  Jim Meyering  <meyering@lucent.com>
92694
92695         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
92696
92697 2000-11-29  Paul Eggert  <eggert@twinsun.com>
92698
92699         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
92700
92701 2000-11-26  Jim Meyering  <meyering@lucent.com>
92702
92703         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
92704
92705 2000-11-22  Paul Eggert  <eggert@twinsun.com>
92706
92707         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
92708         size of (size_t) -1; it's not portable.
92709
92710 2000-11-17  Jim Meyering  <meyering@lucent.com>
92711
92712         * lib/strstr.c: Update from GNU libc.
92713
92714 2000-11-17  Akim Demaille  <akim@epita.fr>
92715
92716         * lib/obstack.h: Formatting changes.
92717         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
92718         prevent type checking.
92719         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
92720         cast the value to (void *): assigning a `foo *' to a `void *'
92721         variable is valid.
92722         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
92723
92724 2000-11-16  Jim Meyering  <meyering@lucent.com>
92725
92726         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
92727
92728 2000-11-11  Jim Meyering  <meyering@lucent.com>
92729
92730         * lib/error.c: Add a couple #includes, merging from GNU libc version.
92731
92732 2000-11-10  Jim Meyering  <meyering@lucent.com>
92733
92734         * lib/obstack.h: Update from GNU libc.
92735         * lib/obstack.c: Likewise.
92736
92737 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
92738
92739         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
92740
92741 2000-11-06  Paul Eggert  <eggert@twinsun.com>
92742
92743         * lib/getusershell.c (setusershell): Use rewind rather than
92744         fseek/fseeko, to avoid configuration hassles with fseeko.
92745         Don't bother opening SHELLS_FILE if shellstream is NULL;
92746         it's not necessary.
92747
92748 2000-11-05  Jim Meyering  <meyering@lucent.com>
92749
92750         * lib/makepath.h (make_dir): Declare.
92751         * lib/makepath.c (make_dir): Remove `static' attribute.
92752         Tweak a comment.
92753
92754 2000-11-04  Jim Meyering  <meyering@lucent.com>
92755
92756         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
92757
92758 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
92759
92760         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
92761         last one in a bucket, advance to the next bucket.
92762
92763 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
92764
92765         * lib/fnmatch.c: Do not comment out all the code if we are using
92766         the GNU C library, because in some cases we are replacing buggy
92767         code in the GNU C library itself.
92768
92769 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
92770
92771         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
92772         (regex_compile): Catch bogus \(\1\).
92773
92774 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92775
92776         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
92777         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
92778         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
92779
92780 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92781
92782         * lib/error.h, getline.h, modechange.h:
92783         Remove "2000" from Copyright line, as the file hasn't been
92784         changed this year other than in the copyright notice.
92785
92786         * lib/xalloc.h: Add "2000" to Copyright line, as this file
92787         was changed this year.
92788
92789 2000-10-29  Jim Meyering  <meyering@lucent.com>
92790
92791         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
92792         renaming.
92793         * m4/ls-mntd-fs.m4: Likewise
92794
92795 2000-10-29  Jim Meyering  <meyering@lucent.com>
92796
92797         * lib/xstat.in: Fix grammar in comment.
92798
92799 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
92800
92801         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
92802         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
92803         doesn't define __restrict_arr.
92804
92805 2000-10-28  Jim Meyering  <meyering@lucent.com>
92806
92807         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
92808         (jm_PREREQ_MEMCHR): New function.
92809
92810 2000-10-28  Jim Meyering  <meyering@lucent.com>
92811
92812         * lib/memchr.c: Update from libc.
92813         Adjust for portability:
92814         [HAVE_STDLIB_H]: Include stdlib.h.
92815         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
92816         Undef __memchr, too.
92817         [!weak_alias]: Define __memchr to memchr.
92818
92819         * lib/regex.c: Update from libc.
92820         * lib/regex.h: Likewise.
92821         * lib/getopt1.c: Likewise.
92822         * lib/memcmp.c: Likewise.
92823
92824         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
92825         Avoid using fseek, when possible -- it's broken by design.
92826         Patch by Ulrich Drepper.
92827
92828 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
92829
92830         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
92831         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
92832         Giving in to popular pressure to shut up the compiler with casts.
92833
92834 2000-10-26  Jim Meyering  <meyering@lucent.com>
92835
92836         * lib/strftime.c: Update from libc.
92837
92838 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
92839
92840         * regex.c: More `unsigned char' -> `re_char' changes.
92841         Also change several `int' into `re_wchar_t'.
92842         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
92843         (PUSH_FAILURE_POINTER): Don't cast any more.
92844         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
92845         We want GCC to complain, since this piece of code makes
92846         re_match non-reentrant, which *should* be fixed.
92847         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
92848         (EXTEND_BUFFER): Use RETALLOC.
92849         (SET_LIST_BIT): Don't cast.
92850         (re_wchar_t): New type.
92851         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
92852         that those two functions will always properly return.
92853         (IMMEDIATE_QUIT_CHECK): Cast to void.
92854         (analyse_first): Use recursion rather than an explicit stack.
92855         (re_compile_fastmap): Can't fail anymore.
92856         (re_search_2): Don't check re_compile_fastmap for failure.
92857         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
92858         Now also sets the new value (passed in a new argument).
92859         (re_match_2_internal): Use it.
92860         Also, use a new var `reg' of type size_t when looping through regs
92861         rather than reuse the inappropriate `mcnt'.
92862
92863 2000-10-25  Jim Meyering  <meyering@lucent.com>
92864
92865         * lib/obstack.c: Update from libc.
92866
92867 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
92868
92869         * regex.c (regex_compile): Change the way of handling a range from
92870         a char less than 256 to a char not less than 256.
92871
92872 2000-10-24  Andrew Innes  <andrewi@gnu.org>
92873
92874         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
92875         NT-Emacs only.
92876         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
92877         so that re_search functions only quit when callers expect them to.
92878
92879 2000-10-23  Jim Meyering  <meyering@lucent.com>
92880
92881         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
92882         wrong.  That set_locale call must not have any side effects.
92883         From Paul Eggert.
92884
92885 2000-10-22  Jim Meyering  <meyering@lucent.com>
92886
92887         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
92888         [CYCLIC]: Remove now-unused definition.
92889
92890         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
92891         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
92892         Suggestion from Ulrich Drepper.
92893
92894 2000-10-21  Jim Meyering  <meyering@lucent.com>
92895
92896         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
92897         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
92898         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
92899
92900 2000-10-21  Jim Meyering  <meyering@lucent.com>
92901
92902         * lib/dirname.c (memrchr): Declare if necessary.
92903         (dir_name): Remove the restriction that there be no
92904         trailing slashes.  Now, this code skips past them, effectively
92905         ignoring them.
92906         [TEST_DIRNAME] (main): New unit tests.
92907
92908         * lib/memrchr.c: New file from GNU libc.
92909         Undef __memrchr, too.
92910         [!weak_alias]: Define __memrchr to memrchr.
92911         Guard weak_alias use with `#ifdef weak_alias'.
92912
92913 2000-10-21  Jim Meyering  <meyering@lucent.com>
92914
92915         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
92916         (dir_name): Use dir_name_r.
92917         * lib/dirname.h (dir_name_r): Declare it.
92918
92919 2000-10-17  Jim Meyering  <meyering@lucent.com>
92920
92921         * lib/quote.h (PARAMS): Define and use.
92922         Reported by Akim Demaille.
92923
92924         * lib/getopt.c: Update from libc.
92925
92926 2000-10-16  Jim Meyering  <meyering@lucent.com>
92927
92928         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
92929         setlocale.
92930         From Jan Fedak.
92931
92932 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
92933
92934         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
92935
92936 2000-09-25  Jim Meyering  <meyering@lucent.com>
92937
92938         * lib/md5.h (rol): Define (from GnuPG).
92939
92940         * lib/sha.c: Give credit (GnuPG) where due.
92941         (M): Use rol rather than open-coding it.
92942         Add a FIXME comment.
92943
92944 2000-09-21  Jim Meyering  <meyering@lucent.com>
92945
92946         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
92947         Reported by Michael Stone.
92948
92949 2000-09-20  Jim Meyering  <meyering@lucent.com>
92950
92951         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
92952         (noinst_HEADERS): Add sha.h.
92953         Based on code from Scott G. Miller and from GnuPG.
92954
92955 2000-09-18  Jim Meyering  <meyering@lucent.com>
92956
92957         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
92958         LIBS. Otherwise, everyone ends up linking with -lelf for some
92959         configurations.
92960         Reported by Mike Stone.
92961
92962 2000-09-15  Jim Meyering  <meyering@lucent.com>
92963
92964         * lib/regex.c: Update from libc.
92965
92966 2000-09-10  Jim Meyering  <meyering@lucent.com>
92967
92968         * lib/getopt.c (_getopt_internal): Update from glibc.
92969
92970 2000-09-09  Jim Meyering  <meyering@lucent.com>
92971
92972         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
92973         think it should be used as a general replacement for isascii.
92974         * lib/fnmatch.c: Likewise.
92975         * lib/mbswidth.c: Likewise
92976         * lib/regex.c: Likewise.
92977
92978         Don't use atoi.
92979         * lib/userspec.c: Include sys/param.h and limits.h.
92980         Include xstrtol.h.
92981         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
92982         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
92983         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
92984         UID, GID.  Check range.
92985
92986 2000-09-06  Jim Meyering  <meyering@lucent.com>
92987
92988         * lib/getopt.c (_getopt_internal): Update from glibc.
92989
92990 2000-08-30  Jim Meyering  <meyering@lucent.com>
92991
92992         * lib/strftime.c: Merge in changes from GNU libc.
92993
92994 2000-08-26  Jim Meyering  <meyering@lucent.com>
92995
92996         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
92997         * m4/fpending.m4: New file.
92998
92999 2000-08-26  Jim Meyering  <meyering@lucent.com>
93000
93001         * lib/closeout.c: Include "__fpending.h".
93002         (close_stdout_status): Return right away if there's nothing to flush.
93003
93004         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
93005         * lib/__fpending.c: New file.
93006         * lib/__fpending.h: New file.
93007
93008 2000-08-20  Jim Meyering  <meyering@lucent.com>
93009
93010         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
93011         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
93012         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
93013
93014 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
93015
93016         Improve fileutils installation on systems where running
93017         programs (like install) can't be unlinked.
93018         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
93019         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
93020
93021 2000-08-07  Paul Eggert  <eggert@twinsun.com>
93022
93023         Standardize on "memory exhausted" instead of "Memory exhausted"
93024         or "virtual memory exhausted".
93025         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
93026         "virtual memory exhausted".
93027         * lib/same.c (same_name): Invoke xalloc_die instead of printing
93028         our own message.
93029         * lib/userspec.c (parse_user_spec): Likewise.
93030         * lib/bumpalloc.h: comment fix
93031         * lib/same.c, userspec.c: Include xalloc.h.
93032
93033         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
93034         not char *const and pointing to a constant array.
93035         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
93036         (xrealloc): Comment fix.
93037
93038         * lib/userspec.c (parse_user_spec):
93039         Don't translate a message until just before returning,
93040         to avoid unnecessary translation.
93041
93042 2000-08-07  Jim Meyering  <meyering@lucent.com>
93043
93044         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
93045         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
93046         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
93047         getgroups.c, gethostname.c, getopt.h, group-member.c,
93048         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
93049         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
93050         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
93051         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
93052         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
93053         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
93054         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
93055         yesno.c: Back out Copyright date changes for each file with no change
93056         this year.  This eases coordination with other programs using the same
93057         source code modules.  From Paul Eggert.
93058
93059 2000-08-06  Paul Eggert  <eggert@twinsun.com>
93060
93061         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
93062         not char, for compatibility with glibc 2.1.3 strftime.c.
93063
93064 2000-08-03  Greg McGary  <greg@mcgary.org>
93065
93066         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
93067         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
93068         (EXTEND_BUFFER): Use them.
93069
93070 2000-08-01  Jim Meyering  <meyering@lucent.com>
93071
93072         * lib/dirname.c (ISSLASH): Define.
93073         (BACKSLASH_IS_PATH_SEPARATOR): Define.
93074         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
93075         both `\' and `/' may be use as path separators.
93076         Based on a patch from Prashant TR.
93077
93078 2000-07-31  Paul Eggert  <eggert@twinsun.com>
93079
93080         * lib/quotearg.c (quotearg_n_options): Don't make the initial
93081         slot vector a constant, since it might get modified.
93082
93083 2000-07-31  Jim Meyering  <meyering@lucent.com>
93084
93085         * lib/xmalloc.c: Use `virtual memory exhausted', not
93086         `Memory exhausted'.
93087         * lib/obstack.c (print_and_abort): Likewise.
93088
93089 2000-07-30  Paul Eggert  <eggert@twinsun.com>
93090
93091         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
93092         buffer, so that the caller can always quote one small
93093         component of a "memory exhausted" message in slot 0.
93094         From a suggestion by Jim Meyering.
93095
93096 2000-07-30  Jim Meyering  <meyering@lucent.com>
93097
93098         * lib/makepath.c (make_path): Quote the other instance, too.
93099
93100         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
93101         (STATIC_BUF_SIZE): Define.
93102         (quotearg_n_options): Use only statically allocated storage when
93103         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
93104         than STATIC_BUF_SIZE.
93105
93106 2000-07-29  Jim Meyering  <meyering@lucent.com>
93107
93108         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
93109         * lib/dirname.c (dir_name): Likewise.
93110
93111         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
93112         `/'.
93113
93114         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
93115         (dir_name): Assert that there are no trailing slashes.
93116
93117 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
93118
93119         * lib/mbswidth.h (mbswidth): Add a flags argument.
93120         (mbswidth): New declaration.
93121         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
93122         * lib/mbswidth.c (mbswidth): Add a flags argument.
93123         (mbsnwidth): New function.
93124
93125 2000-07-24  Jim Meyering  <meyering@lucent.com>
93126
93127         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
93128
93129 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93130
93131         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
93132
93133 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93134
93135         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
93136         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
93137         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
93138         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
93139         invoke multibyte primitives.
93140
93141 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93142
93143         * lib/quotearg.c:
93144         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
93145         so that mbstate_t is always defined.
93146
93147         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
93148         be 1 in at least one GCC installation, and this configuration
93149         error is likely to be common.  Ignoring MB_LEN_MAX hurts
93150         performance on hosts that have mbrtowc but have only unibyte
93151         locales, but I assume these hosts are rare.
93152
93153 2000-07-23  Paul Eggert  <eggert@twinsun.com>
93154
93155         * lib/mbswidth.c (_XOPEN_SOURCE):
93156         Don't define; this causes problems on Solaris 7.
93157         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
93158
93159 2000-07-23  Jim Meyering  <meyering@lucent.com>
93160
93161         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
93162         too: getgrgid, getpwuid, getuid.
93163
93164 2000-07-23  Jim Meyering  <meyering@lucent.com>
93165
93166         * lib/basename.c (base_name): Add an assertion.
93167
93168 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
93169
93170         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
93171         shadow its mbsinit function.
93172
93173 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93174
93175         * lib/mbswidth.h: New file.
93176         * lib/mbswidth.c: New file.
93177         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
93178         (noinst_HEADERS): Add mbswidth.h.
93179
93180 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
93181
93182         * lib/config.charset: Add support for FreeBSD. Improve support for
93183         HP-UX and IRIX 6.
93184
93185 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
93186
93187         * m4/mbswidth.m4: New file.
93188         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
93189
93190 2000-07-15  Jim Meyering  <meyering@lucent.com>
93191
93192         * lib/makepath.c: Include quote.h.
93193         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
93194         corresponding argument in a `quote (...)' call.
93195         Give better diagnostics.
93196
93197         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
93198         (noinst_HEADERS): Add quote.h.
93199
93200         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
93201         from tar's src/misc.c.
93202         * lib/quote.h: New file.  Prototypes for same.
93203
93204 2000-07-14  Paul Eggert  <eggert@twinsun.com>
93205
93206         From a suggestion by Bruno Haible.
93207         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
93208         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
93209         to decide whether to define the BeOS workaround macro;
93210         this adjusts to the change to AC_MBSTATE_T.
93211
93212 2000-07-14  Jim Meyering  <meyering@lucent.com>
93213
93214         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
93215         jm_AC_TYPE_UINTMAX_T.
93216
93217 2000-07-13  Paul Eggert  <eggert@twinsun.com>
93218
93219         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
93220
93221         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
93222         quotearg_buffer_restyled): Add support for
93223         clocale_quoting_style.  Undo previous change to
93224         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
93225         and "{RIGHT QUOTATION MARK}" msgids.
93226
93227 2000-07-10  Paul Eggert  <eggert@twinsun.com>
93228
93229         From a suggestion by Bruno Haible.
93230         * m4/mbstate_t.m4 (AC_MBSTATE_T):
93231         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
93232         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
93233         and mbstate_t, to a single-part test that simply defines mbstate_t.
93234         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
93235         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
93236
93237 2000-07-10  Jim Meyering  <meyering@lucent.com>
93238
93239         * m4/strerror_r.m4: Mirror the correction made in autoconf.
93240
93241         * m4/gnu-source.m4: Output to confdefs.h directly.
93242         Suggestion from Akim Demaille.
93243
93244 2000-07-09  Paul Eggert  <eggert@twinsun.com>
93245
93246         The old behavior of quoting `like this' doesn't look good with
93247         newer, ISO-style fonts.  See:
93248         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
93249
93250         Instead, quote "like this" by default.  Let the translator
93251         tailor the locale-specific quoting behavior by providing
93252         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
93253
93254         * lib/quotearg.c (N_): New macro.
93255         (gettext_default): New function.
93256         (quotearg_buffer_restyled): Use
93257         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
93258         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
93259
93260 2000-07-09  Jim Meyering  <meyering@lucent.com>
93261
93262         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
93263         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
93264
93265         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93266         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93267
93268 2000-07-09  Jim Meyering  <meyering@lucent.com>
93269
93270         * lib/Most files: Update copyright dates to include 2000.
93271
93272 2000-07-08  Jim Meyering  <meyering@lucent.com>
93273
93274         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93275         if not defined.
93276         (xgethostname): Remove now-unnecessary #ifdef.
93277         Move declaration of `err' into loop where it's used.
93278
93279 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93280         and Bruno Haible  <haible@clisp.cons.org>
93281
93282         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93283         only if the test for an object-type mbstate_t fails.  This
93284         prevents us from mistakenly reporting that mbstate_t is a
93285         system object type after we "#define mbstate_t int" to work
93286         around its lack.
93287
93288 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93289         and Bruno Haible  <haible@clisp.cons.org>
93290
93291         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
93292
93293 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93294
93295         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
93296         to strerror_r.
93297         Include <ctype.h> for use of isalpha.
93298
93299 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93300
93301         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
93302         by allocating a larger buffer. Test the gethostname return value for
93303         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
93304         returns an error and ENAMETOOLONG isn't defined.
93305
93306 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93307
93308         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
93309         dimension.
93310
93311 2000-07-04  Jim Meyering  <meyering@lucent.com>
93312
93313         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
93314         of the deprecated AC_CHECKING.
93315
93316 2000-07-04  Jim Meyering  <meyering@lucent.com>
93317
93318         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
93319         Reported by Bruno Haible.
93320
93321 2000-07-04  Jim Meyering  <meyering@lucent.com>
93322
93323         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
93324         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
93325         lacks mbrtowc.
93326
93327 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93328
93329         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
93330         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
93331
93332 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93333         and Bruno Haible  <haible@clisp.cons.org>
93334
93335         * lib/quotearg.c (mbrtowc):
93336         Assign to *pwc, and return 1 only if result is nonzero.
93337         (iswprint): Use ISPRINT when substituting our own mbrtowc.
93338
93339 2000-07-03  Jim Meyering  <meyering@lucent.com>
93340
93341         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
93342
93343 2000-07-03  Jim Meyering  <meyering@lucent.com>
93344
93345         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
93346         This is necessary to get a definition of e.g., UTMP_FILE on
93347         HP-UX 10.20.
93348         From Bob Proulx.
93349
93350 2000-07-02  Jim Meyering  <meyering@lucent.com>
93351
93352         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
93353
93354         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
93355         AC_LIBOBJ(function_name).
93356         * m4/chown.m4: Likewise.
93357         * m4/fnmatch.m4: Likewise.
93358         * m4/ftruncate.m4: Likewise.
93359         * m4/getgroups.m4: Likewise.
93360         * m4/getline.m4: Likewise.
93361         * m4/group-member.m4: Likewise.
93362         * m4/jm-macros.m4: Likewise.
93363         * m4/lstat.m4: Likewise.
93364         * m4/malloc.m4: Likewise.
93365         * m4/memcmp.m4: Likewise.
93366         * m4/nanosleep.m4: Likewise.
93367         * m4/putenv.m4: Likewise.
93368         * m4/realloc.m4: Likewise.
93369         * m4/regex.m4: Likewise.
93370         * m4/stat.m4: Likewise.
93371         * m4/strftime.m4: Likewise.
93372
93373 2000-07-02  Jim Meyering  <meyering@lucent.com>
93374
93375         * lib/quotearg.c (mbstate_t): Don't define here.
93376
93377 2000-07-02  Jim Meyering  <meyering@lucent.com>
93378
93379         * lib/nanosleep.c (SIGCONT): Define if not already defined.
93380
93381 2000-07-01  Jim Meyering  <meyering@lucent.com>
93382
93383         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
93384
93385 2000-07-01  Jim Meyering  <meyering@lucent.com>
93386
93387         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
93388         problem.
93389
93390 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93391
93392         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
93393         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
93394
93395 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93396
93397         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
93398         per change in ../m4/ls-mntd-fs.m4.
93399         (read_filesystem_list): Ignore symbolic links.
93400
93401 2000-06-29  Jim Meyering  <meyering@lucent.com>
93402
93403         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
93404         for declaration of strcmp.
93405
93406         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
93407
93408         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
93409         Avoid warning by casting result to `char *' to remove `const'.
93410
93411 2000-06-28  Jim Meyering  <meyering@lucent.com>
93412
93413         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
93414         included by quotearg.c, for which we perform this test.  From
93415         Bruno Haible.
93416
93417 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93418
93419         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
93420         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
93421         <utmpx.h> exists, put readutmp.o into LIBOBJS.
93422
93423 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93424
93425         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
93426
93427 2000-06-26  Paul Eggert  <eggert@twinsun.com>
93428
93429         savedir now sets errno on failure and invokes xmalloc to get memory.
93430         Fix a couple of other minor bugs while we're at it.
93431
93432         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
93433         (NAMLEN): Remove macro.
93434         (malloc, realloc): Remove decls.
93435         (stpcpy): Likewise.
93436         ("xalloc.h"): Include.
93437         (NAME_SIZE_DEFAULT): New macro.
93438         (savedir): Use xmalloc / xrealloc to allocate memory.
93439         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
93440         Skip "" directory entries.
93441         Use strlen to calculate directory entry length, since the old method
93442         is rarely used these days and isn't worth supporting.
93443         Don't use a pointer after freeing it.
93444         Check for integer overflow when calculating allocation size.
93445         Use memcpy to copy entries, instead of stpcpy.
93446         Set errno properly when returning NULL.
93447         Check for readdir error.
93448
93449 2000-06-26  Jim Meyering  <meyering@lucent.com>
93450
93451         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
93452
93453 2000-06-25  Jim Meyering  <meyering@lucent.com>
93454
93455         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
93456         Linux header bug when _XOPEN_SOURCE is defined to 500.
93457
93458 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93459
93460         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
93461         deficiency.
93462
93463 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93464
93465         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
93466         Include xalloc.h.
93467         Don't include <stdlib.h>.  Don't declare malloc, realloc.
93468
93469 2000-06-24  Jim Meyering  <meyering@lucent.com>
93470
93471         * m4/strerror_r.m4: Revive this file -- to try out an experimental
93472         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
93473         for which strerror does return char*, but which lacks a conveniently
93474         accessible declaration of the function.  If the compile-test says
93475         strerror_r doesn't work, then resort to a `run'-test that works on
93476         BeOS and segfaults on DEC Unix.
93477
93478 2000-06-24  Jim Meyering  <meyering@lucent.com>
93479
93480         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
93481
93482 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93483
93484         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
93485         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
93486
93487 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93488
93489         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
93490         (mbrtowc, mbstate_t): Define substitutes if
93491         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
93492         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
93493         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
93494
93495 2000-06-23  Jim Meyering  <meyering@lucent.com>
93496
93497         * m4/afs.m4: Add missing AC_MSG_RESULT.
93498         Reported by Bruno Haible.
93499
93500         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
93501         Suggestion from Bruno Haible.
93502
93503 2000-06-23  Jim Meyering  <meyering@lucent.com>
93504
93505         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
93506
93507 2000-06-21  Jim Meyering  <meyering@lucent.com>
93508
93509         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
93510
93511 2000-06-21  Jim Meyering  <meyering@lucent.com>
93512
93513         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
93514         (noinst_HEADERS): Add getstr.h.
93515
93516         * lib/getline.c (getstr): Move into a separate file.
93517         * lib/getstr.c (getstr): New file, extracted from getline.c, with
93518         the following changes: new parameter, delim2; both delim[12]
93519         parameters have type `int', not `char'.  The latter would lose
93520         with 8-bit delimiters.
93521         * lib/getstr.h: New file.
93522
93523 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93524
93525         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
93526         than 1024, return a memory chunk of least possible size, instead
93527         of size PATH_MAX + 2. In the loop, increment the size proportionally.
93528         Use free/xmalloc instead of xrealloc to avoid copying for very long
93529         paths.
93530
93531 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93532
93533         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
93534         the empty string.
93535
93536 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93537
93538         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
93539         address, not strdup.  Include <stdlib.h> and don't declare free().
93540
93541 2000-06-19  Jim Meyering  <meyering@lucent.com>
93542
93543         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
93544
93545 2000-06-18  Jim Meyering  <meyering@lucent.com>
93546
93547         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
93548
93549         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
93550         `checking whether...' message to be consistent with that of the
93551         lstat test.
93552
93553 2000-06-18  Jim Meyering  <meyering@lucent.com>
93554
93555         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
93556         Besides, these days every porting target provides a mkdir function.
93557
93558         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
93559         needed. (this snippet comes from src/system.h).
93560
93561 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
93562
93563         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
93564
93565 2000-06-15  Paul Eggert  <eggert@twinsun.com>
93566
93567         * lib/human.c (adjust_value): New function.
93568         (human_readable_inexact): Apply rounding style even when
93569         printing approximate values.
93570
93571 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93572
93573         * lib/human.c (human_readable_inexact): Allow an input block
93574         size that is not a multiple of the output block size, and vice versa.
93575         Reported by Piergiorgio Sartor.
93576
93577 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93578
93579         * lib/getdate.y (get_date): Apply relative times after time
93580         zone indicator, not before.  Reported by Todd A. Jacobs.
93581
93582 2000-06-13  Jim Meyering  <meyering@lucent.com>
93583
93584         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
93585
93586         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
93587
93588 2000-06-12  Paul Eggert  <eggert@twinsun.com>
93589
93590         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
93591
93592 2000-06-12  Jim Meyering  <meyering@lucent.com>
93593
93594         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
93595         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
93596         optional argument.
93597         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
93598         the optional argument, `lib'.
93599
93600 2000-06-08  Jim Meyering  <meyering@lucent.com>
93601
93602         * m4/largefile.m4: Remove file (now that it's part of autoconf).
93603
93604 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93605
93606         Rewrite largefile configuration so that we don't need to run
93607         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
93608         AC_CANONICAL_HOST in configure.in -- jmm]
93609
93610         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
93611         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
93612         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
93613         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
93614         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
93615         All uses changed.
93616         Instead of inspecting the output of getconf, try to compile the
93617         test program without and with the macro definition.
93618         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
93619         for getconf.  Instead, check for the needed flags by compiling
93620         test programs.
93621
93622 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93623
93624         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
93625
93626 2000-06-04  Jim Meyering  <meyering@lucent.com>
93627
93628         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
93629         SunOS 4.1.4 for which gid_t is an unsigned type.
93630
93631 2000-06-03  Jim Meyering  <meyering@lucent.com>
93632
93633         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
93634         now that autoconf requires that.
93635
93636         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
93637         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
93638         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
93639
93640 2000-06-03  Jim Meyering  <meyering@lucent.com>
93641
93642         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
93643
93644 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93645
93646         * m4/glibc21.m4: New file.
93647         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
93648
93649 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93650
93651         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
93652         newer, don't install charset.alias.
93653         * lib/config.charset: Change the Linux/glibc rules so they become empty
93654         on glibc-2.1 or newer.
93655
93656 2000-06-02  Jim Meyering  <meyering@lucent.com>
93657
93658         * lib/mountlist.c: Back out last change.  Instead, do this...
93659         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
93660         me_dummy member using the same `ignore'-testing code.
93661         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
93662         fs_type strings.
93663         From Mark D. Roth.
93664
93665 2000-05-29  Jim Meyering  <meyering@lucent.com>
93666
93667         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
93668         mounts with the `ignore' attribute.  Based on a patch from
93669         Mark D. Roth.
93670
93671 2000-05-28  Jim Meyering  <meyering@lucent.com>
93672
93673         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
93674         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93675         * m4/stat.m4: Likewise.
93676         * m4/lstat.m4: Likewise.
93677         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
93678
93679         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
93680         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
93681
93682 2000-05-26  Jim Meyering  <meyering@lucent.com>
93683
93684         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
93685
93686 2000-05-24  Jim Meyering  <meyering@lucent.com>
93687
93688         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
93689         autoconf requires that.
93690         * m4/lib-check.m4: Likewise.
93691         * m4/jm-macros.m4: Likewise.
93692         * m4/strftime.m4: Likewise.
93693
93694         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
93695         AC_CHECK_DECLS, now that autoconf requires that.
93696
93697 2000-05-22  Jim Meyering  <meyering@lucent.com>
93698
93699         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93700         * m4/lstat.m4: Likewise.
93701
93702 2000-05-22  Jim Meyering  <meyering@lucent.com>
93703
93704         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
93705
93706 2000-05-20  Jim Meyering  <meyering@lucent.com>
93707
93708         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
93709         (jm_PREREQ): Use it.
93710
93711 2000-05-18  Jim Meyering  <meyering@lucent.com>
93712
93713         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
93714         back, too, since it may have been modified by allocate_entry.
93715         (hash_delete): Rewrite to use neither the assignment operator
93716         nor the comma operator in an if-expression.
93717
93718 2000-05-15  Paul Eggert  <eggert@twinsun.com>
93719
93720         * lib/closeout.c:
93721         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
93722         Remove; no longer needed.
93723         "quotearg.h": Add include.
93724         (file_name): Do not bother to explicitly initialize to NULL; it's less
93725         efficient on some hosts.
93726         (close_stdout_status): Remove test as to whether stdout was already
93727         closed; it breaks for the case "echo x | sort >&-".
93728         Quote file name colons.
93729         Do not assume that _("write error") lacks format strings.
93730
93731 2000-05-15  Jim Meyering  <meyering@lucent.com>
93732
93733         * lib/version-etc.c (version_etc_copyright): Update the copyright
93734         string used in all --version output.
93735
93736 2000-05-14  Jim Meyering  <meyering@lucent.com>
93737
93738         * lib/closeout.c (close_stdout_set_file_name): New function.
93739         (close_stdout_status): Use new file-scoped global.
93740         Return right away if fstat says the stdout file descriptor is invalid.
93741         * lib/closeout.h (close_stdout_set_file_name): Declare.
93742
93743 2000-05-10  Jim Meyering  <meyering@lucent.com>
93744
93745         * lib/closeout.c [default_exit_status]: New file-scoped variable.
93746         (close_stdout_set_status): New function.
93747         * lib/closeout.h (close_stdout_set_status): Declare.
93748
93749 2000-05-09  Jim Meyering  <meyering@lucent.com>
93750
93751         * m4/gettext.m4: Rename this...
93752         * m4/libintl.m4: ...to this.
93753
93754 2000-05-08  Jim Meyering  <meyering@lucent.com>
93755
93756         * lib/long-options.c: Don't include closeout.h.
93757         (parse_long_options): Don't call close_stdout for --version.
93758
93759 2000-05-06  Paul Eggert  <eggert@twinsun.com>
93760
93761         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
93762         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
93763         2.1.3 bug.  This avoids a clash when files like regex.c define
93764         _GNU_SOURCE.
93765
93766 2000-05-06  Jim Meyering  <meyering@lucent.com>
93767
93768         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
93769         (AC_REPLACE_FUNCS): Add strnlen.
93770
93771         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
93772         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
93773
93774         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
93775         AC_SEARCH_LIBS call for nanosleep.
93776         (LIB_NANOSLEEP): Set and AC_SUBST.
93777
93778 2000-05-06  Jim Meyering  <meyering@lucent.com>
93779
93780         * lib/strnlen.c: Undefine __strnlen and strnlen.
93781         [!weak_alias]: Define __strnlen to strnlen.
93782
93783         * lib/atexit.c: New file, from libiberty.
93784
93785 2000-05-06  Jim Meyering  <meyering@lucent.com>
93786
93787         * lib/closeout.c (close_stdout_status): Also check for errors on the
93788         stderr stream.
93789
93790 2000-05-05  Jim Meyering  <meyering@lucent.com>
93791
93792         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
93793         AC_SEARCH_LIBS call for clock_gettime.
93794         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
93795
93796         * m4/search-libs.m4: Update from autoconf.
93797
93798         su doesn't work on Solaris 2.6.
93799         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
93800         <shadow.h>.  Reported by Dragos Harabor.
93801
93802 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
93803
93804         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
93805         memcpy instead of xmalloc, xrealloc, path_concat.
93806         (locale_charset): Treat empty environment variables as absent.
93807         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
93808
93809 2000-05-04  Jim Meyering  <meyering@lucent.com>
93810
93811         * lib/getopt.c: Update from glibc.
93812         * lib/obstack.c: Likewise.
93813         * lib/obstack.h: Likewise.
93814         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
93815         file
93816
93817         * lib/regex.h: Likewise.
93818         * lib/strndup.c: Likewise.
93819         * lib/strnlen.c: New file, from glibc.
93820
93821 2000-05-03  Jim Meyering  <meyering@lucent.com>
93822
93823         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
93824
93825 2000-05-02  Paul Eggert  <eggert@twinsun.com>
93826
93827         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
93828         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
93829         compile-time test, rather than inspecting host and OS, to
93830         decide whether to define _LARGEFILE_SOURCE.
93831
93832 2000-05-01  Jim Meyering  <meyering@lucent.com>
93833
93834         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
93835
93836         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
93837         Based on a patch from Bruno Haible.
93838
93839 2000-05-01  Jim Meyering  <meyering@lucent.com>
93840
93841         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
93842
93843 2000-04-29  Jim Meyering  <meyering@lucent.com>
93844
93845         * lib/path-concat.c: Declare strdup only if it's not defined.
93846         * lib/canon-host.c: Likewise.
93847
93848 2000-04-28  Jim Meyering  <meyering@lucent.com>
93849
93850         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
93851         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
93852         is included first, then limits.h is included by locale.h by libintl.h.
93853         From John David Anglin.
93854
93855 2000-04-25  Jim Meyering  <meyering@lucent.com>
93856
93857         * lib/makepath.c (S_IRWXUGO): Define.
93858         (make_path): Always perform explicit chmod if MODE specifies any
93859         of the `special' permission bits.  Prompted by a bug report against
93860         install from Mate Wierdl and Joost van Baal.
93861
93862 2000-04-18  Jim Meyering  <meyering@lucent.com>
93863
93864         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
93865         (jm_PREREQ): Use it.
93866
93867 2000-04-18  Jim Meyering  <meyering@lucent.com>
93868
93869         * lib/README: New file.
93870
93871         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
93872         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
93873
93874 2000-04-17  Jim Meyering  <meyering@lucent.com>
93875
93876         Get it right :-)
93877         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
93878         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
93879         Suggestion from Akim Demaille.
93880
93881 2000-04-17  Jim Meyering  <meyering@lucent.com>
93882
93883         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
93884         the definition of it to rpl_strftime also defined-away the system's
93885         declaration.
93886
93887 2000-04-15  Jim Meyering  <meyering@lucent.com>
93888
93889         Use `C' to denote so-called `contiguous' files, the same way
93890         that tar does.
93891         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
93892         (ftypelet): Use S_ISCTG.
93893         From Michael Deutschmann.
93894
93895 2000-04-14  Jim Meyering  <meyering@lucent.com>
93896
93897         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
93898         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
93899         clobbered.
93900
93901 2000-04-14  Jim Meyering  <meyering@lucent.com>
93902
93903         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
93904
93905 2000-04-13  Jim Meyering  <meyering@lucent.com>
93906
93907         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
93908         AH_VERBATIM to insert required #ifndef into config.h.in.
93909         Suggestion from Akim Demaille.
93910
93911 2000-04-12  Jim Meyering  <meyering@lucent.com>
93912
93913         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
93914         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
93915         Christian Krackowizer.
93916
93917         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
93918         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
93919         (AC_SYS_LARGEFILE): Require.
93920         (AM_C_PROTOTYPES): Require.
93921
93922 2000-04-08  Jim Meyering  <meyering@lucent.com>
93923
93924         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
93925         names don't conflict.  Reported by Eli Zaretskii.
93926
93927 2000-04-07  Jim Meyering  <meyering@lucent.com>
93928
93929         * lib/putenv.c: Move inclusion of errno.h so it follows that of
93930         sys/types.h, to work around system header problems on AIX 3.2.5.
93931         From Bruno Haible.
93932
93933 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
93934
93935         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
93936         bug.  Deal with the different error behavior of Irix iconv.
93937
93938 2000-04-05  Paul Eggert  <eggert@twinsun.com>
93939
93940         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
93941         IRIX if the installer said otherwise.
93942
93943 2000-04-05  Jim Meyering  <meyering@lucent.com>
93944
93945         Portability tweaks required for ultrix4.3.
93946         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
93947         (jm_CHECK_DECLS): Add getutent to the list of functions.
93948         (_jm_DECL_HEADERS): Add utmpx.h.
93949         From John David Anglin.
93950
93951         * m4/strftime.m4: Back out the 2000-04-02 change.
93952         Instead of that change, simply undefine putenv in the test program.
93953
93954 2000-04-05  Jim Meyering  <meyering@lucent.com>
93955
93956         Portability tweaks required for ultrix4.3.
93957         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
93958         getutent.
93959         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
93960         * lib/canon-host.c: Declare strdup.
93961         * lib/path-concat.c: Likewise.
93962         From John David Anglin.
93963
93964 2000-04-04  Jim Meyering  <meyering@lucent.com>
93965
93966         Be more DOS 8.3-friendly.
93967         * lib/ref-add.sin: Renamed from ref-add.sed.in.
93968         * lib/ref-del.sin: Renamed from ref-del.sed.in.
93969         * lib/Makefile.am: Reflect renaming.
93970         Reported by Eli Zaretskii.
93971
93972         Use a temporary file name that won't clash with `charset.alias'
93973         in the DOS 8.3 name space.
93974         * lib/Makefile.am (charset_tmp): Define.
93975         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
93976         (uninstall-local): Likewise.
93977         Reported by Eli Zaretskii.
93978
93979 2000-04-03  Jim Meyering  <meyering@lucent.com>
93980
93981         * m4/gettext.m4: Fix typo in comment.
93982
93983         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
93984         textutils/configure.in).  Suggestion from Paul Eggert.
93985         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
93986
93987 2000-04-02  Paul Eggert  <eggert@twinsun.com>
93988
93989         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
93990         variable in the shell rather than using putenv, which isn't
93991         portable.  This avoids the configure-time inter-test dependency
93992         on the potentially-renamed putenv function.
93993
93994 2000-03-30  Paul Eggert  <eggert@twinsun.com>
93995
93996         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
93997         before checking struct stat.st_blksize, so that
93998         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
93999
94000 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94001
94002         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
94003         since strftime.c uses HAVE_STRFTIME to decide whether to use
94004         the underlying strftime.
94005
94006 2000-03-29  Paul Eggert  <eggert@twinsun.com>
94007
94008         * lib/time/strftime.c (my_strftime): Make sure we call the system
94009         strftime, not ourselves, when invoking the underlying strftime.
94010
94011 2000-03-24  Jim Meyering  <meyering@lucent.com>
94012
94013         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
94014         (charset_alias): Define.
94015         (install-exec-local): Factor out common code.
94016         (uninstall-local): Split lines longer than 80.
94017         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
94018         (SUFFIXES): Define.
94019         (.sed.in.sed): New rule.  Don't redirect directly to $@.
94020         (CLEANFILES): Add ref-add.sed and ref-del.sed.
94021
94022 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
94023
94024         * lib/config.charset: Output a line containing "Packages using this
94025         file".
94026         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
94027         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
94028         ref-del.sed): New rules.
94029
94030 2000-03-17  Jim Meyering  <meyering@lucent.com>
94031
94032         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
94033         Otherwise, include <strings.h>
94034
94035 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
94036
94037         * lib/unicodeio.c (utf8_wctomb): New function.
94038         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
94039         format instead of in UCS-4 with platform dependent endianness.
94040
94041 2000-03-10  Jim Meyering  <meyering@lucent.com>
94042
94043         * m4/lib-check.m4: Look for getspnam in -lgen, too.
94044         From Marco Franzen.
94045
94046 2000-03-07  Paul Eggert  <eggert@twinsun.com>
94047
94048         * lib/savedir.c (savedir): Work even if directory size is
94049         negative; this can happen with some screwy NFS configurations.
94050
94051 2000-03-06  Jim Meyering  <meyering@lucent.com>
94052
94053         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
94054         if it's NULL (because we ran out of memory).  From Bruno Haible.
94055
94056 2000-03-05  Jim Meyering  <meyering@lucent.com>
94057
94058         * lib/localcharset.c ("path-concat.h"): Include.
94059         (get_charset_aliases): Use path_concat instead of ANSI string
94060         concatenation.
94061
94062         * lib/unicodeio.h (PARAMS): Define.
94063         Use it to guard prototype.
94064
94065 2000-03-04  Jim Meyering  <meyering@lucent.com>
94066
94067         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
94068         for lib/localcharset.c.
94069
94070 2000-03-04  Jim Meyering  <meyering@lucent.com>
94071
94072         * lib/Makefile.am (install-exec-local): Create $(libdir) before
94073         installing into it.
94074         (uninstall-local): Uncomment this rule so `make distcheck' works
94075         once again.
94076
94077         * lib/unicodeio.c (<errno.h>): Include it.
94078         (errno): Declare if not defined.
94079
94080         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
94081
94082         * lib/config.charset: New version, incorporating remarks from a linux
94083         i18n mailing list.  From Bruno Haible.
94084
94085 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
94086
94087         * m4/codeset.m4: New file.
94088         * m4/iconv.m4: New file.
94089         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
94090
94091 2000-03-03  Jim Meyering  <meyering@lucent.com>
94092
94093         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
94094
94095 2000-03-02  Jim Meyering  <meyering@lucent.com>
94096
94097         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
94098         the messages come out on separate lines.
94099
94100         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
94101         rather than jm_CHECK_DECLARATIONS.
94102         * m4/decl.m4: Remove now-unused file.
94103
94104         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
94105         geteuid.
94106
94107 2000-03-02  Jim Meyering  <meyering@lucent.com>
94108
94109         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
94110
94111 2000-03-01  Jim Meyering  <meyering@lucent.com>
94112
94113         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
94114         * lib/unicodeio.c: Likewise.
94115
94116 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
94117
94118         * lib/config.charset: New file.
94119         * lib/localcharset.c: New file.
94120         * lib/unicodeio.h, lib/unicodeio.c: New files.
94121         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
94122         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
94123         (noinst_HEADERS): Add unicodeio.h.
94124         (all-local, install-exec-local, charset.alias): New targets.
94125
94126 2000-02-28  Paul Eggert  <eggert@twinsun.com>
94127
94128         * lib/quotearg.c (ALERT_CHAR): New macro.
94129         (quotearg_buffer_restyled): Use it.
94130
94131 2000-02-27  Jim Meyering  <meyering@lucent.com>
94132
94133         * m4/check-decl.m4: Add getenv to the list.
94134
94135 2000-02-27  Jim Meyering  <meyering@lucent.com>
94136
94137         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
94138         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
94139
94140         * lib/backupfile.c: Guard inclusion of stdlib.h with
94141         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
94142         Declare malloc if needed.
94143
94144         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
94145         `#ifndef HAVE_DECL..'
94146         now that autoconf always defines the HAVE_DECL_ symbols.
94147         * lib/human.c: Likewise.
94148         * lib/same.c: Likewise.
94149         * lib/strtoumax.c: Likewise.
94150
94151         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
94152         declaration check was not run.
94153         * lib/hash.c: Likewise.
94154         * lib/human.c: Likewise.
94155         * lib/same.c: Likewise.
94156         * lib/strtoumax.c: Likewise.
94157
94158         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
94159         `.', then first look up the entire `.'-containing string as a login
94160         name.
94161
94162 2000-02-23  Jim Meyering  <meyering@lucent.com>
94163
94164         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
94165         in place of my hack.
94166
94167 2000-02-18  Paul Eggert  <eggert@twinsun.com>
94168
94169         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
94170         (textint): New typedef.
94171         (parser_control): Member year changed from int to textint.
94172         All uses changed.
94173         (YYSTYPE): Removed; replaced by %union with int and textint members.
94174         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
94175         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
94176         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
94177         (tSNUMBER, tUNUMBER): Now of type <textintval>.
94178         (date, number, to_year): Use width of number in digits, not its value,
94179         to determine whether it's a 2-digit year, or a 2-digit time.
94180         (yylex): Store number of digits of numeric tokens.
94181         Reported by John Kendall.
94182
94183         (parser_control): Changed from struct parser_control to typedef (for
94184         consistency).  All uses changed.
94185
94186         (tID): Removed; not used.
94187         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
94188
94189 2000-02-14  Paul Eggert  <eggert@twinsun.com>
94190
94191         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
94192         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
94193
94194 2000-02-12  Jim Meyering  <meyering@lucent.com>
94195
94196         * lib/userspec.c (ISDIGIT): Define it.
94197         (isdigit): Remove definition.
94198         (is_number): Use ISDIGIT, not isdigit.
94199         <libintl.h>: Include.
94200         (_ and N_): Define.
94201         (parse_user_spec): Mark translatable strings.
94202
94203 2000-02-10  Jim Meyering  <meyering@lucent.com>
94204
94205         With these changes, nanosleep.[ch] are finally enough like the other
94206         lib/* replacement files to compile on a few more losing systems.
94207
94208         * lib/nanosleep.h: Don't include config.h.
94209         Remove prototype from declaration of nanosleep.
94210         (PARAMS): Remove now-unneeded definition.
94211         * lib/nanosleep.c: #undef nanosleep.
94212         (rpl_nanosleep): Rename from nanosleep.
94213
94214 2000-02-10  Jim Meyering  <meyering@lucent.com>
94215
94216         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
94217         gnu_nanosleep to rpl_nanosleep.
94218
94219 2000-02-09  Jim Meyering  <meyering@lucent.com>
94220
94221         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
94222         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
94223
94224 2000-02-08  Akim Demaille  <akim@epita.fr>
94225
94226         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
94227         `[' and `]' and remove uses of `changequote'.
94228         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
94229         (AC_SYS_LARGEFILE): Likewise.
94230         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
94231         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
94232         of changequote.
94233         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
94234         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
94235         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
94236         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
94237
94238 2000-02-05  Jim Meyering  <meyering@lucent.com>
94239
94240         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
94241         Remove explicit use of AC_HEADER_TIME.  It is required by
94242         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
94243         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
94244         in autoconf whereby the expansion of the latter ended up preceding
94245         the expansion of its prerequisite, AC_HEADER_TIME.
94246         Reported by Volker Borchert.
94247
94248 2000-02-03  Jim Meyering  <meyering@lucent.com>
94249
94250         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
94251
94252 2000-02-03  Jim Meyering  <meyering@lucent.com>
94253
94254         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
94255         rather than with `#if HAVE_UTMPNAME'.
94256
94257 2000-02-02  Jim Meyering  <meyering@lucent.com>
94258
94259         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
94260         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
94261         Reported by Eli Zaretskii.
94262
94263 2000-02-01  Jim Meyering  <meyering@lucent.com>
94264
94265         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94266
94267 2000-01-31  Jim Meyering  <meyering@lucent.com>
94268
94269         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94270         functions.  Add the time.h and sys/time.h headers along with the
94271         AC_REQUIRE'ment of AC_HEADER_TIME.
94272
94273 2000-01-31  Jim Meyering  <meyering@lucent.com>
94274
94275         * lib/nanosleep.h (nanosleep): Guard declaration with
94276         `#if ! HAVE_DECL_NANOSLEEP'.
94277         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94278         the declaration in that vendor's sys/timers.h.
94279         Reported by Christian Krackowizer.
94280
94281         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94282         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94283         (ISPRINT): Likewise.
94284         Reported by Tom Tromey.
94285
94286 2000-01-30  Jim Meyering  <meyering@lucent.com>
94287
94288         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
94289
94290         * m4/prereq.m4 (utmp_includes): Define.
94291         Check for ut_user and ut_name members in both struct utmpx
94292         and struct utmp.
94293
94294 2000-01-30  Jim Meyering  <meyering@lucent.com>
94295
94296         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
94297         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
94298         header files where only utmpx.ut_user is declared.
94299
94300         * lib/readutmp.h (UT_USER): Define.
94301
94302 2000-01-29  Jim Meyering  <meyering@lucent.com>
94303
94304         * m4/lib-check.m4: New file containing library-related checks from
94305         fileutils and sh-utils (textutils had none).
94306
94307 2000-01-28  Jim Meyering  <meyering@lucent.com>
94308
94309         * m4/perl.m4: Change format of warning message to look more like that
94310         from the missing script.  Suggestion from François Pinard.
94311
94312 2000-01-25  Jim Meyering  <meyering@lucent.com>
94313
94314         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
94315         well as time.h in the compile check.
94316         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
94317         Fix typo in cross-compiling case: s/yes/no/.
94318
94319 2000-01-23  Jim Meyering  <meyering@lucent.com>
94320
94321         * m4/jm-macros.m4: Move df-related tests here from
94322         fileutils/configure.in
94323
94324         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
94325         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
94326
94327         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
94328         s/space/ac_fsusage_space/.
94329         (jm_FILE_SYSTEM_USAGE): Take two parameters.
94330
94331         * m4/ftruncate.m4: New file (derived from part of
94332         fileutils/configure.in).
94333         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
94334         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
94335
94336         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
94337         AC_SUBST these here, rather than just in sh-util/configure.in, so
94338         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
94339         all the same.
94340         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
94341         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
94342         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
94343         (AC_SUBST(POW_LIBM)): Likewise.
94344         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
94345
94346 2000-01-23  Jim Meyering  <meyering@lucent.com>
94347
94348         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
94349         obstack.c.
94350
94351 2000-01-22  Jim Meyering  <meyering@lucent.com>
94352
94353         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
94354
94355         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
94356
94357         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
94358         configure.in
94359         (AC_CHECK_HEADERS): Likewise for sh-utils.
94360         (AC_CHECK_HEADERS): Likewise for textutils.
94361         Merge the three lists of headers.
94362
94363         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
94364         from fileutils' configure.in.
94365
94366         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
94367         code. Moved tests into their own function (_jm_DECL_HEADERS) in
94368         check-decl.m4.
94369
94370         * m4/check-decl.m4: Use #if rather than #ifdef.
94371         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
94372         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
94373         (_jm_DECL_HEADERS): Define new function.
94374         (jm_CHECK_DECLARATIONS): Require it.
94375
94376 2000-01-22  Jim Meyering  <meyering@lucent.com>
94377
94378         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
94379         [! HAVE_DECL_STRTOULL]: Declare strtoull.
94380         Required for some AIX systems.  Reported by Christian Krackowizer.
94381         [TESTING] (main): New function.
94382
94383         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
94384         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
94385         letters.
94386
94387         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
94388         iswprint.
94389
94390         * lib/strverscmp.c (ISDIGIT): Define.
94391         (strverscmp): Use ISDIGIT, not isdigit.
94392
94393 2000-01-19  Jim Meyering  <meyering@lucent.com>
94394
94395         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
94396         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
94397         defines `struct timespec' in <sys/time.h>
94398
94399         * m4/c-bs-a.m4: Remove uses of changequote altogether.
94400         Thanks to Akim for explaining.
94401
94402 2000-01-17  Paul Eggert  <eggert@twinsun.com>
94403
94404         * lib/nanosleep.c (nanosleep):
94405         Don't use SA_INTERRUPT to decide whether to call sigaction, as
94406         POSIX.1 doesn't require SA_INTERRUPT and some systems
94407         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
94408         it's been part of POSIX.1 since day 1 (in 1988).
94409
94410 2000-01-17  Jim Meyering  <meyering@lucent.com>
94411
94412         * lib/interlock: Remove unused file.  Reported by François Pinard.
94413
94414 2000-01-16  Paul Eggert  <eggert@twinsun.com>
94415
94416         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
94417         alert, backslash, formfeed, and vertical tab unnecessarily in
94418         shell quoting style.
94419
94420 2000-01-16  Jim Meyering  <meyering@lucent.com>
94421
94422         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
94423         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
94424         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
94425         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
94426
94427 2000-01-16  Jim Meyering  <meyering@lucent.com>
94428
94429         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
94430         because the latter didn't work.
94431
94432 2000-01-15  Jim Meyering  <meyering@lucent.com>
94433
94434         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
94435         (AC_REPLACE_FUNCS): Add memcpy and memset.
94436         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
94437         Add strpbrk.
94438         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
94439
94440 2000-01-12  Jim Meyering  <meyering@lucent.com>
94441
94442         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
94443         (jm_PREREQ): Use it.
94444         (jm_PREREQ_READUTMP): New macro.
94445         (jm_PREREQ): Use it.
94446
94447 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94448
94449         Quote multibyte characters correctly.
94450         * m4/c-bs-a.m4: New file.
94451         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
94452         (jm_PREREQ): Use it.
94453
94454 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94455
94456         * m4/uintmax_t.m4: Port to autoconf 2.13.
94457
94458 2000-01-08  Jim Meyering  <meyering@ascend.com>
94459
94460         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
94461         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
94462
94463 2000-01-04  Jim Meyering  <meyering@ascend.com>
94464
94465         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
94466         jm_STRUCT_DIRENT_D_TYPE.
94467         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
94468         jm_STRUCT_DIRENT_D_INO.
94469         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
94470         jm_STRUCT_UTIMBUF.
94471         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
94472         renamings.
94473         * m4/utime.m4: Likewise.
94474
94475         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
94476         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
94477
94478 2000-01-03  Paul Eggert  <eggert@twinsun.com>
94479
94480         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
94481         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
94482
94483 2000-01-02  Jim Meyering  <meyering@ascend.com>
94484
94485         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
94486         remember if this is necessary.
94487
94488 1999-12-26  Jim Meyering  <meyering@ascend.com>
94489
94490         * m4/jm-macros.m4: Use it here.
94491         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
94492
94493 1999-12-23  Jim Meyering  <meyering@ascend.com>
94494
94495         * m4/jm-macros.m4: Check for clock_gettime (moved from
94496         fileutils/configure.in)
94497         Check for gettimeofday.
94498
94499 1999-12-20  Jim Meyering  <meyering@ascend.com>
94500
94501         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
94502         autoconf-2.14a-1999-12-20.
94503
94504 1999-12-19  Jim Meyering  <meyering@ascend.com>
94505
94506         * m4/lstat-slash.m4: New file.
94507         * m4/jm-macros.m4: Use the new macro:
94508         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94509
94510 1999-12-07  Jim Meyering  <meyering@ascend.com>
94511
94512         * m4/perl.m4: Require that File::Compare be available, too.
94513         Too many systems seem to lack it.
94514
94515         * m4/strftime.m4: Add checks for most of the cpp macros tested in
94516         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
94517
94518 1999-11-18  Paul Eggert  <eggert@twinsun.com>
94519
94520         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
94521         problem with the QNX 4.25 shell, which doesn't propagate exit
94522         status of failed commands inside shell assignments.
94523
94524 1999-11-17  Jim Meyering  <meyering@ascend.com>
94525
94526         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
94527
94528 1999-11-07  Jim Meyering  <meyering@ascend.com>
94529
94530         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
94531
94532 1999-11-06  Jim Meyering  <meyering@ascend.com>
94533
94534         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
94535         * m4/jm-macros.m4 (jm_MACROS): Use it here.
94536
94537 1999-11-05  Jim Meyering  <meyering@ascend.com>
94538
94539         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
94540         configure.in of textutils, fileutils, and sh-utils into this one
94541         (shared between those packages) file.
94542         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
94543         AC_STRUCT_ST_BLKSIZE.
94544
94545 1999-11-03  Jim Meyering  <meyering@ascend.com>
94546
94547         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
94548         of AC_CHECK_TYPE checks includes unistd.h.
94549         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
94550         Suggestion from Akim Demaille.
94551
94552 1999-10-30  Jim Meyering  <meyering@ascend.com>
94553
94554         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
94555         m4-quoted string.
94556         * m4/ls-mntd-fs.m4: Likewise.
94557         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
94558         * m4/jm-winsz1.m4: Likewise.
94559
94560         * m4/const.m4: Remove file, since the fix made it into the experimental
94561         version of autoconf.
94562         * m4/mktime.m4: Likewise.
94563
94564         * m4/check-type.m4: Remove file, now that the latest version of
94565         AC_CHECK_TYPE takes a third arg to specify additional #includes.
94566
94567         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
94568         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
94569         AC_CHECK_TYPE.
94570
94571 1999-10-04  Jim Meyering  <meyering@ascend.com>
94572
94573         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
94574
94575 1999-09-22  Paul Eggert  <eggert@twinsun.com>
94576
94577         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
94578         2.95.1 bug with HP-UX 10.20.
94579
94580 1999-09-17  Jim Meyering  <meyering@ascend.com>
94581
94582         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
94583         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
94584         due to missing strdup (against sh-utils-2.0).
94585
94586 1999-08-29  Jim Meyering  <meyering@ascend.com>
94587
94588         * m4/jm-macros.m4: Require jm_BISON.
94589         * m4/bison.m4: New file.
94590
94591 1999-08-17  Paul Eggert  <eggert@twinsun.com>
94592
94593         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
94594         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
94595
94596 1999-08-05  Jim Meyering  <meyering@ascend.com>
94597
94598         * m4/getline.m4: Rename test file from conftestdata to conftest.data
94599         to avoid conflicts with `conftest' on 8+3 filesystems.
94600         Suggestion from Eli Zaretskii.
94601
94602 1999-08-04  Jim Meyering  <meyering@ascend.com>
94603
94604         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
94605         fileutils and sh-utils (textutils's getline test was inadequate).
94606         (AM_FUNC_GETLINE): Run this test.
94607         (AC_CHECK_FUNCS): Check for getdelim.
94608         Reported by Bob Proulx.
94609
94610 1999-08-02  Jim Meyering  <meyering@ascend.com>
94611
94612         * m4/jm-macros.m4: Add a comment.
94613
94614 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94615
94616         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
94617         <inttypes.h> defines strtoumax as a macro (and not as a
94618         function).
94619
94620 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94621
94622         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
94623         that we can shift, multiply and divide unsigned long long
94624         values; Ultrix cc can't do it.
94625
94626 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94627
94628         * m4/mktime.m4: New file, which is a preview of what should appear
94629         in the next public autoconf release.
94630
94631 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94632
94633         * m4/lfs.m4: Remove this file.
94634         * m4/largefile.m4: New file.  It contains the old contents of
94635         lfs.m4, except that all names with prefix AC_LFS have been
94636         changed to use the prefix AC_SYS_LARGEFILE instead, to be
94637         compatible with future autoconf versions.  Also, some minor m4
94638         quoting problems have been fixed.
94639
94640 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94641
94642         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
94643         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
94644         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
94645         and simplify the shell code.
94646
94647 1999-08-01  Jim Meyering  <meyering@ascend.com>
94648
94649         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
94650         m4.
94651
94652 1999-07-20  Jim Meyering  <meyering@ascend.com>
94653
94654         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
94655
94656 1999-07-15  Jim Meyering  <meyering@ascend.com>
94657
94658         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
94659
94660 1999-05-22  Jim Meyering  <meyering@ascend.com>
94661
94662         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
94663
94664 1999-05-20  Jim Meyering  <meyering@ascend.com>
94665
94666         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
94667         Add a colon after each `then' in case $4 is empty.
94668
94669 1999-05-16  Jim Meyering  <meyering@ascend.com>
94670
94671         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
94672
94673 1999-05-10  Jim Meyering  <meyering@ascend.com>
94674
94675         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
94676
94677         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
94678         AC_FUNC_MKTIME.
94679
94680 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
94681
94682         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
94683
94684 1999-05-04  Paul Eggert  <eggert@twinsun.com>
94685
94686         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
94687         not CPPFLAGS, so that linking works correctly in IRIX.
94688
94689 1999-04-30  Paul Eggert  <eggert@twinsun.com>
94690
94691         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
94692
94693 1999-04-20  Paul Eggert  <eggert@twinsun.com>
94694
94695         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
94696         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
94697         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
94698         jm_AC_TYPE_UNSIGNED_LONG_LONG.
94699         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
94700
94701         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
94702
94703 1999-04-20  Jim Meyering  <meyering@ascend.com>
94704
94705         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
94706         AC_REPLACE xstroull if necessary.  From Paul Eggert.
94707         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
94708
94709 1999-04-18  Jim Meyering  <meyering@ascend.com>
94710
94711         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
94712         * m4/jm-macros.m4: Use it.
94713
94714 1999-04-06  Jim Meyering  <meyering@ascend.com>
94715
94716         * m4/strftime.m4: Remove test for %f.
94717
94718 1999-03-29  Jim Meyering  <meyering@ascend.com>
94719
94720         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
94721         superset of the AC_TYPE_* checks in the textutils, fileutils,
94722         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
94723         AC_TYPE_PID_T.
94724
94725 1999-03-28  Jim Meyering  <meyering@ascend.com>
94726
94727         * m4/jm-macros.m4: Define GNU_PACKAGE here.
94728         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
94729         replaced e.g., in the *.sh files of the sh-utils.
94730
94731 1999-03-20  Jim Meyering  <meyering@ascend.com>
94732
94733         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
94734         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
94735         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
94736
94737 1999-03-19  Jim Meyering  <meyering@ascend.com>
94738
94739         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
94740
94741 1999-03-12  Jim Meyering  <meyering@ascend.com>
94742
94743         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
94744
94745 1999-03-07  Jim Meyering  <meyering@ascend.com>
94746
94747         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
94748         declared.
94749
94750 1999-02-17  Jim Meyering  <meyering@ascend.com>
94751
94752         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
94753         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
94754
94755 1999-02-07  Jim Meyering  <meyering@ascend.com>
94756
94757         * m4/group-member.m4: New file -- extracted from sh-utils'
94758         configure.in.
94759
94760         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
94761         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
94762
94763 1999-02-06  Jim Meyering  <meyering@ascend.com>
94764
94765         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
94766         * m4/fnmatch.m4: Likewise.
94767         * m4/getgroups.m4: Likewise.
94768         * m4/lstat.m4: Likewise.
94769         * m4/malloc.m4: Likewise.
94770         * m4/putenv.m4: Likewise.
94771         * m4/realloc.m4: Likewise.
94772         * m4/regex.m4: Likewise.
94773         * m4/stat.m4: Likewise.
94774         * m4/strftime.m4: Likewise.
94775         Suggestion from Alain Magloire.
94776
94777         * m4/chown.m4: Use `.$ac_objext', not `.o'.
94778         * m4/fnmatch.m4: Likewise.
94779         * m4/getgroups.m4: Likewise.
94780         * m4/getline.m4: Likewise.
94781         * m4/lstat.m4: Likewise.
94782         * m4/malloc.m4: Likewise.
94783         * m4/memcmp.m4: Likewise.
94784         * m4/putenv.m4: Likewise.
94785         * m4/realloc.m4: Likewise.
94786         * m4/regex.m4: Likewise.
94787         * m4/stat.m4: Likewise.
94788         * m4/strftime.m4: Likewise.
94789         Suggestion from Alain Magloire.
94790
94791         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
94792         an argument.
94793
94794         * m4/regex.m4: Add a run-time Test for proper operation of
94795         re_compile_pattern.
94796
94797 1999-01-31  Jim Meyering  <meyering@ascend.com>
94798
94799         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
94800
94801 1999-01-30  Jim Meyering  <meyering@ascend.com>
94802
94803         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
94804
94805         * m4/jm-mktime.m4: Make this a wrapper around the official
94806         AM_FUNC_MKTIME rather than my private copy, now that the official one
94807         is up to date.
94808         * m4/mktime.m4: Remove file.
94809
94810         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
94811         * m4/uptime.m4: Likewise.
94812         * m4/uintmax_t.m4: Likewise.
94813
94814 1999-01-28  Jim Meyering  <meyering@ascend.com>
94815
94816         * m4/jm-macros.m4: Use jm_AFS.
94817         * m4/afs.m4: New file (from fileutils' configure.in).
94818
94819         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
94820         * m4/chown.m4: Likewise.
94821         * m4/d-ino.m4: Likewise.
94822         * m4/d-type.m4: Likewise.
94823         * m4/fnmatch.m4: Likewise.
94824         * m4/getgroups.m4: Likewise.
94825         * m4/gettext.m4: Likewise.
94826         * m4/jm-mktime.m4: Likewise.
94827         * m4/jm-winsz2.m4: Likewise.
94828         * m4/lcmessage.m4: Likewise.
94829         * m4/ls-mntd-fs.m4: Likewise.
94830         * m4/malloc.m4: Likewise.
94831         * m4/memcmp.m4: Likewise.
94832         * m4/putenv.m4: Likewise.
94833         * m4/realloc.m4: Likewise.
94834         * m4/st_mtim.m4: Likewise.
94835         * m4/strftime.m4: Likewise.
94836
94837 1999-01-16  Jim Meyering  <meyering@ascend.com>
94838
94839         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
94840         (ARGMATCH_DIE_DECL): Define.
94841
94842 1999-01-12  Jim Meyering  <meyering@ascend.com>
94843
94844         * m4/Makefile.am.in: Rewrite to avoid using fmt.
94845         Reported by Lars Hecking.
94846
94847 1999-01-10  Jim Meyering  <meyering@ascend.com>
94848
94849         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
94850         gross kludge.
94851         * m4/inttypes_h.m4: Likewise.
94852         * m4/lstat.m4: Likewise.
94853         * m4/malloc.m4: Likewise.
94854         * m4/readdir.m4: Likewise.
94855         * m4/realloc.m4: Likewise.
94856         * m4/st_dm_mode.m4: Likewise.
94857         * m4/stat.m4: Likewise.
94858         * m4/utimbuf.m4: Likewise.
94859         * m4/utimes.m4: Likewise.
94860
94861         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
94862         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
94863         comments in config.h.in are meaningful.
94864
94865         * m4/jm-macros.m4: Require autoconf-2.13 here.
94866
94867         * m4/regex.m4: By default, don't use the included regex.c on systems
94868         with glibc 2.  Suggestion from Uli Drepper.
94869
94870 1999-01-02  Jim Meyering  <meyering@ascend.com>
94871
94872         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
94873
94874 1998-12-18  Jim Meyering  <meyering@ascend.com>
94875
94876         * m4/Makefile.am.in (Makefile.am): Simplify rule.
94877         Based on a suggestion from Lars Hecking.
94878
94879 1998-11-16  Paul Eggert  <eggert@twinsun.com>
94880
94881         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
94882
94883 1998-11-16  Jim Meyering  <meyering@ascend.com>
94884
94885         * m4/lfs.m4: Double-quote the `uname...` expression.
94886
94887 1998-11-14  Jim Meyering  <meyering@ascend.com>
94888
94889         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
94890         * m4/stat.m4: Likewise.
94891
94892 1998-11-03  Jim Meyering  <meyering@ascend.com>
94893
94894         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
94895         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
94896
94897 1998-10-18  Jim Meyering  <meyering@ascend.com>
94898
94899         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
94900
94901 1998-10-17  Jim Meyering  <meyering@ascend.com>
94902
94903         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
94904         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
94905         calls for those previously hard-coded headers.  Instead, take a new
94906         parameter.
94907         (jm_CHECK_DECLARATIONS): Reflect interface change.
94908         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
94909         (jm_CHECK_DECL_LOCALTIME_R): New macro.
94910
94911         * m4/mktime.m4: Test for spring-forward gap before long-running test.
94912
94913 1998-10-14  Jim Meyering  <meyering@ascend.com>
94914
94915         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
94916         instead of "TZ=America/Vancouver".  From Paul Eggert.
94917
94918 1998-10-11  Jim Meyering  <meyering@ascend.com>
94919
94920         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
94921         This adds a test for a recently added compatibility fix for mktime.c.
94922         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
94923
94924 1998-09-27  Jim Meyering  <meyering@ascend.com>
94925
94926         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
94927
94928         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
94929         ../configure.in, including a change from Gordon Matzigkeit to allow
94930         cross-compiling for the Hurd.
94931
94932         * m4/glibc.m4: New file/macro to test for the GNU C Library
94933         versions 1 and 2.  From Gordon Matzigkeit.
94934         Indent.
94935
94936 1998-09-21  Jim Meyering  <meyering@ascend.com>
94937
94938         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
94939
94940 1998-08-18  Paul Eggert  <eggert@twinsun.com>
94941
94942         Port nanosecond-resolution times to UnixWare 2.1.2 and
94943         pedantic Solaris 2.6.
94944
94945         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
94946         AC_STRUCT_ST_MTIM.
94947         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
94948         Generate name of ns member, instead of just 1 or undef.
94949         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
94950
94951 1998-08-15  Jim Meyering  <meyering@ascend.com>
94952
94953         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
94954         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
94955         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
94956         instead of jm_TYPE_SSIZE_T.
94957
94958 1998-08-12  Jim Meyering  <meyering@ascend.com>
94959
94960         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
94961
94962 1998-08-02  Jim Meyering  <meyering@ascend.com>
94963
94964         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
94965         in acconfig.h manually.
94966
94967 1998-07-31  Paul Eggert  <eggert@twinsun.com>
94968
94969         * m4/st_mtim.m4: New file.
94970
94971 1998-07-28  Jim Meyering  <meyering@ascend.com>
94972
94973         * m4/utimes.m4: Undef stat.
94974
94975 1998-07-25  Jim Meyering  <meyering@ascend.com>
94976
94977         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
94978         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
94979
94980 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
94981
94982         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
94983         uid and gid actually remain unchanged.
94984
94985 1998-07-07  Jim Meyering  <meyering@ascend.com>
94986
94987         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
94988
94989 1998-07-04  Jim Meyering  <meyering@ascend.com>
94990
94991         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
94992         to prove that this macro can be used in packages without regex.c.
94993
94994 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
94995
94996         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
94997         is to be used.
94998
94999 1998-07-03  Jim Meyering  <meyering@ascend.com>
95000
95001         * m4/gettext.m4: Add -lintl if it's found to be necessary.
95002
95003         * m4/gettext.m4: New file -- from gettext-0.10.35.
95004         * m4/lcmessage.m4: Likewise.
95005         * m4/progtest.m4: Likewise.
95006
95007         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
95008         * m4/jm-macros.m4: Require the new macro.
95009
95010 1998-06-29  Jim Meyering  <meyering@ascend.com>
95011
95012         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
95013         for the definition of NGROUPS (used in a system header included
95014         by sys/mount.h).
95015
95016 1998-06-28  Jim Meyering  <meyering@ascend.com>
95017
95018         * m4/ls-mntd-fs.m4: New file.
95019         * m4/fstypename.m4: New file.
95020
95021         * m4/jm-macros.m4: Require the new macro.
95022         * m4/jm-glibc-io.m4: New file.
95023
95024 1998-05-19  Jim Meyering  <meyering@ascend.com>
95025
95026         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
95027         * m4/lchown.m4: New file.
95028
95029         * m4/Makefile.am.in: New file.
95030         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
95031
95032 1998-05-14  Jim Meyering  <meyering@ascend.com>
95033
95034         * m4/Makefile.am (EXTRA_DIST): Add them.
95035         * m4/jm-macros.m4: New file.
95036         * m4/utimbuf.m4: New file.
95037
95038 1998-05-12  Jim Meyering  <meyering@ascend.com>
95039
95040         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
95041
95042 1998-05-11  Jim Meyering  <meyering@ascend.com>
95043
95044         * m4/isc-posix.m4: New file.
95045
95046 1998-05-10  Jim Meyering  <meyering@ascend.com>
95047
95048         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
95049
95050 1998-05-09  Jim Meyering  <meyering@ascend.com>
95051
95052         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
95053         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
95054         with automake.
95055
95056         * m4/ssize_t.m4: New file.
95057         * m4/mktime.m4: Remove file -- the new automake has this now.
95058
95059 1998-04-26  Jim Meyering  <meyering@ascend.com>
95060
95061         * m4/assert.m4: New file.
95062         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
95063
95064 1998-04-05  Jim Meyering  <meyering@ascend.com>
95065
95066         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
95067         (jm_PREREQ): Use it here.
95068
95069 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
95070
95071         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
95072         in acconfig.h.
95073
95074 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
95075
95076         * m4/prereq.m4: New file.
95077         * m4/error.m4: New file.
95078         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
95079
95080 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
95081
95082         * m4/getline.m4: Don't set am_cv_func_working_getline before the
95083         cache-check for the same variable -- that defeated the purpose of
95084         the test; the test program was never run.  This was a problem only
95085         on systems with losing getline functions -- HP-UX 10.20 is one.
95086         Reported by Bjorn Helgaas.
95087
95088 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
95089
95090         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
95091
95092 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
95093
95094         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
95095
95096         * m4/const.m4: New file.  Use an initializer in this declaration
95097         typedef int charset[2]; const charset x;
95098         Reported by Bob Glickstein.
95099
95100 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
95101
95102         * m4/chown.m4: Fix reversed types on -1 args to chown.
95103         From Kaveh Ghazi.
95104
95105 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
95106
95107         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
95108         Add lseek and memchr.
95109
95110         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
95111         T.E.Dickey <dickey@clark.net> said that some older preprocessors
95112         have a 20-character limit on names.
95113
95114 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
95115
95116         * m4/inttypes_h.m4: New file.
95117         * m4/uintmax_t.m4: New file.
95118         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
95119
95120
95121         -----
95122
95123         Local Variables:
95124         coding: utf-8
95125         End:
95126
95127         Copyright (C) 1997-2012 Free Software Foundation, Inc.
95128
95129         Copying and distribution of this file, with or without
95130         modification, are permitted provided the copyright notice
95131         and this notice are preserved.